(fgetwc, getwc, getwchar, fputwc, putwc, putwchar, fgetws, fputws, ungetwc, getwc_unlocked, getwchar_unlocked, fgetwc_unlocked, fputwc_unlocked, putwc_unlocked, putwchar_unlocked, fgetws_unlocked, fputws_unlocked, wcsftime): Add __THROW.

This commit is contained in:
Ulrich Drepper 2001-04-11 16:13:56 +00:00
parent 6f509da60b
commit 21848d0b73
1 changed files with 18 additions and 18 deletions

View File

@ -603,60 +603,60 @@ extern int vswscanf (__const wchar_t *__restrict __s,
/* Read a character from STREAM. */ /* Read a character from STREAM. */
extern wint_t fgetwc (__FILE *__stream); extern wint_t fgetwc (__FILE *__stream) __THROW;
extern wint_t getwc (__FILE *__stream); extern wint_t getwc (__FILE *__stream) __THROW;
/* Read a character from stdin. */ /* Read a character from stdin. */
extern wint_t getwchar (void); extern wint_t getwchar (void) __THROW;
/* Write a character to STREAM. */ /* Write a character to STREAM. */
extern wint_t fputwc (wchar_t __wc, __FILE *__stream); extern wint_t fputwc (wchar_t __wc, __FILE *__stream) __THROW;
extern wint_t putwc (wchar_t __wc, __FILE *__stream); extern wint_t putwc (wchar_t __wc, __FILE *__stream) __THROW;
/* Write a character to stdout. */ /* Write a character to stdout. */
extern wint_t putwchar (wchar_t __wc); extern wint_t putwchar (wchar_t __wc) __THROW;
/* Get a newline-terminated wide character string of finite length /* Get a newline-terminated wide character string of finite length
from STREAM. */ from STREAM. */
extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
__FILE *__restrict __stream); __FILE *__restrict __stream) __THROW;
/* Write a string to STREAM. */ /* Write a string to STREAM. */
extern int fputws (__const wchar_t *__restrict __ws, extern int fputws (__const wchar_t *__restrict __ws,
__FILE *__restrict __stream); __FILE *__restrict __stream) __THROW;
/* Push a character back onto the input buffer of STREAM. */ /* Push a character back onto the input buffer of STREAM. */
extern wint_t ungetwc (wint_t __wc, __FILE *__stream); extern wint_t ungetwc (wint_t __wc, __FILE *__stream) __THROW;
#ifdef __USE_GNU #ifdef __USE_GNU
/* These are defined to be equivalent to the `char' functions defined /* These are defined to be equivalent to the `char' functions defined
in POSIX.1:1996. */ in POSIX.1:1996. */
extern wint_t getwc_unlocked (__FILE *__stream); extern wint_t getwc_unlocked (__FILE *__stream) __THROW;
extern wint_t getwchar_unlocked (void); extern wint_t getwchar_unlocked (void) __THROW;
/* This is the wide character version of a GNU extension. */ /* This is the wide character version of a GNU extension. */
extern wint_t fgetwc_unlocked (__FILE *__stream); extern wint_t fgetwc_unlocked (__FILE *__stream) __THROW;
/* Faster version when locking is not necessary. */ /* Faster version when locking is not necessary. */
extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream) __THROW;
/* These are defined to be equivalent to the `char' functions defined /* These are defined to be equivalent to the `char' functions defined
in POSIX.1:1996. */ in POSIX.1:1996. */
extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream) __THROW;
extern wint_t putwchar_unlocked (wchar_t __wc); extern wint_t putwchar_unlocked (wchar_t __wc) __THROW;
/* This function does the same as `fgetws' but does not lock the stream. */ /* This function does the same as `fgetws' but does not lock the stream. */
extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
__FILE *__restrict __stream); __FILE *__restrict __stream) __THROW;
/* This function does the same as `fputws' but does not lock the stream. */ /* This function does the same as `fputws' but does not lock the stream. */
extern int fputws_unlocked (__const wchar_t *__restrict __ws, extern int fputws_unlocked (__const wchar_t *__restrict __ws,
__FILE *__restrict __stream); __FILE *__restrict __stream) __THROW;
#endif #endif
@ -665,7 +665,7 @@ extern int fputws_unlocked (__const wchar_t *__restrict __ws,
of wide characters written, or 0 if it would exceed MAXSIZE. */ of wide characters written, or 0 if it would exceed MAXSIZE. */
extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
__const wchar_t *__restrict __format, __const wchar_t *__restrict __format,
__const struct tm *__restrict __tp); __const struct tm *__restrict __tp) __THROW;
/* The X/Open standard demands that most of the functions defined in /* The X/Open standard demands that most of the functions defined in
the <wctype.h> header must also appear here. This is probably the <wctype.h> header must also appear here. This is probably