Changes in uspace/lib/posix/source/time.c [0d0b319:78188e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/time.c
r0d0b319 r78188e5 41 41 42 42 #include "posix/ctype.h" 43 44 #include <errno.h> 45 43 #include "posix/errno.h" 46 44 #include "posix/signal.h" 47 45 #include "posix/assert.h" 48 46 49 #include "libc/ async.h"47 #include "libc/fibril_synch.h" 50 48 #include "libc/malloc.h" 51 49 #include "libc/task.h" … … 102 100 struct tm *restrict result) 103 101 { 104 if (failed(time_utc2tm(*timer, result))) { 102 int rc = time_utc2tm(*timer, result); 103 if (rc != EOK) { 104 errno = rc; 105 105 return NULL; 106 106 } … … 197 197 char *posix_ctime_r(const time_t *timer, char *buf) 198 198 { 199 if (failed(time_local2str(*timer, buf))) { 199 int r = time_local2str(*timer, buf); 200 if (r != EOK) { 201 errno = r; 200 202 return NULL; 201 203 } … … 312 314 // TODO: interruptible sleep 313 315 if (rqtp->tv_sec != 0) { 314 async_sleep(rqtp->tv_sec);316 fibril_sleep(rqtp->tv_sec); 315 317 } 316 318 if (rqtp->tv_nsec != 0) { 317 async_usleep(rqtp->tv_nsec / 1000);319 fibril_usleep(rqtp->tv_nsec / 1000); 318 320 } 319 321 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.