mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
and don't include <sys/file.h>).
This commit is contained in:
1 parent
ceaa11b643
commit
58076430c3
11 files changed
+11
-39
No files matched your search
+1
-5
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user