Added constants

This commit is contained in:
Gitea 2020-12-21 13:45:19 -06:00
parent 93e53acd73
commit a37a3c3928
2 changed files with 28 additions and 7 deletions

7
arch/i386/unistd_ilp.h Normal file
View file

@ -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

View file

@ -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 <unistd_ilp.h>
#define R_OK 01
#define W_OK 02