Ignore:
Timestamp:
2018-01-31T12:02:00Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5595841
Parents:
a0a9cc2 (diff), 14d789c (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 remote-tracking branch 'upstream/master' into forwardport

change tmon includes because of new stdlib

File:
1 edited

Legend:

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

    ra0a9cc2 r2b3dd78  
    3737#define POSIX_TIME_H_
    3838
    39 #ifndef __POSIX_DEF__
    40 #define __POSIX_DEF__(x) x
    41 #endif
    42 
    4339#include "sys/types.h"
    4440
     
    5147#ifndef __locale_t_defined
    5248        #define __locale_t_defined
    53         typedef struct __posix_locale *__POSIX_DEF__(locale_t);
    54         #ifndef LIBPOSIX_INTERNAL
    55                 #define locale_t __POSIX_DEF__(locale_t)
    56         #endif
     49        typedef struct __posix_locale *locale_t;
    5750#endif
    5851
    5952#ifndef POSIX_SIGNAL_H_
    60         struct __POSIX_DEF__(sigevent);
    61         #ifndef LIBPOSIX_INTERNAL
    62                 #define sigevent __POSIX_DEF__(sigevent)
    63         #endif
     53        struct sigevent;
    6454#endif
    6555
    6656#undef CLOCK_REALTIME
    67 #define CLOCK_REALTIME ((__POSIX_DEF__(clockid_t)) 0)
     57#define CLOCK_REALTIME ((clockid_t) 0)
    6858
    69 struct __POSIX_DEF__(timespec) {
     59struct timespec {
    7060        time_t tv_sec; /* Seconds. */
    7161        long tv_nsec; /* Nanoseconds. */
    7262};
    7363
    74 struct __POSIX_DEF__(itimerspec) {
    75         struct __POSIX_DEF__(timespec) it_interval; /* Timer period. */
    76         struct __POSIX_DEF__(timespec) it_value; /* Timer expiration. */
     64struct itimerspec {
     65        struct timespec it_interval; /* Timer period. */
     66        struct timespec it_value; /* Timer expiration. */
    7767};
    7868
    79 typedef struct __posix_timer *__POSIX_DEF__(timer_t);
     69typedef struct __posix_timer *timer_t;
    8070
    8171/* Timezones */
    82 extern int __POSIX_DEF__(daylight);
    83 extern long __POSIX_DEF__(timezone);
    84 extern char *__POSIX_DEF__(tzname)[2];
    85 extern void __POSIX_DEF__(tzset)(void);
     72extern int daylight;
     73extern long timezone;
     74extern char *tzname[2];
     75extern void tzset(void);
    8676
    8777/* Time */
    88 extern time_t __POSIX_DEF__(time)(time_t *t);
     78extern time_t time(time_t *t);
    8979
    9080/* Broken-down Time */
    91 extern struct tm *__POSIX_DEF__(gmtime_r)(const time_t *__restrict__ timer,
     81extern struct tm *gmtime_r(const time_t *__restrict__ timer,
    9282    struct tm *__restrict__ result);
    93 extern struct tm *__POSIX_DEF__(gmtime)(const time_t *__restrict__ timep);
    94 extern struct tm *__POSIX_DEF__(localtime_r)(const time_t *__restrict__ timer,
     83extern struct tm *gmtime(const time_t *__restrict__ timep);
     84extern struct tm *localtime_r(const time_t *__restrict__ timer,
    9585    struct tm *__restrict__ result);
    96 extern struct tm *__POSIX_DEF__(localtime)(const time_t *__restrict__ timep);
     86extern struct tm *localtime(const time_t *__restrict__ timep);
    9787
    9888/* Formatting Calendar Time */
    99 extern char *__POSIX_DEF__(asctime_r)(const struct tm *__restrict__ timeptr,
     89extern char *asctime_r(const struct tm *__restrict__ timeptr,
    10090    char *__restrict__ buf);
    101 extern char *__POSIX_DEF__(asctime)(const struct tm *__restrict__ timeptr);
    102 extern char *__POSIX_DEF__(ctime_r)(const time_t *timer, char *buf);
    103 extern char *__POSIX_DEF__(ctime)(const time_t *timer);
     91extern char *asctime(const struct tm *__restrict__ timeptr);
     92extern char *ctime_r(const time_t *timer, char *buf);
     93extern char *ctime(const time_t *timer);
    10494extern time_t time(time_t *t);
    10595
    10696/* Clocks */
    107 extern int __POSIX_DEF__(clock_getres)(__POSIX_DEF__(clockid_t) clock_id,
    108     struct __POSIX_DEF__(timespec) *res);
    109 extern int __POSIX_DEF__(clock_gettime)(__POSIX_DEF__(clockid_t) clock_id,
    110     struct __POSIX_DEF__(timespec) *tp);
    111 extern int __POSIX_DEF__(clock_settime)(__POSIX_DEF__(clockid_t) clock_id,
    112     const struct __POSIX_DEF__(timespec) *tp);
    113 extern int __POSIX_DEF__(clock_nanosleep)(__POSIX_DEF__(clockid_t) clock_id, int flags,
    114     const struct __POSIX_DEF__(timespec) *rqtp, struct __POSIX_DEF__(timespec) *rmtp);
     97extern int clock_getres(clockid_t clock_id,
     98    struct timespec *res);
     99extern int clock_gettime(clockid_t clock_id,
     100    struct timespec *tp);
     101extern int clock_settime(clockid_t clock_id,
     102    const struct timespec *tp);
     103extern int clock_nanosleep(clockid_t clock_id, int flags,
     104    const struct timespec *rqtp, struct timespec *rmtp);
    115105
    116106/* CPU Time */
    117 extern __POSIX_DEF__(clock_t) __POSIX_DEF__(clock)(void);
     107extern clock_t clock(void);
    118108
    119109
Note: See TracChangeset for help on using the changeset viewer.