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]. --- 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 ++++++------ 12 files changed, 52 insertions(+), 52 deletions(-) (limited to 'include/sys') 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