version 1.1.1.2, 2012/05/29 09:29:44
|
version 1.1.1.3, 2021/03/17 13:38:46
|
Line 1
|
Line 1
|
# unistd_h.m4 serial 56 | # unistd_h.m4 serial 74 |
dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. | dnl Copyright (C) 2006-2019 Free Software Foundation, Inc. |
dnl This file is free software; the Free Software Foundation |
dnl This file is free software; the Free Software Foundation |
dnl gives unlimited permission to copy and/or distribute it, |
dnl gives unlimited permission to copy and/or distribute it, |
dnl with or without modifications, as long as this notice is preserved. |
dnl with or without modifications, as long as this notice is preserved. |
Line 11 AC_DEFUN([gl_UNISTD_H],
|
Line 11 AC_DEFUN([gl_UNISTD_H],
|
dnl Use AC_REQUIRE here, so that the default behavior below is expanded |
dnl Use AC_REQUIRE here, so that the default behavior below is expanded |
dnl once only, before all statements that occur in other macros. |
dnl once only, before all statements that occur in other macros. |
AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) |
AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) |
AC_REQUIRE([AC_C_INLINE]) |
|
|
|
gl_CHECK_NEXT_HEADERS([unistd.h]) |
gl_CHECK_NEXT_HEADERS([unistd.h]) |
if test $ac_cv_header_unistd_h = yes; then |
if test $ac_cv_header_unistd_h = yes; then |
Line 21 AC_DEFUN([gl_UNISTD_H],
|
Line 20 AC_DEFUN([gl_UNISTD_H],
|
fi |
fi |
AC_SUBST([HAVE_UNISTD_H]) |
AC_SUBST([HAVE_UNISTD_H]) |
|
|
|
dnl Ensure the type pid_t gets defined. |
|
AC_REQUIRE([AC_TYPE_PID_T]) |
|
|
|
dnl Determine WINDOWS_64_BIT_OFF_T. |
|
AC_REQUIRE([gl_TYPE_OFF_T]) |
|
|
dnl Check for declarations of anything we want to poison if the |
dnl Check for declarations of anything we want to poison if the |
dnl corresponding gnulib module is not in use. |
dnl corresponding gnulib module is not in use. |
gl_WARN_ON_USE_PREPARE([[#include <unistd.h> | gl_WARN_ON_USE_PREPARE([[ |
| #if HAVE_UNISTD_H |
| # include <unistd.h> |
| #endif |
/* Some systems declare various items in the wrong headers. */ |
/* Some systems declare various items in the wrong headers. */ |
#if !(defined __GLIBC__ && !defined __UCLIBC__) |
#if !(defined __GLIBC__ && !defined __UCLIBC__) |
# include <fcntl.h> |
# include <fcntl.h> |
# include <stdio.h> |
# include <stdio.h> |
# include <stdlib.h> |
# include <stdlib.h> |
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ | # if defined _WIN32 && ! defined __CYGWIN__ |
# include <io.h> |
# include <io.h> |
# endif |
# endif |
#endif |
#endif |
]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat | ]], [chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat |
fsync ftruncate getcwd getdomainname getdtablesize getgroups | fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups |
gethostname getlogin getlogin_r getpagesize getusershell setusershell | gethostname getlogin getlogin_r getpagesize getpass |
endusershell group_member lchown link linkat lseek pipe pipe2 pread pwrite | getusershell setusershell endusershell |
readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat | group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite |
usleep]) | readlink readlinkat rmdir sethostname sleep symlink symlinkat |
| truncate ttyname_r unlink unlinkat usleep]) |
]) |
]) |
|
|
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], |
AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], |
Line 52 AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
|
Line 61 AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
|
|
|
AC_DEFUN([gl_UNISTD_H_DEFAULTS], |
AC_DEFUN([gl_UNISTD_H_DEFAULTS], |
[ |
[ |
|
GNULIB_CHDIR=0; AC_SUBST([GNULIB_CHDIR]) |
GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN]) |
GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN]) |
GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE]) |
GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE]) |
|
GNULIB_DUP=0; AC_SUBST([GNULIB_DUP]) |
GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2]) |
GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2]) |
GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3]) |
GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3]) |
GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON]) |
GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON]) |
Line 61 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 72 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT]) |
GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT]) |
GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR]) |
GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR]) |
GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT]) |
GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT]) |
|
GNULIB_FDATASYNC=0; AC_SUBST([GNULIB_FDATASYNC]) |
GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC]) |
GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC]) |
GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE]) |
GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE]) |
GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD]) |
GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD]) |
Line 71 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 83 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN]) |
GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN]) |
GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) |
GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) |
GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE]) |
GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE]) |
|
GNULIB_GETPASS=0; AC_SUBST([GNULIB_GETPASS]) |
GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL]) |
GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL]) |
GNULIB_GROUP_MEMBER=0; AC_SUBST([GNULIB_GROUP_MEMBER]) |
GNULIB_GROUP_MEMBER=0; AC_SUBST([GNULIB_GROUP_MEMBER]) |
|
GNULIB_ISATTY=0; AC_SUBST([GNULIB_ISATTY]) |
GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) |
GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) |
GNULIB_LINK=0; AC_SUBST([GNULIB_LINK]) |
GNULIB_LINK=0; AC_SUBST([GNULIB_LINK]) |
GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT]) |
GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT]) |
Line 85 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 99 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) |
GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) |
GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT]) |
GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT]) |
GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR]) |
GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR]) |
|
GNULIB_SETHOSTNAME=0; AC_SUBST([GNULIB_SETHOSTNAME]) |
GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP]) |
GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP]) |
GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK]) |
GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK]) |
GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT]) |
GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT]) |
|
GNULIB_TRUNCATE=0; AC_SUBST([GNULIB_TRUNCATE]) |
GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R]) |
GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R]) |
GNULIB_UNISTD_H_GETOPT=0; AC_SUBST([GNULIB_UNISTD_H_GETOPT]) |
|
GNULIB_UNISTD_H_NONBLOCKING=0; AC_SUBST([GNULIB_UNISTD_H_NONBLOCKING]) |
GNULIB_UNISTD_H_NONBLOCKING=0; AC_SUBST([GNULIB_UNISTD_H_NONBLOCKING]) |
GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE]) |
GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE]) |
GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK]) |
GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK]) |
Line 104 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 119 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT]) |
HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT]) |
HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR]) |
HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR]) |
HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT]) |
HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT]) |
|
HAVE_FDATASYNC=1; AC_SUBST([HAVE_FDATASYNC]) |
HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC]) |
HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC]) |
HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE]) |
HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE]) |
HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE]) |
HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE]) |
Line 111 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 127 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) |
HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) |
HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN]) |
HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN]) |
HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) |
HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) |
|
HAVE_GETPASS=1; AC_SUBST([HAVE_GETPASS]) |
HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER]) |
HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER]) |
HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN]) |
HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN]) |
HAVE_LINK=1; AC_SUBST([HAVE_LINK]) |
HAVE_LINK=1; AC_SUBST([HAVE_LINK]) |
Line 121 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 138 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE]) |
HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE]) |
HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) |
HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) |
HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT]) |
HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT]) |
|
HAVE_SETHOSTNAME=1; AC_SUBST([HAVE_SETHOSTNAME]) |
HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) |
HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) |
HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK]) |
HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK]) |
HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT]) |
HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT]) |
Line 128 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 146 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP]) |
HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP]) |
HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON]) |
HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON]) |
HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR]) |
HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR]) |
|
HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC]) |
HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME]) |
HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME]) |
|
HAVE_DECL_GETLOGIN=1; AC_SUBST([HAVE_DECL_GETLOGIN]) |
HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) |
HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) |
HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE]) |
HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE]) |
HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL]) |
HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL]) |
|
HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME]) |
|
HAVE_DECL_TRUNCATE=1; AC_SUBST([HAVE_DECL_TRUNCATE]) |
HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R]) |
HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R]) |
HAVE_OS_H=0; AC_SUBST([HAVE_OS_H]) |
HAVE_OS_H=0; AC_SUBST([HAVE_OS_H]) |
HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H]) |
HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H]) |
Line 139 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 161 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE]) |
REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE]) |
REPLACE_DUP=0; AC_SUBST([REPLACE_DUP]) |
REPLACE_DUP=0; AC_SUBST([REPLACE_DUP]) |
REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2]) |
REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2]) |
|
REPLACE_FACCESSAT=0; AC_SUBST([REPLACE_FACCESSAT]) |
REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT]) |
REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT]) |
|
REPLACE_FTRUNCATE=0; AC_SUBST([REPLACE_FTRUNCATE]) |
REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD]) |
REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD]) |
REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME]) |
REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME]) |
|
REPLACE_GETDTABLESIZE=0; AC_SUBST([REPLACE_GETDTABLESIZE]) |
REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R]) |
REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R]) |
REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) |
REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) |
REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) |
REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) |
|
REPLACE_GETPASS=0; AC_SUBST([REPLACE_GETPASS]) |
|
REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY]) |
REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) |
REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) |
REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) |
REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) |
REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT]) |
REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT]) |
Line 153 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
Line 180 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE]) |
REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE]) |
REPLACE_READ=0; AC_SUBST([REPLACE_READ]) |
REPLACE_READ=0; AC_SUBST([REPLACE_READ]) |
REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK]) |
REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK]) |
|
REPLACE_READLINKAT=0; AC_SUBST([REPLACE_READLINKAT]) |
REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR]) |
REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR]) |
REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP]) |
REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP]) |
REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK]) |
REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK]) |
|
REPLACE_SYMLINKAT=0; AC_SUBST([REPLACE_SYMLINKAT]) |
|
REPLACE_TRUNCATE=0; AC_SUBST([REPLACE_TRUNCATE]) |
REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R]) |
REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R]) |
REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK]) |
REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK]) |
REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT]) |
REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT]) |