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 63 #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ 64 || ((0 || defined GNULIB_POSIXCHECK) \ 65 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) \ 66 || ((0 || defined GNULIB_POSIXCHECK) \ 67 && defined __CYGWIN__)) \ 68 && ! defined __GLIBC__ 74 #if (0 || defined GNULIB_POSIXCHECK) && defined __CYGWIN__ \ 75 && ! defined __GLIBC__ 86 #if !defined __GLIBC__ && !defined __osf__ 87 # define __need_system_stdlib_h 89 # undef __need_system_stdlib_h 97 || defined GNULIB_POSIXCHECK) \ 98 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) 101 #elif (1 || 0 || 0 || 0 \ 102 || 1 || 0 || 0 || 0 \ 103 || defined GNULIB_POSIXCHECK) \ 104 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) 111 #if ((0 && (defined _AIX || defined __osf__)) \ 112 || (0 && defined __TANDEM)) \ 113 && !defined __GLIBC__ 126 || 0 || 0 || defined GNULIB_POSIXCHECK) 148 #ifndef _GL_CXXDEFS_H 149 #define _GL_CXXDEFS_H 152 #if defined __cplusplus && defined GNULIB_NAMESPACE 153 # define _GL_BEGIN_NAMESPACE namespace GNULIB_NAMESPACE { 154 # define _GL_END_NAMESPACE } 156 # define _GL_BEGIN_NAMESPACE 157 # define _GL_END_NAMESPACE 221 #if defined __cplusplus 222 # define _GL_EXTERN_C extern "C" 224 # define _GL_EXTERN_C extern 234 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ 235 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) 236 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ 237 _GL_EXTERN_C rettype rpl_func parameters_and_attributes 246 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ 247 _GL_EXTERN_C rettype func parameters_and_attributes 258 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \ 259 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) 260 #if defined __cplusplus && defined GNULIB_NAMESPACE 261 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 262 namespace GNULIB_NAMESPACE \ 264 static const struct _gl_ ## func ## _wrapper \ 266 typedef rettype (*type) parameters; \ 268 inline operator type () const \ 274 _GL_EXTERN_C int _gl_cxxalias_dummy 276 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ 277 _GL_EXTERN_C int _gl_cxxalias_dummy 285 #if defined __cplusplus && defined GNULIB_NAMESPACE 286 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 287 namespace GNULIB_NAMESPACE \ 289 static const struct _gl_ ## func ## _wrapper \ 291 typedef rettype (*type) parameters; \ 293 inline operator type () const \ 295 return reinterpret_cast<type>(::rpl_func); \ 299 _GL_EXTERN_C int _gl_cxxalias_dummy 301 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ 302 _GL_EXTERN_C int _gl_cxxalias_dummy 315 #if defined __cplusplus && defined GNULIB_NAMESPACE 316 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 317 namespace GNULIB_NAMESPACE \ 319 static const struct _gl_ ## func ## _wrapper \ 321 typedef rettype (*type) parameters; \ 323 inline operator type () const \ 329 _GL_EXTERN_C int _gl_cxxalias_dummy 331 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ 332 _GL_EXTERN_C int _gl_cxxalias_dummy 340 #if defined __cplusplus && defined GNULIB_NAMESPACE 341 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 342 namespace GNULIB_NAMESPACE \ 344 static const struct _gl_ ## func ## _wrapper \ 346 typedef rettype (*type) parameters; \ 348 inline operator type () const \ 350 return reinterpret_cast<type>(::func); \ 354 _GL_EXTERN_C int _gl_cxxalias_dummy 356 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ 357 _GL_EXTERN_C int _gl_cxxalias_dummy 366 #if defined __cplusplus && defined GNULIB_NAMESPACE 372 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 373 namespace GNULIB_NAMESPACE \ 375 static const struct _gl_ ## func ## _wrapper \ 377 typedef rettype (*type) parameters; \ 379 inline operator type () const \ 381 return reinterpret_cast<type>((rettype2 (*) parameters2)(::func)); \ 385 _GL_EXTERN_C int _gl_cxxalias_dummy 387 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ 388 _GL_EXTERN_C int _gl_cxxalias_dummy 395 #if defined __cplusplus && defined GNULIB_NAMESPACE 396 # define _GL_CXXALIASWARN(func) \ 397 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) 398 # define _GL_CXXALIASWARN_1(func,namespace) \ 399 _GL_CXXALIASWARN_2 (func, namespace) 403 # define _GL_CXXALIASWARN_2(func,namespace) \ 404 _GL_WARN_ON_USE (func, \ 405 "The symbol ::" #func " refers to the system function. " \ 406 "Use " #namespace "::" #func " instead.") 407 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 408 # define _GL_CXXALIASWARN_2(func,namespace) \ 409 extern __typeof__ (func) func 411 # define _GL_CXXALIASWARN_2(func,namespace) \ 412 _GL_EXTERN_C int _gl_cxxalias_dummy 415 # define _GL_CXXALIASWARN(func) \ 416 _GL_EXTERN_C int _gl_cxxalias_dummy 422 #if defined __cplusplus && defined GNULIB_NAMESPACE 423 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 424 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ 426 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ 427 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) 431 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 432 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ 433 "The symbol ::" #func " refers to the system function. " \ 434 "Use " #namespace "::" #func " instead.") 435 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 436 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 437 extern __typeof__ (func) func 439 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 440 _GL_EXTERN_C int _gl_cxxalias_dummy 443 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 444 _GL_EXTERN_C int _gl_cxxalias_dummy 469 #ifndef _GL_ARG_NONNULL 470 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 471 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) 473 # define _GL_ARG_NONNULL(params) 541 #ifndef _GL_WARN_ON_USE 543 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 545 # define _GL_WARN_ON_USE(function, message) \ 546 extern __typeof__ (function) function __attribute__ ((__warning__ (message))) 547 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 549 # define _GL_WARN_ON_USE(function, message) \ 550 extern __typeof__ (function) function 552 # define _GL_WARN_ON_USE(function, message) \ 553 _GL_WARN_EXTERN_C int _gl_warn_on_use 563 #ifndef _GL_WARN_ON_USE_CXX 564 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) 565 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 566 extern rettype function parameters_and_attributes \ 567 __attribute__ ((__warning__ (msg))) 568 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING 570 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 571 extern rettype function parameters_and_attributes 573 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ 574 _GL_WARN_EXTERN_C int _gl_warn_on_use 580 #ifndef _GL_WARN_EXTERN_C 581 # if defined __cplusplus 582 # define _GL_WARN_EXTERN_C extern "C" 584 # define _GL_WARN_EXTERN_C extern 590 #if 0 && !defined _GL_SYSTEM_GETOPT 591 # include <getopt-cdefs.h> 595 #ifndef _GL_INLINE_HEADER_BEGIN 596 #error "Please include config.h first." 599 #ifndef _GL_UNISTD_INLINE 600 # define _GL_UNISTD_INLINE _GL_INLINE 606 # if !defined _GL_SYS_SOCKET_H 607 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 609 # define socket socket_used_without_including_sys_socket_h 611 # define connect connect_used_without_including_sys_socket_h 613 # define accept accept_used_without_including_sys_socket_h 615 # define bind bind_used_without_including_sys_socket_h 617 # define getpeername getpeername_used_without_including_sys_socket_h 619 # define getsockname getsockname_used_without_including_sys_socket_h 621 # define getsockopt getsockopt_used_without_including_sys_socket_h 623 # define listen listen_used_without_including_sys_socket_h 625 # define recv recv_used_without_including_sys_socket_h 627 # define send send_used_without_including_sys_socket_h 629 # define recvfrom recvfrom_used_without_including_sys_socket_h 631 # define sendto sendto_used_without_including_sys_socket_h 633 # define setsockopt setsockopt_used_without_including_sys_socket_h 635 # define shutdown shutdown_used_without_including_sys_socket_h 638 "socket() used without including <sys/socket.h>");
640 "connect() used without including <sys/socket.h>");
642 "accept() used without including <sys/socket.h>");
644 "bind() used without including <sys/socket.h>");
646 "getpeername() used without including <sys/socket.h>");
648 "getsockname() used without including <sys/socket.h>");
650 "getsockopt() used without including <sys/socket.h>");
652 "listen() used without including <sys/socket.h>");
654 "recv() used without including <sys/socket.h>");
656 "send() used without including <sys/socket.h>");
658 "recvfrom() used without including <sys/socket.h>");
660 "sendto() used without including <sys/socket.h>");
662 "setsockopt() used without including <sys/socket.h>");
664 "shutdown() used without including <sys/socket.h>");
667 # if !defined _GL_SYS_SELECT_H 668 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 670 # define select select_used_without_including_sys_select_h 673 "select() used without including <sys/select.h>");
681 # define STDIN_FILENO 0 683 #ifndef STDOUT_FILENO 684 # define STDOUT_FILENO 1 686 #ifndef STDERR_FILENO 687 # define STDERR_FILENO 2 702 #if defined GNULIB_POSIXCHECK 705 "use the gnulib module faccessat instead");
712 #elif defined GNULIB_POSIXCHECK 714 # if HAVE_RAW_DECL_CHDIR 716 "use gnulib module chdir for portability");
728 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 730 # define chown rpl_chown 743 #elif defined GNULIB_POSIXCHECK 745 # if HAVE_RAW_DECL_CHOWN 746 _GL_WARN_ON_USE (chown,
"chown fails to follow symlinks on some systems and " 747 "doesn't treat a uid or gid of -1 on some systems - " 748 "use gnulib module chown for portability");
756 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 758 # define close rpl_close 768 # define close close_used_without_requesting_gnulib_module_close 769 #elif defined GNULIB_POSIXCHECK 773 "use gnulib module close for portability");
779 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 788 #elif defined GNULIB_POSIXCHECK 790 # if HAVE_RAW_DECL_DUP 792 "use gnulib module dup for portability");
804 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 805 # define dup2 rpl_dup2 816 #elif defined GNULIB_POSIXCHECK 818 # if HAVE_RAW_DECL_DUP2 820 "use gnulib module dup2 for portability");
835 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 836 # define dup3 rpl_dup3 845 #elif defined GNULIB_POSIXCHECK 847 # if HAVE_RAW_DECL_DUP3 849 "use gnulib module dup3 for portability");
858 # if defined __APPLE__ && defined __MACH__ 859 # include <TargetConditionals.h> 860 # if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR 861 # define _GL_USE_CRT_EXTERNS 864 # ifdef _GL_USE_CRT_EXTERNS 865 # include <crt_externs.h> 866 # define environ (*_NSGetEnviron ()) 871 extern char **environ;
877 #elif defined GNULIB_POSIXCHECK 878 # if HAVE_RAW_DECL_ENVIRON 885 "use gnulib module environ for portability");
887 # define environ (*rpl_environ ()) 901 # if defined GNULIB_POSIXCHECK 903 _GL_WARN_ON_USE (euidaccess,
"the euidaccess function is a security risk - " 904 "use the gnulib module faccessat instead");
906 #elif defined GNULIB_POSIXCHECK 908 # if HAVE_RAW_DECL_EUIDACCESS 910 "use gnulib module euidaccess for portability");
917 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 919 # define faccessat rpl_faccessat 922 (
int fd,
char const *name,
int mode,
int flag)
925 (
int fd,
char const *name,
int mode,
int flag));
929 (
int fd,
char const *file,
int mode,
int flag)
933 (
int fd,
char const *file,
int mode,
int flag));
936 #elif defined GNULIB_POSIXCHECK 938 # if HAVE_RAW_DECL_FACCESSAT 940 "use gnulib module faccessat for portability");
955 _GL_EXTERN_C int _gl_register_fd (
int fd,
const char *filename)
958 _GL_EXTERN_C int _gl_register_dup (
int oldfd,
int newfd);
968 #elif defined GNULIB_POSIXCHECK 970 # if HAVE_RAW_DECL_FCHDIR 972 "use gnulib module fchdir for portability");
979 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 981 # define fchownat rpl_fchownat 984 uid_t owner, gid_t group,
int flag)
987 uid_t owner, gid_t group,
int flag));
991 uid_t owner, gid_t group,
int flag)
995 uid_t owner, gid_t group,
int flag));
998 #elif defined GNULIB_POSIXCHECK 1000 # if HAVE_RAW_DECL_FCHOWNAT 1002 "use gnulib module openat for portability");
1017 #elif defined GNULIB_POSIXCHECK 1019 # if HAVE_RAW_DECL_FDATASYNC 1021 "use gnulib module fdatasync for portability");
1036 #elif defined GNULIB_POSIXCHECK 1038 # if HAVE_RAW_DECL_FSYNC 1040 "use gnulib module fsync for portability");
1051 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1053 # define ftruncate rpl_ftruncate 1064 #elif defined GNULIB_POSIXCHECK 1066 # if HAVE_RAW_DECL_FTRUNCATE 1068 "use gnulib module ftruncate for portability");
1085 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1086 # define getcwd rpl_getcwd 1096 #elif defined GNULIB_POSIXCHECK 1098 # if HAVE_RAW_DECL_GETCWD 1100 "use gnulib module getcwd for portability");
1117 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1118 # undef getdomainname 1119 # define getdomainname rpl_getdomainname 1132 #elif defined GNULIB_POSIXCHECK 1133 # undef getdomainname 1134 # if HAVE_RAW_DECL_GETDOMAINNAME 1136 "use gnulib module getdomainname for portability");
1145 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1146 # undef getdtablesize 1147 # define getdtablesize rpl_getdtablesize 1158 #elif defined GNULIB_POSIXCHECK 1159 # undef getdtablesize 1160 # if HAVE_RAW_DECL_GETDTABLESIZE 1162 "use gnulib module getdtablesize for portability");
1174 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1176 # define getgroups rpl_getgroups 1187 #elif defined GNULIB_POSIXCHECK 1189 # if HAVE_RAW_DECL_GETGROUPS 1191 "use gnulib module getgroups for portability");
1205 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1207 # define gethostname rpl_gethostname 1225 # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname 1226 #elif defined GNULIB_POSIXCHECK 1228 # if HAVE_RAW_DECL_GETHOSTNAME 1230 "use gnulib module gethostname for portability");
1251 #elif defined GNULIB_POSIXCHECK 1253 # if HAVE_RAW_DECL_GETLOGIN 1255 "use gnulib module getlogin for portability");
1276 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1277 # define getlogin_r rpl_getlogin_r 1292 #elif defined GNULIB_POSIXCHECK 1294 # if HAVE_RAW_DECL_GETLOGIN_R 1296 "use gnulib module getlogin_r for portability");
1303 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1304 # define getpagesize rpl_getpagesize 1310 # if !defined getpagesize 1312 # if !defined _gl_getpagesize && defined _SC_PAGESIZE 1313 # if ! (defined __VMS && __VMS_VER < 70000000) 1314 # define _gl_getpagesize() sysconf (_SC_PAGESIZE) 1318 # if !defined _gl_getpagesize && defined __VMS 1320 # define _gl_getpagesize() 8192 1322 # define _gl_getpagesize() 512 1326 # if !defined _gl_getpagesize && 0 1328 # if defined B_PAGE_SIZE 1329 # define _gl_getpagesize() B_PAGE_SIZE 1333 # if !defined _gl_getpagesize && defined __amigaos4__ 1334 # define _gl_getpagesize() 2048 1337 # if !defined _gl_getpagesize && 0 1338 # include <sys/param.h> 1339 # ifdef EXEC_PAGESIZE 1340 # define _gl_getpagesize() EXEC_PAGESIZE 1346 # define _gl_getpagesize() (NBPG * CLSIZE) 1349 # define _gl_getpagesize() NBPC 1354 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1355 # define getpagesize() _gl_getpagesize () 1357 # if !GNULIB_defined_getpagesize_function 1361 return _gl_getpagesize ();
1363 # define GNULIB_defined_getpagesize_function 1 1374 #elif defined GNULIB_POSIXCHECK 1376 # if HAVE_RAW_DECL_GETPAGESIZE 1378 "use gnulib module getpagesize for portability");
1391 #elif defined GNULIB_POSIXCHECK 1392 # undef getusershell 1393 # if HAVE_RAW_DECL_GETUSERSHELL 1395 "use gnulib module getusershell for portability");
1406 #elif defined GNULIB_POSIXCHECK 1407 # undef setusershell 1408 # if HAVE_RAW_DECL_SETUSERSHELL 1410 "use gnulib module getusershell for portability");
1422 #elif defined GNULIB_POSIXCHECK 1423 # undef endusershell 1424 # if HAVE_RAW_DECL_ENDUSERSHELL 1426 "use gnulib module getusershell for portability");
1438 #elif defined GNULIB_POSIXCHECK 1439 # undef group_member 1440 # if HAVE_RAW_DECL_GROUP_MEMBER 1442 "use gnulib module group-member for portability");
1449 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1451 # define isatty rpl_isatty 1459 #elif defined GNULIB_POSIXCHECK 1461 # if HAVE_RAW_DECL_ISATTY 1462 _GL_WARN_ON_USE (isatty,
"isatty has portability problems on native Windows - " 1463 "use gnulib module isatty for portability");
1475 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1477 # define lchown rpl_lchown 1479 _GL_FUNCDECL_RPL (lchown,
int, (
char const *file, uid_t owner, gid_t group)
1481 _GL_CXXALIAS_RPL (lchown,
int, (
char const *file, uid_t owner, gid_t group));
1484 _GL_FUNCDECL_SYS (lchown,
int, (
char const *file, uid_t owner, gid_t group)
1487 _GL_CXXALIAS_SYS (lchown,
int, (
char const *file, uid_t owner, gid_t group));
1490 #elif defined GNULIB_POSIXCHECK 1492 # if HAVE_RAW_DECL_LCHOWN 1493 _GL_WARN_ON_USE (lchown,
"lchown is unportable to pre-POSIX.1-2001 systems - " 1494 "use gnulib module lchown for portability");
1505 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1506 # define link rpl_link 1519 #elif defined GNULIB_POSIXCHECK 1521 # if HAVE_RAW_DECL_LINK 1523 "use gnulib module link for portability");
1533 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1535 # define linkat rpl_linkat 1538 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1542 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1547 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1552 (
int fd1,
const char *path1,
int fd2,
const char *path2,
1556 #elif defined GNULIB_POSIXCHECK 1558 # if HAVE_RAW_DECL_LINKAT 1560 "use gnulib module linkat for portability");
1571 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1572 # define lseek rpl_lseek 1580 #elif defined GNULIB_POSIXCHECK 1582 # if HAVE_RAW_DECL_LSEEK 1583 _GL_WARN_ON_USE (lseek,
"lseek does not fail with ESPIPE on pipes on some " 1584 "systems - use gnulib module lseek for portability");
1598 #elif defined GNULIB_POSIXCHECK 1600 # if HAVE_RAW_DECL_PIPE 1602 "use gnulib module pipe-posix for portability");
1617 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1618 # define pipe2 rpl_pipe2 1627 #elif defined GNULIB_POSIXCHECK 1629 # if HAVE_RAW_DECL_PIPE2 1631 "use gnulib module pipe2 for portability");
1643 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1645 # define pread rpl_pread 1648 (
int fd,
void *buf,
size_t bufsize, off_t offset)
1651 (
int fd,
void *buf,
size_t bufsize, off_t offset));
1655 (
int fd,
void *buf,
size_t bufsize, off_t offset)
1659 (
int fd,
void *buf,
size_t bufsize, off_t offset));
1662 #elif defined GNULIB_POSIXCHECK 1664 # if HAVE_RAW_DECL_PREAD 1666 "use gnulib module pread for portability");
1678 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1680 # define pwrite rpl_pwrite 1683 (
int fd,
const void *buf,
size_t bufsize, off_t offset)
1686 (
int fd,
const void *buf,
size_t bufsize, off_t offset));
1690 (
int fd,
const void *buf,
size_t bufsize, off_t offset)
1694 (
int fd,
const void *buf,
size_t bufsize, off_t offset));
1697 #elif defined GNULIB_POSIXCHECK 1699 # if HAVE_RAW_DECL_PWRITE 1701 "use gnulib module pwrite for portability");
1711 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1713 # define read rpl_read 1735 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1736 # define readlink rpl_readlink 1739 (
const char *file,
char *buf,
size_t bufsize)
1742 (
const char *file,
char *buf,
size_t bufsize));
1746 (
const char *file,
char *buf,
size_t bufsize)
1750 (
const char *file,
char *buf,
size_t bufsize));
1753 #elif defined GNULIB_POSIXCHECK 1755 # if HAVE_RAW_DECL_READLINK 1757 "use gnulib module readlink for portability");
1764 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1765 # define readlinkat rpl_readlinkat 1768 (
int fd,
char const *file,
char *buf,
size_t len)
1771 (
int fd,
char const *file,
char *buf,
size_t len));
1775 (
int fd,
char const *file,
char *buf,
size_t len)
1779 (
int fd,
char const *file,
char *buf,
size_t len));
1782 #elif defined GNULIB_POSIXCHECK 1784 # if HAVE_RAW_DECL_READLINKAT 1786 "use gnulib module readlinkat for portability");
1794 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1795 # define rmdir rpl_rmdir 1803 #elif defined GNULIB_POSIXCHECK 1805 # if HAVE_RAW_DECL_RMDIR 1807 "use gnulib module rmdir for portability");
1830 #elif defined GNULIB_POSIXCHECK 1832 # if HAVE_RAW_DECL_SETHOSTNAME 1834 "use gnulib module sethostname for portability");
1845 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1847 # define sleep rpl_sleep 1858 #elif defined GNULIB_POSIXCHECK 1860 # if HAVE_RAW_DECL_SLEEP 1862 "use gnulib module sleep for portability");
1869 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1871 # define symlink rpl_symlink 1884 #elif defined GNULIB_POSIXCHECK 1886 # if HAVE_RAW_DECL_SYMLINK 1888 "use gnulib module symlink for portability");
1895 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1897 # define symlinkat rpl_symlinkat 1900 (
char const *contents,
int fd,
char const *file)
1903 (
char const *contents,
int fd,
char const *file));
1907 (
char const *contents,
int fd,
char const *file)
1911 (
char const *contents,
int fd,
char const *file));
1914 #elif defined GNULIB_POSIXCHECK 1916 # if HAVE_RAW_DECL_SYMLINKAT 1918 "use gnulib module symlinkat for portability");
1929 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1931 # define truncate rpl_truncate 1944 #elif defined GNULIB_POSIXCHECK 1946 # if HAVE_RAW_DECL_TRUNCATE 1948 "use gnulib module truncate for portability");
1957 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1959 # define ttyname_r rpl_ttyname_r 1964 (
int fd,
char *buf,
size_t buflen));
1971 (
int fd,
char *buf,
size_t buflen));
1974 #elif defined GNULIB_POSIXCHECK 1976 # if HAVE_RAW_DECL_TTYNAME_R 1978 "use gnulib module ttyname_r for portability");
1985 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1987 # define unlink rpl_unlink 1995 #elif defined GNULIB_POSIXCHECK 1997 # if HAVE_RAW_DECL_UNLINK 1999 "use gnulib module unlink for portability");
2006 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 2008 # define unlinkat rpl_unlinkat 2021 #elif defined GNULIB_POSIXCHECK 2023 # if HAVE_RAW_DECL_UNLINKAT 2025 "use gnulib module openat for portability");
2036 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 2038 # define usleep rpl_usleep 2049 #elif defined GNULIB_POSIXCHECK 2051 # if HAVE_RAW_DECL_USLEEP 2053 "use gnulib module usleep for portability");
2063 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 2065 # define write rpl_write 2069 _GL_CXXALIAS_RPL (write, ssize_t, (
int fd,
const void *buf,
size_t count));
#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_UNISTD_INLINE
Definition: unistd.h:600
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
Definition: inet.h:180
#define _GL_EXTERN_C
Definition: inet.h:146
#define _GL_INLINE_HEADER_BEGIN
Definition: config.h:1817
_GL_CXXALIAS_SYS(close, int,(int fd))
#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