stdio.h (74a4ba21f78e3843e7efa512c4a2e4a002230c1d) | stdio.h (54e4e385de33a961e801ceeea8146437e25edd88) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 196 unchanged lines hidden (view full) --- 205 206#define stdin __stdinp 207#define stdout __stdoutp 208#define stderr __stderrp 209 210__BEGIN_DECLS 211/* 212 * Functions defined in ANSI C standard. | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 196 unchanged lines hidden (view full) --- 205 206#define stdin __stdinp 207#define stdout __stdoutp 208#define stderr __stderrp 209 210__BEGIN_DECLS 211/* 212 * Functions defined in ANSI C standard. |
213 * 214 * XXX fgetpos(), fgets(), fopen(), fputs(), fread(), freopen(), fscanf(), 215 * fwrite(), scanf(), sscanf(), vscanf(), and vsscanf() are missing the 216 * restrict type-qualifier. | |
217 */ 218void clearerr(FILE *); 219int fclose(FILE *); 220int feof(FILE *); 221int ferror(FILE *); 222int fflush(FILE *); 223int fgetc(FILE *); | 213 */ 214void clearerr(FILE *); 215int fclose(FILE *); 216int feof(FILE *); 217int ferror(FILE *); 218int fflush(FILE *); 219int fgetc(FILE *); |
224int fgetpos(FILE *, fpos_t *); 225char *fgets(char *, int, FILE *); 226FILE *fopen(const char *, const char *); | 220int fgetpos(FILE * __restrict, fpos_t * __restrict); 221char *fgets(char * __restrict, int, FILE * __restrict); 222FILE *fopen(const char * __restrict, const char * __restrict); |
227int fprintf(FILE * __restrict, const char * __restrict, ...); 228int fputc(int, FILE *); | 223int fprintf(FILE * __restrict, const char * __restrict, ...); 224int fputc(int, FILE *); |
229int fputs(const char *, FILE *); 230size_t fread(void *, size_t, size_t, FILE *); 231FILE *freopen(const char *, const char *, FILE *); 232int fscanf(FILE *, const char *, ...); | 225int fputs(const char * __restrict, FILE * __restrict); 226size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); 227FILE *freopen(const char * __restrict, const char * __restrict, FILE * __restrict); 228int fscanf(FILE * __restrict, const char * __restrict, ...); |
233int fseek(FILE *, long, int); 234int fsetpos(FILE *, const fpos_t *); 235long ftell(FILE *); | 229int fseek(FILE *, long, int); 230int fsetpos(FILE *, const fpos_t *); 231long ftell(FILE *); |
236size_t fwrite(const void *, size_t, size_t, FILE *); | 232size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict); |
237int getc(FILE *); 238int getchar(void); 239char *gets(char *); 240void perror(const char *); 241int printf(const char * __restrict, ...); 242int putc(int, FILE *); 243int putchar(int); 244int puts(const char *); 245int remove(const char *); 246int rename(const char *, const char *); 247void rewind(FILE *); | 233int getc(FILE *); 234int getchar(void); 235char *gets(char *); 236void perror(const char *); 237int printf(const char * __restrict, ...); 238int putc(int, FILE *); 239int putchar(int); 240int puts(const char *); 241int remove(const char *); 242int rename(const char *, const char *); 243void rewind(FILE *); |
248int scanf(const char *, ...); | 244int scanf(const char * __restrict, ...); |
249void setbuf(FILE * __restrict, char * __restrict); 250int setvbuf(FILE * __restrict, char * __restrict, int, size_t); 251int sprintf(char * __restrict, const char * __restrict, ...); | 245void setbuf(FILE * __restrict, char * __restrict); 246int setvbuf(FILE * __restrict, char * __restrict, int, size_t); 247int sprintf(char * __restrict, const char * __restrict, ...); |
252int sscanf(const char *, const char *, ...); | 248int sscanf(const char * __restrict, const char * __restrict, ...); |
253FILE *tmpfile(void); 254char *tmpnam(char *); 255int ungetc(int, FILE *); 256int vfprintf(FILE * __restrict, const char * __restrict, 257 __va_list); 258int vprintf(const char * __restrict, __va_list); 259int vsprintf(char * __restrict, const char * __restrict, 260 __va_list); 261 262#if __ISO_C_VISIBLE >= 1999 263int snprintf(char * __restrict, size_t, const char * __restrict, 264 ...) __printflike(3, 4); | 249FILE *tmpfile(void); 250char *tmpnam(char *); 251int ungetc(int, FILE *); 252int vfprintf(FILE * __restrict, const char * __restrict, 253 __va_list); 254int vprintf(const char * __restrict, __va_list); 255int vsprintf(char * __restrict, const char * __restrict, 256 __va_list); 257 258#if __ISO_C_VISIBLE >= 1999 259int snprintf(char * __restrict, size_t, const char * __restrict, 260 ...) __printflike(3, 4); |
265int vscanf(const char *, __va_list) __scanflike(1, 0); | 261int vscanf(const char * __restrict, __va_list) __scanflike(1, 0); |
266int vsnprintf(char * __restrict, size_t, const char * __restrict, 267 __va_list) __printflike(3, 0); | 262int vsnprintf(char * __restrict, size_t, const char * __restrict, 263 __va_list) __printflike(3, 0); |
268int vsscanf(const char *, const char *, __va_list) | 264int vsscanf(const char * __restrict, const char * __restrict, __va_list) |
269 __scanflike(2, 0); 270 271/* 272 * This is a #define because the function is used internally and 273 * (unlike vfscanf) the name __vfscanf is guaranteed not to collide 274 * with a user function when _ANSI_SOURCE or _POSIX_SOURCE is defined. 275 * 276 * XXX missing a backing function (weak alias?) for this. --- 172 unchanged lines hidden --- | 265 __scanflike(2, 0); 266 267/* 268 * This is a #define because the function is used internally and 269 * (unlike vfscanf) the name __vfscanf is guaranteed not to collide 270 * with a user function when _ANSI_SOURCE or _POSIX_SOURCE is defined. 271 * 272 * XXX missing a backing function (weak alias?) for this. --- 172 unchanged lines hidden --- |