stdlib.h-data 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. type div_t
  2. element div_t int quot
  3. element div_t int rem
  4. type ldiv_t
  5. element ldiv_t long quot
  6. element ldiv_t long rem
  7. macro-int-constant EXIT_FAILURE
  8. macro-int-constant EXIT_SUCCESS == 0
  9. macro-constant NULL == 0
  10. macro-int-constant RAND_MAX >= 32767
  11. macro MB_CUR_MAX
  12. #if defined ISO99 || defined ISO11 || defined ISO23 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  13. type lldiv_t
  14. element lldiv_t {long long} quot
  15. element lldiv_t {long long} rem
  16. #endif
  17. type size_t
  18. type wchar_t
  19. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX
  20. constant WNOHANG
  21. constant WUNTRACED
  22. macro WEXITSTATUS
  23. macro WIFEXITED
  24. macro WIFSIGNALED
  25. macro WIFSTOPPED
  26. macro WSTOPSIG
  27. macro WTERMSIG
  28. #endif
  29. #if !defined ISO && !defined XPG4 && !defined XPG42 && !defined UNIX98 && !defined POSIX
  30. function void _Exit (int)
  31. #endif
  32. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  33. function long a64l (const char*)
  34. #endif
  35. function void abort (void)
  36. function int abs (int)
  37. #if defined ISO11 || defined ISO23
  38. function {void *} aligned_alloc (size_t, size_t)
  39. #endif
  40. function int atexit (void(*)(void))
  41. #if defined ISO11 || defined ISO23
  42. function int at_quick_exit (void (*) (void))
  43. #endif
  44. function double atof (const char*)
  45. function int atoi (const char*)
  46. function {long int} atol (const char*)
  47. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  48. function {long long} atoll (const char*)
  49. #endif
  50. function {void*} bsearch (const void*, const void*, size_t, size_t, int(*)(const void*, const void*))
  51. function {void*} calloc (size_t, size_t)
  52. function div_t div (int, int)
  53. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  54. function double drand48 (void)
  55. #endif
  56. #if defined XPG42 || defined UNIX98 || defined XOPEN2K
  57. function {char*} ecvt (double, int, int*, int*)
  58. #endif
  59. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  60. function double erand48 (unsigned short int[3])
  61. #endif
  62. function void exit (int)
  63. #if defined XPG42 || defined UNIX98 || defined XOPEN2K
  64. function {char*} fcvt (double, int, int*, int*)
  65. #endif
  66. function void free (void*)
  67. #if defined XPG42 || defined UNIX98 || defined XOPEN2K
  68. function {char*} gcvt (double, int, char*)
  69. #endif
  70. function {char*} getenv (const char*)
  71. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX
  72. function int getsubopt (char**, char *const*, char**)
  73. #endif
  74. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  75. function int grantpt (int)
  76. function {char*} initstate (unsigned int, char*, size_t)
  77. #endif
  78. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  79. function {long int} jrand48 (unsigned short int[3])
  80. #endif
  81. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  82. function {char*} l64a (long)
  83. #endif
  84. function {long int} labs (long int)
  85. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  86. function void lcong48 (unsigned short int[7])
  87. #endif
  88. function ldiv_t ldiv (long int, long int)
  89. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  90. function {long long} llabs (long long)
  91. function lldiv_t lldiv (long long, long long)
  92. #endif
  93. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  94. function {long int} lrand48 (void)
  95. #endif
  96. function {void*} malloc (size_t)
  97. function int mblen (const char*, size_t)
  98. function size_t mbstowcs (wchar_t*, const char*, size_t)
  99. function int mbtowc (wchar_t*, const char*, size_t)
  100. #if defined XOPEN2K8 || defined POSIX2008
  101. function {char*} mkdtemp (char*)
  102. #endif
  103. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined XOPEN2K8 && !defined POSIX2008
  104. function {char*} mktemp (char*)
  105. #endif
  106. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX
  107. function int mkstemp (char*)
  108. #endif
  109. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  110. function {long int} mrand48 (void)
  111. function {long int} nrand48 (unsigned short int[3])
  112. #endif
  113. #if defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  114. function int posix_memalign (void**, size_t, size_t)
  115. #endif
  116. #if defined XOPEN2K || defined XOPEN2K8
  117. function int posix_openpt (int)
  118. #endif
  119. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  120. function {char*} ptsname (int)
  121. #endif
  122. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  123. function int putenv (char*)
  124. #endif
  125. function void qsort (void*, size_t, size_t, int(*)(const void*, const void*))
  126. #if defined ISO11 || defined ISO23
  127. function void quick_exit (int)
  128. #endif
  129. function int rand (void)
  130. #if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  131. function int rand_r (unsigned int*)
  132. #endif
  133. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  134. function long random (void)
  135. #endif
  136. function {void*} realloc (void*, size_t)
  137. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  138. function {char*} realpath (const char*, char*)
  139. #endif
  140. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  141. function {unsigned short int*} seed48 (unsigned short int[3])
  142. #endif
  143. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  144. function int setenv (const char*, const char*, int)
  145. #endif
  146. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  147. function {char*} setstate (char*)
  148. #endif
  149. function void srand (unsigned int)
  150. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  151. function void srand48 (long int)
  152. #endif
  153. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  154. function void srandom (unsigned)
  155. #endif
  156. function double strtod (const char*, char**)
  157. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  158. function float strtof (const char*, char**)
  159. function {long double} strtold (const char*, char**)
  160. #endif
  161. function {long int} strtol (const char*, char**, int)
  162. function {unsigned long int} strtoul (const char*, char**, int)
  163. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  164. function {long long int} strtoll (const char*, char**, int)
  165. function {unsigned long long int} strtoull (const char*, char**, int)
  166. #endif
  167. function int system (const char*)
  168. #if defined XPG42 || defined UNIX98
  169. function int ttyslot (void)
  170. #endif
  171. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined XPG4 && !defined POSIX && !defined POSIX2008
  172. function int unlockpt (int)
  173. #endif
  174. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  175. function int unsetenv (const char*)
  176. #endif
  177. #if defined XPG42 || defined UNIX98
  178. function {void*} valloc (size_t)
  179. #endif
  180. function size_t wcstombs (char*, const wchar_t*, size_t)
  181. function int wctomb (char*, wchar_t)
  182. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX
  183. allow-header stddef.h
  184. allow-header limits.h
  185. allow-header math.h
  186. allow-header sys/wait.h
  187. #endif
  188. allow str[abcdefghijklmnopqrstuvwxyz]*
  189. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
  190. allow *_t
  191. #endif