cfns.gperf 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. %{
  2. /* Copyright (C) 2000-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifdef __GNUC__
  16. __inline
  17. #endif
  18. static unsigned int hash (const char *, unsigned int);
  19. #ifdef __GNUC__
  20. __inline
  21. #endif
  22. const char * libc_name_p (const char *, unsigned int);
  23. %}
  24. %%
  25. # The standard C library functions, for feeding to gperf; the result is used
  26. # by nothrow_libfn_p.
  27. #
  28. # [lib.res.on.exception.handling]: None of the functions from the
  29. # Standard C library shall report an error by throwing an
  30. # exception, unless it calls a program-supplied function that
  31. # throws an exception.
  32. #
  33. # Specific functions are commented out for the reason noted in each case.
  34. #
  35. # abort -- synchronous exception from SIGABRT handler
  36. abs
  37. acos
  38. asctime
  39. asin
  40. atan
  41. atan2
  42. atexit
  43. atof
  44. atoi
  45. atol
  46. #bsearch -- calls user function which may throw exception
  47. btowc
  48. calloc
  49. ceil
  50. clearerr
  51. clock
  52. cos
  53. cosh
  54. ctime
  55. difftime
  56. div
  57. exit
  58. exp
  59. fabs
  60. #fclose -- POSIX thread cancellation point
  61. feof
  62. ferror
  63. #fflush -- POSIX thread cancellation point
  64. #fgetc -- POSIX thread cancellation point
  65. #fgetpos -- POSIX thread cancellation point
  66. #fgets -- POSIX thread cancellation point
  67. #fgetwc -- POSIX thread cancellation point
  68. #fgetws -- POSIX thread cancellation point
  69. floor
  70. fmod
  71. #fopen -- POSIX thread cancellation point
  72. #fprintf -- POSIX thread cancellation point
  73. #fputc -- POSIX thread cancellation point
  74. #fputs -- POSIX thread cancellation point
  75. #fputwc -- POSIX thread cancellation point
  76. #fputws -- POSIX thread cancellation point
  77. #fread -- POSIX thread cancellation point
  78. free
  79. #freopen -- POSIX thread cancellation point
  80. frexp
  81. #fscanf -- POSIX thread cancellation point
  82. fseek
  83. #fsetpos -- POSIX thread cancellation point
  84. #ftell -- POSIX thread cancellation point
  85. fwide
  86. #fwprintf -- POSIX thread cancellation point
  87. #fwrite -- POSIX thread cancellation point
  88. #fwscanf -- POSIX thread cancellation point
  89. #getc -- POSIX thread cancellation point
  90. #getchar -- POSIX thread cancellation point
  91. getenv
  92. #gets -- POSIX thread cancellation point
  93. #getwc -- POSIX thread cancellation point
  94. #getwchar -- POSIX thread cancellation point
  95. gmtime
  96. isalnum
  97. isalpha
  98. iscntrl
  99. isdigit
  100. isgraph
  101. islower
  102. isprint
  103. ispunct
  104. isspace
  105. isupper
  106. iswalnum
  107. iswalpha
  108. iswcntrl
  109. iswctype
  110. iswdigit
  111. iswgraph
  112. iswlower
  113. iswprint
  114. iswpunct
  115. iswspace
  116. iswupper
  117. iswxdigit
  118. isxdigit
  119. labs
  120. ldexp
  121. ldiv
  122. localeconv
  123. localtime
  124. log
  125. log10
  126. longjmp
  127. malloc
  128. mblen
  129. mbrlen
  130. mbrtowc
  131. mbsinit
  132. mbsrtowcs
  133. mbstowcs
  134. mbtowc
  135. memchr
  136. memcmp
  137. memcpy
  138. memmove
  139. memset
  140. mktime
  141. modf
  142. #perror -- POSIX thread cancellation point
  143. pow
  144. #printf -- POSIX thread cancellation point
  145. #putc -- POSIX thread cancellation point
  146. #putchar -- POSIX thread cancellation point
  147. #puts -- POSIX thread cancellation point
  148. #putwc -- POSIX thread cancellation point
  149. #putwchar -- POSIX thread cancellation point
  150. #qsort -- calls user function which may throw exception
  151. #raise -- synchronous exception from signal handler
  152. rand
  153. realloc
  154. #remove -- POSIX thread cancellation point
  155. #rename -- POSIX thread cancellation point
  156. #rewind -- POSIX thread cancellation point
  157. #scanf -- POSIX thread cancellation point
  158. setbuf
  159. setlocale
  160. setvbuf
  161. signal
  162. sin
  163. sinh
  164. sprintf
  165. sqrt
  166. srand
  167. sscanf
  168. strcat
  169. strchr
  170. strcmp
  171. strcoll
  172. strcpy
  173. strcspn
  174. #strerror -- POSIX thread cancellation point
  175. strftime
  176. strlen
  177. strncat
  178. strncmp
  179. strncpy
  180. strpbrk
  181. strrchr
  182. strspn
  183. strstr
  184. strtod
  185. strtok
  186. strtol
  187. strtoul
  188. strxfrm
  189. swprintf
  190. swscanf
  191. #system -- POSIX thread cancellation point
  192. tan
  193. tanh
  194. time
  195. #tmpfile -- POSIX thread cancellation point
  196. #tmpnam -- POSIX thread cancellation point
  197. tolower
  198. toupper
  199. towctrans
  200. towlower
  201. towupper
  202. #ungetc -- POSIX thread cancellation point
  203. #ungetwc -- POSIX thread cancellation point
  204. #vfprintf -- POSIX thread cancellation point
  205. #vfwprintf -- POSIX thread cancellation point
  206. #vprintf -- POSIX thread cancellation point
  207. vsprintf
  208. vswprintf
  209. #vwprintf -- POSIX thread cancellation point
  210. wcrtomb
  211. wcscat
  212. wcschr
  213. wcscmp
  214. wcscoll
  215. wcscpy
  216. wcscspn
  217. wcsftime
  218. wcslen
  219. wcsncat
  220. wcsncmp
  221. wcsncpy
  222. wcspbrk
  223. wcsrchr
  224. wcsrtombs
  225. wcsspn
  226. wcsstr
  227. wcstod
  228. wcstok
  229. wcstol
  230. wcstombs
  231. wcstoul
  232. wcsxfrm
  233. wctob
  234. wctomb
  235. wctrans
  236. wctype
  237. wmemchr
  238. wmemcmp
  239. wmemcpy
  240. wmemmove
  241. wmemset
  242. #wprintf -- POSIX thread cancellation point
  243. #wscanf -- POSIX thread cancellation point