PageRenderTime 26ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/android-ndk-r7/platforms/android-14/arch-x86/usr/include/sys/sysconf.h

https://bitbucket.org/cyanogenmod/android_prebuilts_ndk
C Header | 135 lines | 97 code | 9 blank | 29 comment | 0 complexity | 86be6a5df9af63f57b642f646b2c1df2 MD5 | raw file
  1. /*
  2. * Copyright (C) 2008 The Android Open Source Project
  3. * All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. * * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * * Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in
  12. * the documentation and/or other materials provided with the
  13. * distribution.
  14. *
  15. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  16. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  17. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  18. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  19. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  20. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  21. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  22. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  23. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  24. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  25. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  26. * SUCH DAMAGE.
  27. */
  28. #ifndef _SYS_SYSCONF_H_
  29. #define _SYS_SYSCONF_H_
  30. #include <sys/cdefs.h>
  31. __BEGIN_DECLS
  32. /* as listed by Posix sysconf() description */
  33. /* most of these will return -1 and ENOSYS */
  34. #define _SC_ARG_MAX 0x0000
  35. #define _SC_BC_BASE_MAX 0x0001
  36. #define _SC_BC_DIM_MAX 0x0002
  37. #define _SC_BC_SCALE_MAX 0x0003
  38. #define _SC_BC_STRING_MAX 0x0004
  39. #define _SC_CHILD_MAX 0x0005
  40. #define _SC_CLK_TCK 0x0006
  41. #define _SC_COLL_WEIGHTS_MAX 0x0007
  42. #define _SC_EXPR_NEST_MAX 0x0008
  43. #define _SC_LINE_MAX 0x0009
  44. #define _SC_NGROUPS_MAX 0x000a
  45. #define _SC_OPEN_MAX 0x000b
  46. #define _SC_PASS_MAX 0x000c
  47. #define _SC_2_C_BIND 0x000d
  48. #define _SC_2_C_DEV 0x000e
  49. #define _SC_2_C_VERSION 0x000f
  50. #define _SC_2_CHAR_TERM 0x0010
  51. #define _SC_2_FORT_DEV 0x0011
  52. #define _SC_2_FORT_RUN 0x0012
  53. #define _SC_2_LOCALEDEF 0x0013
  54. #define _SC_2_SW_DEV 0x0014
  55. #define _SC_2_UPE 0x0015
  56. #define _SC_2_VERSION 0x0016
  57. #define _SC_JOB_CONTROL 0x0017
  58. #define _SC_SAVED_IDS 0x0018
  59. #define _SC_VERSION 0x0019
  60. #define _SC_RE_DUP_MAX 0x001a
  61. #define _SC_STREAM_MAX 0x001b
  62. #define _SC_TZNAME_MAX 0x001c
  63. #define _SC_XOPEN_CRYPT 0x001d
  64. #define _SC_XOPEN_ENH_I18N 0x001e
  65. #define _SC_XOPEN_SHM 0x001f
  66. #define _SC_XOPEN_VERSION 0x0020
  67. #define _SC_XOPEN_XCU_VERSION 0x0021
  68. #define _SC_XOPEN_REALTIME 0x0022
  69. #define _SC_XOPEN_REALTIME_THREADS 0x0023
  70. #define _SC_XOPEN_LEGACY 0x0024
  71. #define _SC_ATEXIT_MAX 0x0025
  72. #define _SC_IOV_MAX 0x0026
  73. #define _SC_PAGESIZE 0x0027
  74. #define _SC_PAGE_SIZE 0x0028
  75. #define _SC_XOPEN_UNIX 0x0029
  76. #define _SC_XBS5_ILP32_OFF32 0x002a
  77. #define _SC_XBS5_ILP32_OFFBIG 0x002b
  78. #define _SC_XBS5_LP64_OFF64 0x002c
  79. #define _SC_XBS5_LPBIG_OFFBIG 0x002d
  80. #define _SC_AIO_LISTIO_MAX 0x002e
  81. #define _SC_AIO_MAX 0x002f
  82. #define _SC_AIO_PRIO_DELTA_MAX 0x0030
  83. #define _SC_DELAYTIMER_MAX 0x0031
  84. #define _SC_MQ_OPEN_MAX 0x0032
  85. #define _SC_MQ_PRIO_MAX 0x0033
  86. #define _SC_RTSIG_MAX 0x0034
  87. #define _SC_SEM_NSEMS_MAX 0x0035
  88. #define _SC_SEM_VALUE_MAX 0x0036
  89. #define _SC_SIGQUEUE_MAX 0x0037
  90. #define _SC_TIMER_MAX 0x0038
  91. #define _SC_ASYNCHRONOUS_IO 0x0039
  92. #define _SC_FSYNC 0x003a
  93. #define _SC_MAPPED_FILES 0x003b
  94. #define _SC_MEMLOCK 0x003c
  95. #define _SC_MEMLOCK_RANGE 0x003d
  96. #define _SC_MEMORY_PROTECTION 0x003e
  97. #define _SC_MESSAGE_PASSING 0x003f
  98. #define _SC_PRIORITIZED_IO 0x0040
  99. #define _SC_PRIORITY_SCHEDULING 0x0041
  100. #define _SC_REALTIME_SIGNALS 0x0042
  101. #define _SC_SEMAPHORES 0x0043
  102. #define _SC_SHARED_MEMORY_OBJECTS 0x0044
  103. #define _SC_SYNCHRONIZED_IO 0x0045
  104. #define _SC_TIMERS 0x0046
  105. #define _SC_GETGR_R_SIZE_MAX 0x0047
  106. #define _SC_GETPW_R_SIZE_MAX 0x0048
  107. #define _SC_LOGIN_NAME_MAX 0x0049
  108. #define _SC_THREAD_DESTRUCTOR_ITERATIONS 0x004a
  109. #define _SC_THREAD_KEYS_MAX 0x004b
  110. #define _SC_THREAD_STACK_MIN 0x004c
  111. #define _SC_THREAD_THREADS_MAX 0x004d
  112. #define _SC_TTY_NAME_MAX 0x004e
  113. #define _SC_THREADS 0x004f
  114. #define _SC_THREAD_ATTR_STACKADDR 0x0050
  115. #define _SC_THREAD_ATTR_STACKSIZE 0x0051
  116. #define _SC_THREAD_PRIORITY_SCHEDULING 0x0052
  117. #define _SC_THREAD_PRIO_INHERIT 0x0053
  118. #define _SC_THREAD_PRIO_PROTECT 0x0054
  119. #define _SC_THREAD_SAFE_FUNCTIONS 0x0055
  120. #define _SC_NPROCESSORS_CONF 0x0060
  121. #define _SC_NPROCESSORS_ONLN 0x0061
  122. #define _SC_PHYS_PAGES 0x0062
  123. #define _SC_AVPHYS_PAGES 0x0063
  124. extern int sysconf (int name);
  125. __END_DECLS
  126. #endif /* _SYS_SYSCONF_H_ */