Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,

and don't include <sys/file.h>).
This commit is contained in:
Jim Meyering committed 2005-07-01 20:55:29 +00:00
1 parent ceaa11b643
commit 58076430c3
11 files changed
+11 -39

No files matched your search

+1 -5
View File
@@ -30,11 +30,7 @@
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_FCNTL_H
# include <fcntl.h>
#else
# include <sys/file.h>
#endif
#include <fcntl.h>
#include <errno.h>
/* Provide a more-closely POSIX-conforming version of chown on
+1 -3
View File
@@ -27,9 +27,7 @@
# include <unistd.h>
#endif
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <fcntl.h>
#ifndef FD_CLOEXEC
# define FD_CLOEXEC 1
+1 -3
View File
@@ -23,9 +23,7 @@
#include "unistd-safer.h"
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <fcntl.h>
#if HAVE_UNISTD_H
# include <unistd.h>
+1 -3
View File
@@ -23,9 +23,7 @@
#include <errno.h>
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <fcntl.h>
#if HAVE_UNISTD_H
# include <unistd.h>
+1 -3
View File
@@ -60,9 +60,7 @@
# include <sys/filsys.h> /* SVR2 */
#endif
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <fcntl.h>
#if HAVE_SYS_STATFS_H
# include <sys/statfs.h>
+1 -3
View File
@@ -30,9 +30,7 @@
#include <stdbool.h>
#include <stddef.h>
#if HAVE_FCNTL_H
# include <fcntl.h> /* For AT_FDCWD on Solaris 9. */
#endif
#include <fcntl.h> /* For AT_FDCWD on Solaris 9. */
#ifndef __set_errno
# define __set_errno(val) (errno = (val))
+1 -5
View File
@@ -447,11 +447,7 @@
# include <sys/dg_sys_info.h>
# endif
# if defined (HAVE_FCNTL_H) || defined (_POSIX_VERSION)
# include <fcntl.h>
# else
# include <sys/file.h>
# endif
# include <fcntl.h>
# include "unistd-safer.h"
+1 -3
View File
@@ -35,9 +35,7 @@ char *strstr ();
#include <errno.h>
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <fcntl.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
+1 -3
View File
@@ -17,9 +17,7 @@
/* written by Jim Meyering */
#if HAVE_FCNTL_H
# include <fcntl.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
+1 -5
View File
@@ -33,11 +33,7 @@
# include <unistd.h>
#endif
#if HAVE_FCNTL_H
# include <fcntl.h>
#else
# include <sys/file.h>
#endif
#include <fcntl.h>
#include <errno.h>
+1 -3
View File
@@ -47,9 +47,7 @@
#include <stdlib.h>
#include <string.h>
#if HAVE_FCNTL_H || _LIBC
# include <fcntl.h>
#endif
#include <fcntl.h>
#if HAVE_SYS_TIME_H || _LIBC
# include <sys/time.h>