stdio.h-data 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. macro-int-constant BUFSIZ >= 256
  2. macro-int-constant FILENAME_MAX
  3. macro-int-constant FOPEN_MAX >= 8
  4. macro-int-constant _IOFBF
  5. macro-int-constant _IOLBF
  6. macro-int-constant _IONBF
  7. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
  8. constant L_ctermid
  9. # if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
  10. # ifdef POSIX
  11. optional-constant L_cuserid
  12. # else
  13. constant L_cuserid
  14. # endif
  15. # endif
  16. #endif
  17. macro-int-constant L_tmpnam
  18. macro-int-constant SEEK_CUR
  19. macro-int-constant SEEK_END
  20. macro-int-constant SEEK_SET
  21. macro-int-constant TMP_MAX >= 10000
  22. macro-int-constant EOF < 0
  23. macro-constant NULL == 0
  24. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
  25. constant P_tmpdir
  26. #endif
  27. macro stdin {FILE *}
  28. macro stdout {FILE *}
  29. macro stderr {FILE *}
  30. type FILE
  31. type fpos_t
  32. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX
  33. type va_list
  34. #else
  35. #define va_list __gnuc_va_list
  36. #endif
  37. type size_t
  38. #if defined XOPEN2K8 || defined POSIX2008
  39. type off_t
  40. type ssize_t
  41. #endif
  42. function void clearerr (FILE*)
  43. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
  44. function {char*} ctermid (char*)
  45. # if defined XPG4 || defined XPG42 || defined UNIX98
  46. function {char*} cuserid (char*)
  47. # endif
  48. #endif
  49. #if defined XOPEN2K8 || defined POSIX2008
  50. function int dprintf (int, const char*, ...)
  51. #endif
  52. function int fclose (FILE*)
  53. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
  54. function {FILE*} fdopen (int, const char*)
  55. #endif
  56. function int feof (FILE*)
  57. function int ferror (FILE*)
  58. function int fflush (FILE*)
  59. function int fgetc (FILE*)
  60. function int fgetpos (FILE*, fpos_t*)
  61. function {char*} fgets (char*, int, FILE*)
  62. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
  63. function int fileno (FILE*)
  64. #endif
  65. #if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  66. function void flockfile (FILE*)
  67. #endif
  68. #if defined XOPEN2K8 || defined POSIX2008
  69. function {FILE*} fmemopen (void*, size_t, const char*)
  70. #endif
  71. function {FILE*} fopen (const char*, const char*)
  72. function int fprintf (FILE*, const char*, ...)
  73. function int fputc (int, FILE*)
  74. function int fputs (const char*, FILE*)
  75. function size_t fread (void*, size_t, size_t, FILE*)
  76. function {FILE*} freopen (const char*, const char*, FILE*)
  77. function int fscanf (FILE*, const char*, ...)
  78. function int fseek (FILE*, long int, int)
  79. #if defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  80. function int fseeko (FILE*, off_t, int)
  81. #endif
  82. function int fsetpos (FILE*, const fpos_t*)
  83. function {long int} ftell (FILE*)
  84. #if defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  85. function off_t ftello (FILE*)
  86. #endif
  87. #if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  88. function int ftrylockfile (FILE*)
  89. function void funlockfile (FILE*)
  90. #endif
  91. function size_t fwrite (const void*, size_t, size_t, FILE*)
  92. function int getc (FILE*)
  93. function int getchar (void)
  94. #if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  95. function int getc_unlocked (FILE*)
  96. function int getchar_unlocked (void)
  97. #endif
  98. #if defined XOPEN2K8 || defined POSIX2008
  99. function ssize_t getdelim (char**, size_t*, int, FILE*)
  100. function ssize_t getline (char**, size_t*, FILE*)
  101. #endif
  102. #if defined XPG4 || defined XPG42 || defined UNIX98
  103. function int getopt (int, char *const[], const char *)
  104. #endif
  105. #if !defined ISO11 && !defined ISO23
  106. function {char*} gets (char*)
  107. #endif
  108. #if defined XPG4 || defined XPG42 || defined UNIX98
  109. function int getw (FILE*)
  110. #endif
  111. #if defined XOPEN2K8 || defined POSIX2008
  112. function {FILE*} open_memstream (char**, size_t*)
  113. #endif
  114. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
  115. function int pclose (FILE*)
  116. #endif
  117. function void perror (const char*)
  118. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
  119. function {FILE*} popen (const char*, const char*)
  120. #endif
  121. function int printf (const char*, ...)
  122. function int putc (int, FILE*)
  123. function int putchar (int)
  124. #if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
  125. function int putc_unlocked (int, FILE*)
  126. function int putchar_unlocked (int)
  127. #endif
  128. function int puts (const char*)
  129. #if defined XPG4 || defined XPG42 || defined UNIX98
  130. function int putw (int, FILE*)
  131. #endif
  132. function int remove (const char*)
  133. function int rename (const char*, const char*)
  134. #if defined XOPEN2K8 || defined POSIX2008
  135. function int renameat (int, const char*, int, const char*)
  136. #endif
  137. function void rewind (FILE*)
  138. function int scanf (const char*, ...)
  139. function void setbuf (FILE*, char*)
  140. function int setvbuf (FILE*, char*, int, size_t)
  141. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42
  142. function int snprintf (char*, size_t, const char*, ...)
  143. #endif
  144. function int sprintf (char *, const char *, ...)
  145. function int sscanf (const char*, const char*, ...)
  146. #if defined XPG4 || defined XPG42 || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8
  147. function {char*} tempnam (const char*, const char*)
  148. #endif
  149. function {FILE*} tmpfile (void)
  150. function {char*} tmpnam (char*)
  151. function int ungetc (int, FILE*)
  152. #if defined XOPEN2K8 || defined POSIX2008
  153. function int vdprintf (int, const char*, va_list)
  154. #endif
  155. function int vfprintf (FILE*, const char*, va_list)
  156. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  157. function int vfscanf (FILE*, const char*, va_list)
  158. #endif
  159. function int vprintf (const char*, va_list)
  160. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  161. function int vscanf (const char*, va_list)
  162. #endif
  163. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42
  164. function int vsnprintf (char*, size_t, const char*, va_list)
  165. #endif
  166. function int vsprintf (char*, const char*, va_list)
  167. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  168. function int vsscanf (const char*, const char*, va_list)
  169. #endif
  170. #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
  171. #if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
  172. variable {char*} optarg
  173. variable int opterr
  174. variable int optind
  175. variable int optopt
  176. #endif
  177. #if !defined POSIX
  178. allow-header stddef.h
  179. #endif
  180. allow *_t
  181. #endif