Changes in / [caf5382:81bd5f4] in mainline
- Location:
- uspace/lib/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/time.h
rcaf5382 r81bd5f4 87 87 extern void __POSIX_DEF__(tzset)(void); 88 88 89 /* Time */90 extern time_t __POSIX_DEF__(time)(time_t *t);91 92 89 /* Broken-down Time */ 93 90 extern struct tm *__POSIX_DEF__(gmtime_r)(const time_t *restrict timer, -
uspace/lib/posix/source/time.c
rcaf5382 r81bd5f4 74 74 posix_daylight = 0; 75 75 posix_timezone = 0; 76 }77 78 /**79 * Get the time in seconds80 *81 * @param t If t is non-NULL, the return value is also stored in the memory82 * pointed to by t.83 * @return On success, the value of time in seconds since the Epoch84 * is returned. On error, (time_t)-1 is returned.85 */86 time_t posix_time(time_t *t)87 {88 return time(t);89 76 } 90 77
Note:
See TracChangeset
for help on using the changeset viewer.