Changeset 0c09f2b in mainline for uspace/lib/libc/include/unistd.h


Ignore:
Timestamp:
2007-11-19T16:34:25Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc50fc42
Parents:
2e51969
Message:

usleep() should return int. Non-void functions really should return a value, so
fix sleep() to always return 0.

File:
1 edited

Legend:

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

    r2e51969 r0c09f2b  
    4646extern void _exit(int status);
    4747extern void *sbrk(ssize_t incr);
    48 extern void usleep(unsigned long usec);
     48extern int usleep(unsigned long usec);
    4949extern unsigned int sleep(unsigned int seconds);
    5050
Note: See TracChangeset for help on using the changeset viewer.