2 * D header file for POSIX.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
9 module stdc.posix.sys.time;
11 private import stdc.posix.config;
12 public import stdc.posix.sys.types; // for time_t, suseconds_t
13 public import stdc.posix.sys.select; // for fd_set, FD_CLR() FD_ISSET() FD_SET() FD_ZERO() FD_SETSIZE
37 int getitimer(int, itimerval*);
38 int gettimeofday(timeval*, void*);
39 int select(int, fd_set*, fd_set*, fd_set*, timeval*);
40 int setitimer(int, in itimerval*, itimerval*);
41 int utimes(in char*, in timeval[2]); // LEGACY
58 const ITIMER_REAL = 0;
59 const ITIMER_VIRTUAL = 1;
60 const ITIMER_PROF = 2;
62 int getitimer(int, itimerval*);
63 int gettimeofday(timeval*, void*);
64 int select(int, fd_set*, fd_set*, fd_set*, timeval*);
65 int setitimer(int, in itimerval*, itimerval*);
66 int utimes(in char*, in timeval[2]); // LEGACY
68 else version( darwin )
89 int getitimer(int, itimerval*);
90 int gettimeofday(timeval*, timezone_t*); // timezone_t* is normally void*
91 int select(int, fd_set*, fd_set*, fd_set*, timeval*);
92 int setitimer(int, in itimerval*, itimerval*);
93 int utimes(in char*, in timeval[2]);
95 else version( freebsd )
116 int getitimer(int, itimerval*);
117 int gettimeofday(timeval*, timezone_t*); // timezone_t* is normally void*
118 int select(int, fd_set*, fd_set*, fd_set*, timeval*);
119 int setitimer(int, in itimerval*, itimerval*);
120 int utimes(in char*, in timeval[2]);