diff options
Diffstat (limited to 'sysdeps/unix/bsd/bsd4.4')
-rw-r--r-- | sysdeps/unix/bsd/bsd4.4/bits/dirent.h (renamed from sysdeps/unix/bsd/bsd4.4/direntry.h) | 0 | ||||
-rw-r--r-- | sysdeps/unix/bsd/bsd4.4/bits/errno.h (renamed from sysdeps/unix/bsd/bsd4.4/errnos.h) | 0 | ||||
-rw-r--r-- | sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (renamed from sysdeps/unix/bsd/bsd4.4/fcntlbits.h) | 11 | ||||
-rw-r--r-- | sysdeps/unix/bsd/bsd4.4/bits/ioctls.h (renamed from sysdeps/unix/bsd/bsd4.4/ioctls.h) | 0 | ||||
-rw-r--r-- | sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h (renamed from sysdeps/unix/bsd/bsd4.4/sockaddrcom.h) | 10 | ||||
-rw-r--r-- | sysdeps/unix/bsd/bsd4.4/tcgetattr.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/bsd/bsd4.4/tcsetattr.c | 2 |
7 files changed, 13 insertions, 12 deletions
diff --git a/sysdeps/unix/bsd/bsd4.4/direntry.h b/sysdeps/unix/bsd/bsd4.4/bits/dirent.h index b9e0d7277e..b9e0d7277e 100644 --- a/sysdeps/unix/bsd/bsd4.4/direntry.h +++ b/sysdeps/unix/bsd/bsd4.4/bits/dirent.h diff --git a/sysdeps/unix/bsd/bsd4.4/errnos.h b/sysdeps/unix/bsd/bsd4.4/bits/errno.h index c2a9c08413..c2a9c08413 100644 --- a/sysdeps/unix/bsd/bsd4.4/errnos.h +++ b/sysdeps/unix/bsd/bsd4.4/bits/errno.h diff --git a/sysdeps/unix/bsd/bsd4.4/fcntlbits.h b/sysdeps/unix/bsd/bsd4.4/bits/fcntl.h index 3ab2bf027d..c00a0e80dd 100644 --- a/sysdeps/unix/bsd/bsd4.4/fcntlbits.h +++ b/sysdeps/unix/bsd/bsd4.4/bits/fcntl.h @@ -17,9 +17,9 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef _FCNTLBITS_H - -#define _FCNTLBITS_H 1 +#ifndef _FCNTL_H +#error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead." +#endif /* File access modes for `open' and `fcntl'. */ @@ -94,7 +94,7 @@ #define FD_CLOEXEC 1 /* Close on exec. */ -#include <gnu/types.h> +#include <bits/types.h> /* The structure describing an advisory lock. This is the type of the third argument to `fcntl' for the F_GETLK, F_SETLK, and F_SETLKW requests. */ @@ -111,6 +111,3 @@ struct flock #define F_RDLCK 1 /* Read lock. */ #define F_WRLCK 2 /* Write lock. */ #define F_UNLCK 3 /* Remove lock. */ - - -#endif /* fcntlbits.h */ diff --git a/sysdeps/unix/bsd/bsd4.4/ioctls.h b/sysdeps/unix/bsd/bsd4.4/bits/ioctls.h index 6c351f46a6..6c351f46a6 100644 --- a/sysdeps/unix/bsd/bsd4.4/ioctls.h +++ b/sysdeps/unix/bsd/bsd4.4/bits/ioctls.h diff --git a/sysdeps/unix/bsd/bsd4.4/sockaddrcom.h b/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h index 87da37df90..d70dfe4031 100644 --- a/sysdeps/unix/bsd/bsd4.4/sockaddrcom.h +++ b/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h @@ -17,8 +17,12 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef _SOCKADDRCOM_H -#define _SOCKADDRCOM_H 1 +/* + * Never include this file directly; use <sys/socket.h> instead. + */ + +#ifndef _BITS_SOCKADDR_H +#define _BITS_SOCKADDR_H 1 /* POSIX.1g specifies this type name for the `sa_family' member. */ @@ -35,4 +39,4 @@ typedef unsigned char sa_family_t; #define __SOCKADDR_COMMON_SIZE (2 * sizeof (unsigned char)) -#endif /* sockaddrcom.h */ +#endif /* bits/sockaddr.h */ diff --git a/sysdeps/unix/bsd/bsd4.4/tcgetattr.c b/sysdeps/unix/bsd/bsd4.4/tcgetattr.c index d47443a335..29c7e28b8e 100644 --- a/sysdeps/unix/bsd/bsd4.4/tcgetattr.c +++ b/sysdeps/unix/bsd/bsd4.4/tcgetattr.c @@ -19,7 +19,7 @@ #include <stddef.h> #include <termios.h> -/* These are defined both in termbits.h and in ioctls.h. +/* These are defined both in <bits/termios.h> and in <bits/ioctls.h>. They should have the same values, but perhaps not written the same way. */ #undef ECHO #undef MDMBUF diff --git a/sysdeps/unix/bsd/bsd4.4/tcsetattr.c b/sysdeps/unix/bsd/bsd4.4/tcsetattr.c index 7c09f90f0e..2e4b00b68d 100644 --- a/sysdeps/unix/bsd/bsd4.4/tcsetattr.c +++ b/sysdeps/unix/bsd/bsd4.4/tcsetattr.c @@ -20,7 +20,7 @@ #include <stddef.h> #include <termios.h> -/* These are defined both in termbits.h and in ioctls.h. +/* These are defined both in <bits/termios.h> and in <bits/ioctls.h>. They should have the same values, but perhaps not written the same way. */ #undef ECHO #undef MDMBUF |