X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fapi%2Fstdio.c;h=03bd98b77dfa6ed4d1da0e39f8e08e32bf7f7e12;hp=7c2a7e1c870d3effa1e90e60db412541b91e8aae;hb=HEAD;hpb=0ef2646848cbc2e6c59f8757165b5790b0132281 diff --git a/src/api/stdio.c b/src/api/stdio.c index 7c2a7e1..03bd98b 100644 --- a/src/api/stdio.c +++ b/src/api/stdio.c @@ -14,6 +14,9 @@ T(ssize_t) T(va_list) C(L_ctermid) #endif +#ifdef OBSOLETE +C(L_tmpnam) +#endif C(_IOFBF) C(_IOLBF) C(_IONBF) @@ -31,7 +34,7 @@ C(EOF) {char*(*p)(char*) = ctermid;} {int(*p)(int,const char*restrict,...) = dprintf;} {int(*p)(FILE*) = fclose;} -FILE*(*p)(int,const char*) = fdopen; +{FILE*(*p)(int,const char*) = fdopen;} {int(*p)(FILE*) = feof;} {int(*p)(FILE*) = ferror;} {int(*p)(FILE*) = fflush;} @@ -40,13 +43,13 @@ FILE*(*p)(int,const char*) = fdopen; {char*(*p)(char*restrict,int,FILE*restrict) = fgets;} {int(*p)(FILE*) = fileno;} {void(*p)(FILE*) = flockfile;} -FILE*(*p)(void*restrict,size_t,const char*restrict) = fmemopen; -FILE*(*p)(const char*restrict,const char*restrict) = fopen; +{FILE*(*p)(void*restrict,size_t,const char*restrict) = fmemopen;} +{FILE*(*p)(const char*restrict,const char*restrict) = fopen;} {int(*p)(FILE*restrict,const char*restrict,...) = fprintf;} {int(*p)(int,FILE*) = fputc;} {int(*p)(const char*restrict,FILE*restrict) = fputs;} {size_t(*p)(void*restrict,size_t,size_t,FILE*restrict) = fread;} -FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen; +{FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen;} {int(*p)(FILE*restrict,const char*restrict,...) = fscanf;} {int(*p)(FILE*,long,int) = fseek;} {int(*p)(FILE*,off_t,int) = fseeko;} @@ -63,10 +66,10 @@ FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen; {ssize_t(*p)(char**restrict,size_t*restrict,int,FILE*restrict) = getdelim;} {ssize_t(*p)(char**restrict,size_t*restrict,FILE*restrict) = getline;} {char*(*p)(char*) = gets;} -FILE*(*p)(char**,size_t*) = open_memstream; +{FILE*(*p)(char**,size_t*) = open_memstream;} {int(*p)(FILE*) = pclose;} {void(*p)(const char*) = perror;} -FILE*(*p)(const char*,const char*) = popen; +{FILE*(*p)(const char*,const char*) = popen;} {int(*p)(const char*restrict,...) = printf;} {int(*p)(int,FILE*) = putc;} {int(*p)(int,FILE*) = putc_unlocked;} @@ -84,7 +87,7 @@ FILE*(*p)(const char*,const char*) = popen; {int(*p)(char*restrict,const char*restrict,...) = sprintf;} {int(*p)(const char*restrict,const char*restrict,...) = sscanf;} {char*(*p)(const char*,const char*) = tempnam;} -FILE*(*p)(void) = tmpfile; +{FILE*(*p)(void) = tmpfile;} {char*(*p)(char*) = tmpnam;} {int(*p)(int,FILE*) = ungetc;} }