* global.h: Move fcntl.h inclusion here. Define O_BINARY.

* mountlist.c: Remove more includes already handled in global.h.
This commit is contained in:
Pavel Roskin 2002-09-23 06:43:22 +00:00
parent c646bbb049
commit c785d4195b
21 changed files with 23 additions and 42 deletions

View File

@ -1,3 +1,8 @@
2002-09-23 Pavel Roskin <proski@gnu.org>
* global.h: Move fcntl.h inclusion here. Define O_BINARY.
* mountlist.c: Remove more includes already handled in global.h.
2002-09-22 Pavel Roskin <proski@gnu.org> 2002-09-22 Pavel Roskin <proski@gnu.org>
* man2hlp.c (handle_alt_font): Implement .BR, .IR, .RB, .RI, .BI * man2hlp.c (handle_alt_font): Implement .BR, .IR, .RB, .RI, .BI

View File

@ -30,7 +30,6 @@
#endif #endif
#include <sys/stat.h> #include <sys/stat.h>
#include <string.h> #include <string.h>
#include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include "global.h" #include "global.h"

View File

@ -28,7 +28,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <string.h> #include <string.h>
#include <fcntl.h> /* open, O_RDWR */
#include <errno.h> #include <errno.h>
#ifdef USE_NETCODE #ifdef USE_NETCODE

View File

@ -22,7 +22,6 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>

View File

@ -25,7 +25,6 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <fcntl.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>

View File

@ -67,7 +67,6 @@
# include <unistd.h> # include <unistd.h>
#endif /* HAVE_UNISTD_H */ #endif /* HAVE_UNISTD_H */
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h>
#include "global.h" #include "global.h"
#include "tty.h" #include "tty.h"

View File

@ -70,7 +70,6 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h>
#include "global.h" #include "global.h"
#include "tty.h" #include "tty.h"

View File

@ -22,7 +22,6 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h> #include <ctype.h>
#include "global.h" #include "global.h"

View File

@ -39,10 +39,6 @@
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_SYS_STATFS_H #ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h> #include <sys/statfs.h>
#endif #endif

View File

@ -32,6 +32,24 @@
# include <sys/param.h> # include <sys/param.h>
#endif #endif
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
/* The O_BINARY definition was taken from gettext */
#if !defined O_BINARY && defined _O_BINARY
/* For MSC-compatible compilers. */
# define O_BINARY _O_BINARY
#endif
#ifdef __BEOS__
/* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
# undef O_BINARY
#endif
/* On reasonable systems, binary I/O is the default. */
#ifndef O_BINARY
# define O_BINARY 0
#endif
#ifdef HAVE_SYS_TIMEB_H #ifdef HAVE_SYS_TIMEB_H
# include <sys/timeb.h> # include <sys/timeb.h>
#endif #endif

View File

@ -39,7 +39,6 @@
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> /* For O_RDWR */
#include <signal.h> #include <signal.h>
/* Program include files */ /* Program include files */

View File

@ -21,26 +21,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h> #include <stdio.h>
#include <fcntl.h>
#ifdef STDC_HEADERS
#include <stdlib.h>
#else
void free (void *ptr);
#endif
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
#include <string.h>
#else
#include <strings.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */ #if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */
#include <sys/mount.h> #include <sys/mount.h>

View File

@ -25,7 +25,6 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include "global.h" #include "global.h"

View File

@ -9,7 +9,6 @@
#include "poptalloca.h" #include "poptalloca.h"
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <fcntl.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -36,7 +36,6 @@
#ifdef HAVE_SYS_IOCTL_H #ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h> /* For ioctl() (surprise, surprise) */ # include <sys/ioctl.h> /* For ioctl() (surprise, surprise) */
#endif #endif
#include <fcntl.h> /* For open(), etc. */
#include <string.h> /* strstr(), strcpy(), etc. */ #include <string.h> /* strstr(), strcpy(), etc. */
#include <signal.h> /* sigaction(), sigprocmask(), etc. */ #include <signal.h> /* sigaction(), sigprocmask(), etc. */
#include <sys/stat.h> /* Required by dir.h & panel.h below */ #include <sys/stat.h> /* Required by dir.h & panel.h below */

View File

@ -35,7 +35,6 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>

View File

@ -20,7 +20,6 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#include "global.h" #include "global.h"
#include "tty.h" #include "tty.h"

View File

@ -27,7 +27,6 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <fcntl.h>
#include <signal.h> /* my_system */ #include <signal.h> /* my_system */
#include <limits.h> /* INT_MAX */ #include <limits.h> /* INT_MAX */
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -24,7 +24,6 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <fcntl.h>
#include <signal.h> /* my_system */ #include <signal.h> /* my_system */
#include <limits.h> /* INT_MAX */ #include <limits.h> /* INT_MAX */
#include <sys/stat.h> #include <sys/stat.h>
@ -757,7 +756,6 @@ putenv (const char *string)
#include <sys/types.h> #include <sys/types.h>
#include <sys/stream.h> /* defines queue_t */ #include <sys/stream.h> /* defines queue_t */
#include <stropts.h> /* defines struct strtdinsert */ #include <stropts.h> /* defines struct strtdinsert */
#include <fcntl.h>
#define SPX_DEVICE "/dev/spx" #define SPX_DEVICE "/dev/spx"
#define S_PIPE_HANDLE_ERRNO 1 #define S_PIPE_HANDLE_ERRNO 1

View File

@ -36,7 +36,6 @@
#ifdef HAVE_MMAP #ifdef HAVE_MMAP
# include <sys/mman.h> # include <sys/mman.h>
#endif #endif
#include <fcntl.h>
#include <ctype.h> /* For toupper() */ #include <ctype.h> /* For toupper() */
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>

View File

@ -30,7 +30,6 @@
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h> #include <ctype.h>
#include "global.h" #include "global.h"
#include "tty.h" #include "tty.h"