/[base]/head/include/time.h
ViewVC logotype

Diff of /head/include/time.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 144528 by marcel, Sun Dec 7 21:10:06 2003 UTC revision 144529 by das, Sat Apr 2 12:33:27 2005 UTC
# Line 92  typedef        __timer_t       timer_t; Line 92  typedef        __timer_t       timer_t;
92  #include <sys/timespec.h>  #include <sys/timespec.h>
93  #endif /* __POSIX_VISIBLE >= 199309 */  #endif /* __POSIX_VISIBLE >= 199309 */
94    
95    /* These macros are also in sys/time.h. */
96    #if !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112
97    #define CLOCK_REALTIME  0
98    #ifdef __BSD_VISIBLE
99    #define CLOCK_VIRTUAL   1
100    #define CLOCK_PROF      2
101    #endif
102    #define CLOCK_MONOTONIC 4
103    #endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 */
104    
105    #if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112
106    #if __BSD_VISIBLE
107    #define TIMER_RELTIME   0x0     /* relative timer */
108    #endif
109    #define TIMER_ABSTIME   0x1     /* absolute timer */
110    #endif /* !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112 */
111    
112  struct tm {  struct tm {
113          int     tm_sec;         /* seconds after the minute [0-60] */          int     tm_sec;         /* seconds after the minute [0-60] */
114          int     tm_min;         /* minutes after the hour [0-59] */          int     tm_min;         /* minutes after the hour [0-59] */
# Line 115  char *asctime(const struct tm *); Line 132  char *asctime(const struct tm *);
132  clock_t clock(void);  clock_t clock(void);
133  char *ctime(const time_t *);  char *ctime(const time_t *);
134  double difftime(time_t, time_t);  double difftime(time_t, time_t);
135    /* XXX missing: getdate() */
136  struct tm *gmtime(const time_t *);  struct tm *gmtime(const time_t *);
137  struct tm *localtime(const time_t *);  struct tm *localtime(const time_t *);
138  time_t mktime(struct tm *);  time_t mktime(struct tm *);
# Line 130  void tzset(void); Line 148  void tzset(void);
148  int clock_getres(clockid_t, struct timespec *);  int clock_getres(clockid_t, struct timespec *);
149  int clock_gettime(clockid_t, struct timespec *);  int clock_gettime(clockid_t, struct timespec *);
150  int clock_settime(clockid_t, const struct timespec *);  int clock_settime(clockid_t, const struct timespec *);
151    /* XXX missing: clock_nanosleep() */
152  int nanosleep(const struct timespec *, struct timespec *);  int nanosleep(const struct timespec *, struct timespec *);
153  #endif /* __POSIX_VISIBLE >= 199309 */  #endif /* __POSIX_VISIBLE >= 199309 */
154    
# Line 146  char *strptime(const char * __restrict, Line 165  char *strptime(const char * __restrict,
165  #endif  #endif
166    
167  #if __BSD_VISIBLE  #if __BSD_VISIBLE
168  char *timezone(int, int);  char *timezone(int, int);       /* XXX XSI conflict */
169  void tzsetwall(void);  void tzsetwall(void);
170  time_t timelocal(struct tm * const);  time_t timelocal(struct tm * const);
171  time_t timegm(struct tm * const);  time_t timegm(struct tm * const);

Legend:
Removed from v.144528  
changed lines
  Added in v.144529

  ViewVC Help
Powered by ViewVC 1.1.27