]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/sys/unistd.h
Add Socket Libraries.
[mirror_edk2.git] / StdLib / Include / sys / unistd.h
index 0e7158c7c85d6fa065faf28a6ba4d1b42f213447..a63d88df55ea8756d199a03b70ce1e301ad32428 100644 (file)
@@ -37,7 +37,7 @@
 #include <sys/featuretest.h>\r
 \r
 /* compile-time symbolic constants */\r
-#define _POSIX_JOB_CONTROL  /* implementation supports job control */\r
+//#define _POSIX_JOB_CONTROL  /* implementation supports job control */\r
 \r
 /*\r
  * According to POSIX 1003.1:\r
 \r
 /* execution-time symbolic constants */\r
         /* chown requires appropriate privileges */\r
-#define _POSIX_CHOWN_RESTRICTED 1\r
-        /* clock selection */\r
-#define _POSIX_CLOCK_SELECTION  -1\r
-        /* too-long path components generate errors */\r
-#define _POSIX_NO_TRUNC   1\r
-        /* may disable terminal special characters */\r
-#define _POSIX_VDISABLE   ((unsigned char)'\377')\r
-        /* file synchronization is available */\r
-#define _POSIX_FSYNC    1\r
-        /* synchronized I/O is available */\r
-#define _POSIX_SYNCHRONIZED_IO  1\r
-        /* memory mapped files */\r
-#define _POSIX_MAPPED_FILES 1\r
-        /* memory locking of whole address space */\r
-#define _POSIX_MEMLOCK    1\r
-        /* memory locking address ranges */\r
-#define _POSIX_MEMLOCK_RANGE  1\r
-        /* memory access protections */\r
-#define _POSIX_MEMORY_PROTECTION 1\r
-        /* monotonic clock */\r
-#define _POSIX_MONOTONIC_CLOCK  200112L\r
-        /* threads */\r
-#define _POSIX_THREADS    200112L\r
-        /* semaphores */\r
-#define _POSIX_SEMAPHORES 0\r
-        /* barriers */\r
-#define _POSIX_BARRIERS   200112L\r
+//#define _POSIX_CHOWN_RESTRICTED 1\r
+//        /* clock selection */\r
+//#define _POSIX_CLOCK_SELECTION  -1\r
+//        /* too-long path components generate errors */\r
+//#define _POSIX_NO_TRUNC   1\r
+//        /* may disable terminal special characters */\r
+//#define _POSIX_VDISABLE   ((unsigned char)'\377')\r
+//        /* file synchronization is available */\r
+//#define _POSIX_FSYNC    1\r
+//        /* synchronized I/O is available */\r
+//#define _POSIX_SYNCHRONIZED_IO  1\r
+//        /* memory mapped files */\r
+//#define _POSIX_MAPPED_FILES 1\r
+//        /* memory locking of whole address space */\r
+//#define _POSIX_MEMLOCK    1\r
+//        /* memory locking address ranges */\r
+//#define _POSIX_MEMLOCK_RANGE  1\r
+//        /* memory access protections */\r
+//#define _POSIX_MEMORY_PROTECTION 1\r
+//        /* monotonic clock */\r
+//#define _POSIX_MONOTONIC_CLOCK  200112L\r
+//        /* threads */\r
+//#define _POSIX_THREADS    200112L\r
+//        /* semaphores */\r
+//#define _POSIX_SEMAPHORES 0\r
+//        /* barriers */\r
+//#define _POSIX_BARRIERS   200112L\r
         /* timers */\r
 #define _POSIX_TIMERS   200112L\r
         /* spin locks */\r
-#define _POSIX_SPIN_LOCKS 200112L\r
-        /* read/write locks */\r
-#define _POSIX_READER_WRITER_LOCKS  200112L\r
-        /* XPG4.2 shared memory */\r
-#define _XOPEN_SHM    0\r
+//#define _POSIX_SPIN_LOCKS 200112L\r
+//        /* read/write locks */\r
+//#define _POSIX_READER_WRITER_LOCKS  200112L\r
+//        /* XPG4.2 shared memory */\r
+//#define _XOPEN_SHM    0\r
 \r
-#if defined(_NETBSD_SOURCE)\r
 /* whence values for lseek(2); renamed by POSIX 1003.1 */\r
 #define L_SET   SEEK_SET\r
 #define L_INCR    SEEK_CUR\r
 #define FDATASYNC 0x0010  /* sync data and minimal metadata */\r
 #define FFILESYNC 0x0020  /* sync data and metadata */\r
 #define FDISKSYNC 0x0040  /* flush disk caches after sync */\r
-#endif\r
 \r
 /* configurable pathname variables; use as argument to pathconf(3) */\r
 #define _PC_LINK_MAX     1\r