diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-09 16:20:41 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-09 16:20:41 -0500 |
| commit | a40472f280a03cd762f3e68d46438da4ad24b4ca (patch) | |
| tree | 6c58b22ed2a110b7014082619f8ffaf9dc061273 | |
| parent | 0c3a28852bcfcd98ffed857bea70ddcc374d0816 (diff) | |
merge XOPEN identifiers
| -rw-r--r-- | src/sys/time/FD_CLR.c | 5 | ||||
| -rw-r--r-- | src/sys/time/FD_ISSET.c | 5 | ||||
| -rw-r--r-- | src/sys/time/FD_SET.c | 5 | ||||
| -rw-r--r-- | src/sys/time/FD_SETSIZE.c | 5 | ||||
| -rw-r--r-- | src/sys/time/FD_ZERO.c | 5 | ||||
| -rw-r--r-- | src/sys/time/ITIMER_PROF.c | 5 | ||||
| -rw-r--r-- | src/sys/time/ITIMER_REAL.c | 5 | ||||
| -rw-r--r-- | src/sys/time/ITIMER_VIRTUAL.c | 5 | ||||
| -rw-r--r-- | src/sys/time/fd_set.c | 9 | ||||
| -rw-r--r-- | src/sys/time/getitimer.c | 10 | ||||
| -rw-r--r-- | src/sys/time/gettimeofday.c | 10 | ||||
| -rw-r--r-- | src/sys/time/select.c | 9 | ||||
| -rw-r--r-- | src/sys/time/setitimer.c | 10 | ||||
| -rw-r--r-- | src/sys/time/struct_itimerval.c | 11 | ||||
| -rw-r--r-- | src/sys/time/struct_timeval.c | 10 | ||||
| -rw-r--r-- | src/sys/time/utimes.c | 10 |
16 files changed, 119 insertions, 0 deletions
diff --git a/src/sys/time/FD_CLR.c b/src/sys/time/FD_CLR.c new file mode 100644 index 00000000..f2ccc825 --- /dev/null +++ b/src/sys/time/FD_CLR.c @@ -0,0 +1,5 @@ +#include <sys/time.h> +#define FD_CLR /* TODO */ +/* +XOPEN(400) +*/ diff --git a/src/sys/time/FD_ISSET.c b/src/sys/time/FD_ISSET.c new file mode 100644 index 00000000..ee5876f9 --- /dev/null +++ b/src/sys/time/FD_ISSET.c @@ -0,0 +1,5 @@ +#include <sys/time.h> +#define FD_ISSET /* TODO */ +/* +XOPEN(400) +*/ diff --git a/src/sys/time/FD_SET.c b/src/sys/time/FD_SET.c new file mode 100644 index 00000000..b39f3d9b --- /dev/null +++ b/src/sys/time/FD_SET.c @@ -0,0 +1,5 @@ +#include <sys/time.h> +#define FD_SET /* TODO */ +/* +XOPEN(400) +*/ diff --git a/src/sys/time/FD_SETSIZE.c b/src/sys/time/FD_SETSIZE.c new file mode 100644 index 00000000..21119138 --- /dev/null +++ b/src/sys/time/FD_SETSIZE.c @@ -0,0 +1,5 @@ +#include <sys/time.h> +#define FD_SETSIZE /* TODO */ +/* +XOPEN(400) +*/ diff --git a/src/sys/time/FD_ZERO.c b/src/sys/time/FD_ZERO.c new file mode 100644 index 00000000..1e800098 --- /dev/null +++ b/src/sys/time/FD_ZERO.c @@ -0,0 +1,5 @@ +#include <sys/time.h> +#define FD_ZERO /* TIME */ +/* +XOPEN(400) +*/ diff --git a/src/sys/time/ITIMER_PROF.c b/src/sys/time/ITIMER_PROF.c new file mode 100644 index 00000000..0a0e9107 --- /dev/null +++ b/src/sys/time/ITIMER_PROF.c @@ -0,0 +1,5 @@ +#include <sys/time.h> +#define ITIMER_PROF 2 +/* +XOPEN(400) +*/ diff --git a/src/sys/time/ITIMER_REAL.c b/src/sys/time/ITIMER_REAL.c new file mode 100644 index 00000000..f21a5f58 --- /dev/null +++ b/src/sys/time/ITIMER_REAL.c @@ -0,0 +1,5 @@ +#include <sys/time.h> +#define ITIMER_REAL 0 +/* +XOPEN(400) +*/ diff --git a/src/sys/time/ITIMER_VIRTUAL.c b/src/sys/time/ITIMER_VIRTUAL.c new file mode 100644 index 00000000..382cb43b --- /dev/null +++ b/src/sys/time/ITIMER_VIRTUAL.c @@ -0,0 +1,5 @@ +#include <sys/time.h> +#define ITIMER_VIRTUAL 1 +/* +XOPEN(400) +*/ diff --git a/src/sys/time/fd_set.c b/src/sys/time/fd_set.c new file mode 100644 index 00000000..7e435863 --- /dev/null +++ b/src/sys/time/fd_set.c @@ -0,0 +1,9 @@ +#include <sys/time.h> + +typedef struct { + long fds_bits[]; +}; + +/* +XOPEN(400) +*/ diff --git a/src/sys/time/getitimer.c b/src/sys/time/getitimer.c new file mode 100644 index 00000000..4bbc55b7 --- /dev/null +++ b/src/sys/time/getitimer.c @@ -0,0 +1,10 @@ +#include <sys/time.h> + +int getitimer(int which, struct itimerval *value) +{ + return which; +} + +/* +XOPEN(400) +*/ diff --git a/src/sys/time/gettimeofday.c b/src/sys/time/gettimeofday.c new file mode 100644 index 00000000..0cd2061f --- /dev/null +++ b/src/sys/time/gettimeofday.c @@ -0,0 +1,10 @@ +#include <sys/time.h> + +int gettimeofday(struct timeval *restrict tp, void *restrict tzp) +{ + return 0; +} + +/* +XOPEN(400) +*/ diff --git a/src/sys/time/select.c b/src/sys/time/select.c new file mode 100644 index 00000000..a75dc8b5 --- /dev/null +++ b/src/sys/time/select.c @@ -0,0 +1,9 @@ +#include <sys/time.h> + +int select(int nfds , fd_set * readfds , fd_set * writefds , fd_set * errorfds , struct timeval * timeout ) +{ +} + +/* +XOPEN(400) +*/ diff --git a/src/sys/time/setitimer.c b/src/sys/time/setitimer.c new file mode 100644 index 00000000..d3f7dc3a --- /dev/null +++ b/src/sys/time/setitimer.c @@ -0,0 +1,10 @@ +#include <sys/time.h> + +int setitimer(int which, const struct itimerval *restrict value, struct itimerval *restrict ovalue) +{ + return which; +} + +/* +XOPEN(400) +*/ diff --git a/src/sys/time/struct_itimerval.c b/src/sys/time/struct_itimerval.c new file mode 100644 index 00000000..c19ed081 --- /dev/null +++ b/src/sys/time/struct_itimerval.c @@ -0,0 +1,11 @@ +#include <sys/time.h> + +struct itimerval { + struct timeval it_interval; + struct timeval it_value; +}; + +/* +XOPEN(400) +*/ + diff --git a/src/sys/time/struct_timeval.c b/src/sys/time/struct_timeval.c new file mode 100644 index 00000000..00d1989b --- /dev/null +++ b/src/sys/time/struct_timeval.c @@ -0,0 +1,10 @@ +#include <sys/time.h> + +struct timeval { + time_t tv_sec; + suseconds_t tv_usec; +}; + +/* +XOPEN(400) +*/ diff --git a/src/sys/time/utimes.c b/src/sys/time/utimes.c new file mode 100644 index 00000000..502f2b5b --- /dev/null +++ b/src/sys/time/utimes.c @@ -0,0 +1,10 @@ +#include <sys/time.h> + +int utimes(const char *path, const struct timeval times[2]) +{ + return 0; +} + +/* +XOPEN(400) +*/ |
