]> sourceware.org Git - glibc.git/commitdiff
Issue error message if the header is used directly.
authorUlrich Drepper <drepper@redhat.com>
Wed, 26 Nov 1997 04:14:44 +0000 (04:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 26 Nov 1997 04:14:44 +0000 (04:14 +0000)
62 files changed:
sysdeps/alpha/bits/endian.h
sysdeps/alpha/bits/setjmp.h
sysdeps/alpha/fpu/bits/fenv.h
sysdeps/arm/bits/endian.h
sysdeps/arm/bits/setjmp.h
sysdeps/m68k/bits/byteswap.h
sysdeps/m68k/bits/endian.h
sysdeps/m68k/bits/setjmp.h
sysdeps/m68k/fpu/bits/fenv.h
sysdeps/mach/hurd/alpha/bits/sigcontext.h
sysdeps/mach/hurd/hppa/bits/sigcontext.h
sysdeps/mach/hurd/mips/bits/sigcontext.h
sysdeps/mips/bits/dlfcn.h
sysdeps/mips/bits/endian.h
sysdeps/mips/bits/setjmp.h
sysdeps/mips/dec/bits/endian.h
sysdeps/mips/mips64/bits/setjmp.h
sysdeps/mips/mipsel/bits/endian.h
sysdeps/mips/p40/bits/endian.h
sysdeps/unix/bsd/osf/alpha/bits/stat.h
sysdeps/unix/bsd/osf/bits/sigaction.h
sysdeps/unix/bsd/sun/m68k/bits/sigcontext.h
sysdeps/unix/bsd/sun/sparc/bits/sigcontext.h
sysdeps/unix/bsd/sun/sunos4/bits/resource.h
sysdeps/unix/bsd/sun/sunos4/bits/termios.h
sysdeps/unix/bsd/sun/sunos4/bits/utsname.h
sysdeps/unix/bsd/ultrix4/bits/utsname.h
sysdeps/unix/bsd/ultrix4/mips/bits/sigcontext.h
sysdeps/unix/sysv/irix4/bits/confname.h
sysdeps/unix/sysv/irix4/bits/stat.h
sysdeps/unix/sysv/linux/alpha/bits/ioctls.h
sysdeps/unix/sysv/linux/alpha/bits/ipc.h
sysdeps/unix/sysv/linux/alpha/bits/mman.h
sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
sysdeps/unix/sysv/linux/alpha/bits/stat.h
sysdeps/unix/sysv/linux/alpha/bits/termios.h
sysdeps/unix/sysv/linux/alpha/bits/time.h
sysdeps/unix/sysv/linux/m68k/bits/mman.h
sysdeps/unix/sysv/linux/m68k/bits/poll.h
sysdeps/unix/sysv/linux/mips/bits/endian.h
sysdeps/unix/sysv/linux/mips/bits/ioctl-types.h
sysdeps/unix/sysv/linux/mips/bits/ipc.h
sysdeps/unix/sysv/linux/mips/bits/mman.h
sysdeps/unix/sysv/linux/mips/bits/poll.h
sysdeps/unix/sysv/linux/mips/bits/shm.h
sysdeps/unix/sysv/linux/mips/bits/sigaction.h
sysdeps/unix/sysv/linux/mips/bits/socket.h
sysdeps/unix/sysv/linux/mips/bits/stat.h
sysdeps/unix/sysv/linux/mips/bits/statfs.h
sysdeps/unix/sysv/linux/mips/bits/termios.h
sysdeps/unix/sysv/linux/mips/bits/time.h
sysdeps/unix/sysv/minix/bits/sigaction.h
sysdeps/unix/sysv/sco3.2.4/bits/confname.h
sysdeps/unix/sysv/sco3.2.4/bits/sigaction.h
sysdeps/unix/sysv/sysv4/bits/sigaction.h
sysdeps/unix/sysv/sysv4/bits/utsname.h
sysdeps/unix/sysv/sysv4/bits/waitflags.h
sysdeps/unix/sysv/sysv4/i386/bits/stat.h
sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h
sysdeps/unix/sysv/sysv4/solaris2/sparc/bits/sigcontext.h
sysdeps/vax/bits/huge_val.h
sysdeps/vax/bits/setjmp.h

index e873d2123c939c8fc8468847c7b1b33fcbc2eb6d..8a16e14e24e2377bf7e59725adb41e24858cca37 100644 (file)
@@ -1,3 +1,7 @@
 /* Alpha is little-endian.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __LITTLE_ENDIAN
index 9aa30463d646980a250b6b4ff9037272b4df2ef9..de37019218490b0ef2faff4f6d28b47d5f5d7646 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SETJMP_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
 /* The previous bits/setjmp.h had __jmp_buf defined as a structure.
    We use an array of 'long int' instead, to make writing the
    assembler easier. Naturally, user code should not depend on
  * registers.
  */
 
-#if defined(__USE_MISC) || defined(__ASSEMBLY__)
-#define JB_S0  0
-#define JB_S1  1
-#define JB_S2  2
-#define JB_S3  3
-#define JB_S4  4
-#define JB_S5  5
-#define JB_PC  6
-#define JB_FP  7
-#define JB_SP  8
-#define JB_F2  9
-#define JB_F3  10
-#define JB_F4  11
-#define JB_F5  12
-#define JB_F6  13
-#define JB_F7  14
-#define JB_F8  15
-#define JB_F9  16
+#if defined __USE_MISC || defined __ASSEMBLY__
+# define JB_S0  0
+# define JB_S1  1
+# define JB_S2  2
+# define JB_S3  3
+# define JB_S4  4
+# define JB_S5  5
+# define JB_PC  6
+# define JB_FP  7
+# define JB_SP  8
+# define JB_F2  9
+# define JB_F3  10
+# define JB_F4  11
+# define JB_F5  12
+# define JB_F6  13
+# define JB_F7  14
+# define JB_F8  15
+# define JB_F9  16
 #endif
 
 #ifndef __ASSEMBLY__
index 7cb0e3e54360f5890c6e8a02d142b9b6d772b737..4482f0a2dd9702620f0c3dfb542550076811e2f5 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Richard Henderson <rth@tamu.edu>, 1997
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -18,7 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #ifndef _FENV_H
-#error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
+# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
 #endif
 
 
@@ -51,20 +50,20 @@ enum
 
     FE_INVALID =       1UL << 17,
 #define FE_INVALID     FE_INVALID
-    
+
     FE_ALL_EXCEPT =
        (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
-#define FE_ALL_EXCEPT  FE_ALL_EXCEPT 
+#define FE_ALL_EXCEPT  FE_ALL_EXCEPT
   };
 
 
-/* Alpha chips support all four defined rouding modes. 
+/* Alpha chips support all four defined rouding modes.
 
    Note that code must be compiled to use dynamic rounding (/d) instructions
    to see these changes.  For gcc this is -mfp-rounding-mode=d; for DEC cc
-   this is -fprm d.  The default for both is static rounding to nearest. 
+   this is -fprm d.  The default for both is static rounding to nearest.
 
-   These are shifted down 58 bits from the hardware fpcr because the 
+   These are shifted down 58 bits from the hardware fpcr because the
    functions are declared to take integers.  */
 
 enum
@@ -100,5 +99,5 @@ typedef unsigned long fenv_t;
 #endif
 
 /* The system calls to talk to the kernel's FP code.  */
-extern unsigned long __ieee_get_fp_control(void);
-extern void __ieee_set_fp_control(unsigned long);
+extern unsigned long int __ieee_get_fp_control __P ((void));
+extern void __ieee_set_fp_control __P ((unsigned long int __value));
index 32f8489df2fba9b6766377e334c322ad7f513b0a..ad3b5393bcf6b35f61120b992eec939886a944dc 100644 (file)
@@ -1,3 +1,7 @@
 /* ARM is little-endian.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __LITTLE_ENDIAN
index 93b0f5f9169637b5dfd479f89d2cef66feb73145..5cf9cd75c7df1dff5cea98710094d5483aeb0656 100644 (file)
@@ -1,10 +1,14 @@
 /* Define the machine-dependent type `jmp_buf'.  ARM version. */
 
+#ifndef _SETJMP_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
 #ifndef _ASM
 /* Jump buffer contains v1-v6, sl, fp, sp, pc and (f4-f7) if we do FP. */
-#if __ARM_USES_FP
+# if __ARM_USES_FP
 typedef int __jmp_buf[22];
-#else
+# else
 typedef int __jmp_buf[10];
-#endif
+# endif
 #endif
index 54ec0d1920ea2c21c83ecaeece3eae39f2984b89..41bbe59782fa5b71370f544c1fc700fd360886c5 100644 (file)
@@ -17,8 +17,9 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef _BITS_BYTESWAP_H
-#define _BITS_BYTESWAP_H       1
+#if !defined _BYTESWAP_H && !defined _NETINET_IN_H
+# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
+#endif
 
 /* Swap bytes in 16 bit value.  We don't provide an assembler version
    because GCC is smart enough to generate optimal assembler output, and
@@ -32,7 +33,7 @@
    (((x) & 0x0000ff00) <<  8) | (((x) & 0x000000ff) << 24))
 
 #if defined __GNUC__ && __GNUC__ >= 2
-#define __bswap_32(x) \
+# define __bswap_32(x) \
   __extension__                                        \
   ({ unsigned int __v;                         \
      if (__builtin_constant_p (x))             \
                             : "0" (x));        \
      __v; })
 #else
-#define __bswap_32(x) __bswap_constant_32 (x)
+# define __bswap_32(x) __bswap_constant_32 (x)
 #endif
 
 #if defined __GNUC__ && __GNUC__ >= 2
 /* Swap bytes in 64 bit value.  */
-#define __bswap_64(x) \
+# define __bswap_64(x) \
   __extension__                                                \
   ({ union { unsigned long long int __ll;              \
             unsigned long int __l[2]; } __v, __r;      \
@@ -59,5 +60,3 @@
      __r.__l[1] = __bswap_32 (__v.__l[0]);             \
      __r.__ll; })
 #endif
-
-#endif /* bits/byteswap.h */
index 6f985293f25d1d02889a47f78d311e8ff1ba5cdd..bf4ecb60a4c2b8af24a2357de9c23b2975e0fcc2 100644 (file)
@@ -1,3 +1,7 @@
 /* m68k is big-endian.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __BIG_ENDIAN
index 96240f0d8ecfa751dccbfb28ecaa2c25e3233d49..2991232915c454a3b6058d238d143d895d2a90c7 100644 (file)
@@ -1,5 +1,9 @@
 /* Define the machine-dependent type `jmp_buf'.  m68k version.  */
 
+#ifndef _SETJMP_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
 typedef struct
   {
     /* There are eight 4-byte data registers, but D0 is not saved.  */
@@ -7,10 +11,10 @@ typedef struct
 
     /* There are six 4-byte address registers, plus the FP and SP.  */
     int *__aregs[6];
-    int * __fp;
-    int * __sp;
+    int *__fp;
+    int *__sp;
 
-#if defined(__HAVE_68881__) || defined(__HAVE_FPU__)
+#if defined __HAVE_68881__ || defined __HAVE_FPU__
     /* There are eight floating point registers which
        are saved in IEEE 96-bit extended format.  */
     char __fpregs[8 * (96 / 8)];
index ce071b93ff7c72fbcae4312b3e0e28e3198492a2..a11e0724f1217a8e1d896e303d8b28f9f6cc7248 100644 (file)
@@ -17,7 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #ifndef _FENV_H
-#error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
+# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
 #endif
 
 
index 3b17a4ada808c34be4ba0d6d93f203d1704269b6..a2c8163599af1929ebfb541a4611c4890389d1a7 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
+#endif
+
 /* Signal handlers are actually called:
    void handler (int sig, int code, struct sigcontext *scp);  */
 
index f450125463897d15fdad7fc2687295bfa0005521..f0b4ff7a9b97f5e94bf65bcbfd717611a68f680d 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
+#endif
+
 /* Signal handlers are actually called:
    void handler (int sig, int code, struct sigcontext *scp);  */
 
index 64a57ab08646a2e6716125212b1fda5498cf7ed2..910618e32ad94f49d24bebd88e9c7d26f0fffefe 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
+#endif
+
 /* Signal handlers are actually called:
    void handler (int sig, int code, struct sigcontext *scp);  */
 
index 636da5662d0bc5e430666471117d2a302ae9b21d..c105537dfd356c3d6893850afc4f80a11765ae5d 100644 (file)
@@ -17,8 +17,9 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef        _BITS_DLFCN_H
-#define        _BITS_DLFCN_H 1
+#ifndef _DLFCN_H
+# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
+#endif
 
 /* The MODE argument to `dlopen' contains one of the following: */
 #define RTLD_LAZY      0x001   /* Lazy function call binding.  */
 __BEGIN_DECLS
 
 /* Some SGI specific calls that aren't implemented yet.  */
-extern void *sgidladd __P ((const char *, int));
-extern void *sgidlopen_version __P ((const char *, int, const char *, int));
-extern char *sgigetdsoversion __P ((const char *));
+extern void *sgidladd __P ((__const char *, int));
+extern void *sgidlopen_version __P ((__const char *, int, __const char *,
+                                    int));
+extern char *sgigetdsoversion __P ((__const char *));
 
 __END_DECLS
-
-#endif /* bits/dlfcn.h */
index ba555cd76e4e8dc8cf57049241aa40af5e6d9f2b..40321a28665913d005d463380194150e042b6fc2 100644 (file)
@@ -1,4 +1,8 @@
 /* The MIPS architecture has selectable endianness.
    This file is for a machine using big-endian mode.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __BIG_ENDIAN
index 7e570c6bff270f1920df1020978202a232f1d480..ff3d75f8210f723235f3b36218bb279e681a20a9 100644 (file)
@@ -1,6 +1,5 @@
 /* Define the machine-dependent type `jmp_buf'.  MIPS version.
    Copyright (C) 1992, 1993, 1995, 1997 Free Software Foundation, Inc.
-   Contributed by Brendan Kehoe (brendan@zen.org).
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SETJMP_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
 typedef struct
   {
     /* Program counter.  */
index 157bc44d065e70f6367e54ef38517be49db5055c..0bdb378944a16597f4151150fc04c5cfb581f3bb 100644 (file)
@@ -1,4 +1,8 @@
 /* The MIPS architecture has selectable endianness.
    The DECstation uses little-endian mode.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __LITTLE_ENDIAN
index b1085405058be12944dc1dc765db1b12a1bd6d91..9f08f4e1aff1cb54d2bff822ef5446c44da30c67 100644 (file)
@@ -1,7 +1,6 @@
 /* Define the machine-dependent type `jmp_buf'.  MIPS version.
    Copyright (C) 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Brendan Kehoe (brendan@zen.org).
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SETJMP_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
 typedef struct
   {
     /* Program counter.  */
index 5da5965cb22a2864c3406a65db0a80751f623d42..2241190a70b17b655fab260379d4c5f1eb4244cd 100644 (file)
@@ -1,4 +1,8 @@
 /* The MIPS architecture has selectable endianness.
    This file is for a machine using little-endian mode.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __LITTLE_ENDIAN
index e4b0119433caabd19f589f82bb5ddebaad52af86..f6cdde2cb3359f1819a542988423d942a1858142 100644 (file)
@@ -1,4 +1,8 @@
 /* The MIPS has selectable endianness.
    The Japanese homebrew P40 architecture uses big-endian mode.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #define __BYTE_ORDER __BIG_ENDIAN
index ab0fa48f68ae408e36d4b8a9d621dab8fc6721c1..7084b4e53459630574c60af005c13eaae9145f77 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Brendan Kehoe (brendan@zen.org).
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/stat.h> instead.
- */
-
-#ifndef        _BITS_STAT_H
-#define        _BITS_STAT_H
+#ifndef _SYS_STAT_H
+# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
+#endif
 
 #include <bits/types.h>
 
@@ -76,5 +72,3 @@ struct stat
 #define        __S_IREAD       0400    /* Read by owner.  */
 #define        __S_IWRITE      0200    /* Write by owner.  */
 #define        __S_IEXEC       0100    /* Execute by owner.  */
-
-#endif /* bits/stat.h */
index 56e28a04fb9b080a87f9bfc115ace021461998fb..6bf030793e13c26da904e289436316dd6e795874 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
+#endif
+
 /* Structure describing the action to be taken when a signal arrives.  */
 struct sigaction
   {
index 61481cc6a25cb3035ba1ddb5d34f969c965720a7..f637efa6cddddf01e55b46a8e0b71580ec57dd76 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
+#endif
+
 struct sigcontext
   {
     int sc_onstack;
index e1cdd416a14810b8802c332b661140b47b3f95a7..29d2d87b267c6177453df7b6f2c61a0c6548f168 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
+#endif
+
 struct sigcontext
   {
     int sc_onstack;
index f51262d92d1cae1eacd9cdc3acacb1c0fd00204d..6978c87dd2b9ef9472b2c6df972aba732ca57988 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SYS_RESOURCE_H
+# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
+#endif
+
 /* These are the values for 4.4 BSD and GNU.  Earlier BSD systems have a
    subset of these kinds of resource limit.  In systems where `getrlimit'
    and `setrlimit' are not system calls, these are the values used by the C
@@ -110,7 +114,8 @@ enum __rusage_who
 #define RUSAGE_CHILDREN RUSAGE_CHILDREN
   };
 
-#include <sys/time.h>           /* For `struct timeval'.  */
+#define __need_timeval
+#include <bits/time.h>           /* For `struct timeval'.  */
 
 /* Structure which says how much of each resource has been used.  */
 struct rusage
index dc0a0072089b895f96e63fee70b283ff2de1fa7b..15aaab795ad835bf5d365e49a1d22f2c04456805 100644 (file)
@@ -1,5 +1,5 @@
 /* termios type and macro definitions.  SunOS 4 version.
-   Copyright (C) 1993, 1994, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _TERMIOS_H
+# error "Never include <bits/termios.h> directly; use <termios.h> instead."
+#endif
+
 /* Type of terminal control flag masks.  */
 typedef unsigned long int tcflag_t;
 
@@ -41,51 +45,51 @@ struct termios
 #define        IGNCR   0x0080          /* Ignore CR.  */
 #define        ICRNL   0x0100          /* Map CR to NL on input.  */
 #ifdef __USE_BSD
-#define        IUCLC   0x0200          /* Map upper case to lower case on input.  */
+# define IUCLC 0x0200          /* Map upper case to lower case on input.  */
 #endif
 #define        IXON    0x0400          /* Enable start/stop output control.  */
 #define        IXOFF   0x1000          /* Enable start/stop input control.  */
 #ifdef __USE_BSD
-#define        IXANY   0x0800          /* Any character will restart after stop.  */
-#define        IMAXBEL 0x2000          /* Ring bell when input queue is full.  */
+# define IXANY 0x0800          /* Any character will restart after stop.  */
+# define IMAXBEL       0x2000          /* Ring bell when input queue is full.  */
 #endif
 
   /* Output modes.  */
   tcflag_t c_oflag;
 #define        OPOST   0x0001          /* Perform output processing.  */
 #ifdef __USE_BSD
-#define        OLCUC   0x00000002      /* Map lower case to upper case on output.  */
-#define        ONLCR   0x00000004      /* Map NL to CR-NL on output.  */
-#define        OCRNL   0x00000008
-#define        ONOCR   0x00000010
-#define        ONLRET  0x00000020
-#define        OFILL   0x00000040
-#define        OFDEL   0x00000080
-#define        NLDLY   0x00000100
-#define        NL0     0
-#define        NL1     0x00000100
-#define        CRDLY   0x00000600
-#define        CR0     0
-#define        CR1     0x00000200
-#define        CR2     0x00000400
-#define        CR3     0x00000600
-#define        TABDLY  0x00001800
-#define        TAB0    0
-#define        TAB1    0x00000800
-#define        TAB2    0x00001000
-#define        XTABS   0x00001800
-#define        TAB3    XTABS
-#define        BSDLY   0x00002000
-#define        BS0     0
-#define        BS1     0x00002000
-#define        VTDLY   0x00004000
-#define        VT0     0
-#define        VT1     0x00004000
-#define        FFDLY   0x00008000
-#define        FF0     0
-#define        FF1     0x00008000
-#define        PAGEOUT 0x00010000
-#define        WRAP    0x00020000
+# define OLCUC 0x00000002      /* Map lower case to upper case on output.  */
+# define ONLCR 0x00000004      /* Map NL to CR-NL on output.  */
+# define OCRNL 0x00000008
+# define ONOCR 0x00000010
+# define ONLRET        0x00000020
+# define OFILL 0x00000040
+# define OFDEL 0x00000080
+# define NLDLY 0x00000100
+# define NL0   0
+# define NL1   0x00000100
+# define CRDLY 0x00000600
+# define CR0   0
+# define CR1   0x00000200
+# define CR2   0x00000400
+# define CR3   0x00000600
+# define TABDLY        0x00001800
+# define TAB0  0
+# define TAB1  0x00000800
+# define TAB2  0x00001000
+# define XTABS 0x00001800
+# define TAB3  XTABS
+# define BSDLY 0x00002000
+# define BS0   0
+# define BS1   0x00002000
+# define VTDLY 0x00004000
+# define VT0   0
+# define VT1   0x00004000
+# define FFDLY 0x00008000
+# define FF0   0
+# define FF1   0x00008000
+# define PAGEOUT 0x00010000
+# define WRAP  0x00020000
 #endif
 
   /* Control modes.  */
@@ -102,11 +106,11 @@ struct termios
 #define        HUPCL   0x00000400      /* Hang up on last close.  */
 #define        CLOCAL  0x00000800      /* Ignore modem status lines.  */
 #ifdef __USE_BSD
-#define        LOBLK   0x00001000
-#define        CRTSCTS 0x80000000
-#define        CIBAUD  0x000f0000      /* Mask for input speed from c_cflag.  */
-#define        CBAUD   0x0000000f      /* Mask for output speed from c_cflag.  */
-#define        IBSHIFT 16              /* Bits to shift for input speed.  */
+# define LOBLK 0x00001000
+# define CRTSCTS       0x80000000
+# define CIBAUD        0x000f0000      /* Mask for input speed from c_cflag.  */
+# define CBAUD 0x0000000f      /* Mask for output speed from c_cflag.  */
+# define IBSHIFT       16              /* Bits to shift for input speed.  */
 #endif
 
   /* Input and output baud rates.  These are encoded in c_cflag.  */
@@ -127,29 +131,29 @@ struct termios
 #define B19200  14
 #define B38400  15
 #ifdef __USE_BSD
-#define EXTA    14
-#define EXTB    15
+# define EXTA   14
+# define EXTB   15
 #endif
 
   /* Local modes.  */
   tcflag_t c_lflag;
 #ifdef __USE_BSD
-#define        ECHOKE  0x00000800      /* Visual erase for KILL.  */
+# define ECHOKE        0x00000800      /* Visual erase for KILL.  */
 #endif
 #define        ECHOE   0x00000010      /* Visual erase for ERASE.  */
 #define        ECHOK   0x00000020      /* Echo NL after KILL.  */
 #define        ECHO    0x00000008      /* Enable echo.  */
 #define        ECHONL  0x00000040      /* Echo NL even if ECHO is off.  */
 #ifdef __USE_BSD
-#define        ECHOPRT 0x00000400      /* Hardcopy visual erase.  */
-#define        ECHOCTL 0x00000200      /* Echo control characters as ^X.  */
+# define ECHOPRT       0x00000400      /* Hardcopy visual erase.  */
+# define ECHOCTL       0x00000200      /* Echo control characters as ^X.  */
 #endif
 #define        ISIG    0x00000001      /* Enable signals.  */
 #define        ICANON  0x00000002      /* Do erase and kill processing.  */
 #define        IEXTEN  0x00008000      /* Enable DISCARD and LNEXT.  */
 #define        TOSTOP  0x00000100      /* Send SIGTTOU for background output.  */
 #ifdef __USE_BSD
-#define        PENDIN  0x00004000      /* Retype pending input (state).  */
+# define PENDIN        0x00004000      /* Retype pending input (state).  */
 #endif
 #define        NOFLSH  0x00000080      /* Disable flush after interrupt.  */
 
@@ -159,28 +163,28 @@ struct termios
 #define        VEOF    4               /* End-of-file character [ICANON].  */
 #define        VEOL    5               /* End-of-line character [ICANON].  */
 #ifdef __USE_BSD
-#define        VEOL2   6               /* Second EOL character [ICANON].  */
-#define        VSWTCH  7               /* ??? */
+# define VEOL2 6               /* Second EOL character [ICANON].  */
+# define VSWTCH        7               /* ??? */
 #endif
 #define        VERASE  2               /* Erase character [ICANON].  */
 #ifdef __USE_BSD
-#define        VWERASE 14              /* Word-erase character [ICANON].  */
+# define VWERASE       14              /* Word-erase character [ICANON].  */
 #endif
 #define        VKILL   3               /* Kill-line character [ICANON].  */
 #ifdef __USE_BSD
-#define        VREPRINT 12             /* Reprint-line character [ICANON].  */
+# define VREPRINT 12           /* Reprint-line character [ICANON].  */
 #endif
 #define        VINTR   0               /* Interrupt character [ISIG].  */
 #define        VQUIT   1               /* Quit character [ISIG].  */
 #define        VSUSP   10              /* Suspend character [ISIG].  */
 #ifdef __USE_BSD
-#define        VDSUSP  11              /* Delayed suspend character [ISIG].  */
+# define VDSUSP        11              /* Delayed suspend character [ISIG].  */
 #endif
 #define        VSTART  8               /* Start (X-ON) character [IXON, IXOFF].  */
 #define        VSTOP   9               /* Stop (X-OFF) character [IXON, IXOFF].  */
 #ifdef __USE_BSD
-#define        VLNEXT  15              /* Literal-next character [IEXTEN].  */
-#define        VDISCARD 13             /* Discard character [IEXTEN].  */
+# define VLNEXT        15              /* Literal-next character [IEXTEN].  */
+# define VDISCARD 13           /* Discard character [IEXTEN].  */
 #endif
 #define        VMIN    VEOF            /* Minimum number of bytes read at once [!ICANON].  */
 #define        VTIME   VEOL            /* Time-out value (tenths of a second) [!ICANON].  */
index e9111b65045ac38302d6864cd1c19c45c417bcef..5a03bab0c24e902362ebb23d78aa087abfc04603 100644 (file)
@@ -1,2 +1,24 @@
+/* Copyright (C) 1997 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _UTSNAME_H
+# error "Never include <bits/utsname.h> directly; use <sys/utsname.h> instead."
+#endif
+
 #define _UTSNAME_LENGTH 9
 #define _UTSNAME_NODENAME_LENGTH 65
index ad4389ab0202178e8a637e3e8ada0dc7d46eaec5..a9f36ab3d1aba6615be6af9902e4cc92ab6022ea 100644 (file)
@@ -1 +1,23 @@
+/* Copyright (C) 1997 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _UTSNAME_H
+# error "Never include <bits/utsname.h> directly; use <sys/utsname.h> instead."
+#endif
+
 #define _UTSNAME_LENGTH 32
index 72b29e56491207a7d43c466414b1badce820e45c..cb66517eef7cc7ba98e14624c4ff3e1e539b6028 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1992, 1994, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Brendan Kehoe (brendan@zen.org).
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
+#endif
+
 /* Note that ANY change to this instantly implies a change to __handler.S.  */
 
 struct sigcontext
index c185f22adf8adfb8e5d642583e7c605789bdbd79..89fca07fe51bd11359d8cfcc88752784ef44b41e 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _UNISTD_H
+# error "Never use <bits/confname.h> directly; include <unistd.h> instead."
+#endif
+
 /* Values for the NAME argument to `pathconf' and `fpathconf'.  */
 enum
   {
index 0dab45cfa0ec0dc4bb70035889ed3e9ba8d113f1..633f2618ecef9b07706e23c00127b0f550f2281c 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/stat.h> instead.
- */
-
-#ifndef        _BITS_STAT_H
-#define        _BITS_STAT_H    1
+#ifndef _SYS_STAT_H
+# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
+#endif
 
 struct stat
   {
@@ -61,5 +58,3 @@ struct stat
 #define        __S_IREAD       0400    /* Read by owner.  */
 #define        __S_IWRITE      0200    /* Write by owner.  */
 #define        __S_IEXEC       0100    /* Execute by owner.  */
-
-#endif /* bits/stat.h */
index 8a14f99f4338c023d8d800e711e22a54a45de814..dcbf9f4402195822c6b4e88328b65871b90102b7 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/ioctl.h> instead.
- */
-
-#ifndef _BITS_IOCTLS_H
-#define _BITS_IOCTLS_H 1
+#ifndef _SYS_IOCTL_H
+# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
+#endif
 
 /* Use the definitions from the kernel header files.  */
 #include <asm/ioctls.h>
@@ -39,5 +36,3 @@
 #define TCSETSF        _IOW ('t', 22, struct __kernel_termios)
 
 #include <linux/sockios.h>
-
-#endif /* bits/ioctls.h  */
index 57830daae17be204b1586e8de9a8d3f4282fbf34..ec116f6114431807d4c3b25bad349b57daeeb40f 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef _SYS_IPC_BUF_H
-
-#define _SYS_IPC_BUF_H 1
-#include <features.h>
+#ifndef _SYS_IPC_H
+# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
+#endif
 
 #include <sys/types.h>
 
@@ -35,9 +33,6 @@
 #define IPC_STAT       2               /* Get `ipc_perm' options.  */
 #define IPC_INFO       3               /* See ipcs.  */
 
-
-__BEGIN_DECLS
-
 /* Special key values.  */
 #define IPC_PRIVATE    ((__key_t) 0)   /* Private key.  */
 
@@ -63,10 +58,14 @@ struct ipc_kludge
     long int msgtyp;
   };
 
+__BEGIN_DECLS
+
 /* The actual system call: all functions are multiplexed by this.  */
 extern int __ipc __P ((int __call, int __first, int __second, int __third,
                       void *__ptr));
 
+__END_DECLS
+
 /* The codes for the functions to use the multiplexer `__ipc'.  */
 #define IPCOP_semop     1
 #define IPCOP_semget    2
@@ -79,7 +78,3 @@ extern int __ipc __P ((int __call, int __first, int __second, int __third,
 #define IPCOP_shmdt    22
 #define IPCOP_shmget   23
 #define IPCOP_shmctl   24
-
-__END_DECLS
-
-#endif /* _SYS_IPC_BUF_H */
index 1bef0cb525def787cd3828f675ddb54a3fe32530..081a00441e468d0efbe96dd27b002dcbe7eb22fc 100644 (file)
@@ -1,4 +1,4 @@
-/* Definitions for POSIX memory map inerface.  Linux/Alpha version.
+/* Definitions for POSIX memory map interface.  Linux/Alpha version.
    Copyright (C) 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -18,7 +18,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #ifndef _SYS_MMAN_H
-# error "Never include this file directly.  Use <sys/mman.h> instead"
+# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
 #endif
 
 /* The following definitions basically come from the kernel headers.
index f28b6f256c6640d55c06b1c40a088671322ffd8f..274531f270887797f47cf2658ac2d7e8d24f1be0 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
+#endif
+
 /* Structure describing the action to be taken when a signal arrives.  */
 struct sigaction
   {
index de8752ea8be4b63787a8b6c0c92a1f34fbeef442..319ff96c51301d2efde46944cb7ec6c579d9eadf 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/stat.h> instead.
- */
-
-#ifndef        _BITS_STAT_H
-#define        _BITS_STAT_H    1
+#ifndef _SYS_STAT_H
+# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
+#endif
 
 /* Versions of the `struct stat' data structure.  */
 #define _STAT_VER_KERNEL       0
@@ -112,5 +109,3 @@ struct stat64
 #define        __S_IREAD       0400    /* Read by owner.  */
 #define        __S_IWRITE      0200    /* Write by owner.  */
 #define        __S_IEXEC       0100    /* Execute by owner.  */
-
-#endif /* bits/stat.h */
index d0932c1cd7f6ce8f117c0f16df4dd02466794d34..0d57c489d979bd7593e82b6dd27c584cfec49224 100644 (file)
@@ -17,8 +17,9 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef _TERMBITS_H
-#define _TERMBITS_H 1
+#ifndef _TERMIOS_H
+# error "Never include <bits/termios.h> directly; use <termios.h> instead."
+#endif
 
 typedef unsigned char  cc_t;
 typedef unsigned int   speed_t;
@@ -189,5 +190,3 @@ struct termios
 
 #define _IOT_termios /* Hurd ioctl type field.  */ \
   _IOT (_IOTS (cflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)
-
-#endif /* _TERMBITS_H */
index 7475b68f5bb2570b9b1c97cfcf8bbae16d79caf4..d32f4d30e9871c4af0131dc3609b2429144be028 100644 (file)
  * Never include this file directly; use <time.h> instead.
  */
 
-#ifdef __need_timeval
-# undef __need_timeval
-# ifndef _STRUCT_TIMEVAL
-#  define _STRUCT_TIMEVAL      1
-/* A time value that is accurate to the nearest
-   microsecond but also has a range of years.  */
-struct timeval
-  {
-    int tv_sec;                        /* Seconds.  */
-    int tv_usec;               /* Microseconds.  */
-  };
-# endif        /* struct timeval */
-#endif /* need timeval */
-
-
-#ifndef _BITS_TIME_H
-#define _BITS_TIME_H   1
+#ifndef __need_timeval
+# ifndef _BITS_TIME_H
+#  define _BITS_TIME_H 1
 
 /* ISO/IEC 9899:1990 7.12.1: <time.h>
    The macro `CLOCKS_PER_SEC' is the number per second of the value
@@ -45,10 +31,23 @@ struct timeval
 /* CAE XSH, Issue 4, Version 2: <time.h>
    The value of CLOCKS_PER_SEC is required to be 1 million on all
    XSI-conformant systems. */
-# define CLOCKS_PER_SEC  1000000
+#  define CLOCKS_PER_SEC  1000000
 
 /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system.  */
-# define CLK_TCK 1024
+#  define CLK_TCK 1024
 
-#endif /* bits/time.h */
+# endif        /* bits/time.h */
+#endif /* !__need_timeval */
+
+
+#ifndef _STRUCT_TIMEVAL
+# define _STRUCT_TIMEVAL       1
+/* A time value that is accurate to the nearest
+   microsecond but also has a range of years.  */
+struct timeval
+  {
+    int tv_sec;                        /* Seconds.  */
+    int tv_usec;               /* Microseconds.  */
+  };
+#endif /* struct timeval */
index d6c29d21765a37dec93c6d8f1b3f6ab75ba6c9b3..bca1dae960cfe47e9d9d48565002aba615769e13 100644 (file)
@@ -1,4 +1,4 @@
-/* Definitions for POSIX memory map inerface.  Linux/m68k version.
+/* Definitions for POSIX memory map interface.  Linux/m68k version.
    Copyright (C) 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -18,7 +18,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #ifndef _SYS_MMAN_H
-# error "Never include this file directly.  Use <sys/mman.h> instead"
+# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
 #endif
 
 /* The following definitions basically come from the kernel headers.
index 8fea43924a523533304d3f2553672edcc3b3e81c..2d4e6f6f01be20b2da2a592122ed96b19800d954 100644 (file)
@@ -16,6 +16,9 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SYS_POLL_H
+# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
+#endif
 
 /* Event types that can be polled for.  These bits may be set in `events'
    to indicate the interesting event types; they will appear in `revents'
index 9f60758f36c0482440329c95bb71a12c1c687722..0a3d2fabe36ad7f42d97628d9625a5c192208960 100644 (file)
@@ -3,10 +3,14 @@
    want to be able to share the installed headerfiles between both,
    so we define __BYTE_ORDER based on GCC's predefines.  */
 
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
 #ifdef __MIPSEB__
-#define __BYTE_ORDER __BIG_ENDIAN
+# define __BYTE_ORDER __BIG_ENDIAN
 #else
-#ifdef __MIPSEL__
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#endif
+# ifdef __MIPSEL__
+#  define __BYTE_ORDER __LITTLE_ENDIAN
+# endif
 #endif
index 486022e6d9c5a14274000f2f12951a1c3a0df86c..4f5c2b0d3ebad3b40d8fc12745c04e29ea003606 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/ioctl.h> instead.
- */
-
-#ifndef _BITS_IOCTL_TYPES_H
-#define _BITS_IOCTL_TYPES_H 1
+#ifndef _SYS_IOCTL_H
+# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
+#endif
 
 /* Get definition of constants for use with `ioctl'.  */
 #include <asm/ioctls.h>
@@ -67,5 +64,3 @@ struct termio
 #define N_PPP          3
 #define N_STRIP                4
 #define N_AX25         5
-
-#endif /* bits/ioctl-types.h */
index c5a3cd004977575932abdcd168a2a2f515c660df..2841e6a5e27f58321964c0116c2508cff91b70c0 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef _SYS_IPC_BUF_H
-
-#define _SYS_IPC_BUF_H 1
-#include <features.h>
+#ifndef _SYS_IPC_H
+# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
+#endif
 
 #include <sys/types.h>
 
@@ -36,8 +34,6 @@
 #define IPC_INFO       3               /* See ipcs.  */
 
 
-__BEGIN_DECLS
-
 /* Special key values.  */
 #define IPC_PRIVATE    ((__key_t) 0)   /* Private key.  */
 
@@ -46,11 +42,11 @@ __BEGIN_DECLS
 struct ipc_perm
   {
     __key_t __key;                     /* Key.  */
-    long uid;                          /* Owner's user ID.  */
-    long gid;                          /* Owner's group ID.  */
-    long cuid;                         /* Creator's user ID.  */
-    long cgid;                         /* Creator's group ID.  */
-    unsigned long mode;                        /* Read/write permission.  */
+    long int uid;                      /* Owner's user ID.  */
+    long int gid;                      /* Owner's group ID.  */
+    long int cuid;                     /* Creator's user ID.  */
+    long int cgid;                     /* Creator's group ID.  */
+    unsigned long int mode;            /* Read/write permission.  */
     unsigned short int __seq;          /* Sequence number.  */
   };
 
@@ -63,10 +59,14 @@ struct ipc_kludge
     long int msgtyp;
   };
 
+__BEGIN_DECLS
+
 /* The actual system call: all functions are multiplexed by this.  */
 extern int __ipc __P ((int __call, int __first, int __second, int __third,
                       void *__ptr));
 
+__END_DECLS
+
 /* The codes for the functions to use the multiplexer `__ipc'.  */
 #define IPCOP_semop     1
 #define IPCOP_semget    2
@@ -79,7 +79,3 @@ extern int __ipc __P ((int __call, int __first, int __second, int __third,
 #define IPCOP_shmdt    22
 #define IPCOP_shmget   23
 #define IPCOP_shmctl   24
-
-__END_DECLS
-
-#endif /* bits/ipc_buf.h */
index 15a343ff7615eefdfdc85d70b3a4d2c003fe4344..be460ab6c6455f5a411073af540f50df7df25916 100644 (file)
@@ -1,4 +1,4 @@
-/* Definitions for POSIX memory map inerface.  Linux/PowerPC version.
+/* Definitions for POSIX memory map interface.  Linux/PowerPC version.
    Copyright (C) 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -18,7 +18,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #ifndef _SYS_MMAN_H
-# error "Never include this file directly.  Use <sys/mman.h> instead"
+# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
 #endif
 
 /* The following definitions basically come from the kernel headers.
index c1c9a6b3925bf321686ecac72994991a8f3bcb9f..9b7826af6ca1ccb8b0544a330e9231dfcabcd211 100644 (file)
@@ -16,6 +16,9 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SYS_POLL_H
+# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
+#endif
 
 /* Event types that can be polled for.  These bits may be set in `events'
    to indicate the interesting event types; they will appear in `revents'
index 9d4b20bb534d19dfa035ff9b3f1e193dcb50b3de..20e75e009b57ce91c9e8eea7cf7d7e4ec743cc65 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef _SYS_SHM_BUF_H
-
-#define _SYS_SHM_BUF_H 1
-#include <features.h>
+#ifndef _SYS_SHM_H
+# error "Never include <bits/shm.h> directly; use <sys/shm.h> instead."
+#endif
 
 #include <sys/types.h>
 
 #define SHM_UNLOCK     12              /* unlock segment (root only) */
 
 
-__BEGIN_DECLS
-
 /* Data structure describing a set of semaphores.  */
 struct shmid_ds
-{
-  struct ipc_perm shm_perm;            /* operation permission struct */
-  int shm_segsz;                       /* size of segment in bytes */
-  __time_t shm_atime;                  /* time of last shmat() */
-  __time_t shm_dtime;                  /* time of last shmdt() */
-  __time_t shm_ctime;                  /* time of last change by shmctl() */
-  long shm_cpid;                       /* pid of creator */
-  long shm_lpid;                       /* pid of last shmop */
-  unsigned short int shm_nattch;       /* number of current attaches */
-  unsigned short int __shm_npages;     /* size of segment (pages) */
-  unsigned long int *__shm_pages;      /* array of ptrs to frames -> SHMMAX */
-  struct vm_area_struct *__attaches;   /* descriptors for attaches */
-};
+  {
+    struct ipc_perm shm_perm;          /* operation permission struct */
+    int shm_segsz;                     /* size of segment in bytes */
+    __time_t shm_atime;                        /* time of last shmat() */
+    __time_t shm_dtime;                        /* time of last shmdt() */
+    __time_t shm_ctime;                        /* time of last change by shmctl() */
+    long int shm_cpid;                 /* pid of creator */
+    long int shm_lpid;                 /* pid of last shmop */
+    unsigned short int shm_nattch;     /* number of current attaches */
+    unsigned short int __shm_npages;   /* size of segment (pages) */
+    unsigned long int *__shm_pages;    /* array of ptrs to frames -> SHMMAX */
+    struct vm_area_struct *__attaches; /* descriptors for attaches */
+  };
 
 #ifdef __USE_MISC
 
 /* ipcs ctl commands */
-#define SHM_STAT       13
-#define SHM_INFO       14
+# define SHM_STAT      13
+# define SHM_INFO      14
 
 /* shm_mode upper byte flags */
-#define        SHM_DEST        01000   /* segment will be destroyed on last detach */
-#define SHM_LOCKED      02000   /* segment will not be swapped */
+# define SHM_DEST      01000   /* segment will be destroyed on last detach */
+# define SHM_LOCKED    02000   /* segment will not be swapped */
 
 struct shminfo
-{
-  int shmmax;
-  int shmmin;
-  int shmmni;
-  int shmseg;
-  int shmall;
-};
+  {
+    int shmmax;
+    int shmmin;
+    int shmmni;
+    int shmseg;
+    int shmall;
+  };
 
 struct shm_info
-{
-  int   used_ids;
-  ulong shm_tot;       /* total allocated shm */
-  ulong shm_rss;       /* total resident shm */
-  ulong shm_swp;       /* total swapped shm */
-  ulong swap_attempts;
-  ulong swap_successes;
-};
+  {
+    int   used_ids;
+    ulong shm_tot;     /* total allocated shm */
+    ulong shm_rss;     /* total resident shm */
+    ulong shm_swp;     /* total swapped shm */
+    ulong swap_attempts;
+    ulong swap_successes;
+  };
 
 #endif /* __USE_MISC */
-
-__END_DECLS
-
-#endif /* bits/shm_buf.h */
index d6f70f2a2e851ee6fe1465b3c6a048cf6a218ca7..71ca8846ebf664dfded76e4a816e84d5981af1dd 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
+#endif
+
 /* Structure describing the action to be taken when a signal arrives.  */
 struct sigaction
   {
@@ -33,7 +37,7 @@ struct sigaction
     /* Restore handler.  */
     void (*sa_restorer) __P ((void));
 
-#if (_MIPS_ISA == _MIPS_ISA_MIPS1) || (_MIPS_ISA == _MIPS_ISA_MIPS2)
+#if _MIPS_ISA == _MIPS_ISA_MIPS1 || _MIPS_ISA == _MIPS_ISA_MIPS2
     int sa_resv[1];
 #endif
   };
index 02f1d22a6ca2383ad826ca0cd61dca76907c1dc6..f56f6269dbc3adef7e42853745f51560a2c6d7a4 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef _SYS_SOCKET_H
-#error "Never include <bits/socket.h> directly; use <sys/socket.h> instead."
+#ifndef _SYS_STAT_H
+# error "Never include <bits/socket.h> directly; use <sys/socket.h> instead."
 #endif
 
-
-#include <features.h>
-
 #define        __need_size_t
 #define __need_NULL
 #include <stddef.h>
 
-__BEGIN_DECLS
-
 /* Type for length arguments in socket calls.  */
 typedef unsigned int socklen_t;
 
@@ -173,5 +168,3 @@ struct linger
     int l_onoff;               /* Nonzero to linger on close.  */
     int l_linger;              /* Time to linger.  */
   };
-
-__END_DECLS
index f27a75eb9a810d5b9cde4e1ad75a719b1e6149b6..cd586d4433e9746f3d8fc00961d0974feb2eef3a 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/stat.h> instead.
- */
-
-#ifndef _BITS_STAT_H
-#define _BITS_STAT_H   1
+#ifndef _SYS_STAT_H
+# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
+#endif
 
 /* Versions of the `struct stat' data structure.  */
 #define _STAT_VER_LINUX_OLD    1
@@ -140,5 +137,3 @@ struct stat64
 #define        __S_IREAD       0400    /* Read by owner.  */
 #define        __S_IWRITE      0200    /* Write by owner.  */
 #define        __S_IEXEC       0100    /* Execute by owner.  */
-
-#endif /* bits/stat.h */
index 2727b272579124de24934c5404e0c0d0a179a16a..36d9996a6947cb3fc14ec2d2ee3287db8c1ed493 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/statfs.h> instead.
- */
-
-#ifndef _BITS_STATFS_H
-#define _BITS_STATFS_H
+#ifndef _SYS_STATFS_H
+# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
+#endif
 
 #include <bits/types.h>  /* for __fsid_t and __fsblkcnt_t*/
 
@@ -70,5 +67,3 @@ struct statfs64
     long int f_spare[6];
   };
 #endif
-
-#endif /* bits/statfs.h */
index c8a24694d9a8f8aefec0fb0aff1b08bb2a175743..de21ee1775a5ffe62b04fd46eacb96d6144c10f2 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <termios.h> instead.
- */
-
-
-#ifndef _BITS_TERMIOS_H
-#define _BITS_TERMIOS_H 1
+#ifndef _TERMIOS_H
+# error "Never include <bits/termios.h> directly; use <termios.h> instead."
+#endif
 
 typedef unsigned char  cc_t;
 typedef unsigned int   speed_t;
 typedef unsigned int   tcflag_t;
 
 
-#if defined __USE_BSD
+#ifdef __USE_BSD
 
 struct sgttyb
   {
@@ -83,10 +79,10 @@ struct termios
 #define VKILL           3              /* Kill-line character [ICANON].  */
 #define VMIN            4              /* Minimum number of bytes read at once [!ICANON].  */
 #define VTIME           5              /* Time-out value (tenths of a second) [!ICANON].  */
-#if defined (__USE_BSD)
-#define VEOL2           6              /* Second EOL character [ICANON].  */
+#ifdef __USE_BSD
+# define VEOL2          6              /* Second EOL character [ICANON].  */
 /* The next two are guesses ... */
-#define VSWTC           7              /* ??? */
+# define VSWTC          7              /* ??? */
 #endif
 #define VSWTCH         VSWTC
 #define VSTART          8              /* Start (X-ON) character [IXON, IXOFF].  */
@@ -96,17 +92,17 @@ struct termios
 /*
  * VDSUSP is not supported
  */
-#if defined (__USE_BSD)
+#if defined __USE_BSD
 #define VDSUSP         11              /* Delayed suspend character [ISIG].  */
 #endif
 #endif
-#if defined (__USE_BSD)
-#define VREPRINT       12              /* Reprint-line character [ICANON].  */
+#ifdef __USE_BSD
+# define VREPRINT      12              /* Reprint-line character [ICANON].  */
 #endif
-#if defined (__USE_BSD)
-#define VDISCARD       13              /* Discard character [IEXTEN].  */
-#define VWERASE                14              /* Word-erase character [ICANON].  */
-#define VLNEXT         15              /* Literal-next character [IEXTEN].  */
+#ifdef __USE_BSD
+# define VDISCARD      13              /* Discard character [IEXTEN].  */
+# define VWERASE       14              /* Word-erase character [ICANON].  */
+# define VLNEXT                15              /* Literal-next character [IEXTEN].  */
 #endif
 #define VEOF           16              /* End-of-file character [ICANON].  */
 #define VEOL           17              /* End-of-line character [ICANON].  */
@@ -121,51 +117,51 @@ struct termios
 #define INLCR  0000100         /* Map NL to CR on input.  */
 #define IGNCR  0000200         /* Ignore CR.  */
 #define ICRNL  0000400         /* Map CR to NL on input.  */
-#if defined (__USE_BSD)
-#define IUCLC  0001000         /* Map upper case to lower case on input.  */
+#ifdef __USE_BSD
+# define IUCLC 0001000         /* Map upper case to lower case on input.  */
 #endif
 #define IXON   0002000         /* Enable start/stop output control.  */
-#if defined (__USE_BSD)
-#define IXANY  0004000         /* Any character will restart after stop.  */
+#ifdef __USE_BSD
+# define IXANY 0004000         /* Any character will restart after stop.  */
 #endif
 #define IXOFF  0010000         /* Enable start/stop input control.  */
-#if defined (__USE_BSD)
-#define IMAXBEL        0020000         /* Ring bell when input queue is full.  */
+#ifdef __USE_BSD
+# define IMAXBEL 0020000       /* Ring bell when input queue is full.  */
 #endif
 
 /* c_oflag bits */
 #define OPOST  0000001         /* Perform output processing.  */
-#if defined (__USE_BSD)
-#define OLCUC  0000002         /* Map lower case to upper case on output.  */
-#define ONLCR  0000004         /* Map NL to CR-NL on output.  */
-#define OCRNL  0000010
-#define ONOCR  0000020
-#define ONLRET 0000040
-#define OFILL  0000100
-#define OFDEL  0000200
-#define NLDLY  0000400
-#define   NL0  0000000
-#define   NL1  0000400
-#define CRDLY  0003000
-#define   CR0  0000000
-#define   CR1  0001000
-#define   CR2  0002000
-#define   CR3  0003000
-#define TABDLY 0014000
-#define   TAB0 0000000
-#define   TAB1 0004000
-#define   TAB2 0010000
-#define   TAB3 0014000
-#define   XTABS        0014000
-#define BSDLY  0020000
-#define   BS0  0000000
-#define   BS1  0020000
-#define VTDLY  0040000
-#define   VT0  0000000
-#define   VT1  0040000
-#define FFDLY  0100000
-#define   FF0  0000000
-#define   FF1  0100000
+#ifdef __USE_BSD
+# define OLCUC 0000002         /* Map lower case to upper case on output.  */
+# define ONLCR 0000004         /* Map NL to CR-NL on output.  */
+# define OCRNL 0000010
+# define ONOCR 0000020
+# define ONLRET        0000040
+# define OFILL 0000100
+# define OFDEL 0000200
+# define NLDLY 0000400
+# define   NL0 0000000
+# define   NL1 0000400
+# define CRDLY 0003000
+# define   CR0 0000000
+# define   CR1 0001000
+# define   CR2 0002000
+# define   CR3 0003000
+# define TABDLY        0014000
+# define   TAB0        0000000
+# define   TAB1        0004000
+# define   TAB2        0010000
+# define   TAB3        0014000
+# define  XTABS        0014000
+# define BSDLY 0020000
+# define   BS0 0000000
+# define   BS1 0020000
+# define VTDLY 0040000
+# define   VT0 0000000
+# define   VT1 0040000
+# define FFDLY 0100000
+# define   FF0 0000000
+# define   FF1 0100000
 /*
 #define PAGEOUT ???
 #define WRAP    ???
@@ -203,14 +199,14 @@ struct termios
 #define PARODD 0001000         /* Odd parity instead of even.  */
 #define HUPCL  0002000         /* Hang up on last close.  */
 #define CLOCAL 0004000         /* Ignore modem status lines.  */
-#if defined (__USE_BSD)
-#define CBAUDEX 0010000
-#define  B57600  0010001
-#define  B115200 0010002
-#define  B230400 0010003
-#define  B460800 0010004
-#define CIBAUD   002003600000  /* input baud rate (not used) */
-#define CRTSCTS          020000000000          /* flow control */
+#ifdef __USE_BSD
+# define CBAUDEX  0010000
+# define  B57600  0010001
+# define  B115200 0010002
+# define  B230400 0010003
+# define  B460800 0010004
+# define CIBAUD          002003600000  /* input baud rate (not used) */
+# define CRTSCTS  020000000000         /* flow control */
 #endif
 
 /* c_lflag bits */
@@ -223,14 +219,14 @@ struct termios
 #define ECHONL 0000100         /* Echo NL even if ECHO is off.  */
 #define NOFLSH 0000200         /* Disable flush after interrupt.  */
 #define IEXTEN 0000400         /* Enable DISCARD and LNEXT.  */
-#if defined (__USE_BSD)
-#define ECHOCTL        0001000         /* Echo control characters as ^X.  */
-#define ECHOPRT        0002000         /* Hardcopy visual erase.  */
-#define ECHOKE 0004000         /* Visual erase for KILL.  */
+#ifdef __USE_BSD
+# define ECHOCTL 0001000       /* Echo control characters as ^X.  */
+# define ECHOPRT 0002000       /* Hardcopy visual erase.  */
+# define ECHOKE         0004000        /* Visual erase for KILL.  */
 #endif
 #define FLUSHO 0020000
-#if defined (__USE_BSD)
-#define PENDIN 0040000         /* Retype pending input (state).  */
+#ifdef __USE_BSD
+# define PENDIN        0040000         /* Retype pending input (state).  */
 #endif
 #define TOSTOP 0100000         /* Send SIGTTOU for background output.  */
 #define ITOSTOP        TOSTOP
@@ -256,5 +252,3 @@ struct termios
 
 #define _IOT_termios /* Hurd ioctl type field.  */ \
   _IOT (_IOTS (cflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)
-
-#endif /* bits/termios.h */
index 5fcef0fb8cdabd3a525d4dbfb9da9ee991631ee1..a7b268d0f8730293a0b134190c93b760e45e3132 100644 (file)
  * Never include this file directly; use <time.h> instead.
  */
 
-#ifdef __need_timeval
-# undef __need_timeval
-# ifndef _STRUCT_TIMEVAL
-#  define _STRUCT_TIMEVAL      1
-/* A time value that is accurate to the nearest
-   microsecond but also has a range of years.  */
-struct timeval
-  {
-    long tv_sec;                       /* Seconds.  */
-    long tv_usec;              /* Microseconds.  */
-  };
-# endif        /* struct timeval */
-#endif /* need timeval */
-
-
-#ifndef _BITS_TIME_H
-#define _BITS_TIME_H   1
+#ifndef __need_timeval
+# ifndef _BITS_TIME_H
+#  define _BITS_TIME_H 1
 
 /* ISO/IEC 9899:1990 7.12.1: <time.h>
    The macro `CLOCKS_PER_SEC' is the number per second of the value
@@ -45,10 +31,22 @@ struct timeval
 /* CAE XSH, Issue 4, Version 2: <time.h>
    The value of CLOCKS_PER_SEC is required to be 1 million on all
    XSI-conformant systems. */
-# define CLOCKS_PER_SEC  1000000
+#  define CLOCKS_PER_SEC  1000000
 
 /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system.  */
-# define CLK_TCK 100           /* XXX not correct for all systems.  */
+#  define CLK_TCK 100          /* XXX not correct for all systems.  */
 
-#endif  /* bits/time.h */
+# endif  /* bits/time.h */
+#endif
+
+#ifndef _STRUCT_TIMEVAL
+# define _STRUCT_TIMEVAL       1
+/* A time value that is accurate to the nearest
+   microsecond but also has a range of years.  */
+struct timeval
+  {
+    long int tv_sec;           /* Seconds.  */
+    long int tv_usec;          /* Microseconds.  */
+  };
+#endif /* struct timeval */
index 732befc63073fab5047d39039ff1e647c97ebe62..96f14d17af6c881cc4e37a1cb3c96a3ae81bf4ee 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
+#endif
+
 /* Structure describing the action to be taken when a signal arrives.  */
 struct sigaction
   {
index 3af9377ded3875f118386d03fc86760fb34fe241..3c549dd4b36a08d49eff7e08c7718e62b86016d1 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _UNISTD_H
+# error "Never use <bits/confname.h> directly; include <unistd.h> instead."
+#endif
+
 /* Values for the NAME argument to `pathconf' and `fpathconf'.  */
 #define _PC_LINK_MAX           0
 #define _PC_MAX_CANON          1
index f66877da0b171da40a6272adb49229d0cc3d1a7a..eaa52bee2fa8a8eecd9d7c16f61f8b66da625772 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
+#endif
+
 /* Structure describing the action to be taken when a signal arrives.  */
 struct sigaction
   {
index ce3ab5e60cdb95600315d9b3b1cd147b9ac76fce..07d55549217e78b58904c7bb851a6bc9b29e59f3 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef _SIGNAL_H
+# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
+#endif
+
 /* Structure describing the action to be taken when a signal arrives.  */
 struct sigaction
   {
index 9dcc618068900006ff0d3d0f6926b265b7c6901d..bf2c0a8da58f7564c06c78153f95ba20872a85ea 100644 (file)
@@ -1 +1,23 @@
+/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _UTSNAME_H
+# error "Never include <bits/utsname.h> directly; use <sys/utsname.h> instead."
+#endif
+
 #define _UTSNAME_LENGTH 257
index 29ff5663428f6b270d0db5762044ad00ea358c03..e99dc00511e33249db6cf355169cb162764d597a 100644 (file)
@@ -19,7 +19,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #ifndef _SYS_WAIT_H
-#error "Never use <bits/waitflags.h> directly; include <sys/wait.h> instead."
+# error "Never include <bits/waitflags.h> directly; use <sys/wait.h> instead."
 #endif
 
 
@@ -28,7 +28,7 @@
 #define        WUNTRACED       4       /* Report status of stopped children.  */
 
 #ifdef __USE_SVID
-#define WEXITED                1       /* Look for children that have exited.  */
-#define WTRAPPED       2       /* Look for processes that stopped
+# define WEXITED       1       /* Look for children that have exited.  */
+# define WTRAPPED      2       /* Look for processes that stopped
                                   while tracing.  */
 #endif
index f3f447303224c8c99299d5fd9125f6b88da144ed..104ad2f24702d12c87d4e1b0f79669395dbdcc05 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Brendan Kehoe (brendan@zen.org).
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/stat.h> instead.
- */
-
-#ifndef        _BITS_STAT_H
-#define        _BITS_STAT_H    1
+#ifndef _SYS_STAT_H
+# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
+#endif
 
 #include <bits/types.h>
 
 /* Structure describing file characteristics.  */
 struct stat
   {
-    unsigned long st_dev;      /* Device.  */
-    long st_filler1[3];
-    unsigned long st_ino;              /* File serial number.          */
-    unsigned long st_mode;     /* File mode.  */
-    unsigned long st_nlink;    /* Link count.  */
-    long st_uid;               /* User ID of the file's owner. */
-    long st_gid;               /* Group ID of the file's group.*/
-    unsigned long st_rdev;     /* Device number, if device.  */
-    long st_filler2[2];
-
-    long st_size;              /* Size of file, in bytes.  */
+    unsigned long itn st_dev;  /* Device.  */
+    long int st_filler1[3];
+    unsigned long int st_ino;  /* File serial number.          */
+    unsigned long int st_mode; /* File mode.  */
+    unsigned long int st_nlink;        /* Link count.  */
+    long int st_uid;           /* User ID of the file's owner. */
+    long int st_gid;           /* Group ID of the file's group.*/
+    unsigned long int st_rdev; /* Device number, if device.  */
+    long int st_filler2[2];
+
+    long int st_size;          /* Size of file, in bytes.  */
     /* SVR4 added this extra long to allow for expansion of off_t.  */
-    long st_filler3;
+    long int st_filler3;
 
-    long st_atime;             /* Time of last access.  */
-    unsigned long st_atime_usec;
-    long st_mtime;             /* Time of last modification.  */
-    unsigned long st_mtime_usec;
-    long st_ctime;             /* Time of last status change.  */
-    unsigned long st_ctime_usec;
+    long int st_atime;         /* Time of last access.  */
+    unsigned long int st_atime_usec;
+    long int st_mtime;         /* Time of last modification.  */
+    unsigned long int st_mtime_usec;
+    long int st_ctime;         /* Time of last status change.  */
+    unsigned long int st_ctime_usec;
 
-    long st_blksize;           /* Optimal block size for I/O.  */
+    long int st_blksize;       /* Optimal block size for I/O.  */
 #define        _STATBUF_ST_BLKSIZE     /* Tell code we have this member.  */
 
     __blkcnt_t st_blocks;      /* Number of 512-byte blocks allocated.  */
     char st_fstype[16];                /* The type of this filesystem.  */
     int st_aclcnt;
-    unsigned long st_level;
-    unsigned long st_flags;
-    unsigned long st_cmwlevel;
-    long st_filler4[4];
+    unsigned long int st_level;
+    unsigned long int st_flags;
+    unsigned long int st_cmwlevel;
+    long int st_filler4[4];
   };
 
 /* Encoding of the file mode.  */
@@ -90,5 +86,3 @@ struct stat
 #define        __S_IREAD       0400    /* Read by owner.  */
 #define        __S_IWRITE      0200    /* Write by owner.  */
 #define        __S_IEXEC       0100    /* Execute by owner.  */
-
-#endif /* bits/stat.h */
index 82ab37fd93152fd338c17f89ca1706a49a84f6d8..c6048a9277dcfd21dbd3c9bf05d1427ee185fba5 100644 (file)
@@ -1,6 +1,5 @@
 /* Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Brendan Kehoe (brendan@zen.org).
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-/*
- * Never include this file directly; use <sys/stat.h> instead.
- */
-
-#ifndef        _BITS_STAT_H
-#define        _BITS_STAT_H    1
+#ifndef _SYS_STAT_H
+# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
+#endif
 
 #include <bits/types.h>
 
@@ -30,7 +26,7 @@
 struct stat
   {
     unsigned long int st_dev;
-    long st_filler1[3];
+    long int st_filler1[3];
     __ino_t st_ino;            /* File serial number.          */
     unsigned long int st_mode; /* File mode.  */
     /* This is unsigned long instead of __nlink_t, since SVR4 has
@@ -39,11 +35,11 @@ struct stat
     __uid_t st_uid;            /* User ID of the file's owner. */
     __gid_t st_gid;            /* Group ID of the file's group.*/
     unsigned long int st_rdev; /* Device number, if device.  */
-    long st_filler2[2];
+    long int st_filler2[2];
 
     __off_t st_size;           /* Size of file, in bytes.  */
     /* SVR4 added this extra long to allow for expansion of off_t.  */
-    long st_filler3;
+    long int st_filler3;
 
     __time_t st_atime;         /* Time of last access.  */
     unsigned long int st_atime_usec;
@@ -55,9 +51,9 @@ struct stat
     __blkcnt_t st_blksize;     /* Optimal block size for I/O.  */
 #define        _STATBUF_ST_BLKSIZE     /* Tell code we have this member.  */
 
-    long st_blocks;            /* Number of 512-byte blocks allocated.  */
+    long int st_blocks;                /* Number of 512-byte blocks allocated.  */
     char st_fstype[16];
-    long st_filler4[8];
+    long int st_filler4[8];
   };
 
 /* Encoding of the file mode.  */
@@ -83,5 +79,3 @@ struct stat
 #define        __S_IREAD       0400    /* Read by owner.  */
 #define        __S_IWRITE      0200    /* Write by owner.  */
 #define        __S_IEXEC       0100    /* Execute by owner.  */
-
-#endif /* bits/stat.h */
index 74027048648bba270e2b07a999437d8654976d42..29d2d87b267c6177453df7b6f2c61a0c6548f168 100644 (file)
@@ -1 +1,34 @@
-#include <sysdeps/unix/bsd/sun/sparc/bits/sigcontext.h>
+/* Structure describing state saved while handling a signal.  Sparc version.
+   Copyright (C) 1992, 1994, 1997 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _SIGNAL_H
+# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
+#endif
+
+struct sigcontext
+  {
+    int sc_onstack;
+    __sigset_t sc_mask;
+
+#define        SPARC_MAXREGWINDOW 31   /* Maximum usable register windows.  */
+    int sc_sp, sc_pc, sc_npc, sc_psr, sc_g1, sc_o0;
+    int sc_wbcnt;              /* Number of outstanding windows.  */
+    __ptr_t sc_spbuf[SPARC_MAXREGWINDOW]; /* SP's for each window.  */
+    int sc_wbuf[SPARC_MAXREGWINDOW][16]; /* Saved register windows.  */
+  };
index f323049d8373672ca900b3693dc8ffefc56663f7..74930be56abeb3d560a7972deb64017667481723 100644 (file)
@@ -1,6 +1,6 @@
 /* `HUGE_VAL' constant for Vaxen.
    Used by <stdlib.h> and <math.h> functions for overflow.
-   Copyright (C) 1992, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,7 +19,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #ifndef _MATH_H
-#error "Never use <bits/huge_val.h> directly; include <math.h> instead."
+# error "Never use <bits/huge_val.h> directly; include <math.h> instead."
 #endif
 
 
index 7adecd9a173be41156ad8cc7b2e9362cbd1c1e7b..10ca170a2a19efeca24df4f9ee82a691bf39ae58 100644 (file)
@@ -1,5 +1,9 @@
 /* Define the machine-dependent type `jmp_buf'.  Vax version.  */
 
+#ifndef _SETJMP_H
+# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
+#endif
+
 typedef struct
   {
     PTR __fp;
This page took 0.142105 seconds and 5 git commands to generate.