21 #pragma GCC system_header 25 #ifdef _GL_INCLUDING_UNISTD_H 32 #include_next <unistd.h> 39 # define _GL_INCLUDING_UNISTD_H 40 # include_next <unistd.h> 41 # undef _GL_INCLUDING_UNISTD_H 46 && !defined _GL_INCLUDING_WINSOCK2_H 47 # define _GL_INCLUDING_WINSOCK2_H 48 # include <winsock2.h> 49 # undef _GL_INCLUDING_WINSOCK2_H 52 #if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H 61 #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ 62 || ((0 || defined GNULIB_POSIXCHECK) \ 63 && defined __CYGWIN__)) \ 64 && ! defined __GLIBC__ 70 #if (0 || defined GNULIB_POSIXCHECK) && defined __CYGWIN__ \ 71 && ! defined __GLIBC__ 82 #if !defined __GLIBC__ && !defined __osf__ 83 # define __need_system_stdlib_h 85 # undef __need_system_stdlib_h 93 || defined GNULIB_POSIXCHECK) \ 94 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) 97 #elif (1 || 1 || 1 || 0 \ 99 || defined GNULIB_POSIXCHECK) \ 100 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) 107 #if ((0 && (defined _AIX || defined __osf__)) \ 108 || (0 && defined __TANDEM)) \ 109 && !defined __GLIBC__ 122 || 0 || 0 || defined GNULIB_POSIXCHECK) 129 #if 0 && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT 130 # define __need_getopt 134 #ifndef _GL_INLINE_HEADER_BEGIN 135 #error "Please include config.h first." 138 #ifndef _GL_UNISTD_INLINE 139 # define _GL_UNISTD_INLINE _GL_INLINE 143 #ifndef _GL_CXXDEFS_H 144 #define _GL_CXXDEFS_H 147 #if defined __cplusplus && defined GNULIB_NAMESPACE 148 # define _GL_BEGIN_NAMESPACE namespace GNULIB_NAMESPACE { 149 # define _GL_END_NAMESPACE } 151 # define _GL_BEGIN_NAMESPACE 152 # define _GL_END_NAMESPACE 216 #if defined __cplusplus 217 # define _GL_EXTERN_C extern "C" 219 # define _GL_EXTERN_C extern 229 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ 230 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) 231 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ 232 _GL_EXTERN_C rettype rpl_func parameters_and_attributes 241 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ 242 _GL_EXTERN_C rettype func parameters_and_attributes 253 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \ 254 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) 255 #if defined __cplusplus && defined GNULIB_NAMESPACE 256 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 257 namespace GNULIB_NAMESPACE \ 259 static const struct _gl_ ## func ## _wrapper \ 261 typedef rettype (*type) parameters; \ 262 inline type rpl () const { return ::rpl_func; } \ 263 inline operator type () const { return rpl (); } \ 266 _GL_EXTERN_C int _gl_cxxalias_dummy 268 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 269 _GL_EXTERN_C int _gl_cxxalias_dummy 277 #if defined __cplusplus && defined GNULIB_NAMESPACE 278 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 279 namespace GNULIB_NAMESPACE \ 281 static const struct _gl_ ## func ## _wrapper \ 283 typedef rettype (*type) parameters; \ 284 inline type rpl () const \ 285 { return reinterpret_cast<type>(::rpl_func); } \ 286 inline operator type () const { return rpl (); } \ 289 _GL_EXTERN_C int _gl_cxxalias_dummy 291 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 292 _GL_EXTERN_C int _gl_cxxalias_dummy 305 #if defined __cplusplus && defined GNULIB_NAMESPACE 306 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 307 namespace GNULIB_NAMESPACE \ 309 static const struct _gl_ ## func ## _wrapper \ 311 typedef rettype (*type) parameters; \ 312 inline type rpl () const { return ::func; } \ 313 inline operator type () const { return rpl (); } \ 316 _GL_EXTERN_C int _gl_cxxalias_dummy 318 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 319 _GL_EXTERN_C int _gl_cxxalias_dummy 327 #if defined __cplusplus && defined GNULIB_NAMESPACE 328 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 329 namespace GNULIB_NAMESPACE \ 331 static const struct _gl_ ## func ## _wrapper \ 333 typedef rettype (*type) parameters; \ 334 inline type rpl () const \ 335 { return reinterpret_cast<type>(::func); } \ 336 inline operator type () const { return rpl (); }\ 339 _GL_EXTERN_C int _gl_cxxalias_dummy 341 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 342 _GL_EXTERN_C int _gl_cxxalias_dummy 351 #if defined __cplusplus && defined GNULIB_NAMESPACE 357 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 358 namespace GNULIB_NAMESPACE \ 360 static const struct _gl_ ## func ## _wrapper \ 362 typedef rettype (*type) parameters; \ 364 inline type rpl () const \ 365 { return reinterpret_cast<type>((rettype2 (*) parameters2)(::func)); }\ 367 inline operator type () const { return rpl (); } \ 370 _GL_EXTERN_C int _gl_cxxalias_dummy 372 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 373 _GL_EXTERN_C int _gl_cxxalias_dummy 380 #if defined __cplusplus && defined GNULIB_NAMESPACE 381 # define _GL_CXXALIASWARN(func) \ 382 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) 383 # define _GL_CXXALIASWARN_1(func,namespace) \ 384 _GL_CXXALIASWARN_2 (func, namespace) 388 # define _GL_CXXALIASWARN_2(func,namespace) \ 389 _GL_WARN_ON_USE (func, \ 390 "The symbol ::" #func " refers to the system function. " \ 391 "Use " #namespace "::" #func " instead.") 392 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 393 # define _GL_CXXALIASWARN_2(func,namespace) \ 394 extern __typeof__ (func) func 396 # define _GL_CXXALIASWARN_2(func,namespace) \ 397 _GL_EXTERN_C int _gl_cxxalias_dummy 400 # define _GL_CXXALIASWARN(func) \ 401 _GL_EXTERN_C int _gl_cxxalias_dummy 407 #if defined __cplusplus && defined GNULIB_NAMESPACE 408 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 409 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ 411 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ 412 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) 416 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 417 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ 418 "The symbol ::" #func " refers to the system function. " \ 419 "Use " #namespace "::" #func " instead.") 420 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 421 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 422 extern __typeof__ (func) func 424 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 425 _GL_EXTERN_C int _gl_cxxalias_dummy 428 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 429 _GL_EXTERN_C int _gl_cxxalias_dummy 438 #ifndef _GL_ARG_NONNULL 439 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 440 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) 442 # define _GL_ARG_NONNULL(params) 447 #ifndef _GL_WARN_ON_USE 449 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 451 # define _GL_WARN_ON_USE(function, message) \ 452 extern __typeof__ (function) function __attribute__ ((__warning__ (message))) 453 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 455 # define _GL_WARN_ON_USE(function, message) \ 456 extern __typeof__ (function) function 458 # define _GL_WARN_ON_USE(function, message) \ 459 _GL_WARN_EXTERN_C int _gl_warn_on_use 469 #ifndef _GL_WARN_ON_USE_CXX 470 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 471 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 472 extern rettype function parameters_and_attributes \ 473 __attribute__ ((__warning__ (msg))) 474 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 476 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 477 extern rettype function parameters_and_attributes 479 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 480 _GL_WARN_EXTERN_C int _gl_warn_on_use 486 #ifndef _GL_WARN_EXTERN_C 487 # if defined __cplusplus 488 # define _GL_WARN_EXTERN_C extern "C" 490 # define _GL_WARN_EXTERN_C extern 498 # if !defined _GL_SYS_SOCKET_H 499 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 501 # define socket socket_used_without_including_sys_socket_h 503 # define connect connect_used_without_including_sys_socket_h 505 # define accept accept_used_without_including_sys_socket_h 507 # define bind bind_used_without_including_sys_socket_h 509 # define getpeername getpeername_used_without_including_sys_socket_h 511 # define getsockname getsockname_used_without_including_sys_socket_h 513 # define getsockopt getsockopt_used_without_including_sys_socket_h 515 # define listen listen_used_without_including_sys_socket_h 517 # define recv recv_used_without_including_sys_socket_h 519 # define send send_used_without_including_sys_socket_h 521 # define recvfrom recvfrom_used_without_including_sys_socket_h 523 # define sendto sendto_used_without_including_sys_socket_h 525 # define setsockopt setsockopt_used_without_including_sys_socket_h 527 # define shutdown shutdown_used_without_including_sys_socket_h 530 "socket() used without including <sys/socket.h>");
532 "connect() used without including <sys/socket.h>");
534 "accept() used without including <sys/socket.h>");
536 "bind() used without including <sys/socket.h>");
538 "getpeername() used without including <sys/socket.h>");
540 "getsockname() used without including <sys/socket.h>");
542 "getsockopt() used without including <sys/socket.h>");
544 "listen() used without including <sys/socket.h>");
546 "recv() used without including <sys/socket.h>");
548 "send() used without including <sys/socket.h>");
550 "recvfrom() used without including <sys/socket.h>");
552 "sendto() used without including <sys/socket.h>");
554 "setsockopt() used without including <sys/socket.h>");
556 "shutdown() used without including <sys/socket.h>");
559 # if !defined _GL_SYS_SELECT_H 560 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 562 # define select select_used_without_including_sys_select_h 565 "select() used without including <sys/select.h>");
573 # define STDIN_FILENO 0 575 #ifndef STDOUT_FILENO 576 # define STDOUT_FILENO 1 578 #ifndef STDERR_FILENO 579 # define STDERR_FILENO 2 594 #if defined GNULIB_POSIXCHECK 597 "use the gnulib module faccessat instead");
604 #elif defined GNULIB_POSIXCHECK 606 # if HAVE_RAW_DECL_CHDIR 608 "use gnulib module chdir for portability");
620 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 622 # define chown rpl_chown 635 #elif defined GNULIB_POSIXCHECK 637 # if HAVE_RAW_DECL_CHOWN 638 _GL_WARN_ON_USE (chown,
"chown fails to follow symlinks on some systems and " 639 "doesn't treat a uid or gid of -1 on some systems - " 640 "use gnulib module chown for portability");
648 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 650 # define close rpl_close 660 # define close close_used_without_requesting_gnulib_module_close 661 #elif defined GNULIB_POSIXCHECK 665 "use gnulib module close for portability");
671 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 680 #elif defined GNULIB_POSIXCHECK 682 # if HAVE_RAW_DECL_DUP 684 "use gnulib module dup for portability");
696 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 697 # define dup2 rpl_dup2 708 #elif defined GNULIB_POSIXCHECK 710 # if HAVE_RAW_DECL_DUP2 712 "use gnulib module dup2 for portability");
727 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 728 # define dup3 rpl_dup3 737 #elif defined GNULIB_POSIXCHECK 739 # if HAVE_RAW_DECL_DUP3 741 "use gnulib module dup3 for portability");
750 # if defined __APPLE__ && defined __MACH__ 751 # include <TargetConditionals.h> 752 # if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR 753 # define _GL_USE_CRT_EXTERNS 756 # ifdef _GL_USE_CRT_EXTERNS 757 # include <crt_externs.h> 758 # define environ (*_NSGetEnviron ()) 769 #elif defined GNULIB_POSIXCHECK 770 # if HAVE_RAW_DECL_ENVIRON 777 "use gnulib module environ for portability");
779 # define environ (*rpl_environ ()) 793 # if defined GNULIB_POSIXCHECK 795 _GL_WARN_ON_USE (euidaccess,
"the euidaccess function is a security risk - " 796 "use the gnulib module faccessat instead");
798 #elif defined GNULIB_POSIXCHECK 800 # if HAVE_RAW_DECL_EUIDACCESS 802 "use gnulib module euidaccess for portability");
810 (
int fd,
char const *file,
int mode,
int flag)
814 (
int fd,
char const *file,
int mode,
int flag));
816 #elif defined GNULIB_POSIXCHECK 818 # if HAVE_RAW_DECL_FACCESSAT 820 "use gnulib module faccessat for portability");
835 _GL_EXTERN_C int _gl_register_fd (
int fd,
const char *filename)
838 _GL_EXTERN_C int _gl_register_dup (
int oldfd,
int newfd);
848 #elif defined GNULIB_POSIXCHECK 850 # if HAVE_RAW_DECL_FCHDIR 852 "use gnulib module fchdir for portability");
859 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 861 # define fchownat rpl_fchownat 864 uid_t owner, gid_t group,
int flag)
867 uid_t owner, gid_t group,
int flag));
871 uid_t owner, gid_t group,
int flag)
875 uid_t owner, gid_t group,
int flag));
878 #elif defined GNULIB_POSIXCHECK 880 # if HAVE_RAW_DECL_FCHOWNAT 882 "use gnulib module openat for portability");
897 #elif defined GNULIB_POSIXCHECK 899 # if HAVE_RAW_DECL_FDATASYNC 901 "use gnulib module fdatasync for portability");
916 #elif defined GNULIB_POSIXCHECK 918 # if HAVE_RAW_DECL_FSYNC 920 "use gnulib module fsync for portability");
931 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 933 # define ftruncate rpl_ftruncate 944 #elif defined GNULIB_POSIXCHECK 946 # if HAVE_RAW_DECL_FTRUNCATE 948 "use gnulib module ftruncate for portability");
965 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 966 # define getcwd rpl_getcwd 976 #elif defined GNULIB_POSIXCHECK 978 # if HAVE_RAW_DECL_GETCWD 980 "use gnulib module getcwd for portability");
997 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 998 # undef getdomainname 999 # define getdomainname rpl_getdomainname 1012 #elif defined GNULIB_POSIXCHECK 1013 # undef getdomainname 1014 # if HAVE_RAW_DECL_GETDOMAINNAME 1016 "use gnulib module getdomainname for portability");
1025 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1026 # undef getdtablesize 1027 # define getdtablesize rpl_getdtablesize 1038 #elif defined GNULIB_POSIXCHECK 1039 # undef getdtablesize 1040 # if HAVE_RAW_DECL_GETDTABLESIZE 1042 "use gnulib module getdtablesize for portability");
1054 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1056 # define getgroups rpl_getgroups 1067 #elif defined GNULIB_POSIXCHECK 1069 # if HAVE_RAW_DECL_GETGROUPS 1071 "use gnulib module getgroups for portability");
1085 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1087 # define gethostname rpl_gethostname 1105 # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname 1106 #elif defined GNULIB_POSIXCHECK 1108 # if HAVE_RAW_DECL_GETHOSTNAME 1110 "use gnulib module gethostname for portability");
1131 #elif defined GNULIB_POSIXCHECK 1133 # if HAVE_RAW_DECL_GETLOGIN 1135 "use gnulib module getlogin for portability");
1156 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1157 # define getlogin_r rpl_getlogin_r 1172 #elif defined GNULIB_POSIXCHECK 1174 # if HAVE_RAW_DECL_GETLOGIN_R 1176 "use gnulib module getlogin_r for portability");
1183 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1184 # define getpagesize rpl_getpagesize 1190 # if !defined getpagesize 1192 # if !defined _gl_getpagesize && defined _SC_PAGESIZE 1193 # if ! (defined __VMS && __VMS_VER < 70000000) 1194 # define _gl_getpagesize() sysconf (_SC_PAGESIZE) 1198 # if !defined _gl_getpagesize && defined __VMS 1200 # define _gl_getpagesize() 8192 1202 # define _gl_getpagesize() 512 1206 # if !defined _gl_getpagesize && 0 1208 # if defined B_PAGE_SIZE 1209 # define _gl_getpagesize() B_PAGE_SIZE 1213 # if !defined _gl_getpagesize && defined __amigaos4__ 1214 # define _gl_getpagesize() 2048 1217 # if !defined _gl_getpagesize && 0 1218 # include <sys/param.h> 1219 # ifdef EXEC_PAGESIZE 1220 # define _gl_getpagesize() EXEC_PAGESIZE 1226 # define _gl_getpagesize() (NBPG * CLSIZE) 1229 # define _gl_getpagesize() NBPC 1234 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1235 # define getpagesize() _gl_getpagesize () 1237 # if !GNULIB_defined_getpagesize_function 1241 return _gl_getpagesize ();
1243 # define GNULIB_defined_getpagesize_function 1 1254 #elif defined GNULIB_POSIXCHECK 1256 # if HAVE_RAW_DECL_GETPAGESIZE 1258 "use gnulib module getpagesize for portability");
1271 #elif defined GNULIB_POSIXCHECK 1272 # undef getusershell 1273 # if HAVE_RAW_DECL_GETUSERSHELL 1275 "use gnulib module getusershell for portability");
1286 #elif defined GNULIB_POSIXCHECK 1287 # undef setusershell 1288 # if HAVE_RAW_DECL_SETUSERSHELL 1290 "use gnulib module getusershell for portability");
1302 #elif defined GNULIB_POSIXCHECK 1303 # undef endusershell 1304 # if HAVE_RAW_DECL_ENDUSERSHELL 1306 "use gnulib module getusershell for portability");
1318 #elif defined GNULIB_POSIXCHECK 1319 # undef group_member 1320 # if HAVE_RAW_DECL_GROUP_MEMBER 1322 "use gnulib module group-member for portability");
1329 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1331 # define isatty rpl_isatty 1339 #elif defined GNULIB_POSIXCHECK 1341 # if HAVE_RAW_DECL_ISATTY 1342 _GL_WARN_ON_USE (isatty,
"isatty has portability problems on native Windows - " 1343 "use gnulib module isatty for portability");
1355 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1357 # define lchown rpl_lchown 1359 _GL_FUNCDECL_RPL (lchown,
int, (
char const *file, uid_t owner, gid_t group)
1361 _GL_CXXALIAS_RPL (lchown,
int, (
char const *file, uid_t owner, gid_t group));
1364 _GL_FUNCDECL_SYS (lchown,
int, (
char const *file, uid_t owner, gid_t group)
1367 _GL_CXXALIAS_SYS (lchown,
int, (
char const *file, uid_t owner, gid_t group));
1370 #elif defined GNULIB_POSIXCHECK 1372 # if HAVE_RAW_DECL_LCHOWN 1373 _GL_WARN_ON_USE (lchown,
"lchown is unportable to pre-POSIX.1-2001 systems - " 1374 "use gnulib module lchown for portability");
1385 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1386 # define link rpl_link 1399 #elif defined GNULIB_POSIXCHECK 1401 # if HAVE_RAW_DECL_LINK 1403 "use gnulib module link for portability");
1413 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1415 # define linkat rpl_linkat 1418 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1422 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1427 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1432 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1436 #elif defined GNULIB_POSIXCHECK 1438 # if HAVE_RAW_DECL_LINKAT 1440 "use gnulib module linkat for portability");
1451 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1452 # define lseek rpl_lseek 1460 #elif defined GNULIB_POSIXCHECK 1462 # if HAVE_RAW_DECL_LSEEK 1463 _GL_WARN_ON_USE (lseek,
"lseek does not fail with ESPIPE on pipes on some " 1464 "systems - use gnulib module lseek for portability");
1478 #elif defined GNULIB_POSIXCHECK 1480 # if HAVE_RAW_DECL_PIPE 1482 "use gnulib module pipe-posix for portability");
1497 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1498 # define pipe2 rpl_pipe2 1507 #elif defined GNULIB_POSIXCHECK 1509 # if HAVE_RAW_DECL_PIPE2 1511 "use gnulib module pipe2 for portability");
1523 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1525 # define pread rpl_pread 1528 (
int fd,
void *buf,
size_t bufsize, off_t
offset)
1531 (
int fd,
void *buf,
size_t bufsize, off_t
offset));
1535 (
int fd,
void *buf,
size_t bufsize, off_t
offset)
1539 (
int fd,
void *buf,
size_t bufsize, off_t
offset));
1542 #elif defined GNULIB_POSIXCHECK 1544 # if HAVE_RAW_DECL_PREAD 1546 "use gnulib module pread for portability");
1558 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1560 # define pwrite rpl_pwrite 1563 (
int fd,
const void *buf,
size_t bufsize, off_t
offset)
1566 (
int fd,
const void *buf,
size_t bufsize, off_t
offset));
1570 (
int fd,
const void *buf,
size_t bufsize, off_t
offset)
1574 (
int fd,
const void *buf,
size_t bufsize, off_t
offset));
1577 #elif defined GNULIB_POSIXCHECK 1579 # if HAVE_RAW_DECL_PWRITE 1581 "use gnulib module pwrite for portability");
1591 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1593 # define read rpl_read 1615 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1616 # define readlink rpl_readlink 1619 (
const char *file,
char *buf,
size_t bufsize)
1622 (
const char *file,
char *buf,
size_t bufsize));
1626 (
const char *file,
char *buf,
size_t bufsize)
1630 (
const char *file,
char *buf,
size_t bufsize));
1633 #elif defined GNULIB_POSIXCHECK 1635 # if HAVE_RAW_DECL_READLINK 1637 "use gnulib module readlink for portability");
1644 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1645 # define readlinkat rpl_readlinkat 1648 (
int fd,
char const *file,
char *buf,
size_t len)
1651 (
int fd,
char const *file,
char *buf,
size_t len));
1655 (
int fd,
char const *file,
char *buf,
size_t len)
1659 (
int fd,
char const *file,
char *buf,
size_t len));
1662 #elif defined GNULIB_POSIXCHECK 1664 # if HAVE_RAW_DECL_READLINKAT 1666 "use gnulib module readlinkat for portability");
1674 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1675 # define rmdir rpl_rmdir 1683 #elif defined GNULIB_POSIXCHECK 1685 # if HAVE_RAW_DECL_RMDIR 1687 "use gnulib module rmdir for portability");
1710 #elif defined GNULIB_POSIXCHECK 1712 # if HAVE_RAW_DECL_SETHOSTNAME 1714 "use gnulib module sethostname for portability");
1725 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1727 # define sleep rpl_sleep 1738 #elif defined GNULIB_POSIXCHECK 1740 # if HAVE_RAW_DECL_SLEEP 1742 "use gnulib module sleep for portability");
1749 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1751 # define symlink rpl_symlink 1764 #elif defined GNULIB_POSIXCHECK 1766 # if HAVE_RAW_DECL_SYMLINK 1768 "use gnulib module symlink for portability");
1775 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1777 # define symlinkat rpl_symlinkat 1780 (
char const *contents,
int fd,
char const *file)
1783 (
char const *contents,
int fd,
char const *file));
1787 (
char const *contents,
int fd,
char const *file)
1791 (
char const *contents,
int fd,
char const *file));
1794 #elif defined GNULIB_POSIXCHECK 1796 # if HAVE_RAW_DECL_SYMLINKAT 1798 "use gnulib module symlinkat for portability");
1807 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1809 # define ttyname_r rpl_ttyname_r 1814 (
int fd,
char *buf,
size_t buflen));
1821 (
int fd,
char *buf,
size_t buflen));
1824 #elif defined GNULIB_POSIXCHECK 1826 # if HAVE_RAW_DECL_TTYNAME_R 1828 "use gnulib module ttyname_r for portability");
1835 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1837 # define unlink rpl_unlink 1845 #elif defined GNULIB_POSIXCHECK 1847 # if HAVE_RAW_DECL_UNLINK 1849 "use gnulib module unlink for portability");
1856 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1858 # define unlinkat rpl_unlinkat 1871 #elif defined GNULIB_POSIXCHECK 1873 # if HAVE_RAW_DECL_UNLINKAT 1875 "use gnulib module openat for portability");
1886 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1888 # define usleep rpl_usleep 1899 #elif defined GNULIB_POSIXCHECK 1901 # if HAVE_RAW_DECL_USLEEP 1903 "use gnulib module usleep for portability");
1913 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1915 # define write rpl_write 1919 _GL_CXXALIAS_RPL (write, ssize_t, (
int fd,
const void *buf,
size_t count));
_GL_CXXALIAS_SYS(chdir, int,(const char *file) _GL_ARG_NONNULL((1)))
#define _GL_UNISTD_INLINE
#define _GL_WARN_ON_USE(function, message)
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
_GL_CXXALIAS_SYS_CAST(getcwd, char *,(char *buf, size_t size))
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
#define _GL_ARG_NONNULL(params)
#define _GL_INLINE_HEADER_END
#define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
#define _GL_INLINE_HEADER_BEGIN