Changeset 0c09f2b in mainline
- Timestamp:
- 2007-11-19T16:34:25Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc50fc42
- Parents:
- 2e51969
- Location:
- uspace/lib/libc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/time.c
r2e51969 r0c09f2b 188 188 189 189 /** Wait unconditionally for specified number of microseconds */ 190 voidusleep(unsigned long usec)190 int usleep(unsigned long usec) 191 191 { 192 192 atomic_t futex = FUTEX_INITIALIZER; … … 194 194 futex_initialize(&futex, 0); 195 195 futex_down_timeout(&futex, usec, 0); 196 return 0; 196 197 } 197 198 … … 211 212 seconds -= period; 212 213 } 214 return 0; 213 215 } 214 216 -
uspace/lib/libc/include/unistd.h
r2e51969 r0c09f2b 46 46 extern void _exit(int status); 47 47 extern void *sbrk(ssize_t incr); 48 extern voidusleep(unsigned long usec);48 extern int usleep(unsigned long usec); 49 49 extern unsigned int sleep(unsigned int seconds); 50 50
Note:
See TracChangeset
for help on using the changeset viewer.