Changeset caf5382 in mainline


Ignore:
Timestamp:
2013-08-07T21:00:14Z (11 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23b7c02
Parents:
81bd5f4 (diff), ed29fe4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with mainline changes.

Location:
uspace/lib/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/time.h

    r81bd5f4 rcaf5382  
    8787extern void __POSIX_DEF__(tzset)(void);
    8888
     89/* Time */
     90extern time_t __POSIX_DEF__(time)(time_t *t);
     91
    8992/* Broken-down Time */
    9093extern struct tm *__POSIX_DEF__(gmtime_r)(const time_t *restrict timer,
  • uspace/lib/posix/source/time.c

    r81bd5f4 rcaf5382  
    7474        posix_daylight = 0;
    7575        posix_timezone = 0;
     76}
     77
     78/**
     79 * Get the time in seconds
     80 *
     81 * @param t If t is non-NULL, the return value is also stored in the memory
     82 *          pointed to by t.
     83 * @return  On success, the value of time in seconds since the Epoch
     84 *          is returned. On error, (time_t)-1 is returned.
     85 */
     86time_t posix_time(time_t *t)
     87{
     88        return time(t);
    7689}
    7790
Note: See TracChangeset for help on using the changeset viewer.