2 %define class-name libc_name
4 /* Copyright (C) 2000-2016 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
23 # The standard C library functions, for feeding to gperf; the result is used
26 # [lib.res.on.exception.handling]: None of the functions from the
27 # Standard C library shall report an error by throwing an
28 # exception, unless it calls a program-supplied function that
29 # throws an exception.
31 # Specific functions are commented out for the reason noted in each case.
33 # abort -- synchronous exception from SIGABRT handler
44 #bsearch -- calls user function which may throw exception
58 #fclose -- POSIX thread cancellation point
61 #fflush -- POSIX thread cancellation point
62 #fgetc -- POSIX thread cancellation point
63 #fgetpos -- POSIX thread cancellation point
64 #fgets -- POSIX thread cancellation point
65 #fgetwc -- POSIX thread cancellation point
66 #fgetws -- POSIX thread cancellation point
69 #fopen -- POSIX thread cancellation point
70 #fprintf -- POSIX thread cancellation point
71 #fputc -- POSIX thread cancellation point
72 #fputs -- POSIX thread cancellation point
73 #fputwc -- POSIX thread cancellation point
74 #fputws -- POSIX thread cancellation point
75 #fread -- POSIX thread cancellation point
77 #freopen -- POSIX thread cancellation point
79 #fscanf -- POSIX thread cancellation point
81 #fsetpos -- POSIX thread cancellation point
82 #ftell -- POSIX thread cancellation point
84 #fwprintf -- POSIX thread cancellation point
85 #fwrite -- POSIX thread cancellation point
86 #fwscanf -- POSIX thread cancellation point
87 #getc -- POSIX thread cancellation point
88 #getchar -- POSIX thread cancellation point
90 #gets -- POSIX thread cancellation point
91 #getwc -- POSIX thread cancellation point
92 #getwchar -- POSIX thread cancellation point
140 #perror -- POSIX thread cancellation point
142 #printf -- POSIX thread cancellation point
143 #putc -- POSIX thread cancellation point
144 #putchar -- POSIX thread cancellation point
145 #puts -- POSIX thread cancellation point
146 #putwc -- POSIX thread cancellation point
147 #putwchar -- POSIX thread cancellation point
148 #qsort -- calls user function which may throw exception
149 #raise -- synchronous exception from signal handler
152 #remove -- POSIX thread cancellation point
153 #rename -- POSIX thread cancellation point
154 #rewind -- POSIX thread cancellation point
155 #scanf -- POSIX thread cancellation point
172 #strerror -- POSIX thread cancellation point
189 #system -- POSIX thread cancellation point
193 #tmpfile -- POSIX thread cancellation point
194 #tmpnam -- POSIX thread cancellation point
200 #ungetc -- POSIX thread cancellation point
201 #ungetwc -- POSIX thread cancellation point
202 #vfprintf -- POSIX thread cancellation point
203 #vfwprintf -- POSIX thread cancellation point
204 #vprintf -- POSIX thread cancellation point
207 #vwprintf -- POSIX thread cancellation point
240 #wprintf -- POSIX thread cancellation point
241 #wscanf -- POSIX thread cancellation point