posix_opt.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. #ifdef __UCLIBC_HAS_REALTIME__
  59. /* We support POSIX.1b semaphores. */
  60. #define _POSIX_SEMAPHORES 200112L
  61. #endif
  62. /* Real-time signals are supported. */
  63. #define _POSIX_REALTIME_SIGNALS 200112L
  64. /* We support asynchronous I/O. */
  65. #define _POSIX_ASYNCHRONOUS_IO 200112L
  66. #define _POSIX_ASYNC_IO 1
  67. /* Alternative name for Unix98. */
  68. #define _LFS_ASYNCHRONOUS_IO 1
  69. /* Support for prioritization is also available. */
  70. #define _POSIX_PRIORITIZED_IO 200112L
  71. /* The LFS support in asynchronous I/O is also available. */
  72. #define _LFS64_ASYNCHRONOUS_IO 1
  73. #ifdef __UCLIBC_HAS_LFS__
  74. /* The rest of the LFS is also available. */
  75. #define _LFS_LARGEFILE 1
  76. #define _LFS64_LARGEFILE 1
  77. #define _LFS64_STDIO 1
  78. #endif
  79. /* POSIX shared memory objects are implemented. */
  80. #define _POSIX_SHARED_MEMORY_OBJECTS 200112L
  81. /* CPU-time clocks support needs to be checked at runtime. */
  82. #define _POSIX_CPUTIME 0
  83. /* Clock support in threads must be also checked at runtime. */
  84. #define _POSIX_THREAD_CPUTIME 0
  85. #ifdef __UCLIBC_HAS_REGEX__
  86. /* GNU libc provides regular expression handling. */
  87. #define _POSIX_REGEXP 1
  88. #endif
  89. /* Reader/Writer locks are available. */
  90. #define _POSIX_READER_WRITER_LOCKS 200112L
  91. /* We have a POSIX shell. */
  92. #define _POSIX_SHELL 1
  93. /* We support the Timeouts option. */
  94. #define _POSIX_TIMEOUTS 200112L
  95. /* We support spinlocks. */
  96. #define _POSIX_SPIN_LOCKS 200112L
  97. /* The `spawn' function family is supported. */
  98. #if 0 /* no support in uClibc (yet) */
  99. #define _POSIX_SPAWN 200112L
  100. #endif
  101. /* We have POSIX timers. */
  102. #define _POSIX_TIMERS 200112L
  103. /* The barrier functions are available. */
  104. #define _POSIX_BARRIERS 200112L
  105. /* POSIX message queues are available. */
  106. #define _POSIX_MESSAGE_PASSING 200112L
  107. /* Thread process-shared synchronization is supported. */
  108. #define _POSIX_THREAD_PROCESS_SHARED 200112L
  109. /* The monotonic clock might be available. */
  110. #define _POSIX_MONOTONIC_CLOCK 0
  111. /* The clock selection interfaces are available. */
  112. #define _POSIX_CLOCK_SELECTION 200112L
  113. /* Advisory information interfaces are available. */
  114. #define _POSIX_ADVISORY_INFO 200112L
  115. #ifdef __UCLIBC_HAS_IPV6__
  116. /* IPv6 support is available. */
  117. #define _POSIX_IPV6 200112L
  118. #endif
  119. #ifdef __UCLIBC_HAS_SOCKET__
  120. /* Raw socket support is available. */
  121. #define _POSIX_RAW_SOCKETS 200112L
  122. #endif
  123. /* We have at least one terminal. */
  124. #define _POSIX2_CHAR_TERM 200112L
  125. /* Neither process nor thread sporadic server interfaces is available. */
  126. #define _POSIX_SPORADIC_SERVER -1
  127. #define _POSIX_THREAD_SPORADIC_SERVER -1
  128. /* trace.h is not available. */
  129. #define _POSIX_TRACE -1
  130. #define _POSIX_TRACE_EVENT_FILTER -1
  131. #define _POSIX_TRACE_INHERIT -1
  132. #define _POSIX_TRACE_LOG -1
  133. /* Typed memory objects are not available. */
  134. #define _POSIX_TYPED_MEMORY_OBJECTS -1
  135. /* No support for priority inheritance or protection so far. */
  136. #define _POSIX_THREAD_PRIO_INHERIT -1
  137. #define _POSIX_THREAD_PRIO_PROTECT -1
  138. #endif /* posix_opt.h */