17 #ifndef _@GUARD_PREFIX@_UNISTD_H 20 @PRAGMA_SYSTEM_HEADER@
24 #ifdef _GL_INCLUDING_UNISTD_H 31 #@INCLUDE_NEXT@ @NEXT_UNISTD_H@ 38 # define _GL_INCLUDING_UNISTD_H 39 # @INCLUDE_NEXT@ @NEXT_UNISTD_H@ 40 # undef _GL_INCLUDING_UNISTD_H 44 #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ 45 && !defined _GL_INCLUDING_WINSOCK2_H 46 # define _GL_INCLUDING_WINSOCK2_H 47 # include <winsock2.h> 48 # undef _GL_INCLUDING_WINSOCK2_H 51 #if !defined _@GUARD_PREFIX@_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H 52 #define _@GUARD_PREFIX@_UNISTD_H 62 #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ 63 || ((@GNULIB_UNLINK@ || defined GNULIB_POSIXCHECK) \ 64 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) \ 65 || ((@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK) \ 66 && defined __CYGWIN__)) \ 67 && ! defined __GLIBC__ 73 #if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) && defined __CYGWIN__ \ 74 && ! defined __GLIBC__ 85 #if !defined __GLIBC__ && !defined __osf__ 86 # define __need_system_stdlib_h 88 # undef __need_system_stdlib_h 95 #if ((@GNULIB_CHDIR@ || @GNULIB_GETCWD@ || @GNULIB_RMDIR@ \ 96 || defined GNULIB_POSIXCHECK) \ 97 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) 100 #elif (@GNULIB_CLOSE@ || @GNULIB_DUP@ || @GNULIB_DUP2@ || @GNULIB_ISATTY@ \ 101 || @GNULIB_LSEEK@ || @GNULIB_READ@ || @GNULIB_UNLINK@ || @GNULIB_WRITE@ \ 102 || defined GNULIB_POSIXCHECK) \ 103 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) 110 #if ((@GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__)) \ 111 || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \ 112 && !defined __GLIBC__ 118 #if !@HAVE_UNISTD_H@ || @WINDOWS_64_BIT_OFF_T@ 123 #if (@GNULIB_READ@ || @GNULIB_WRITE@ \ 124 || @GNULIB_READLINK@ || @GNULIB_READLINKAT@ \ 125 || @GNULIB_PREAD@ || @GNULIB_PWRITE@ || defined GNULIB_POSIXCHECK) 138 #if @GNULIB_UNISTD_H_GETOPT@ && !defined _GL_SYSTEM_GETOPT 139 # include <getopt-cdefs.h> 143 #ifndef _GL_INLINE_HEADER_BEGIN 144 #error "Please include config.h first." 147 #ifndef _GL_UNISTD_INLINE 148 # define _GL_UNISTD_INLINE _GL_INLINE 153 #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ 154 # if !defined _@GUARD_PREFIX@_SYS_SOCKET_H 155 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 157 # define socket socket_used_without_including_sys_socket_h 159 # define connect connect_used_without_including_sys_socket_h 161 # define accept accept_used_without_including_sys_socket_h 163 # define bind bind_used_without_including_sys_socket_h 165 # define getpeername getpeername_used_without_including_sys_socket_h 167 # define getsockname getsockname_used_without_including_sys_socket_h 169 # define getsockopt getsockopt_used_without_including_sys_socket_h 171 # define listen listen_used_without_including_sys_socket_h 173 # define recv recv_used_without_including_sys_socket_h 175 # define send send_used_without_including_sys_socket_h 177 # define recvfrom recvfrom_used_without_including_sys_socket_h 179 # define sendto sendto_used_without_including_sys_socket_h 181 # define setsockopt setsockopt_used_without_including_sys_socket_h 183 # define shutdown shutdown_used_without_including_sys_socket_h 186 "socket() used without including <sys/socket.h>");
188 "connect() used without including <sys/socket.h>");
190 "accept() used without including <sys/socket.h>");
192 "bind() used without including <sys/socket.h>");
194 "getpeername() used without including <sys/socket.h>");
196 "getsockname() used without including <sys/socket.h>");
198 "getsockopt() used without including <sys/socket.h>");
200 "listen() used without including <sys/socket.h>");
202 "recv() used without including <sys/socket.h>");
204 "send() used without including <sys/socket.h>");
206 "recvfrom() used without including <sys/socket.h>");
208 "sendto() used without including <sys/socket.h>");
210 "setsockopt() used without including <sys/socket.h>");
212 "shutdown() used without including <sys/socket.h>");
215 # if !defined _@GUARD_PREFIX@_SYS_SELECT_H 216 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 218 # define select select_used_without_including_sys_select_h 221 "select() used without including <sys/select.h>");
229 # define STDIN_FILENO 0 231 #ifndef STDOUT_FILENO 232 # define STDOUT_FILENO 1 234 #ifndef STDERR_FILENO 235 # define STDERR_FILENO 2 250 #if defined GNULIB_POSIXCHECK 253 "use the gnulib module faccessat instead");
260 #elif defined GNULIB_POSIXCHECK 262 # if HAVE_RAW_DECL_CHDIR 264 "use gnulib module chdir for portability");
276 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 278 # define chown rpl_chown 291 #elif defined GNULIB_POSIXCHECK 293 # if HAVE_RAW_DECL_CHOWN 294 _GL_WARN_ON_USE (chown,
"chown fails to follow symlinks on some systems and " 295 "doesn't treat a uid or gid of -1 on some systems - " 296 "use gnulib module chown for portability");
304 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 306 # define close rpl_close 314 #elif @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ 316 # define close close_used_without_requesting_gnulib_module_close 317 #elif defined GNULIB_POSIXCHECK 321 "use gnulib module close for portability");
327 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 336 #elif defined GNULIB_POSIXCHECK 338 # if HAVE_RAW_DECL_DUP 340 "use gnulib module dup for portability");
352 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 353 # define dup2 rpl_dup2 364 #elif defined GNULIB_POSIXCHECK 366 # if HAVE_RAW_DECL_DUP2 368 "use gnulib module dup2 for portability");
383 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 384 # define dup3 rpl_dup3 393 #elif defined GNULIB_POSIXCHECK 395 # if HAVE_RAW_DECL_DUP3 397 "use gnulib module dup3 for portability");
403 # if !@HAVE_DECL_ENVIRON@ 406 # if defined __APPLE__ && defined __MACH__ 407 # include <TargetConditionals.h> 408 # if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR 409 # define _GL_USE_CRT_EXTERNS 412 # ifdef _GL_USE_CRT_EXTERNS 413 # include <crt_externs.h> 414 # define environ (*_NSGetEnviron ()) 419 extern char **environ;
425 #elif defined GNULIB_POSIXCHECK 426 # if HAVE_RAW_DECL_ENVIRON 433 "use gnulib module environ for portability");
435 # define environ (*rpl_environ ()) 440 #if @GNULIB_EUIDACCESS@ 443 # if !@HAVE_EUIDACCESS@ 449 # if defined GNULIB_POSIXCHECK 451 _GL_WARN_ON_USE (euidaccess,
"the euidaccess function is a security risk - " 452 "use the gnulib module faccessat instead");
454 #elif defined GNULIB_POSIXCHECK 456 # if HAVE_RAW_DECL_EUIDACCESS 458 "use gnulib module euidaccess for portability");
463 #if @GNULIB_FACCESSAT@ 464 # if @REPLACE_FACCESSAT@ 465 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 467 # define faccessat rpl_faccessat 470 (
int fd,
char const *name,
int mode,
int flag)
473 (
int fd,
char const *name,
int mode,
int flag));
475 # if !@HAVE_FACCESSAT@ 477 (
int fd,
char const *file,
int mode,
int flag)
481 (
int fd,
char const *file,
int mode,
int flag));
484 #elif defined GNULIB_POSIXCHECK 486 # if HAVE_RAW_DECL_FACCESSAT 488 "use gnulib module faccessat for portability");
503 _GL_EXTERN_C int _gl_register_fd (
int fd,
const char *filename)
506 _GL_EXTERN_C int _gl_register_dup (
int oldfd,
int newfd);
510 # if !@HAVE_DECL_FCHDIR@ 516 #elif defined GNULIB_POSIXCHECK 518 # if HAVE_RAW_DECL_FCHDIR 520 "use gnulib module fchdir for portability");
525 #if @GNULIB_FCHOWNAT@ 526 # if @REPLACE_FCHOWNAT@ 527 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 529 # define fchownat rpl_fchownat 532 uid_t owner, gid_t group,
int flag)
535 uid_t owner, gid_t group,
int flag));
537 # if !@HAVE_FCHOWNAT@ 539 uid_t owner, gid_t group,
int flag)
543 uid_t owner, gid_t group,
int flag));
546 #elif defined GNULIB_POSIXCHECK 548 # if HAVE_RAW_DECL_FCHOWNAT 550 "use gnulib module openat for portability");
555 #if @GNULIB_FDATASYNC@ 560 # if !@HAVE_FDATASYNC@ || !@HAVE_DECL_FDATASYNC@ 565 #elif defined GNULIB_POSIXCHECK 567 # if HAVE_RAW_DECL_FDATASYNC 569 "use gnulib module fdatasync for portability");
584 #elif defined GNULIB_POSIXCHECK 586 # if HAVE_RAW_DECL_FSYNC 588 "use gnulib module fsync for portability");
593 #if @GNULIB_FTRUNCATE@ 598 # if @REPLACE_FTRUNCATE@ 599 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 601 # define ftruncate rpl_ftruncate 606 # if !@HAVE_FTRUNCATE@ 612 #elif defined GNULIB_POSIXCHECK 614 # if HAVE_RAW_DECL_FTRUNCATE 616 "use gnulib module ftruncate for portability");
632 # if @REPLACE_GETCWD@ 633 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 634 # define getcwd rpl_getcwd 644 #elif defined GNULIB_POSIXCHECK 646 # if HAVE_RAW_DECL_GETCWD 648 "use gnulib module getcwd for portability");
653 #if @GNULIB_GETDOMAINNAME@ 664 # if @REPLACE_GETDOMAINNAME@ 665 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 666 # undef getdomainname 667 # define getdomainname rpl_getdomainname 673 # if !@HAVE_DECL_GETDOMAINNAME@ 680 #elif defined GNULIB_POSIXCHECK 681 # undef getdomainname 682 # if HAVE_RAW_DECL_GETDOMAINNAME 684 "use gnulib module getdomainname for portability");
689 #if @GNULIB_GETDTABLESIZE@ 692 # if @REPLACE_GETDTABLESIZE@ 693 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 694 # undef getdtablesize 695 # define getdtablesize rpl_getdtablesize 700 # if !@HAVE_GETDTABLESIZE@ 706 #elif defined GNULIB_POSIXCHECK 707 # undef getdtablesize 708 # if HAVE_RAW_DECL_GETDTABLESIZE 710 "use gnulib module getdtablesize for portability");
715 #if @GNULIB_GETGROUPS@ 721 # if @REPLACE_GETGROUPS@ 722 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 724 # define getgroups rpl_getgroups 729 # if !@HAVE_GETGROUPS@ 735 #elif defined GNULIB_POSIXCHECK 737 # if HAVE_RAW_DECL_GETGROUPS 739 "use gnulib module getgroups for portability");
744 #if @GNULIB_GETHOSTNAME@ 752 # if @UNISTD_H_HAVE_WINSOCK2_H@ 753 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 755 # define gethostname rpl_gethostname 761 # if !@HAVE_GETHOSTNAME@ 771 #elif @UNISTD_H_HAVE_WINSOCK2_H@ 773 # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname 774 #elif defined GNULIB_POSIXCHECK 776 # if HAVE_RAW_DECL_GETHOSTNAME 778 "use gnulib module gethostname for portability");
783 #if @GNULIB_GETLOGIN@ 794 # if !@HAVE_DECL_GETLOGIN@ 799 #elif defined GNULIB_POSIXCHECK 801 # if HAVE_RAW_DECL_GETLOGIN 803 "use gnulib module getlogin for portability");
808 #if @GNULIB_GETLOGIN_R@ 823 # if @REPLACE_GETLOGIN_R@ 824 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 825 # define getlogin_r rpl_getlogin_r 831 # if !@HAVE_DECL_GETLOGIN_R@ 840 #elif defined GNULIB_POSIXCHECK 842 # if HAVE_RAW_DECL_GETLOGIN_R 844 "use gnulib module getlogin_r for portability");
849 #if @GNULIB_GETPAGESIZE@ 850 # if @REPLACE_GETPAGESIZE@ 851 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 852 # define getpagesize rpl_getpagesize 857 # if !@HAVE_GETPAGESIZE@ 858 # if !defined getpagesize 860 # if !defined _gl_getpagesize && defined _SC_PAGESIZE 861 # if ! (defined __VMS && __VMS_VER < 70000000) 862 # define _gl_getpagesize() sysconf (_SC_PAGESIZE) 866 # if !defined _gl_getpagesize && defined __VMS 868 # define _gl_getpagesize() 8192 870 # define _gl_getpagesize() 512 874 # if !defined _gl_getpagesize && @HAVE_OS_H@ 876 # if defined B_PAGE_SIZE 877 # define _gl_getpagesize() B_PAGE_SIZE 881 # if !defined _gl_getpagesize && defined __amigaos4__ 882 # define _gl_getpagesize() 2048 885 # if !defined _gl_getpagesize && @HAVE_SYS_PARAM_H@ 886 # include <sys/param.h> 887 # ifdef EXEC_PAGESIZE 888 # define _gl_getpagesize() EXEC_PAGESIZE 894 # define _gl_getpagesize() (NBPG * CLSIZE) 897 # define _gl_getpagesize() NBPC 902 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 903 # define getpagesize() _gl_getpagesize () 905 # if !GNULIB_defined_getpagesize_function 909 return _gl_getpagesize ();
911 # define GNULIB_defined_getpagesize_function 1 919 # if @HAVE_DECL_GETPAGESIZE@ 922 #elif defined GNULIB_POSIXCHECK 924 # if HAVE_RAW_DECL_GETPAGESIZE 926 "use gnulib module getpagesize for portability");
931 #if @GNULIB_GETUSERSHELL@ 934 # if !@HAVE_DECL_GETUSERSHELL@ 939 #elif defined GNULIB_POSIXCHECK 941 # if HAVE_RAW_DECL_GETUSERSHELL 943 "use gnulib module getusershell for portability");
947 #if @GNULIB_GETUSERSHELL@ 949 # if !@HAVE_DECL_GETUSERSHELL@ 954 #elif defined GNULIB_POSIXCHECK 956 # if HAVE_RAW_DECL_SETUSERSHELL 958 "use gnulib module getusershell for portability");
962 #if @GNULIB_GETUSERSHELL@ 965 # if !@HAVE_DECL_GETUSERSHELL@ 970 #elif defined GNULIB_POSIXCHECK 972 # if HAVE_RAW_DECL_ENDUSERSHELL 974 "use gnulib module getusershell for portability");
979 #if @GNULIB_GROUP_MEMBER@ 981 # if !@HAVE_GROUP_MEMBER@ 986 #elif defined GNULIB_POSIXCHECK 988 # if HAVE_RAW_DECL_GROUP_MEMBER 990 "use gnulib module group-member for portability");
996 # if @REPLACE_ISATTY@ 997 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 999 # define isatty rpl_isatty 1007 #elif defined GNULIB_POSIXCHECK 1009 # if HAVE_RAW_DECL_ISATTY 1010 _GL_WARN_ON_USE (isatty,
"isatty has portability problems on native Windows - " 1011 "use gnulib module isatty for portability");
1022 # if @REPLACE_LCHOWN@ 1023 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1025 # define lchown rpl_lchown 1027 _GL_FUNCDECL_RPL (lchown,
int, (
char const *file, uid_t owner, gid_t group)
1029 _GL_CXXALIAS_RPL (lchown,
int, (
char const *file, uid_t owner, gid_t group));
1032 _GL_FUNCDECL_SYS (lchown,
int, (
char const *file, uid_t owner, gid_t group)
1035 _GL_CXXALIAS_SYS (lchown,
int, (
char const *file, uid_t owner, gid_t group));
1038 #elif defined GNULIB_POSIXCHECK 1040 # if HAVE_RAW_DECL_LCHOWN 1041 _GL_WARN_ON_USE (lchown,
"lchown is unportable to pre-POSIX.1-2001 systems - " 1042 "use gnulib module lchown for portability");
1053 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1054 # define link rpl_link 1067 #elif defined GNULIB_POSIXCHECK 1069 # if HAVE_RAW_DECL_LINK 1071 "use gnulib module link for portability");
1080 # if @REPLACE_LINKAT@ 1081 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1083 # define linkat rpl_linkat 1086 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1090 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1095 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1100 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1104 #elif defined GNULIB_POSIXCHECK 1106 # if HAVE_RAW_DECL_LINKAT 1108 "use gnulib module linkat for portability");
1118 # if @REPLACE_LSEEK@ 1119 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1120 # define lseek rpl_lseek 1128 #elif defined GNULIB_POSIXCHECK 1130 # if HAVE_RAW_DECL_LSEEK 1131 _GL_WARN_ON_USE (lseek,
"lseek does not fail with ESPIPE on pipes on some " 1132 "systems - use gnulib module lseek for portability");
1146 #elif defined GNULIB_POSIXCHECK 1148 # if HAVE_RAW_DECL_PIPE 1150 "use gnulib module pipe-posix for portability");
1165 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1166 # define pipe2 rpl_pipe2 1175 #elif defined GNULIB_POSIXCHECK 1177 # if HAVE_RAW_DECL_PIPE2 1179 "use gnulib module pipe2 for portability");
1190 # if @REPLACE_PREAD@ 1191 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1193 # define pread rpl_pread 1196 (
int fd,
void *buf,
size_t bufsize, off_t offset)
1199 (
int fd,
void *buf,
size_t bufsize, off_t offset));
1203 (
int fd,
void *buf,
size_t bufsize, off_t offset)
1207 (
int fd,
void *buf,
size_t bufsize, off_t offset));
1210 #elif defined GNULIB_POSIXCHECK 1212 # if HAVE_RAW_DECL_PREAD 1214 "use gnulib module pread for portability");
1225 # if @REPLACE_PWRITE@ 1226 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1228 # define pwrite rpl_pwrite 1231 (
int fd,
const void *buf,
size_t bufsize, off_t offset)
1234 (
int fd,
const void *buf,
size_t bufsize, off_t offset));
1238 (
int fd,
const void *buf,
size_t bufsize, off_t offset)
1242 (
int fd,
const void *buf,
size_t bufsize, off_t offset));
1245 #elif defined GNULIB_POSIXCHECK 1247 # if HAVE_RAW_DECL_PWRITE 1249 "use gnulib module pwrite for portability");
1259 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1261 # define read rpl_read 1276 #if @GNULIB_READLINK@ 1282 # if @REPLACE_READLINK@ 1283 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1284 # define readlink rpl_readlink 1287 (
const char *file,
char *buf,
size_t bufsize)
1290 (
const char *file,
char *buf,
size_t bufsize));
1292 # if !@HAVE_READLINK@ 1294 (
const char *file,
char *buf,
size_t bufsize)
1298 (
const char *file,
char *buf,
size_t bufsize));
1301 #elif defined GNULIB_POSIXCHECK 1303 # if HAVE_RAW_DECL_READLINK 1305 "use gnulib module readlink for portability");
1310 #if @GNULIB_READLINKAT@ 1311 # if @REPLACE_READLINKAT@ 1312 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1313 # define readlinkat rpl_readlinkat 1316 (
int fd,
char const *file,
char *buf,
size_t len)
1319 (
int fd,
char const *file,
char *buf,
size_t len));
1321 # if !@HAVE_READLINKAT@ 1323 (
int fd,
char const *file,
char *buf,
size_t len)
1327 (
int fd,
char const *file,
char *buf,
size_t len));
1330 #elif defined GNULIB_POSIXCHECK 1332 # if HAVE_RAW_DECL_READLINKAT 1334 "use gnulib module readlinkat for portability");
1341 # if @REPLACE_RMDIR@ 1342 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1343 # define rmdir rpl_rmdir 1351 #elif defined GNULIB_POSIXCHECK 1353 # if HAVE_RAW_DECL_RMDIR 1355 "use gnulib module rmdir for portability");
1360 #if @GNULIB_SETHOSTNAME@ 1369 # if !@HAVE_SETHOSTNAME@ || !@HAVE_DECL_SETHOSTNAME@ 1378 #elif defined GNULIB_POSIXCHECK 1380 # if HAVE_RAW_DECL_SETHOSTNAME 1382 "use gnulib module sethostname for portability");
1392 # if @REPLACE_SLEEP@ 1393 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1395 # define sleep rpl_sleep 1406 #elif defined GNULIB_POSIXCHECK 1408 # if HAVE_RAW_DECL_SLEEP 1410 "use gnulib module sleep for portability");
1415 #if @GNULIB_SYMLINK@ 1416 # if @REPLACE_SYMLINK@ 1417 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1419 # define symlink rpl_symlink 1425 # if !@HAVE_SYMLINK@ 1432 #elif defined GNULIB_POSIXCHECK 1434 # if HAVE_RAW_DECL_SYMLINK 1436 "use gnulib module symlink for portability");
1441 #if @GNULIB_SYMLINKAT@ 1442 # if @REPLACE_SYMLINKAT@ 1443 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1445 # define symlinkat rpl_symlinkat 1448 (
char const *contents,
int fd,
char const *file)
1451 (
char const *contents,
int fd,
char const *file));
1453 # if !@HAVE_SYMLINKAT@ 1455 (
char const *contents,
int fd,
char const *file)
1459 (
char const *contents,
int fd,
char const *file));
1462 #elif defined GNULIB_POSIXCHECK 1464 # if HAVE_RAW_DECL_SYMLINKAT 1466 "use gnulib module symlinkat for portability");
1471 #if @GNULIB_TRUNCATE@ 1476 # if @REPLACE_TRUNCATE@ 1477 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1479 # define truncate rpl_truncate 1485 # if !@HAVE_TRUNCATE@ 1492 #elif defined GNULIB_POSIXCHECK 1494 # if HAVE_RAW_DECL_TRUNCATE 1496 "use gnulib module truncate for portability");
1501 #if @GNULIB_TTYNAME_R@ 1504 # if @REPLACE_TTYNAME_R@ 1505 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1507 # define ttyname_r rpl_ttyname_r 1512 (
int fd,
char *buf,
size_t buflen));
1514 # if !@HAVE_DECL_TTYNAME_R@ 1519 (
int fd,
char *buf,
size_t buflen));
1522 #elif defined GNULIB_POSIXCHECK 1524 # if HAVE_RAW_DECL_TTYNAME_R 1526 "use gnulib module ttyname_r for portability");
1532 # if @REPLACE_UNLINK@ 1533 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1535 # define unlink rpl_unlink 1543 #elif defined GNULIB_POSIXCHECK 1545 # if HAVE_RAW_DECL_UNLINK 1547 "use gnulib module unlink for portability");
1552 #if @GNULIB_UNLINKAT@ 1553 # if @REPLACE_UNLINKAT@ 1554 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1556 # define unlinkat rpl_unlinkat 1562 # if !@HAVE_UNLINKAT@ 1569 #elif defined GNULIB_POSIXCHECK 1571 # if HAVE_RAW_DECL_UNLINKAT 1573 "use gnulib module openat for portability");
1583 # if @REPLACE_USLEEP@ 1584 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1586 # define usleep rpl_usleep 1597 #elif defined GNULIB_POSIXCHECK 1599 # if HAVE_RAW_DECL_USLEEP 1601 "use gnulib module usleep for portability");
1610 # if @REPLACE_WRITE@ 1611 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1613 # define write rpl_write 1617 _GL_CXXALIAS_RPL (write, ssize_t, (
int fd,
const void *buf,
size_t count));
#define _GL_UNISTD_INLINE
Definition: unistd.in.h:148
#define _GL_CXXALIAS_SYS_CAST(func, rettype, parameters)
Definition: inet.h:278
#define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
Definition: inet.h:168
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
Definition: inet.h:180
#define _GL_CXXALIASWARN(func)
Definition: inet.h:337
#define _GL_EXTERN_C
Definition: inet.h:146
#define _GL_INLINE_HEADER_BEGIN
Definition: config.h:1817
#define _GL_CXXALIAS_SYS(func, rettype, parameters)
Definition: inet.h:253
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
Definition: inet.h:156
#define _GL_INLINE_HEADER_END
Definition: config.h:1818
#define _GL_WARN_ON_USE(function, message)
Definition: inet.h:474