Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 22e6802 in mainline for uspace/lib/libc/include/unistd.h


Ignore:
Timestamp:
2009-12-03T17:49:01Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
65c1778, fbcfc4da
Parents:
4924675
Message:

fix kernel thread_sleep() not to overflow thread_usleep()
introduce useconds_t
unify arguments names, cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/unistd.h

    r4924675 r22e6802  
    5151#endif
    5252
     53typedef uint32_t useconds_t;
     54
    5355extern int dup2(int oldfd, int newfd);
    5456
     
    6870
    6971extern void _exit(int status) __attribute__ ((noreturn));
    70 extern int usleep(unsigned long usec);
    71 extern unsigned int sleep(unsigned int seconds);
     72extern int usleep(useconds_t uses);
     73extern unsigned int sleep(unsigned int se);
    7274
    7375#endif
Note: See TracChangeset for help on using the changeset viewer.