summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-20 22:11:44 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-20 22:11:44 +0000
commitcb97aadebfeba7f5e8f1b85beee5ab10e88c2990 (patch)
treef5f56f2ef0f3048325419857d0b538135524ff8c /include/stdio.h
parentb133fe1cac9f99b63ea56daf92caa1423b1289d0 (diff)
Last portion of libc_hidden_proto removal.
Appears to build fine (several .configs tried)
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 246a5bcb2..dea839c5a 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -143,6 +143,7 @@ extern FILE *stderr; /* Standard error output stream. */
__BEGIN_NAMESPACE_STD
/* Remove file FILENAME. */
extern int remove (__const char *__filename) __THROW;
+libc_hidden_proto(remove)
/* Rename file OLD to NEW. */
extern int rename (__const char *__old, __const char *__new) __THROW;
__END_NAMESPACE_STD
@@ -203,6 +204,7 @@ libc_hidden_proto(fclose)
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern int fflush (FILE *__stream);
+libc_hidden_proto(fflush)
__END_NAMESPACE_STD
#ifdef __USE_MISC
@@ -213,6 +215,7 @@ __END_NAMESPACE_STD
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
extern int fflush_unlocked (FILE *__stream);
+libc_hidden_proto(fflush_unlocked)
#endif
#ifdef __USE_GNU
@@ -269,6 +272,7 @@ extern FILE *freopen64 (__const char *__restrict __filename,
#ifdef __USE_POSIX
/* Create a new stream that refers to an existing system file descriptor. */
extern FILE *fdopen (int __fd, __const char *__modes) __THROW __wur;
+libc_hidden_proto(fdopen)
#endif
#ifdef __USE_GNU
@@ -278,6 +282,7 @@ extern FILE *fdopen (int __fd, __const char *__modes) __THROW __wur;
extern FILE *fopencookie (void *__restrict __magic_cookie,
__const char *__restrict __modes,
_IO_cookie_io_functions_t __io_funcs) __THROW __wur;
+libc_hidden_proto(fopencookie)
/* Create a new stream that refers to a memory buffer. */
extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
@@ -288,6 +293,7 @@ extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
and the number of characters written on fflush or fclose. */
extern FILE *open_memstream (char **__restrict __bufloc,
size_t *__restrict __sizeloc) __THROW __wur;
+libc_hidden_proto(open_memstream)
#endif
#endif
@@ -301,6 +307,7 @@ extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW;
else allocate an internal buffer N bytes long. */
extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
int __modes, size_t __n) __THROW;
+libc_hidden_proto(setvbuf)
__END_NAMESPACE_STD
#ifdef __USE_BSD
@@ -356,10 +363,12 @@ __BEGIN_NAMESPACE_C99
extern int snprintf (char *__restrict __s, size_t __maxlen,
__const char *__restrict __format, ...)
__THROW __attribute__ ((__format__ (__printf__, 3, 4)));
+libc_hidden_proto(snprintf)
extern int vsnprintf (char *__restrict __s, size_t __maxlen,
__const char *__restrict __format, __gnuc_va_list __arg)
__THROW __attribute__ ((__format__ (__printf__, 3, 0)));
+libc_hidden_proto(vsnprintf)
__END_NAMESPACE_C99
#endif
@@ -369,6 +378,7 @@ __END_NAMESPACE_C99
extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
__gnuc_va_list __arg)
__THROW __attribute__ ((__format__ (__printf__, 2, 0))) __wur;
+libc_hidden_proto(vasprintf)
#if 0 /* uClibc: disabled */
extern int __asprintf (char **__restrict __ptr,
__const char *__restrict __fmt, ...)
@@ -377,6 +387,7 @@ extern int __asprintf (char **__restrict __ptr,
extern int asprintf (char **__restrict __ptr,
__const char *__restrict __fmt, ...)
__THROW __attribute__ ((__format__ (__printf__, 2, 3))) __wur;
+libc_hidden_proto(asprintf)
/* Write formatted output to a file descriptor.
@@ -387,6 +398,7 @@ extern int asprintf (char **__restrict __ptr,
extern int vdprintf (int __fd, __const char *__restrict __fmt,
__gnuc_va_list __arg)
__attribute__ ((__format__ (__printf__, 2, 0)));
+libc_hidden_proto(vdprintf)
extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
#endif
@@ -399,6 +411,7 @@ __BEGIN_NAMESPACE_STD
marked with __THROW. */
extern int fscanf (FILE *__restrict __stream,
__const char *__restrict __format, ...) __wur;
+libc_hidden_proto(fscanf)
/* Read formatted input from stdin.
This function is a possible cancellation point and therefore not
@@ -407,6 +420,7 @@ extern int scanf (__const char *__restrict __format, ...) __wur;
/* Read formatted input from S. */
extern int sscanf (__const char *__restrict __s,
__const char *__restrict __format, ...) __THROW;
+libc_hidden_proto(sscanf)
__END_NAMESPACE_STD
#ifdef __USE_ISOC99
@@ -418,6 +432,7 @@ __BEGIN_NAMESPACE_C99
extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
__gnuc_va_list __arg)
__attribute__ ((__format__ (__scanf__, 2, 0))) __wur;
+libc_hidden_proto(vfscanf)
/* Read formatted input from stdin into argument list ARG.
@@ -425,11 +440,13 @@ extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
marked with __THROW. */
extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
__attribute__ ((__format__ (__scanf__, 1, 0))) __wur;
+libc_hidden_proto(vscanf)
/* Read formatted input from S into argument list ARG. */
extern int vsscanf (__const char *__restrict __s,
__const char *__restrict __format, __gnuc_va_list __arg)
__THROW __attribute__ ((__format__ (__scanf__, 2, 0)));
+libc_hidden_proto(vsscanf)
__END_NAMESPACE_C99
#endif /* Use ISO C9x. */
@@ -440,6 +457,7 @@ __BEGIN_NAMESPACE_STD
These functions are possible cancellation points and therefore not
marked with __THROW. */
extern int fgetc (FILE *__stream);
+libc_hidden_proto(fgetc)
extern int getc (FILE *__stream);
/* Read a character from stdin.
@@ -459,7 +477,9 @@ __END_NAMESPACE_STD
These functions are possible cancellation points and therefore not
marked with __THROW. */
extern int getc_unlocked (FILE *__stream);
+libc_hidden_proto(getc_unlocked)
extern int getchar_unlocked (void);
+libc_hidden_proto(getchar_unlocked)
/* SUSv3 allows getc_unlocked to be a macro */
#define getc_unlocked(_fp) __GETC_UNLOCKED(_fp)
@@ -473,6 +493,7 @@ extern int getchar_unlocked (void);
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
extern int fgetc_unlocked (FILE *__stream);
+libc_hidden_proto(fgetc_unlocked)
#endif /* Use MISC. */
@@ -485,7 +506,9 @@ __BEGIN_NAMESPACE_STD
These functions is a possible cancellation point and therefore not
marked with __THROW. */
extern int fputc (int __c, FILE *__stream);
+libc_hidden_proto(fputc)
extern int putc (int __c, FILE *__stream);
+libc_hidden_proto(putc)
/* Write a character to stdout.
@@ -506,6 +529,7 @@ __END_NAMESPACE_STD
or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */
extern int fputc_unlocked (int __c, FILE *__stream);
+libc_hidden_proto(fputc_unlocked)
#endif /* Use MISC. */
#if defined __USE_POSIX || defined __USE_MISC
@@ -514,6 +538,7 @@ extern int fputc_unlocked (int __c, FILE *__stream);
These functions are possible cancellation points and therefore not
marked with __THROW. */
extern int putc_unlocked (int __c, FILE *__stream);
+libc_hidden_proto(putc_unlocked)
extern int putchar_unlocked (int __c);
/* SUSv3 allows putc_unlocked to be a macro */
@@ -557,6 +582,7 @@ __END_NAMESPACE_STD
therefore not marked with __THROW. */
extern char *fgets_unlocked (char *__restrict __s, int __n,
FILE *__restrict __stream) __wur;
+libc_hidden_proto(fgets_unlocked)
#endif
@@ -579,6 +605,7 @@ extern __ssize_t __getdelim (char **__restrict __lineptr,
extern __ssize_t getdelim (char **__restrict __lineptr,
size_t *__restrict __n, int __delimiter,
FILE *__restrict __stream) __wur;
+libc_hidden_proto(getdelim)
/* Like `getdelim', but reads up to a newline.
@@ -589,6 +616,7 @@ extern __ssize_t getdelim (char **__restrict __lineptr,
extern __ssize_t getline (char **__restrict __lineptr,
size_t *__restrict __n,
FILE *__restrict __stream) __wur;
+libc_hidden_proto(getline)
#endif
@@ -612,6 +640,7 @@ extern int puts (__const char *__s);
This function is a possible cancellation points and therefore not
marked with __THROW. */
extern int ungetc (int __c, FILE *__stream);
+libc_hidden_proto(ungetc)
/* Read chunks of generic data from STREAM.
@@ -620,12 +649,14 @@ extern int ungetc (int __c, FILE *__stream);
marked with __THROW. */
extern size_t fread (void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __stream) __wur;
+libc_hidden_proto(fread)
/* Write chunks of generic data to STREAM.
This function is a possible cancellation points and therefore not
marked with __THROW. */
extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __s) __wur;
+libc_hidden_proto(fwrite)
__END_NAMESPACE_STD
#ifdef __USE_GNU
@@ -637,6 +668,7 @@ __END_NAMESPACE_STD
therefore not marked with __THROW. */
extern int fputs_unlocked (__const char *__restrict __s,
FILE *__restrict __stream);
+libc_hidden_proto(fputs_unlocked)
#endif
#ifdef __USE_MISC
@@ -648,8 +680,10 @@ extern int fputs_unlocked (__const char *__restrict __s,
therefore not marked with __THROW. */
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __stream) __wur;
+libc_hidden_proto(fread_unlocked)
extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
size_t __n, FILE *__restrict __stream) __wur;
+libc_hidden_proto(fwrite_unlocked)
#endif
@@ -659,16 +693,19 @@ __BEGIN_NAMESPACE_STD
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern int fseek (FILE *__stream, long int __off, int __whence);
+libc_hidden_proto(fseek)
/* Return the current position of STREAM.
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern long int ftell (FILE *__stream) __wur;
+libc_hidden_proto(ftell)
/* Rewind to the beginning of STREAM.
This function is a possible cancellation point and therefore not
marked with __THROW. */
extern void rewind (FILE *__stream);
+libc_hidden_proto(rewind)
__END_NAMESPACE_STD
/* The Single Unix Specification, Version 2, specifies an alternative,
@@ -728,7 +765,9 @@ __END_NAMESPACE_STD
#ifdef __USE_LARGEFILE64
extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
+libc_hidden_proto(fseeko64)
extern __off64_t ftello64 (FILE *__stream) __wur;
+libc_hidden_proto(ftello64)
extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
#endif
@@ -772,11 +811,13 @@ extern __const char *__const sys_errlist[];
#ifdef __USE_POSIX
/* Return the system file descriptor for STREAM. */
extern int fileno (FILE *__stream) __THROW __wur;
+libc_hidden_proto(fileno)
#endif /* Use POSIX. */
#ifdef __USE_MISC
/* Faster version when locking is not required. */
extern int fileno_unlocked (FILE *__stream) __THROW __wur;
+libc_hidden_proto(fileno_unlocked)
#endif