aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-06 23:45:24 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-06 23:45:24 +0000
commit6796bc807aa3808f6afb5da42932e437bdd183cf (patch)
treef0610b5aebf183e95afb9f70c30d77ea82f9ef9e /include
parentbaa3334acc20834b32be1abf96f5942367c31a06 (diff)
downloadglibc-6796bc807aa3808f6afb5da42932e437bdd183cf.tar
glibc-6796bc807aa3808f6afb5da42932e437bdd183cf.tar.gz
glibc-6796bc807aa3808f6afb5da42932e437bdd183cf.tar.bz2
glibc-6796bc807aa3808f6afb5da42932e437bdd183cf.zip
Update.
1998-09-06 09:53 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu> * Makeconfig (+gccwarn): Remove -Wno-parentheses. * elf/dl-open.c: Quiet -Wparentheses warnings. * iconvdata/johab.c: Likewise. * iconvdata/uhc.c: Likewise. * inet/inet_net.c: Likewise. * io/fts.c: Likewise. * locale/newlocale.c: Likewise. * misc/getttyent.c: Likewise. * misc/mntent_r.c: Likewise. * misc/ttyslot.c: Likewise. * nscd/nscd_conf.c: Likewise. * nss/nsswitch.c: Likewise. * resolv/gethnamaddr.c: Likewise. * resolv/nsap_addr.c: Likewise. * resolv/res_debug.c: Likewise. * stdio-common/_itoa.c: Likewise. * stdlib/strtod.c: Likewise. * string/strverscmp.c: Likewise. * sunrpc/svc.c: Likewise. * sysdeps/libm-ieee754/e_cosh.c: Likewise. * sysdeps/libm-ieee754/e_gamma_r.c: Likewise. * sysdeps/libm-ieee754/e_sinh.c: Likewise. * sysdeps/posix/getaddrinfo.c: Likewise. * include/dlfcn.h: Likewise. * elf/dlfcn.h: Declare dladdr only for __USE_GNU. Define RTLD_DEFAULT.
Diffstat (limited to 'include')
-rw-r--r--include/alloca.h4
-rw-r--r--include/db.h4
-rw-r--r--include/db_185.h2
-rw-r--r--include/dlfcn.h2
-rw-r--r--include/fcntl.h2
-rw-r--r--include/grp.h2
-rw-r--r--include/libintl.h2
-rw-r--r--include/mntent.h2
-rw-r--r--include/pwd.h2
-rw-r--r--include/sched.h4
-rw-r--r--include/search.h2
-rw-r--r--include/setjmp.h2
-rw-r--r--include/shadow.h2
-rw-r--r--include/signal.h2
-rw-r--r--include/stdio.h2
-rw-r--r--include/stdlib.h2
-rw-r--r--include/string.h2
-rw-r--r--include/sys/file.h2
-rw-r--r--include/sys/gmon.h2
-rw-r--r--include/sys/ioctl.h2
-rw-r--r--include/sys/mman.h2
-rw-r--r--include/sys/resource.h2
-rw-r--r--include/sys/select.h2
-rw-r--r--include/sys/socket.h2
-rw-r--r--include/sys/statfs.h2
-rw-r--r--include/sys/time.h2
-rw-r--r--include/sys/times.h2
-rw-r--r--include/sys/wait.h2
-rw-r--r--include/termios.h2
-rw-r--r--include/tgmath.h1
-rw-r--r--include/time.h2
-rw-r--r--include/ulimit.h2
-rw-r--r--include/utmp.h2
-rw-r--r--include/wchar.h2
34 files changed, 72 insertions, 1 deletions
diff --git a/include/alloca.h b/include/alloca.h
index ae41090bd1..4dcddb6ae1 100644
--- a/include/alloca.h
+++ b/include/alloca.h
@@ -1,3 +1,5 @@
+#ifndef _ALLOCA_H
+
#include <stdlib/alloca.h>
#undef __alloca
@@ -8,3 +10,5 @@ extern __ptr_t __alloca __P ((size_t __size));
#ifdef __GNUC__
# define __alloca(size) __builtin_alloca (size)
#endif /* GCC. */
+
+#endif
diff --git a/include/db.h b/include/db.h
index 13e9c307eb..64c7348ea6 100644
--- a/include/db.h
+++ b/include/db.h
@@ -1,5 +1,9 @@
+#ifndef _DB_H_
+
#include <db2/db.h>
/* Internal interface for NSS. */
int __nss_db_open __P((const char *,
DBTYPE, u_int32_t, int, DB_ENV *, DB_INFO *, DB **));
+
+#endif
diff --git a/include/db_185.h b/include/db_185.h
index db78199865..37bb16e99b 100644
--- a/include/db_185.h
+++ b/include/db_185.h
@@ -1,4 +1,6 @@
+#ifndef _DB_185_H_
#include <db2/db_185.h>
/* Now define the internal interfaces. */
DB *__dbopen __P((const char *, int, int, DBTYPE, const void *));
+#endif
diff --git a/include/dlfcn.h b/include/dlfcn.h
index 766c80a11a..955819739a 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -1,5 +1,7 @@
+#ifndef _DLFCN_H
#include <elf/dlfcn.h>
/* Now define the internal interfaces. */
extern void *__dlvsym __P ((void *__handle, __const char *__name,
__const char *__version));
+#endif
diff --git a/include/fcntl.h b/include/fcntl.h
index cce3d5ee10..949c6621fd 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -1,4 +1,6 @@
+#ifndef _FCNTL_H
#include <io/fcntl.h>
/* Now define the internal interfaces. */
extern int __open64 __P ((__const char *__file, int __oflag, ...));
+#endif
diff --git a/include/grp.h b/include/grp.h
index ddde842fe6..14be78cf00 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -1,3 +1,4 @@
+#ifndef _GRP_H
#include <grp/grp.h>
/* Now define the internal interfaces. */
@@ -6,3 +7,4 @@ extern int __getgrent_r __P ((struct group *__resultbuf, char *buffer,
extern int __fgetgrent_r __P ((FILE * __stream, struct group *__resultbuf,
char *buffer, size_t __buflen,
struct group **__result));
+#endif
diff --git a/include/libintl.h b/include/libintl.h
index 582cb05d74..3763b04c5f 100644
--- a/include/libintl.h
+++ b/include/libintl.h
@@ -1,3 +1,4 @@
+#ifndef _LIBINTL_H
#include <intl/libintl.h>
/* Now define the internal interfaces. */
@@ -5,3 +6,4 @@ extern char *__gettext __P ((__const char *__msgid));
extern char *__textdomain __P ((__const char *__domainname));
extern char *__bindtextdomain __P ((__const char *__domainname,
__const char *__dirname));
+#endif
diff --git a/include/mntent.h b/include/mntent.h
index d869625607..ca8dfc5069 100644
--- a/include/mntent.h
+++ b/include/mntent.h
@@ -1,3 +1,4 @@
+#ifndef _MNTENT_H
#include <misc/mntent.h>
/* Now define the internal interfaces. */
@@ -9,3 +10,4 @@ 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));
+#endif
diff --git a/include/pwd.h b/include/pwd.h
index 2c57df938f..18e8ac7e94 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -1,3 +1,4 @@
+#ifndef _PWD_H
#include <pwd/pwd.h>
/* Now define the internal interfaces. */
@@ -12,3 +13,4 @@ extern int __getpwnam_r __P ((__const char *__name, struct passwd *__resultbuf,
extern int __fgetpwent_r __P ((FILE * __stream, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result));
+#endif
diff --git a/include/sched.h b/include/sched.h
index 02dc60a872..d28a0123f9 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -1,7 +1,9 @@
-#include "posix/sched.h"
+#ifndef _SCHED_H
+#include <posix/sched.h>
/* Now define the internal interfaces. */
/* This is Linux specific. */
extern int __clone __P ((int (*__fn) (void *__arg), void *__child_stack,
int __flags, void *__arg));
+#endif
diff --git a/include/search.h b/include/search.h
index 05dc75aee9..2b4c63ba53 100644
--- a/include/search.h
+++ b/include/search.h
@@ -1,3 +1,4 @@
+#ifndef _SEARCH_H
#include <misc/search.h>
/* Now define the internal interfaces. */
@@ -10,3 +11,4 @@ extern void *__tdelete __PMT ((__const void *__key, void **__rootp,
__compar_fn_t compar));
extern void __twalk __PMT ((__const void *__root, __action_fn_t action));
extern void __tdestroy __PMT ((void *__root, __free_fn_t freefct));
+#endif
diff --git a/include/setjmp.h b/include/setjmp.h
index 34fc9e5f69..97b1c3a46f 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -1,3 +1,4 @@
+#ifndef _SETJMP_H
#include <setjmp/setjmp.h>
/* Now define the internal interfaces. */
@@ -11,3 +12,4 @@ extern void __longjmp __P ((__jmp_buf __env, int __val))
This is used by the machine-dependent definition of `__sigsetjmp'.
Always returns zero, for convenience. */
extern int __sigjmp_save __P ((jmp_buf __env, int __savemask));
+#endif
diff --git a/include/shadow.h b/include/shadow.h
index 5e7f943bc0..be40eb42fa 100644
--- a/include/shadow.h
+++ b/include/shadow.h
@@ -1,3 +1,4 @@
+#ifndef _SHADOW_H
#include <shadow/shadow.h>
/* Now define the internal interfaces. */
@@ -14,3 +15,4 @@ extern int __fgetspent_r __P ((FILE *__stream, struct spwd *__result_buf,
struct spwd **__result));
extern int __lckpwdf __P ((void));
extern int __ulckpwdf __P ((void));
+#endif
diff --git a/include/signal.h b/include/signal.h
index 693aeb807a..1a14ff3dc7 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -1,3 +1,4 @@
+#ifndef _SIGNAL_H
#if defined __need_sig_atomic_t || defined __need_sigset_t
# include <signal/signal.h>
#else
@@ -23,3 +24,4 @@ extern int __sigreturn __P ((struct sigcontext *__scp));
extern int __sigaltstack __P ((__const struct sigaltstack *__ss,
struct sigaltstack *__oss));
#endif
+#endif
diff --git a/include/stdio.h b/include/stdio.h
index d09e29d1c1..a3272fc8e9 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,3 +1,4 @@
+#ifndef _STDIO_H
#ifdef USE_IN_LIBIO
#ifdef __need_FILE
# include <libio/stdio.h>
@@ -27,3 +28,4 @@ extern int __vsscanf __P ((__const char *__restrict __s,
#else
#include <stdio/stdio.h>
#endif
+#endif
diff --git a/include/stdlib.h b/include/stdlib.h
index c45730428b..7424243e99 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,3 +1,4 @@
+#ifndef _STDLIB_H
#include <stdlib/stdlib.h>
/* Now define the internal interfaces. */
@@ -39,3 +40,4 @@ 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));
+#endif
diff --git a/include/string.h b/include/string.h
index 1ee7ced249..d83a56e053 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,3 +1,4 @@
+#ifndef _STRING_H
#include <string/string.h>
/* Now define the internal interfaces. */
@@ -6,3 +7,4 @@ extern __ptr_t __memccpy __P ((__ptr_t __dest, __const __ptr_t __src,
extern size_t __strnlen __P ((__const char *__string, size_t __maxlen));
extern char *__strsep __P ((char **__stringp, __const char *__delim));
extern int __strverscmp __P ((__const char *__s1, __const char *__s2));
+#endif
diff --git a/include/sys/file.h b/include/sys/file.h
index ec7f3de73d..c3f0af3710 100644
--- a/include/sys/file.h
+++ b/include/sys/file.h
@@ -1,4 +1,6 @@
+#ifndef _SYS_FILE_H
#include <misc/sys/file.h>
/* Now define the internal interfaces. */
extern int __flock __P ((int __fd, int __operation));
+#endif
diff --git a/include/sys/gmon.h b/include/sys/gmon.h
index 2e56188027..492d853f8e 100644
--- a/include/sys/gmon.h
+++ b/include/sys/gmon.h
@@ -1,3 +1,4 @@
+#ifndef _SYS_GMON_H
#include <gmon/sys/gmon.h>
/* Now define the internal interfaces. */
@@ -5,3 +6,4 @@
/* Write current profiling data to file. */
extern void __write_profiling __P ((void));
extern void write_profiling __P ((void));
+#endif
diff --git a/include/sys/ioctl.h b/include/sys/ioctl.h
index e07b08a64f..4d21030ed9 100644
--- a/include/sys/ioctl.h
+++ b/include/sys/ioctl.h
@@ -1,4 +1,6 @@
+#ifndef _SYS_IOCTL_H
#include <misc/sys/ioctl.h>
/* Now define the internal interfaces. */
extern int __ioctl __P ((int __fd, unsigned long int __request, ...));
+#endif
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 3a6c33a354..32c2084bdd 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -1,3 +1,4 @@
+#ifndef _SYS_MMAN_H
#include_next <sys/mman.h>
/* Now define the internal interfaces. */
@@ -11,3 +12,4 @@ extern int __mprotect __P ((__ptr_t __addr, size_t __len, int __prot));
/* This one is Linux specific. */
extern __ptr_t __mremap __P ((__ptr_t __addr, size_t __old_len,
size_t __new_len, int __may_move));
+#endif
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 36950e2f10..ec53c188f9 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -1,6 +1,8 @@
+#ifndef _SYS_RESOURCE_H
#include <resource/sys/resource.h>
/* 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));
+#endif
diff --git a/include/sys/select.h b/include/sys/select.h
index 860b01347d..be98aa2eb4 100644
--- a/include/sys/select.h
+++ b/include/sys/select.h
@@ -1,6 +1,8 @@
+#ifndef _SYS_SELECT_H
#include <misc/sys/select.h>
/* Now define the internal interfaces. */
extern int __pselect __P ((int __nfds, __fd_set *__readfds,
__fd_set *__writefds, __fd_set *__exceptfds,
struct timespec *__timeout));
+#endif
diff --git a/include/sys/socket.h b/include/sys/socket.h
index a319272b55..4766c206d8 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -1,4 +1,6 @@
+#ifndef _SYS_SOCKET_H
#include <socket/sys/socket.h>
/* Now define the internal interfaces. */
extern int __socket __P ((int __domain, int __type, int __protocol));
+#endif
diff --git a/include/sys/statfs.h b/include/sys/statfs.h
index bb4999e2a3..80c8834be4 100644
--- a/include/sys/statfs.h
+++ b/include/sys/statfs.h
@@ -1,5 +1,7 @@
+#ifndef _SYS_STATFS_H
#include <io/sys/statfs.h>
/* Now define the internal interfaces. */
extern int __statfs __P ((__const char *__file, struct statfs *__buf));
extern int __fstatfs __P ((int __fildes, struct statfs *__buf));
+#endif
diff --git a/include/sys/time.h b/include/sys/time.h
index fd9f46778d..5f53e967f6 100644
--- a/include/sys/time.h
+++ b/include/sys/time.h
@@ -1,3 +1,4 @@
+#ifndef _SYS_TIME_H
#include <time/sys/time.h>
/* Now document the internal interfaces. */
@@ -11,3 +12,4 @@ extern int __setitimer __P ((enum __itimer_which __which,
__const struct itimerval *__new,
struct itimerval *__old));
extern int __utimes __P ((__const char *__file, struct timeval __tvp[2]));
+#endif
diff --git a/include/sys/times.h b/include/sys/times.h
index 95162b8931..611bb2fdc9 100644
--- a/include/sys/times.h
+++ b/include/sys/times.h
@@ -1,4 +1,6 @@
+#ifndef _SYS_TIMES_H
#include <posix/sys/times.h>
/* Now define the internal interfaces. */
extern clock_t __times __P ((struct tms *__buffer));
+#endif
diff --git a/include/sys/wait.h b/include/sys/wait.h
index eefc14d705..5ecce413ef 100644
--- a/include/sys/wait.h
+++ b/include/sys/wait.h
@@ -1,3 +1,4 @@
+#ifndef _SYS_WAIT_H
#include <posix/sys/wait.h>
/* Now define the internal interfaces. */
@@ -7,3 +8,4 @@ extern __pid_t __wait3 __P ((__WAIT_STATUS __stat_loc,
int __options, struct rusage * __usage));
extern __pid_t __wait4 __P ((__pid_t __pid, __WAIT_STATUS __stat_loc,
int __options, struct rusage *__usage));
+#endif
diff --git a/include/termios.h b/include/termios.h
index 90237a8101..ed3b36525f 100644
--- a/include/termios.h
+++ b/include/termios.h
@@ -1,4 +1,6 @@
+#ifndef _TERMIOS_H
#include <termios/termios.h>
/* Now define the internal interfaces. */
extern int __tcgetattr __P ((int __fd, struct termios *__termios_p));
+#endif
diff --git a/include/tgmath.h b/include/tgmath.h
new file mode 100644
index 0000000000..3a2c4a2b2d
--- /dev/null
+++ b/include/tgmath.h
@@ -0,0 +1 @@
+#include <math/tgmath.h>
diff --git a/include/time.h b/include/time.h
index bc8ce0662a..2659e62717 100644
--- a/include/time.h
+++ b/include/time.h
@@ -1,3 +1,4 @@
+#ifndef _TIME_H
#if defined __need_time_t || defined __need_clock_t || defined __need_timespec
# include <time/time.h>
#else
@@ -35,3 +36,4 @@ extern int __nanosleep __P ((__const struct timespec *__requested_time,
struct timespec *__remaining));
extern int __getdate_r __P ((__const char *__string, struct tm *__resbufp));
#endif
+#endif
diff --git a/include/ulimit.h b/include/ulimit.h
index c1523a1864..8dc51d5fb7 100644
--- a/include/ulimit.h
+++ b/include/ulimit.h
@@ -1,4 +1,6 @@
+#ifndef _ULIMIT_H
#include <resource/ulimit.h>
/* Now define the internal interfaces. */
extern long int __ulimit __P ((int __cmd, ...));
+#endif
diff --git a/include/utmp.h b/include/utmp.h
index 4535acb6a0..b7f7d5fe2c 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -1,3 +1,4 @@
+#ifndef _UTMP_H
#include <login/utmp.h>
/* Now define the internal interfaces. */
@@ -15,3 +16,4 @@ extern int __getutid_r __P ((__const struct utmp *__id, struct utmp *__buffer,
struct utmp **__result));
extern int __getutline_r __P ((__const struct utmp *__line,
struct utmp *__buffer, struct utmp **__result));
+#endif
diff --git a/include/wchar.h b/include/wchar.h
index 95a8c431ab..33166edfdd 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -1,3 +1,4 @@
+#ifndef _WCHAR_H
#include <wcsmbs/wchar.h>
/* Now define the internal interfaces. */
@@ -28,3 +29,4 @@ extern size_t __wcsnrtombs __P ((char *__restrict __dst,
extern wchar_t *__wcpcpy __P ((wchar_t *__dest, __const wchar_t *__src));
extern wchar_t *__wcpncpy __P ((wchar_t *__dest, __const wchar_t *__src,
size_t __n));
+#endif