From fe559c5e1ce629f94f1621c76f5cfd59d6028830 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 19 Oct 1999 13:53:34 +0000 Subject: Update. 1999-10-19 Andreas Jaeger * include/bits/ipc.h: Remove K&R compatibility. * include/libintl.h: Likewise. * include/math.h: Likewise. * include/mntent.h: Likewise * include/netdb.h: Likewise. * include/pwd.h: Likewise. * include/sched.h: Likewise. * include/shadow.h: Likewise * include/stdlib.h: Likewise. * include/sys/file.h: Likewise. * include/sys/gmon.h: Likewise. * include/sys/ioctl.h: Likewise. * include/sys/mman.h: Likewise. * include/sys/resource.h: Likewise. * include/sys/socket.h: Likewise. * include/sys/stat.h: Likewise. * include/sys/sysinfo.h: Likewise. * include/sys/time.h: Likewise. * include/sys/times.h: Likewise. * include/sys/uio.h: Likewise. * include/sys/wait.h: Likewise. * include/termios.h: Likewise. * include/time.h: Likewise. * include/ulimit.h: Likewise. * include/utmp.h: Likewise. * include/wchar.h: Likewise. * include/wctype.h: Likewise. 1999-10-19 Andreas Jaeger * math/libm-test.inc: Remove one K&R compatibility. (main): Enable nexttoward_test. * math/gen-libm-test.pl (output_ulps): Output name of Ulps file to libm-test-ulps.h; pretty print output a bit. 1999-10-19 Andreas Jaeger * iconv/iconv_prog.c (main): Set exit value in case that reading from stdin failed [PR libc/1404]. --- ChangeLog | 43 +++++++++++++++++ iconv/iconv_prog.c | 5 +- include/bits/ipc.h | 4 +- include/libintl.h | 16 +++---- include/math.h | 2 +- include/mntent.h | 16 +++---- include/netdb.h | 124 ++++++++++++++++++++++++------------------------- include/pwd.h | 22 ++++----- include/sched.h | 24 +++++----- include/shadow.h | 26 +++++------ include/stdlib.h | 70 ++++++++++++++-------------- include/sys/file.h | 2 +- include/sys/gmon.h | 4 +- include/sys/ioctl.h | 2 +- include/sys/mman.h | 16 +++---- include/sys/resource.h | 6 +-- include/sys/socket.h | 2 +- include/sys/stat.h | 18 +++---- include/sys/sysinfo.h | 8 ++-- include/sys/time.h | 24 +++++----- include/sys/times.h | 2 +- include/sys/uio.h | 8 ++-- include/sys/wait.h | 12 ++--- include/termios.h | 2 +- include/time.h | 52 ++++++++++----------- include/ulimit.h | 2 +- include/utmp.h | 28 +++++------ include/wchar.h | 78 +++++++++++++++---------------- include/wctype.h | 2 +- math/gen-libm-test.pl | 28 +++++------ math/libm-test.inc | 7 ++- 31 files changed, 351 insertions(+), 304 deletions(-) diff --git a/ChangeLog b/ChangeLog index c5c1387..688032e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,46 @@ +1999-10-19 Andreas Jaeger + + * include/bits/ipc.h: Remove K&R compatibility. + * include/libintl.h: Likewise. + * include/math.h: Likewise. + * include/mntent.h: Likewise + * include/netdb.h: Likewise. + * include/pwd.h: Likewise. + * include/sched.h: Likewise. + * include/shadow.h: Likewise + * include/stdlib.h: Likewise. + * include/sys/file.h: Likewise. + * include/sys/gmon.h: Likewise. + * include/sys/ioctl.h: Likewise. + * include/sys/mman.h: Likewise. + * include/sys/resource.h: Likewise. + * include/sys/socket.h: Likewise. + * include/sys/stat.h: Likewise. + * include/sys/sysinfo.h: Likewise. + * include/sys/time.h: Likewise. + * include/sys/times.h: Likewise. + * include/sys/uio.h: Likewise. + * include/sys/wait.h: Likewise. + * include/termios.h: Likewise. + * include/time.h: Likewise. + * include/ulimit.h: Likewise. + * include/utmp.h: Likewise. + * include/wchar.h: Likewise. + * include/wctype.h: Likewise. + +1999-10-19 Andreas Jaeger + + * math/libm-test.inc: Remove one K&R compatibility. + (main): Enable nexttoward_test. + + * math/gen-libm-test.pl (output_ulps): Output name of Ulps file to + libm-test-ulps.h; pretty print output a bit. + +1999-10-19 Andreas Jaeger + + * iconv/iconv_prog.c (main): Set exit value in case that reading + from stdin failed [PR libc/1404]. + 1999-10-18 Andreas Jaeger Added improved math testsuite: diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c index cd00bbf..3eda49a 100644 --- a/iconv/iconv_prog.c +++ b/iconv/iconv_prog.c @@ -162,7 +162,10 @@ main (int argc, char *argv[]) specified with the `-o' parameter. If we have no file given as the parameter process all from stdin. */ if (remaining == argc) - process_file (cd, stdin, output); + { + if (process_file (cd, stdin, output) != 0) + status = 1; + } else do { diff --git a/include/bits/ipc.h b/include/bits/ipc.h index 5f699e8..92fb450 100644 --- a/include/bits/ipc.h +++ b/include/bits/ipc.h @@ -3,8 +3,8 @@ __BEGIN_DECLS /* The actual system call: all functions are multiplexed by this. */ -extern int __syscall_ipc __P ((int __call, int __first, int __second, - int __third, void *__ptr)); +extern int __syscall_ipc (int __call, int __first, int __second, + int __third, void *__ptr) __THROW; __END_DECLS diff --git a/include/libintl.h b/include/libintl.h index 5a51508..d81d604 100644 --- a/include/libintl.h +++ b/include/libintl.h @@ -2,14 +2,14 @@ #include /* Now define the internal interfaces. */ -extern char *__gettext __P ((__const char *__msgid)); -extern char *__dgettext __P ((__const char *__domainname, - __const char *__msgid)); -extern char *__dcgettext __P ((__const char *__domainname, - __const char *__msgid, int __category)); -extern char *__textdomain __P ((__const char *__domainname)); -extern char *__bindtextdomain __P ((__const char *__domainname, - __const char *__dirname)); +extern char *__gettext (__const char *__msgid) __THROW; +extern char *__dgettext (__const char *__domainname, + __const char *__msgid) __THROW; +extern char *__dcgettext (__const char *__domainname, + __const char *__msgid, int __category) __THROW; +extern char *__textdomain (__const char *__domainname) __THROW; +extern char *__bindtextdomain (__const char *__domainname, + __const char *__dirname) __THROW; extern const char _libc_intl_domainname[]; /* Define the macros `_' and `N_' for conveniently marking translatable diff --git a/include/math.h b/include/math.h index 98ee97d..1cfd9b6 100644 --- a/include/math.h +++ b/include/math.h @@ -3,6 +3,6 @@ #include /* Now define the internal interfaces. */ -extern int __matherr __P ((struct exception *__exc)); +extern int __matherr (struct exception *__exc) __THROW; #endif diff --git a/include/mntent.h b/include/mntent.h index ca8dfc5..5097e4a 100644 --- a/include/mntent.h +++ b/include/mntent.h @@ -2,12 +2,12 @@ #include /* Now define the internal interfaces. */ -extern FILE *__setmntent __P ((__const char *__file, __const char *__mode)); -extern struct mntent *__getmntent_r __P ((FILE *__stream, - struct mntent *__result, - char *__buffer, int __bufsize)); -extern int __addmntent __P ((FILE *__stream, __const struct mntent *__mnt)); -extern int __endmntent __P ((FILE *__stream)); -extern char *__hasmntopt __P ((__const struct mntent *__mnt, - __const char *__opt)); +extern FILE *__setmntent (__const char *__file, __const char *__mode) __THROW; +extern struct mntent *__getmntent_r (FILE *__stream, + struct mntent *__result, + char *__buffer, int __bufsize) __THROW; +extern int __addmntent (FILE *__stream, __const struct mntent *__mnt) __THROW; +extern int __endmntent (FILE *__stream) __THROW; +extern char *__hasmntopt (__const struct mntent *__mnt, + __const char *__opt) __THROW; #endif diff --git a/include/netdb.h b/include/netdb.h index 8fffe3c..cefd492 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -2,79 +2,79 @@ #include /* Document internal interfaces. */ -extern int __gethostent_r __P ((struct hostent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct hostent **__restrict __result, - int *__restrict __h_errnop)); +extern int __gethostent_r (struct hostent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct hostent **__restrict __result, + int *__restrict __h_errnop) __THROW; -extern int __gethostbyaddr_r __P ((__const char *__restrict __addr, - size_t __len, int __type, - struct hostent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct hostent **__restrict __result, - int *__restrict __h_errnop)); +extern int __gethostbyaddr_r (__const char *__restrict __addr, + size_t __len, int __type, + struct hostent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct hostent **__restrict __result, + int *__restrict __h_errnop) __THROW; -extern int __gethostbyname_r __P ((__const char *__restrict __name, - struct hostent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct hostent **__restrict __result, - int *__restrict __h_errnop)); +extern int __gethostbyname_r (__const char *__restrict __name, + struct hostent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct hostent **__restrict __result, + int *__restrict __h_errnop) __THROW; -extern int __gethostbyname2_r __P ((__const char *__restrict __name, int __af, - struct hostent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct hostent **__restrict __result, - int *__restrict __h_errnop)); - -extern int __getnetent_r __P ((struct netent *__restrict __result_buf, +extern int __gethostbyname2_r (__const char *__restrict __name, int __af, + struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, - struct netent **__restrict __result, - int *__restrict __h_errnop)); + struct hostent **__restrict __result, + int *__restrict __h_errnop) __THROW; -extern int __getnetbyaddr_r __P ((unsigned long int __net, int __type, - struct netent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct netent **__restrict __result, - int *__restrict __h_errnop)); +extern int __getnetent_r (struct netent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct netent **__restrict __result, + int *__restrict __h_errnop) __THROW; -extern int __getnetbyname_r __P ((__const char *__restrict __name, - struct netent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct netent **__restrict __result, - int *__restrict __h_errnop)); +extern int __getnetbyaddr_r (unsigned long int __net, int __type, + struct netent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct netent **__restrict __result, + int *__restrict __h_errnop) __THROW; -extern int __getservent_r __P ((struct servent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct servent **__restrict __result)); +extern int __getnetbyname_r (__const char *__restrict __name, + struct netent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct netent **__restrict __result, + int *__restrict __h_errnop) __THROW; -extern int __getservbyname_r __P ((__const char *__restrict __name, - __const char *__restrict __proto, - struct servent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct servent **__restrict __result)); +extern int __getservent_r (struct servent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct servent **__restrict __result) __THROW; -extern int __getservbyport_r __P ((int __port, - __const char *__restrict __proto, - struct servent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct servent **__restrict __result)); +extern int __getservbyname_r (__const char *__restrict __name, + __const char *__restrict __proto, + struct servent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct servent **__restrict __result) __THROW; -extern int __getprotoent_r __P ((struct protoent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct protoent **__restrict __result)); +extern int __getservbyport_r (int __port, + __const char *__restrict __proto, + struct servent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct servent **__restrict __result) __THROW; -extern int __getprotobyname_r __P ((__const char *__restrict __name, - struct protoent *__restrict __result_buf, - char *__restrict __buf, size_t __buflen, - struct protoent **__restrict __result)); +extern int __getprotoent_r (struct protoent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct protoent **__restrict __result) __THROW; -extern int __getprotobynumber_r __P ((int __proto, - struct protoent *__restrict __res_buf, - char *__restrict __buf, size_t __buflen, - struct protoent **__restrict __result)); +extern int __getprotobyname_r (__const char *__restrict __name, + struct protoent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct protoent **__restrict __result) __THROW; + +extern int __getprotobynumber_r (int __proto, + struct protoent *__restrict __res_buf, + char *__restrict __buf, size_t __buflen, + struct protoent **__restrict __result) __THROW; -extern int __getnetgrent_r __P ((char **__restrict __hostp, - char **__restrict __userp, - char **__restrict __domainp, - char *__restrict __buffer, size_t __buflen)); +extern int __getnetgrent_r (char **__restrict __hostp, + char **__restrict __userp, + char **__restrict __domainp, + char *__restrict __buffer, size_t __buflen) __THROW; #endif /* !_NETDB_H */ diff --git a/include/pwd.h b/include/pwd.h index 18e8ac7..6baec57 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -2,15 +2,15 @@ #include /* Now define the internal interfaces. */ -extern int __getpwent_r __P ((struct passwd *__resultbuf, char *__buffer, - size_t __buflen, struct passwd **__result)); -extern int __getpwuid_r __P ((__uid_t __uid, struct passwd *__resultbuf, - char *__buffer, size_t __buflen, - struct passwd **__result)); -extern int __getpwnam_r __P ((__const char *__name, struct passwd *__resultbuf, - char *__buffer, size_t __buflen, - struct passwd **__result)); -extern int __fgetpwent_r __P ((FILE * __stream, struct passwd *__resultbuf, - char *__buffer, size_t __buflen, - struct passwd **__result)); +extern int __getpwent_r (struct passwd *__resultbuf, char *__buffer, + size_t __buflen, struct passwd **__result) __THROW; +extern int __getpwuid_r (__uid_t __uid, struct passwd *__resultbuf, + char *__buffer, size_t __buflen, + struct passwd **__result) __THROW; +extern int __getpwnam_r (__const char *__name, struct passwd *__resultbuf, + char *__buffer, size_t __buflen, + struct passwd **__result) __THROW; +extern int __fgetpwent_r (FILE * __stream, struct passwd *__resultbuf, + char *__buffer, size_t __buflen, + struct passwd **__result) __THROW; #endif diff --git a/include/sched.h b/include/sched.h index 853174d..b159e7a 100644 --- a/include/sched.h +++ b/include/sched.h @@ -2,18 +2,18 @@ #include /* Now define the internal interfaces. */ -extern int __sched_setparam __P ((__pid_t __pid, - __const struct sched_param *__param)); -extern int __sched_getparam __P ((__pid_t __pid, struct sched_param *__param)); -extern int __sched_setscheduler __P ((__pid_t __pid, int __policy, - __const struct sched_param *__param)); -extern int __sched_getscheduler __P ((__pid_t __pid)); -extern int __sched_yield __P ((void)); -extern int __sched_get_priority_max __P ((int __algorithm)); -extern int __sched_get_priority_min __P ((int __algorithm)); -extern int __sched_rr_get_interval __P ((__pid_t __pid, struct timespec *__t)); +extern int __sched_setparam (__pid_t __pid, + __const struct sched_param *__param) __THROW; +extern int __sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW; +extern int __sched_setscheduler (__pid_t __pid, int __policy, + __const struct sched_param *__param) __THROW; +extern int __sched_getscheduler (__pid_t __pid) __THROW; +extern int __sched_yield (void) __THROW; +extern int __sched_get_priority_max (int __algorithm) __THROW; +extern int __sched_get_priority_min (int __algorithm) __THROW; +extern int __sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW; /* This is Linux specific. */ -extern int __clone __P ((int (*__fn) (void *__arg), void *__child_stack, - int __flags, void *__arg)); +extern int __clone (int (*__fn) (void *__arg), void *__child_stack, + int __flags, void *__arg) __THROW; #endif diff --git a/include/shadow.h b/include/shadow.h index be40eb4..18ed62c 100644 --- a/include/shadow.h +++ b/include/shadow.h @@ -2,17 +2,17 @@ #include /* Now define the internal interfaces. */ -extern int __getspent_r __P ((struct spwd *__result_buf, char *__buffer, - size_t __buflen, struct spwd **__result)); -extern int __getspnam_r __P ((__const char *__name, struct spwd *__result_buf, - char *__buffer, size_t __buflen, - struct spwd **__result)); -extern int __sgetspent_r __P ((__const char *__string, - struct spwd *__result_buf, char *__buffer, - size_t __buflen, struct spwd **__result)); -extern int __fgetspent_r __P ((FILE *__stream, struct spwd *__result_buf, - char *__buffer, size_t __buflen, - struct spwd **__result)); -extern int __lckpwdf __P ((void)); -extern int __ulckpwdf __P ((void)); +extern int __getspent_r (struct spwd *__result_buf, char *__buffer, + size_t __buflen, struct spwd **__result) __THROW; +extern int __getspnam_r (__const char *__name, struct spwd *__result_buf, + char *__buffer, size_t __buflen, + struct spwd **__result) __THROW; +extern int __sgetspent_r (__const char *__string, + struct spwd *__result_buf, char *__buffer, + size_t __buflen, struct spwd **__result) __THROW; +extern int __fgetspent_r (FILE *__stream, struct spwd *__result_buf, + char *__buffer, size_t __buflen, + struct spwd **__result) __THROW; +extern int __lckpwdf (void) __THROW; +extern int __ulckpwdf (void) __THROW; #endif diff --git a/include/stdlib.h b/include/stdlib.h index 187c458..65fd2cb 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -8,44 +8,44 @@ /* Now define the internal interfaces. */ #ifndef __Need_M_And_C -extern int32_t __random __P ((void)); -extern void __srandom __P ((unsigned int __seed)); -extern __ptr_t __initstate __P ((unsigned int __seed, __ptr_t __statebuf, - size_t __statelen)); -extern __ptr_t __setstate __P ((__ptr_t __statebuf)); -extern int __random_r __P ((struct random_data *__buf, int32_t *__result)); -extern int __srandom_r __P ((unsigned int __seed, struct random_data *__buf)); -extern int __initstate_r __P ((unsigned int __seed, __ptr_t __statebuf, - size_t __statelen, struct random_data *__buf)); -extern int __setstate_r __P ((__ptr_t __statebuf, struct random_data *__buf)); -extern int __rand_r __P ((unsigned int *__seed)); -extern int __erand48_r __P ((unsigned short int __xsubi[3], - struct drand48_data *__buffer, double *__result)); -extern int __nrand48_r __P ((unsigned short int __xsubi[3], - struct drand48_data *__buffer, - long int *__result)); -extern int __jrand48_r __P ((unsigned short int __xsubi[3], - struct drand48_data *__buffer, - long int *__result)); -extern int __srand48_r __P ((long int __seedval, - struct drand48_data *__buffer)); -extern int __seed48_r __P ((unsigned short int __seed16v[3], - struct drand48_data *__buffer)); -extern int __lcong48_r __P ((unsigned short int __param[7], - struct drand48_data *__buffer)); +extern int32_t __random (void) __THROW; +extern void __srandom (unsigned int __seed) __THROW; +extern void *__initstate (unsigned int __seed, void *__statebuf, + size_t __statelen) __THROW; +extern void *__setstate (void *__statebuf) __THROW; +extern int __random_r (struct random_data *__buf, int32_t *__result) __THROW; +extern int __srandom_r (unsigned int __seed, struct random_data *__buf) __THROW; +extern int __initstate_r (unsigned int __seed, void *__statebuf, + size_t __statelen, struct random_data *__buf) __THROW; +extern int __setstate_r (void *__statebuf, struct random_data *__buf) __THROW; +extern int __rand_r (unsigned int *__seed) __THROW; +extern int __erand48_r (unsigned short int __xsubi[3], + struct drand48_data *__buffer, double *__result) __THROW; +extern int __nrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__buffer, + long int *__result) __THROW; +extern int __jrand48_r (unsigned short int __xsubi[3], + struct drand48_data *__buffer, + long int *__result) __THROW; +extern int __srand48_r (long int __seedval, + struct drand48_data *__buffer) __THROW; +extern int __seed48_r (unsigned short int __seed16v[3], + struct drand48_data *__buffer) __THROW; +extern int __lcong48_r (unsigned short int __param[7], + struct drand48_data *__buffer) __THROW; /* Internal function to compute next state of the generator. */ -extern int __drand48_iterate __P ((unsigned short int __xsubi[3], - struct drand48_data *__buffer)); +extern int __drand48_iterate (unsigned short int __xsubi[3], + struct drand48_data *__buffer) __THROW; -extern int __setenv __P ((__const char *__name, __const char *__value, - int __replace)); -extern void __unsetenv __P ((__const char *__name)); -extern int __clearenv __P ((void)); -extern char *__canonicalize_file_name __P ((__const char *__name)); -extern char *__realpath __P ((__const char *__name, char *__resolved)); -extern int __ptsname_r __P ((int __fd, char *__buf, size_t __buflen)); -extern int __getpt __P ((void)); +extern int __setenv (__const char *__name, __const char *__value, + int __replace) __THROW; +extern void __unsetenv (__const char *__name) __THROW; +extern int __clearenv (void) __THROW; +extern char *__canonicalize_file_name (__const char *__name) __THROW; +extern char *__realpath (__const char *__name, char *__resolved) __THROW; +extern int __ptsname_r (int __fd, char *__buf, size_t __buflen) __THROW; +extern int __getpt (void) __THROW; extern int __add_to_environ (const char *name, const char *value, const char *combines, int replace); diff --git a/include/sys/file.h b/include/sys/file.h index c3f0af3..3dac129 100644 --- a/include/sys/file.h +++ b/include/sys/file.h @@ -2,5 +2,5 @@ #include /* Now define the internal interfaces. */ -extern int __flock __P ((int __fd, int __operation)); +extern int __flock (int __fd, int __operation) __THROW; #endif diff --git a/include/sys/gmon.h b/include/sys/gmon.h index 492d853..5767759 100644 --- a/include/sys/gmon.h +++ b/include/sys/gmon.h @@ -4,6 +4,6 @@ /* Now define the internal interfaces. */ /* Write current profiling data to file. */ -extern void __write_profiling __P ((void)); -extern void write_profiling __P ((void)); +extern void __write_profiling (void) __THROW; +extern void write_profiling (void) __THROW; #endif diff --git a/include/sys/ioctl.h b/include/sys/ioctl.h index 4d21030..bc1e6d6 100644 --- a/include/sys/ioctl.h +++ b/include/sys/ioctl.h @@ -2,5 +2,5 @@ #include /* Now define the internal interfaces. */ -extern int __ioctl __P ((int __fd, unsigned long int __request, ...)); +extern int __ioctl (int __fd, unsigned long int __request, ...) __THROW; #endif diff --git a/include/sys/mman.h b/include/sys/mman.h index 374de36..a76c236 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -2,14 +2,14 @@ #include /* Now define the internal interfaces. */ -extern __ptr_t __mmap __P ((__ptr_t __addr, size_t __len, int __prot, - int __flags, int __fd, __off_t __offset)); -extern __ptr_t __mmap64 __P ((__ptr_t __addr, size_t __len, int __prot, - int __flags, int __fd, __off64_t __offset)); -extern int __munmap __P ((__ptr_t __addr, size_t __len)); -extern int __mprotect __P ((__ptr_t __addr, size_t __len, int __prot)); +extern void *__mmap (void *__addr, size_t __len, int __prot, + int __flags, int __fd, __off_t __offset) __THROW; +extern void *__mmap64 (void *__addr, size_t __len, int __prot, + int __flags, int __fd, __off64_t __offset) __THROW; +extern int __munmap (void *__addr, size_t __len) __THROW; +extern int __mprotect (void *__addr, size_t __len, int __prot) __THROW; /* This one is Linux specific. */ -extern __ptr_t __mremap __P ((__ptr_t __addr, size_t __old_len, - size_t __new_len, int __may_move)); +extern void *__mremap (void *__addr, size_t __old_len, + size_t __new_len, int __may_move) __THROW; #endif diff --git a/include/sys/resource.h b/include/sys/resource.h index ec53c18..e234cc0 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -2,7 +2,7 @@ #include /* Now define the internal interfaces. */ -extern int __getrlimit __P ((enum __rlimit_resource __resource, - struct rlimit *__rlimits)); -extern int __getrusage __P ((enum __rusage_who __who, struct rusage *__usage)); +extern int __getrlimit (enum __rlimit_resource __resource, + struct rlimit *__rlimits) __THROW; +extern int __getrusage (enum __rusage_who __who, struct rusage *__usage) __THROW; #endif diff --git a/include/sys/socket.h b/include/sys/socket.h index 4766c20..d6737f5 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -2,5 +2,5 @@ #include /* Now define the internal interfaces. */ -extern int __socket __P ((int __domain, int __type, int __protocol)); +extern int __socket (int __domain, int __type, int __protocol) __THROW; #endif diff --git a/include/sys/stat.h b/include/sys/stat.h index 768630f..09e3964 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -2,15 +2,15 @@ #include /* Now define the internal interfaces. */ -extern int __stat __P ((__const char *__file, struct stat *__buf)); -extern int __fstat __P ((int __fd, struct stat *__buf)); -extern int __lstat __P ((__const char *__file, struct stat *__buf)); -extern int __chmod __P ((__const char *__file, __mode_t __mode)); -extern int __fchmod __P ((int __fd, __mode_t __mode)); -extern __mode_t __umask __P ((__mode_t __mask)); -extern int __mkdir __P ((__const char *__path, __mode_t __mode)); -extern int __mknod __P ((__const char *__path, - __mode_t __mode, __dev_t __dev)); +extern int __stat (__const char *__file, struct stat *__buf) __THROW; +extern int __fstat (int __fd, struct stat *__buf) __THROW; +extern int __lstat (__const char *__file, struct stat *__buf) __THROW; +extern int __chmod (__const char *__file, __mode_t __mode) __THROW; +extern int __fchmod (int __fd, __mode_t __mode) __THROW; +extern __mode_t __umask (__mode_t __mask) __THROW; +extern int __mkdir (__const char *__path, __mode_t __mode) __THROW; +extern int __mknod (__const char *__path, + __mode_t __mode, __dev_t __dev) __THROW; extern __inline__ int __stat (__const char *__path, struct stat *__statbuf) { return __xstat (_STAT_VER, __path, __statbuf); diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h index 9d1549d..c06c3ab 100644 --- a/include/sys/sysinfo.h +++ b/include/sys/sysinfo.h @@ -4,15 +4,15 @@ /* Now we define the internal interface. */ /* Return number of configured processors. */ -extern int __get_nprocs_conf __P ((void)); +extern int __get_nprocs_conf (void) __THROW; /* Return number of available processors. */ -extern int __get_nprocs __P ((void)); +extern int __get_nprocs (void) __THROW; /* Return number of physical pages of memory in the system. */ -extern int __get_phys_pages __P ((void)); +extern int __get_phys_pages (void) __THROW; /* Return number of available physical pages of memory in the system. */ -extern int __get_avphys_pages __P ((void)); +extern int __get_avphys_pages (void) __THROW; #endif /* sys/sysinfo.h */ diff --git a/include/sys/time.h b/include/sys/time.h index a6e5ac1..a281420 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -2,16 +2,16 @@ #include