aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-19 13:53:34 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-19 13:53:34 +0000
commitfe559c5e1ce629f94f1621c76f5cfd59d6028830 (patch)
tree8aff0f4deccf163242ad22f0dddcd2f2da238c26 /include
parent8847214f239965f538e42a09d3d08ce8c700dea2 (diff)
downloadglibc-fe559c5e1ce629f94f1621c76f5cfd59d6028830.tar.xz
glibc-fe559c5e1ce629f94f1621c76f5cfd59d6028830.zip
Update.
1999-10-19 Andreas Jaeger <aj@suse.de> * 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 <aj@suse.de> * 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 <aj@suse.de> * iconv/iconv_prog.c (main): Set exit value in case that reading from stdin failed [PR libc/1404].
Diffstat (limited to 'include')
-rw-r--r--include/bits/ipc.h4
-rw-r--r--include/libintl.h16
-rw-r--r--include/math.h2
-rw-r--r--include/mntent.h16
-rw-r--r--include/netdb.h124
-rw-r--r--include/pwd.h22
-rw-r--r--include/sched.h24
-rw-r--r--include/shadow.h26
-rw-r--r--include/stdlib.h70
-rw-r--r--include/sys/file.h2
-rw-r--r--include/sys/gmon.h4
-rw-r--r--include/sys/ioctl.h2
-rw-r--r--include/sys/mman.h16
-rw-r--r--include/sys/resource.h6
-rw-r--r--include/sys/socket.h2
-rw-r--r--include/sys/stat.h18
-rw-r--r--include/sys/sysinfo.h8
-rw-r--r--include/sys/time.h24
-rw-r--r--include/sys/times.h2
-rw-r--r--include/sys/uio.h8
-rw-r--r--include/sys/wait.h12
-rw-r--r--include/termios.h2
-rw-r--r--include/time.h52
-rw-r--r--include/ulimit.h2
-rw-r--r--include/utmp.h28
-rw-r--r--include/wchar.h78
-rw-r--r--include/wctype.h2
27 files changed, 286 insertions, 286 deletions
diff --git a/include/bits/ipc.h b/include/bits/ipc.h
index 5f699e8f49..92fb4505a5 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 5a51508950..d81d60438a 100644
--- a/include/libintl.h
+++ b/include/libintl.h
@@ -2,14 +2,14 @@
#include <intl/libintl.h>
/* 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 98ee97deed..1cfd9b6cb5 100644
--- a/include/math.h
+++ b/include/math.h
@@ -3,6 +3,6 @@
#include <math/math.h>
/* 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 ca8dfc5069..5097e4a37a 100644
--- a/include/mntent.h
+++ b/include/mntent.h
@@ -2,12 +2,12 @@
#include <misc/mntent.h>
/* 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 8fffe3cc5d..cefd492a22 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -2,79 +2,79 @@
#include <resolv/netdb.h>
/* 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 18e8ac7e94..6baec570fc 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -2,15 +2,15 @@
#include <pwd/pwd.h>
/* 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 853174deff..b159e7ac74 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -2,18 +2,18 @@
#include <posix/sched.h>
/* 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 be40eb42fa..18ed62c00a 100644
--- a/include/shadow.h
+++ b/include/shadow.h
@@ -2,17 +2,17 @@
#include <shadow/shadow.h>
/* 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 187c4585d8..65fd2cba1f 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 ((voi