diff --git a/arch/i386/unistd_ilp.h b/arch/i386/unistd_ilp.h new file mode 100644 index 0000000..8f77714 --- /dev/null +++ b/arch/i386/unistd_ilp.h @@ -0,0 +1,7 @@ +#ifndef _ARCH_UNISTD_ILP_H +#define _ARCH_UNISTD_ILP_H + +#define _POSIX_V6_ILP32_OFF32 1 +#define _POSIX_V7_ILP32_OFF32 1 + +#endif \ No newline at end of file diff --git a/include/unistd.h b/include/unistd.h index 58e9ce7..6279a78 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -24,13 +24,27 @@ #define _XOPEN_VERSION 700 #endif -/* - Compilation should use 64-bit long, pointers, and off_t, - but I don't know if a 32-bit PC will support it at runtime -*/ -#ifndef _POSIX_V7_LP64_OFF64 -#define _POSIX_V7_LP64_OFF64 0 -#endif +#define _POSIX_ASYNCHRONOUS_IO 200809L +#define _POSIX_BARRIERS 200809L +#define _POSIX_CHOWN_RESTRICTED 0 +#define _POSIX_CLOCK_SELECTION 200809L +#define _POSIX_JOB_CONTROL 200809L +#define _POSIX_MAPPED_FILES 200809L +#define _POSIX_MEMORY_PROTECTION 200809L +#define _POSIX_NO_TRUNC 0 +#define _POSIX_READER_WRITER_LOCKS 200809L +#define _POSIX_REALTIME_SIGNALS 200809L +#define _POSIX_REGEXP 200809L +#define _POSIX_SAVED_IDS 200809L +#define _POSIX_SEMAPHORES 200809L +#define _POSIX_SHELL 200809L +#define _POSIX_SPIN_LOCKS 200809L +#define _POSIX_THREAD_SAFE_FUNCTIONS 200809L +#define _POSIX_THREADS 200809L +#define _POSIX_TIMEOUTS 200809L +#define _POSIX_TIMERS 200809L + +#include #define R_OK 01 #define W_OK 02