posix_opt.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /* Define POSIX options for Linux.
  2. Copyright (C) 1996-2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public License as
  6. published by the Free Software Foundation; either version 2.1 of the
  7. License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; see the file COPYING.LIB. If not,
  14. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA. */
  16. #ifndef _POSIX_OPT_H
  17. #define _POSIX_OPT_H 1
  18. /* Job control is supported. */
  19. #define _POSIX_JOB_CONTROL 1
  20. /* Processes have a saved set-user-ID and a saved set-group-ID. */
  21. #define _POSIX_SAVED_IDS 1
  22. /* Priority scheduling is supported. */
  23. #define _POSIX_PRIORITY_SCHEDULING 200112L
  24. /* Synchronizing file data is supported. */
  25. #define _POSIX_SYNCHRONIZED_IO 200112L
  26. /* The fsync function is present. */
  27. #define _POSIX_FSYNC 200112L
  28. /* Mapping of files to memory is supported. */
  29. #define _POSIX_MAPPED_FILES 200112L
  30. /* Locking of all memory is supported. */
  31. #define _POSIX_MEMLOCK 200112L
  32. /* Locking of ranges of memory is supported. */
  33. #define _POSIX_MEMLOCK_RANGE 200112L
  34. /* Setting of memory protections is supported. */
  35. #define _POSIX_MEMORY_PROTECTION 200112L
  36. /* Only root can change owner of file. */
  37. #define _POSIX_CHOWN_RESTRICTED 1
  38. /* `c_cc' member of 'struct termios' structure can be disabled by
  39. using the value _POSIX_VDISABLE. */
  40. #define _POSIX_VDISABLE '\0'
  41. /* Filenames are not silently truncated. */
  42. #define _POSIX_NO_TRUNC 1
  43. /* X/Open realtime support is available. */
  44. #define _XOPEN_REALTIME 1
  45. /* XPG4.2 shared memory is supported. */
  46. #define _XOPEN_SHM 1
  47. /* Tell we have POSIX threads. */
  48. #define _POSIX_THREADS 200112L
  49. /* We have the reentrant functions described in POSIX. */
  50. #define _POSIX_REENTRANT_FUNCTIONS 1
  51. #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
  52. /* We provide priority scheduling for threads. */
  53. #define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L
  54. /* We support user-defined stack sizes. */
  55. #define _POSIX_THREAD_ATTR_STACKSIZE 200112L
  56. /* We support user-defined stacks. */
  57. #define _POSIX_THREAD_ATTR_STACKADDR 200112L
  58. /* We support POSIX.1b semaphores. */
  59. #define _POSIX_SEMAPHORES 200112L
  60. /* Real-time signals are supported. */
  61. #define _POSIX_REALTIME_SIGNALS 200112L
  62. /* We support asynchronous I/O. */
  63. #define _POSIX_ASYNCHRONOUS_IO 200112L
  64. #define _POSIX_ASYNC_IO 1
  65. /* Alternative name for Unix98. */
  66. #define _LFS_ASYNCHRONOUS_IO 1
  67. /* Support for prioritization is also available. */
  68. #define _POSIX_PRIORITIZED_IO 200112L
  69. /* The LFS support in asynchronous I/O is also available. */
  70. #define _LFS64_ASYNCHRONOUS_IO 1
  71. #ifdef __UCLIBC_HAS_LFS__
  72. /* The rest of the LFS is also available. */
  73. #define _LFS_LARGEFILE 1
  74. #define _LFS64_LARGEFILE 1
  75. #define _LFS64_STDIO 1
  76. #endif
  77. /* POSIX shared memory objects are implemented. */
  78. #define _POSIX_SHARED_MEMORY_OBJECTS 200112L
  79. /* CPU-time clocks support needs to be checked at runtime. */
  80. #define _POSIX_CPUTIME 0
  81. /* Clock support in threads must be also checked at runtime. */
  82. #define _POSIX_THREAD_CPUTIME 0
  83. /* GNU libc provides regular expression handling. */
  84. #define _POSIX_REGEXP 1
  85. /* Reader/Writer locks are available. */
  86. #define _POSIX_READER_WRITER_LOCKS 200112L
  87. /* We have a POSIX shell. */
  88. #define _POSIX_SHELL 1
  89. /* We support the Timeouts option. */
  90. #define _POSIX_TIMEOUTS 200112L
  91. /* We support spinlocks. */
  92. #define _POSIX_SPIN_LOCKS 200112L
  93. /* The `spawn' function family is supported. */
  94. #define _POSIX_SPAWN 200112L
  95. /* We have POSIX timers. */
  96. #define _POSIX_TIMERS 200112L
  97. /* The barrier functions are available. */
  98. #define _POSIX_BARRIERS 200112L
  99. /* POSIX message queues are available. */
  100. #define _POSIX_MESSAGE_PASSING 200112L
  101. /* Thread process-shared synchronization is supported. */
  102. #define _POSIX_THREAD_PROCESS_SHARED 200112L
  103. /* The monotonic clock might be available. */
  104. #define _POSIX_MONOTONIC_CLOCK 0
  105. /* The clock selection interfaces are available. */
  106. #define _POSIX_CLOCK_SELECTION 200112L
  107. /* Advisory information interfaces are available. */
  108. #define _POSIX_ADVISORY_INFO 200112L
  109. /* IPv6 support is available. */
  110. #define _POSIX_IPV6 200112L
  111. /* Raw socket support is available. */
  112. #define _POSIX_RAW_SOCKETS 200112L
  113. /* We have at least one terminal. */
  114. #define _POSIX2_CHAR_TERM 200112L
  115. /* Neither process nor thread sporadic server interfaces is available. */
  116. #define _POSIX_SPORADIC_SERVER -1
  117. #define _POSIX_THREAD_SPORADIC_SERVER -1
  118. /* trace.h is not available. */
  119. #define _POSIX_TRACE -1
  120. #define _POSIX_TRACE_EVENT_FILTER -1
  121. #define _POSIX_TRACE_INHERIT -1
  122. #define _POSIX_TRACE_LOG -1
  123. /* Typed memory objects are not available. */
  124. #define _POSIX_TYPED_MEMORY_OBJECTS -1
  125. /* No support for priority inheritance or protection so far. */
  126. #define _POSIX_THREAD_PRIO_INHERIT -1
  127. #define _POSIX_THREAD_PRIO_PROTECT -1
  128. #endif /* posix_opt.h */