From edfe725171b053c01218336eb30e3e3dcc997916 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 19 Apr 2001 14:42:48 +0000 Subject: Remove all the __THROW macros --- libc/sysdeps/linux/arm/bits/errno.h | 2 +- libc/sysdeps/linux/arm/bits/socket.h | 2 +- libc/sysdeps/linux/i386/bits/socket.h | 2 +- libc/sysdeps/linux/i386/bits/stdio.h | 22 +++++++++++----------- libc/sysdeps/linux/m68k/bits/socket.h | 2 +- libc/sysdeps/linux/m68k/bits/stdio.h | 22 +++++++++++----------- libc/sysdeps/linux/powerpc/bits/socket.h | 2 +- libc/sysdeps/linux/sh/bits/socket.h | 2 +- libc/sysdeps/linux/sh/bits/stdio.h | 22 +++++++++++----------- libc/sysdeps/linux/sparc/bits/socket.h | 2 +- libc/sysdeps/linux/sparc/bits/stdio.h | 22 +++++++++++----------- 11 files changed, 51 insertions(+), 51 deletions(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/arm/bits/errno.h b/libc/sysdeps/linux/arm/bits/errno.h index 6bfd44e0c..0c33c9c0a 100644 --- a/libc/sysdeps/linux/arm/bits/errno.h +++ b/libc/sysdeps/linux/arm/bits/errno.h @@ -36,7 +36,7 @@ extern int errno; /* Function to get address of global `errno' variable. */ -extern int *__errno_location (void) __THROW __attribute__ ((__const__)); +extern int *__errno_location (void) __attribute__ ((__const__)); # if defined _LIBC /* We wouldn't need a special macro anymore but it is history. */ diff --git a/libc/sysdeps/linux/arm/bits/socket.h b/libc/sysdeps/linux/arm/bits/socket.h index 491b133b7..dc2d58cfc 100644 --- a/libc/sysdeps/linux/arm/bits/socket.h +++ b/libc/sysdeps/linux/arm/bits/socket.h @@ -251,7 +251,7 @@ extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr, # define _EXTERN_INLINE extern __inline # endif _EXTERN_INLINE struct cmsghdr * -__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __THROW +__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) /* The kernel header does this so there may be a reason. */ diff --git a/libc/sysdeps/linux/i386/bits/socket.h b/libc/sysdeps/linux/i386/bits/socket.h index 491b133b7..dc2d58cfc 100644 --- a/libc/sysdeps/linux/i386/bits/socket.h +++ b/libc/sysdeps/linux/i386/bits/socket.h @@ -251,7 +251,7 @@ extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr, # define _EXTERN_INLINE extern __inline # endif _EXTERN_INLINE struct cmsghdr * -__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __THROW +__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) /* The kernel header does this so there may be a reason. */ diff --git a/libc/sysdeps/linux/i386/bits/stdio.h b/libc/sysdeps/linux/i386/bits/stdio.h index d69813255..c58643461 100644 --- a/libc/sysdeps/linux/i386/bits/stdio.h +++ b/libc/sysdeps/linux/i386/bits/stdio.h @@ -30,14 +30,14 @@ #ifdef __USE_EXTERN_INLINES /* Write formatted output to stdout from argument list ARG. */ __STDIO_INLINE int -vprintf (__const char *__restrict __fmt, _G_va_list __arg) __THROW +vprintf (__const char *__restrict __fmt, _G_va_list __arg) { return vfprintf (stdout, __fmt, __arg); } /* Read a character from stdin. */ __STDIO_INLINE int -getchar (void) __THROW +getchar (void) { return _IO_getc (stdin); } @@ -46,14 +46,14 @@ getchar (void) __THROW # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -getc_unlocked (FILE *__fp) __THROW +getc_unlocked (FILE *__fp) { return _IO_getc_unlocked (__fp); } /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -getchar_unlocked (void) __THROW +getchar_unlocked (void) { return _IO_getc_unlocked (stdin); } @@ -62,7 +62,7 @@ getchar_unlocked (void) __THROW /* Write a character to stdout. */ __STDIO_INLINE int -putchar (int __c) __THROW +putchar (int __c) { return _IO_putc (__c, stdout); } @@ -71,7 +71,7 @@ putchar (int __c) __THROW # ifdef __USE_MISC /* Faster version when locking is not necessary. */ __STDIO_INLINE int -fputc_unlocked (int __c, FILE *__stream) __THROW +fputc_unlocked (int __c, FILE *__stream) { return _IO_putc_unlocked (__c, __stream); } @@ -81,14 +81,14 @@ fputc_unlocked (int __c, FILE *__stream) __THROW # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -putc_unlocked (int __c, FILE *__stream) __THROW +putc_unlocked (int __c, FILE *__stream) { return _IO_putc_unlocked (__c, __stream); } /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -putchar_unlocked (int __c) __THROW +putchar_unlocked (int __c) { return _IO_putc_unlocked (__c, stdout); } @@ -98,7 +98,7 @@ putchar_unlocked (int __c) __THROW # ifdef __USE_GNU /* Like `getdelim', but reads up to a newline. */ __STDIO_INLINE _IO_ssize_t -getline (char **__lineptr, size_t *__n, FILE *__stream) __THROW +getline (char **__lineptr, size_t *__n, FILE *__stream) { return __getdelim (__lineptr, __n, '\n', __stream); } @@ -108,14 +108,14 @@ getline (char **__lineptr, size_t *__n, FILE *__stream) __THROW # ifdef __USE_MISC /* Faster versions when locking is not required. */ __STDIO_INLINE int -feof_unlocked (FILE *__stream) __THROW +feof_unlocked (FILE *__stream) { return _IO_feof_unlocked (__stream); } /* Faster versions when locking is not required. */ __STDIO_INLINE int -ferror_unlocked (FILE *__stream) __THROW +ferror_unlocked (FILE *__stream) { return _IO_ferror_unlocked (__stream); } diff --git a/libc/sysdeps/linux/m68k/bits/socket.h b/libc/sysdeps/linux/m68k/bits/socket.h index 491b133b7..dc2d58cfc 100644 --- a/libc/sysdeps/linux/m68k/bits/socket.h +++ b/libc/sysdeps/linux/m68k/bits/socket.h @@ -251,7 +251,7 @@ extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr, # define _EXTERN_INLINE extern __inline # endif _EXTERN_INLINE struct cmsghdr * -__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __THROW +__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) /* The kernel header does this so there may be a reason. */ diff --git a/libc/sysdeps/linux/m68k/bits/stdio.h b/libc/sysdeps/linux/m68k/bits/stdio.h index d69813255..c58643461 100644 --- a/libc/sysdeps/linux/m68k/bits/stdio.h +++ b/libc/sysdeps/linux/m68k/bits/stdio.h @@ -30,14 +30,14 @@ #ifdef __USE_EXTERN_INLINES /* Write formatted output to stdout from argument list ARG. */ __STDIO_INLINE int -vprintf (__const char *__restrict __fmt, _G_va_list __arg) __THROW +vprintf (__const char *__restrict __fmt, _G_va_list __arg) { return vfprintf (stdout, __fmt, __arg); } /* Read a character from stdin. */ __STDIO_INLINE int -getchar (void) __THROW +getchar (void) { return _IO_getc (stdin); } @@ -46,14 +46,14 @@ getchar (void) __THROW # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -getc_unlocked (FILE *__fp) __THROW +getc_unlocked (FILE *__fp) { return _IO_getc_unlocked (__fp); } /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -getchar_unlocked (void) __THROW +getchar_unlocked (void) { return _IO_getc_unlocked (stdin); } @@ -62,7 +62,7 @@ getchar_unlocked (void) __THROW /* Write a character to stdout. */ __STDIO_INLINE int -putchar (int __c) __THROW +putchar (int __c) { return _IO_putc (__c, stdout); } @@ -71,7 +71,7 @@ putchar (int __c) __THROW # ifdef __USE_MISC /* Faster version when locking is not necessary. */ __STDIO_INLINE int -fputc_unlocked (int __c, FILE *__stream) __THROW +fputc_unlocked (int __c, FILE *__stream) { return _IO_putc_unlocked (__c, __stream); } @@ -81,14 +81,14 @@ fputc_unlocked (int __c, FILE *__stream) __THROW # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -putc_unlocked (int __c, FILE *__stream) __THROW +putc_unlocked (int __c, FILE *__stream) { return _IO_putc_unlocked (__c, __stream); } /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -putchar_unlocked (int __c) __THROW +putchar_unlocked (int __c) { return _IO_putc_unlocked (__c, stdout); } @@ -98,7 +98,7 @@ putchar_unlocked (int __c) __THROW # ifdef __USE_GNU /* Like `getdelim', but reads up to a newline. */ __STDIO_INLINE _IO_ssize_t -getline (char **__lineptr, size_t *__n, FILE *__stream) __THROW +getline (char **__lineptr, size_t *__n, FILE *__stream) { return __getdelim (__lineptr, __n, '\n', __stream); } @@ -108,14 +108,14 @@ getline (char **__lineptr, size_t *__n, FILE *__stream) __THROW # ifdef __USE_MISC /* Faster versions when locking is not required. */ __STDIO_INLINE int -feof_unlocked (FILE *__stream) __THROW +feof_unlocked (FILE *__stream) { return _IO_feof_unlocked (__stream); } /* Faster versions when locking is not required. */ __STDIO_INLINE int -ferror_unlocked (FILE *__stream) __THROW +ferror_unlocked (FILE *__stream) { return _IO_ferror_unlocked (__stream); } diff --git a/libc/sysdeps/linux/powerpc/bits/socket.h b/libc/sysdeps/linux/powerpc/bits/socket.h index 491b133b7..dc2d58cfc 100644 --- a/libc/sysdeps/linux/powerpc/bits/socket.h +++ b/libc/sysdeps/linux/powerpc/bits/socket.h @@ -251,7 +251,7 @@ extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr, # define _EXTERN_INLINE extern __inline # endif _EXTERN_INLINE struct cmsghdr * -__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __THROW +__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) /* The kernel header does this so there may be a reason. */ diff --git a/libc/sysdeps/linux/sh/bits/socket.h b/libc/sysdeps/linux/sh/bits/socket.h index 491b133b7..dc2d58cfc 100644 --- a/libc/sysdeps/linux/sh/bits/socket.h +++ b/libc/sysdeps/linux/sh/bits/socket.h @@ -251,7 +251,7 @@ extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr, # define _EXTERN_INLINE extern __inline # endif _EXTERN_INLINE struct cmsghdr * -__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __THROW +__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) /* The kernel header does this so there may be a reason. */ diff --git a/libc/sysdeps/linux/sh/bits/stdio.h b/libc/sysdeps/linux/sh/bits/stdio.h index d69813255..c58643461 100644 --- a/libc/sysdeps/linux/sh/bits/stdio.h +++ b/libc/sysdeps/linux/sh/bits/stdio.h @@ -30,14 +30,14 @@ #ifdef __USE_EXTERN_INLINES /* Write formatted output to stdout from argument list ARG. */ __STDIO_INLINE int -vprintf (__const char *__restrict __fmt, _G_va_list __arg) __THROW +vprintf (__const char *__restrict __fmt, _G_va_list __arg) { return vfprintf (stdout, __fmt, __arg); } /* Read a character from stdin. */ __STDIO_INLINE int -getchar (void) __THROW +getchar (void) { return _IO_getc (stdin); } @@ -46,14 +46,14 @@ getchar (void) __THROW # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -getc_unlocked (FILE *__fp) __THROW +getc_unlocked (FILE *__fp) { return _IO_getc_unlocked (__fp); } /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -getchar_unlocked (void) __THROW +getchar_unlocked (void) { return _IO_getc_unlocked (stdin); } @@ -62,7 +62,7 @@ getchar_unlocked (void) __THROW /* Write a character to stdout. */ __STDIO_INLINE int -putchar (int __c) __THROW +putchar (int __c) { return _IO_putc (__c, stdout); } @@ -71,7 +71,7 @@ putchar (int __c) __THROW # ifdef __USE_MISC /* Faster version when locking is not necessary. */ __STDIO_INLINE int -fputc_unlocked (int __c, FILE *__stream) __THROW +fputc_unlocked (int __c, FILE *__stream) { return _IO_putc_unlocked (__c, __stream); } @@ -81,14 +81,14 @@ fputc_unlocked (int __c, FILE *__stream) __THROW # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -putc_unlocked (int __c, FILE *__stream) __THROW +putc_unlocked (int __c, FILE *__stream) { return _IO_putc_unlocked (__c, __stream); } /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -putchar_unlocked (int __c) __THROW +putchar_unlocked (int __c) { return _IO_putc_unlocked (__c, stdout); } @@ -98,7 +98,7 @@ putchar_unlocked (int __c) __THROW # ifdef __USE_GNU /* Like `getdelim', but reads up to a newline. */ __STDIO_INLINE _IO_ssize_t -getline (char **__lineptr, size_t *__n, FILE *__stream) __THROW +getline (char **__lineptr, size_t *__n, FILE *__stream) { return __getdelim (__lineptr, __n, '\n', __stream); } @@ -108,14 +108,14 @@ getline (char **__lineptr, size_t *__n, FILE *__stream) __THROW # ifdef __USE_MISC /* Faster versions when locking is not required. */ __STDIO_INLINE int -feof_unlocked (FILE *__stream) __THROW +feof_unlocked (FILE *__stream) { return _IO_feof_unlocked (__stream); } /* Faster versions when locking is not required. */ __STDIO_INLINE int -ferror_unlocked (FILE *__stream) __THROW +ferror_unlocked (FILE *__stream) { return _IO_ferror_unlocked (__stream); } diff --git a/libc/sysdeps/linux/sparc/bits/socket.h b/libc/sysdeps/linux/sparc/bits/socket.h index 491b133b7..dc2d58cfc 100644 --- a/libc/sysdeps/linux/sparc/bits/socket.h +++ b/libc/sysdeps/linux/sparc/bits/socket.h @@ -251,7 +251,7 @@ extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr, # define _EXTERN_INLINE extern __inline # endif _EXTERN_INLINE struct cmsghdr * -__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __THROW +__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) /* The kernel header does this so there may be a reason. */ diff --git a/libc/sysdeps/linux/sparc/bits/stdio.h b/libc/sysdeps/linux/sparc/bits/stdio.h index d69813255..c58643461 100644 --- a/libc/sysdeps/linux/sparc/bits/stdio.h +++ b/libc/sysdeps/linux/sparc/bits/stdio.h @@ -30,14 +30,14 @@ #ifdef __USE_EXTERN_INLINES /* Write formatted output to stdout from argument list ARG. */ __STDIO_INLINE int -vprintf (__const char *__restrict __fmt, _G_va_list __arg) __THROW +vprintf (__const char *__restrict __fmt, _G_va_list __arg) { return vfprintf (stdout, __fmt, __arg); } /* Read a character from stdin. */ __STDIO_INLINE int -getchar (void) __THROW +getchar (void) { return _IO_getc (stdin); } @@ -46,14 +46,14 @@ getchar (void) __THROW # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -getc_unlocked (FILE *__fp) __THROW +getc_unlocked (FILE *__fp) { return _IO_getc_unlocked (__fp); } /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -getchar_unlocked (void) __THROW +getchar_unlocked (void) { return _IO_getc_unlocked (stdin); } @@ -62,7 +62,7 @@ getchar_unlocked (void) __THROW /* Write a character to stdout. */ __STDIO_INLINE int -putchar (int __c) __THROW +putchar (int __c) { return _IO_putc (__c, stdout); } @@ -71,7 +71,7 @@ putchar (int __c) __THROW # ifdef __USE_MISC /* Faster version when locking is not necessary. */ __STDIO_INLINE int -fputc_unlocked (int __c, FILE *__stream) __THROW +fputc_unlocked (int __c, FILE *__stream) { return _IO_putc_unlocked (__c, __stream); } @@ -81,14 +81,14 @@ fputc_unlocked (int __c, FILE *__stream) __THROW # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -putc_unlocked (int __c, FILE *__stream) __THROW +putc_unlocked (int __c, FILE *__stream) { return _IO_putc_unlocked (__c, __stream); } /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int -putchar_unlocked (int __c) __THROW +putchar_unlocked (int __c) { return _IO_putc_unlocked (__c, stdout); } @@ -98,7 +98,7 @@ putchar_unlocked (int __c) __THROW # ifdef __USE_GNU /* Like `getdelim', but reads up to a newline. */ __STDIO_INLINE _IO_ssize_t -getline (char **__lineptr, size_t *__n, FILE *__stream) __THROW +getline (char **__lineptr, size_t *__n, FILE *__stream) { return __getdelim (__lineptr, __n, '\n', __stream); } @@ -108,14 +108,14 @@ getline (char **__lineptr, size_t *__n, FILE *__stream) __THROW # ifdef __USE_MISC /* Faster versions when locking is not required. */ __STDIO_INLINE int -feof_unlocked (FILE *__stream) __THROW +feof_unlocked (FILE *__stream) { return _IO_feof_unlocked (__stream); } /* Faster versions when locking is not required. */ __STDIO_INLINE int -ferror_unlocked (FILE *__stream) __THROW +ferror_unlocked (FILE *__stream) { return _IO_ferror_unlocked (__stream); } -- cgit v1.2.3