summaryrefslogtreecommitdiffstats
path: root/gl/unistd.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/unistd.in.h')
-rw-r--r--gl/unistd.in.h97
1 files changed, 23 insertions, 74 deletions
diff --git a/gl/unistd.in.h b/gl/unistd.in.h
index 9f057d30..f7e4450c 100644
--- a/gl/unistd.in.h
+++ b/gl/unistd.in.h
@@ -1,5 +1,5 @@
1/* Substitute for and wrapper around <unistd.h>. 1/* Substitute for and wrapper around <unistd.h>.
2 Copyright (C) 2003-2025 Free Software Foundation, Inc. 2 Copyright (C) 2003-2026 Free Software Foundation, Inc.
3 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
@@ -104,15 +104,12 @@
104# include <direct.h> 104# include <direct.h>
105#endif 105#endif
106 106
107/* FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Solaris 11.4, and glibc 2.41
108 do not define O_CLOEXEC in <unistd.h>. */
109/* Cygwin 1.7.1 and Android 4.3 declare unlinkat in <fcntl.h>, not in 107/* Cygwin 1.7.1 and Android 4.3 declare unlinkat in <fcntl.h>, not in
110 <unistd.h>. */ 108 <unistd.h>. */
111/* But avoid namespace pollution on glibc systems. */ 109/* But avoid namespace pollution on glibc systems. */
112#if ! defined O_CLOEXEC \ 110#if ((@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) \
113 || ((@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) \ 111 && (defined __CYGWIN__ || defined __ANDROID__) \
114 && (defined __CYGWIN__ || defined __ANDROID__) \ 112 && ! defined __GLIBC__)
115 && ! defined __GLIBC__)
116# include <fcntl.h> 113# include <fcntl.h>
117#endif 114#endif
118 115
@@ -120,10 +117,8 @@
120/* mingw, MSVC, BeOS, Haiku declare environ in <stdlib.h>, not in 117/* mingw, MSVC, BeOS, Haiku declare environ in <stdlib.h>, not in
121 <unistd.h>. */ 118 <unistd.h>. */
122/* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>. */ 119/* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>. */
123/* OSF Tru64 Unix cannot see gnulib rpl_strtod when system <stdlib.h> is
124 included here. */
125/* But avoid namespace pollution on glibc systems. */ 120/* But avoid namespace pollution on glibc systems. */
126#if !defined __GLIBC__ && !defined __osf__ 121#if !defined __GLIBC__
127# define __need_system_stdlib_h 122# define __need_system_stdlib_h
128# include <stdlib.h> 123# include <stdlib.h>
129# undef __need_system_stdlib_h 124# undef __need_system_stdlib_h
@@ -134,10 +129,10 @@
134# include <process.h> 129# include <process.h>
135#endif 130#endif
136 131
137/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>. 132/* AIX declares getdomainname in <netdb.h>, not in <unistd.h>.
138 NonStop Kernel declares gethostname in <netdb.h>, not in <unistd.h>. */ 133 NonStop Kernel declares gethostname in <netdb.h>, not in <unistd.h>. */
139/* But avoid namespace pollution on glibc systems. */ 134/* But avoid namespace pollution on glibc systems. */
140#if ((@GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__)) \ 135#if ((@GNULIB_GETDOMAINNAME@ && defined _AIX) \
141 || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \ 136 || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \
142 && !defined __GLIBC__ 137 && !defined __GLIBC__
143# include <netdb.h> 138# include <netdb.h>
@@ -307,7 +302,6 @@ _GL_CXXALIAS_SYS (access, int, (const char *file, int mode));
307# endif 302# endif
308_GL_CXXALIASWARN (access); 303_GL_CXXALIASWARN (access);
309#elif defined GNULIB_POSIXCHECK 304#elif defined GNULIB_POSIXCHECK
310# undef access
311# if HAVE_RAW_DECL_ACCESS 305# if HAVE_RAW_DECL_ACCESS
312/* The access() function is a security risk. */ 306/* The access() function is a security risk. */
313_GL_WARN_ON_USE (access, "access does not always support X_OK - " 307_GL_WARN_ON_USE (access, "access does not always support X_OK - "
@@ -344,7 +338,6 @@ _GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1)));
344# endif 338# endif
345_GL_CXXALIASWARN (chdir); 339_GL_CXXALIASWARN (chdir);
346#elif defined GNULIB_POSIXCHECK 340#elif defined GNULIB_POSIXCHECK
347# undef chdir
348# if HAVE_RAW_DECL_CHDIR 341# if HAVE_RAW_DECL_CHDIR
349_GL_WARN_ON_USE (chdir, "chdir is not always in <unistd.h> - " 342_GL_WARN_ON_USE (chdir, "chdir is not always in <unistd.h> - "
350 "use gnulib module chdir for portability"); 343 "use gnulib module chdir for portability");
@@ -389,7 +382,6 @@ _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid));
389# endif 382# endif
390_GL_CXXALIASWARN (chown); 383_GL_CXXALIASWARN (chown);
391#elif defined GNULIB_POSIXCHECK 384#elif defined GNULIB_POSIXCHECK
392# undef chown
393# if HAVE_RAW_DECL_CHOWN 385# if HAVE_RAW_DECL_CHOWN
394_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " 386_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and "
395 "doesn't treat a uid or gid of -1 on some systems - " 387 "doesn't treat a uid or gid of -1 on some systems - "
@@ -423,7 +415,6 @@ _GL_CXXALIASWARN (close);
423# define close close_used_without_requesting_gnulib_module_close 415# define close close_used_without_requesting_gnulib_module_close
424# endif 416# endif
425#elif defined GNULIB_POSIXCHECK 417#elif defined GNULIB_POSIXCHECK
426# undef close
427/* Assume close is always declared. */ 418/* Assume close is always declared. */
428_GL_WARN_ON_USE (close, "close does not portably work on sockets - " 419_GL_WARN_ON_USE (close, "close does not portably work on sockets - "
429 "use gnulib module close for portability"); 420 "use gnulib module close for portability");
@@ -470,7 +461,6 @@ _GL_CXXALIAS_SYS (copy_file_range, ssize_t, (int ifd, off_t *ipos,
470_GL_CXXALIASWARN (copy_file_range); 461_GL_CXXALIASWARN (copy_file_range);
471# endif 462# endif
472#elif defined GNULIB_POSIXCHECK 463#elif defined GNULIB_POSIXCHECK
473# undef copy_file_range
474# if HAVE_RAW_DECL_COPY_FILE_RANGE 464# if HAVE_RAW_DECL_COPY_FILE_RANGE
475_GL_WARN_ON_USE (copy_file_range, 465_GL_WARN_ON_USE (copy_file_range,
476 "copy_file_range is unportable - " 466 "copy_file_range is unportable - "
@@ -497,7 +487,6 @@ _GL_CXXALIAS_SYS (dup, int, (int oldfd));
497# endif 487# endif
498_GL_CXXALIASWARN (dup); 488_GL_CXXALIASWARN (dup);
499#elif defined GNULIB_POSIXCHECK 489#elif defined GNULIB_POSIXCHECK
500# undef dup
501# if HAVE_RAW_DECL_DUP 490# if HAVE_RAW_DECL_DUP
502_GL_WARN_ON_USE (dup, "dup is unportable - " 491_GL_WARN_ON_USE (dup, "dup is unportable - "
503 "use gnulib module dup for portability"); 492 "use gnulib module dup for portability");
@@ -542,7 +531,6 @@ _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd));
542# endif 531# endif
543_GL_CXXALIASWARN (dup2); 532_GL_CXXALIASWARN (dup2);
544#elif defined GNULIB_POSIXCHECK 533#elif defined GNULIB_POSIXCHECK
545# undef dup2
546# if HAVE_RAW_DECL_DUP2 534# if HAVE_RAW_DECL_DUP2
547_GL_WARN_ON_USE (dup2, "dup2 is unportable - " 535_GL_WARN_ON_USE (dup2, "dup2 is unportable - "
548 "use gnulib module dup2 for portability"); 536 "use gnulib module dup2 for portability");
@@ -590,7 +578,6 @@ _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags));
590_GL_CXXALIASWARN (dup3); 578_GL_CXXALIASWARN (dup3);
591# endif 579# endif
592#elif defined GNULIB_POSIXCHECK 580#elif defined GNULIB_POSIXCHECK
593# undef dup3
594# if HAVE_RAW_DECL_DUP3 581# if HAVE_RAW_DECL_DUP3
595_GL_WARN_ON_USE (dup3, "dup3 is unportable - " 582_GL_WARN_ON_USE (dup3, "dup3 is unportable - "
596 "use gnulib module dup3 for portability"); 583 "use gnulib module dup3 for portability");
@@ -658,7 +645,6 @@ _GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - "
658 "use the gnulib module faccessat instead"); 645 "use the gnulib module faccessat instead");
659# endif 646# endif
660#elif defined GNULIB_POSIXCHECK 647#elif defined GNULIB_POSIXCHECK
661# undef euidaccess
662# if HAVE_RAW_DECL_EUIDACCESS 648# if HAVE_RAW_DECL_EUIDACCESS
663_GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - " 649_GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - "
664 "use gnulib module euidaccess for portability"); 650 "use gnulib module euidaccess for portability");
@@ -680,7 +666,6 @@ _GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...));
680# endif 666# endif
681_GL_CXXALIASWARN (execl); 667_GL_CXXALIASWARN (execl);
682#elif defined GNULIB_POSIXCHECK 668#elif defined GNULIB_POSIXCHECK
683# undef execl
684# if HAVE_RAW_DECL_EXECL 669# if HAVE_RAW_DECL_EXECL
685_GL_WARN_ON_USE (execl, "execl behaves very differently on mingw - " 670_GL_WARN_ON_USE (execl, "execl behaves very differently on mingw - "
686 "use gnulib module execl for portability"); 671 "use gnulib module execl for portability");
@@ -715,7 +700,6 @@ _GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...));
715# endif 700# endif
716_GL_CXXALIASWARN (execle); 701_GL_CXXALIASWARN (execle);
717#elif defined GNULIB_POSIXCHECK 702#elif defined GNULIB_POSIXCHECK
718# undef execle
719# if HAVE_RAW_DECL_EXECLE 703# if HAVE_RAW_DECL_EXECLE
720_GL_WARN_ON_USE (execle, "execle behaves very differently on mingw - " 704_GL_WARN_ON_USE (execle, "execle behaves very differently on mingw - "
721 "use gnulib module execle for portability"); 705 "use gnulib module execle for portability");
@@ -751,7 +735,6 @@ _GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...));
751# endif 735# endif
752_GL_CXXALIASWARN (execlp); 736_GL_CXXALIASWARN (execlp);
753#elif defined GNULIB_POSIXCHECK 737#elif defined GNULIB_POSIXCHECK
754# undef execlp
755# if HAVE_RAW_DECL_EXECLP 738# if HAVE_RAW_DECL_EXECLP
756_GL_WARN_ON_USE (execlp, "execlp behaves very differently on mingw - " 739_GL_WARN_ON_USE (execlp, "execlp behaves very differently on mingw - "
757 "use gnulib module execlp for portability"); 740 "use gnulib module execlp for portability");
@@ -788,7 +771,6 @@ _GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv));
788# endif 771# endif
789_GL_CXXALIASWARN (execv); 772_GL_CXXALIASWARN (execv);
790#elif defined GNULIB_POSIXCHECK 773#elif defined GNULIB_POSIXCHECK
791# undef execv
792# if HAVE_RAW_DECL_EXECV 774# if HAVE_RAW_DECL_EXECV
793_GL_WARN_ON_USE (execv, "execv behaves very differently on mingw - " 775_GL_WARN_ON_USE (execv, "execv behaves very differently on mingw - "
794 "use gnulib module execv for portability"); 776 "use gnulib module execv for portability");
@@ -827,7 +809,6 @@ _GL_CXXALIAS_SYS (execve, int,
827# endif 809# endif
828_GL_CXXALIASWARN (execve); 810_GL_CXXALIASWARN (execve);
829#elif defined GNULIB_POSIXCHECK 811#elif defined GNULIB_POSIXCHECK
830# undef execve
831# if HAVE_RAW_DECL_EXECVE 812# if HAVE_RAW_DECL_EXECVE
832_GL_WARN_ON_USE (execve, "execve behaves very differently on mingw - " 813_GL_WARN_ON_USE (execve, "execve behaves very differently on mingw - "
833 "use gnulib module execve for portability"); 814 "use gnulib module execve for portability");
@@ -865,7 +846,6 @@ _GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv));
865# endif 846# endif
866_GL_CXXALIASWARN (execvp); 847_GL_CXXALIASWARN (execvp);
867#elif defined GNULIB_POSIXCHECK 848#elif defined GNULIB_POSIXCHECK
868# undef execvp
869# if HAVE_RAW_DECL_EXECVP 849# if HAVE_RAW_DECL_EXECVP
870_GL_WARN_ON_USE (execvp, "execvp behaves very differently on mingw - " 850_GL_WARN_ON_USE (execvp, "execvp behaves very differently on mingw - "
871 "use gnulib module execvp for portability"); 851 "use gnulib module execvp for portability");
@@ -911,7 +891,6 @@ _GL_CXXALIAS_SYS (execvpe, int,
911_GL_CXXALIASWARN (execvpe); 891_GL_CXXALIASWARN (execvpe);
912# endif 892# endif
913#elif defined GNULIB_POSIXCHECK 893#elif defined GNULIB_POSIXCHECK
914# undef execvpe
915# if HAVE_RAW_DECL_EXECVPE 894# if HAVE_RAW_DECL_EXECVPE
916_GL_WARN_ON_USE (execvpe, "execvpe behaves very differently on mingw - " 895_GL_WARN_ON_USE (execvpe, "execvpe behaves very differently on mingw - "
917 "use gnulib module execvpe for portability"); 896 "use gnulib module execvpe for portability");
@@ -968,7 +947,6 @@ _GL_CXXALIAS_SYS (faccessat, int,
968_GL_CXXALIASWARN (faccessat); 947_GL_CXXALIASWARN (faccessat);
969# endif 948# endif
970#elif defined GNULIB_POSIXCHECK 949#elif defined GNULIB_POSIXCHECK
971# undef faccessat
972# if HAVE_RAW_DECL_FACCESSAT 950# if HAVE_RAW_DECL_FACCESSAT
973_GL_WARN_ON_USE (faccessat, "faccessat is not portable - " 951_GL_WARN_ON_USE (faccessat, "faccessat is not portable - "
974 "use gnulib module faccessat for portability"); 952 "use gnulib module faccessat for portability");
@@ -1005,7 +983,6 @@ _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd);
1005_GL_EXTERN_C const char *_gl_directory_name (int fd); 983_GL_EXTERN_C const char *_gl_directory_name (int fd);
1006# endif 984# endif
1007#elif defined GNULIB_POSIXCHECK 985#elif defined GNULIB_POSIXCHECK
1008# undef fchdir
1009# if HAVE_RAW_DECL_FCHDIR 986# if HAVE_RAW_DECL_FCHDIR
1010_GL_WARN_ON_USE (fchdir, "fchdir is unportable - " 987_GL_WARN_ON_USE (fchdir, "fchdir is unportable - "
1011 "use gnulib module fchdir for portability"); 988 "use gnulib module fchdir for portability");
@@ -1035,7 +1012,6 @@ _GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file,
1035# endif 1012# endif
1036_GL_CXXALIASWARN (fchownat); 1013_GL_CXXALIASWARN (fchownat);
1037#elif defined GNULIB_POSIXCHECK 1014#elif defined GNULIB_POSIXCHECK
1038# undef fchownat
1039# if HAVE_RAW_DECL_FCHOWNAT 1015# if HAVE_RAW_DECL_FCHOWNAT
1040_GL_WARN_ON_USE (fchownat, "fchownat is not portable - " 1016_GL_WARN_ON_USE (fchownat, "fchownat is not portable - "
1041 "use gnulib module fchownat for portability"); 1017 "use gnulib module fchownat for portability");
@@ -1065,7 +1041,6 @@ _GL_CXXALIAS_SYS (fdatasync, int, (int fd));
1065_GL_CXXALIASWARN (fdatasync); 1041_GL_CXXALIASWARN (fdatasync);
1066# endif 1042# endif
1067#elif defined GNULIB_POSIXCHECK 1043#elif defined GNULIB_POSIXCHECK
1068# undef fdatasync
1069# if HAVE_RAW_DECL_FDATASYNC 1044# if HAVE_RAW_DECL_FDATASYNC
1070_GL_WARN_ON_USE (fdatasync, "fdatasync is unportable - " 1045_GL_WARN_ON_USE (fdatasync, "fdatasync is unportable - "
1071 "use gnulib module fdatasync for portability"); 1046 "use gnulib module fdatasync for portability");
@@ -1084,7 +1059,6 @@ _GL_FUNCDECL_SYS (fsync, int, (int fd), );
1084_GL_CXXALIAS_SYS (fsync, int, (int fd)); 1059_GL_CXXALIAS_SYS (fsync, int, (int fd));
1085_GL_CXXALIASWARN (fsync); 1060_GL_CXXALIASWARN (fsync);
1086#elif defined GNULIB_POSIXCHECK 1061#elif defined GNULIB_POSIXCHECK
1087# undef fsync
1088# if HAVE_RAW_DECL_FSYNC 1062# if HAVE_RAW_DECL_FSYNC
1089_GL_WARN_ON_USE (fsync, "fsync is unportable - " 1063_GL_WARN_ON_USE (fsync, "fsync is unportable - "
1090 "use gnulib module fsync for portability"); 1064 "use gnulib module fsync for portability");
@@ -1118,7 +1092,6 @@ _GL_CXXALIAS_SYS (ftruncate, int,
1118_GL_CXXALIASWARN (ftruncate); 1092_GL_CXXALIASWARN (ftruncate);
1119# endif 1093# endif
1120#elif defined GNULIB_POSIXCHECK 1094#elif defined GNULIB_POSIXCHECK
1121# undef ftruncate
1122# if HAVE_RAW_DECL_FTRUNCATE 1095# if HAVE_RAW_DECL_FTRUNCATE
1123_GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " 1096_GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - "
1124 "use gnulib module ftruncate for portability"); 1097 "use gnulib module ftruncate for portability");
@@ -1157,7 +1130,6 @@ _GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size));
1157# endif 1130# endif
1158_GL_CXXALIASWARN (getcwd); 1131_GL_CXXALIASWARN (getcwd);
1159#elif defined GNULIB_POSIXCHECK 1132#elif defined GNULIB_POSIXCHECK
1160# undef getcwd
1161# if HAVE_RAW_DECL_GETCWD 1133# if HAVE_RAW_DECL_GETCWD
1162_GL_WARN_ON_USE (getcwd, "getcwd is unportable - " 1134_GL_WARN_ON_USE (getcwd, "getcwd is unportable - "
1163 "use gnulib module getcwd for portability"); 1135 "use gnulib module getcwd for portability");
@@ -1215,7 +1187,6 @@ _GL_CXXALIAS_SYS (getdomainname, int,
1215_GL_CXXALIASWARN (getdomainname); 1187_GL_CXXALIASWARN (getdomainname);
1216# endif 1188# endif
1217#elif defined GNULIB_POSIXCHECK 1189#elif defined GNULIB_POSIXCHECK
1218# undef getdomainname
1219# if HAVE_RAW_DECL_GETDOMAINNAME 1190# if HAVE_RAW_DECL_GETDOMAINNAME
1220_GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - " 1191_GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - "
1221 "use gnulib module getdomainname for portability"); 1192 "use gnulib module getdomainname for portability");
@@ -1243,7 +1214,6 @@ _GL_CXXALIAS_SYS_CAST (getdtablesize, int, (void));
1243# endif 1214# endif
1244_GL_CXXALIASWARN (getdtablesize); 1215_GL_CXXALIASWARN (getdtablesize);
1245#elif defined GNULIB_POSIXCHECK 1216#elif defined GNULIB_POSIXCHECK
1246# undef getdtablesize
1247# if HAVE_RAW_DECL_GETDTABLESIZE 1217# if HAVE_RAW_DECL_GETDTABLESIZE
1248_GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - " 1218_GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - "
1249 "use gnulib module getdtablesize for portability"); 1219 "use gnulib module getdtablesize for portability");
@@ -1274,7 +1244,6 @@ _GL_CXXALIAS_SYS (getentropy, int,
1274_GL_CXXALIASWARN (getentropy); 1244_GL_CXXALIASWARN (getentropy);
1275# endif 1245# endif
1276#elif defined GNULIB_POSIXCHECK 1246#elif defined GNULIB_POSIXCHECK
1277# undef getentropy
1278# if HAVE_RAW_DECL_GETENTROPY 1247# if HAVE_RAW_DECL_GETENTROPY
1279_GL_WARN_ON_USE (getentropy, "getentropy is unportable - " 1248_GL_WARN_ON_USE (getentropy, "getentropy is unportable - "
1280 "use gnulib module getentropy for portability"); 1249 "use gnulib module getentropy for portability");
@@ -1307,7 +1276,6 @@ _GL_CXXALIAS_SYS (getgroups, int,
1307# endif 1276# endif
1308_GL_CXXALIASWARN (getgroups); 1277_GL_CXXALIASWARN (getgroups);
1309#elif defined GNULIB_POSIXCHECK 1278#elif defined GNULIB_POSIXCHECK
1310# undef getgroups
1311# if HAVE_RAW_DECL_GETGROUPS 1279# if HAVE_RAW_DECL_GETGROUPS
1312_GL_WARN_ON_USE (getgroups, "getgroups is unportable - " 1280_GL_WARN_ON_USE (getgroups, "getgroups is unportable - "
1313 "use gnulib module getgroups for portability"); 1281 "use gnulib module getgroups for portability");
@@ -1336,8 +1304,7 @@ _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len));
1336_GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len), 1304_GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len),
1337 _GL_ARG_NONNULL ((1))); 1305 _GL_ARG_NONNULL ((1)));
1338# endif 1306# endif
1339/* Need to cast, because on Solaris 10 and OSF/1 5.1 systems, the second 1307/* Need to cast, because on Solaris 10 systems, the second parameter is
1340 parameter is
1341 int len. */ 1308 int len. */
1342_GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); 1309_GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len));
1343# endif 1310# endif
@@ -1348,7 +1315,6 @@ _GL_CXXALIASWARN (gethostname);
1348# define gethostname gethostname_used_without_requesting_gnulib_module_gethostname 1315# define gethostname gethostname_used_without_requesting_gnulib_module_gethostname
1349# endif 1316# endif
1350#elif defined GNULIB_POSIXCHECK 1317#elif defined GNULIB_POSIXCHECK
1351# undef gethostname
1352# if HAVE_RAW_DECL_GETHOSTNAME 1318# if HAVE_RAW_DECL_GETHOSTNAME
1353_GL_WARN_ON_USE (gethostname, "gethostname is unportable - " 1319_GL_WARN_ON_USE (gethostname, "gethostname is unportable - "
1354 "use gnulib module gethostname for portability"); 1320 "use gnulib module gethostname for portability");
@@ -1383,7 +1349,6 @@ _GL_CXXALIAS_SYS (getlogin, char *, (void));
1383_GL_CXXALIASWARN (getlogin); 1349_GL_CXXALIASWARN (getlogin);
1384# endif 1350# endif
1385#elif defined GNULIB_POSIXCHECK 1351#elif defined GNULIB_POSIXCHECK
1386# undef getlogin
1387# if HAVE_RAW_DECL_GETLOGIN 1352# if HAVE_RAW_DECL_GETLOGIN
1388_GL_WARN_ON_USE (getlogin, "getlogin is unportable - " 1353_GL_WARN_ON_USE (getlogin, "getlogin is unportable - "
1389 "use gnulib module getlogin for portability"); 1354 "use gnulib module getlogin for portability");
@@ -1426,7 +1391,6 @@ _GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size));
1426_GL_CXXALIASWARN (getlogin_r); 1391_GL_CXXALIASWARN (getlogin_r);
1427# endif 1392# endif
1428#elif defined GNULIB_POSIXCHECK 1393#elif defined GNULIB_POSIXCHECK
1429# undef getlogin_r
1430# if HAVE_RAW_DECL_GETLOGIN_R 1394# if HAVE_RAW_DECL_GETLOGIN_R
1431_GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - " 1395_GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - "
1432 "use gnulib module getlogin_r for portability"); 1396 "use gnulib module getlogin_r for portability");
@@ -1513,7 +1477,6 @@ _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void));
1513_GL_CXXALIASWARN (getpagesize); 1477_GL_CXXALIASWARN (getpagesize);
1514# endif 1478# endif
1515#elif defined GNULIB_POSIXCHECK 1479#elif defined GNULIB_POSIXCHECK
1516# undef getpagesize
1517# if HAVE_RAW_DECL_GETPAGESIZE 1480# if HAVE_RAW_DECL_GETPAGESIZE
1518_GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " 1481_GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - "
1519 "use gnulib module getpagesize for portability"); 1482 "use gnulib module getpagesize for portability");
@@ -1544,7 +1507,6 @@ _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt));
1544# endif 1507# endif
1545_GL_CXXALIASWARN (getpass); 1508_GL_CXXALIASWARN (getpass);
1546#elif defined GNULIB_POSIXCHECK 1509#elif defined GNULIB_POSIXCHECK
1547# undef getpass
1548# if HAVE_RAW_DECL_GETPASS 1510# if HAVE_RAW_DECL_GETPASS
1549_GL_WARN_ON_USE (getpass, "getpass is unportable - " 1511_GL_WARN_ON_USE (getpass, "getpass is unportable - "
1550 "use gnulib module getpass or getpass-gnu for portability"); 1512 "use gnulib module getpass or getpass-gnu for portability");
@@ -1587,7 +1549,6 @@ _GL_CXXALIAS_SYS (getusershell, char *, (void));
1587# endif 1549# endif
1588_GL_CXXALIASWARN (getusershell); 1550_GL_CXXALIASWARN (getusershell);
1589#elif defined GNULIB_POSIXCHECK 1551#elif defined GNULIB_POSIXCHECK
1590# undef getusershell
1591# if HAVE_RAW_DECL_GETUSERSHELL 1552# if HAVE_RAW_DECL_GETUSERSHELL
1592_GL_WARN_ON_USE (getusershell, "getusershell is unportable - " 1553_GL_WARN_ON_USE (getusershell, "getusershell is unportable - "
1593 "use gnulib module getusershell for portability"); 1554 "use gnulib module getusershell for portability");
@@ -1611,7 +1572,6 @@ _GL_CXXALIAS_SYS (setusershell, void, (void));
1611# endif 1572# endif
1612_GL_CXXALIASWARN (setusershell); 1573_GL_CXXALIASWARN (setusershell);
1613#elif defined GNULIB_POSIXCHECK 1574#elif defined GNULIB_POSIXCHECK
1614# undef setusershell
1615# if HAVE_RAW_DECL_SETUSERSHELL 1575# if HAVE_RAW_DECL_SETUSERSHELL
1616_GL_WARN_ON_USE (setusershell, "setusershell is unportable - " 1576_GL_WARN_ON_USE (setusershell, "setusershell is unportable - "
1617 "use gnulib module getusershell for portability"); 1577 "use gnulib module getusershell for portability");
@@ -1636,7 +1596,6 @@ _GL_CXXALIAS_SYS (endusershell, void, (void));
1636# endif 1596# endif
1637_GL_CXXALIASWARN (endusershell); 1597_GL_CXXALIASWARN (endusershell);
1638#elif defined GNULIB_POSIXCHECK 1598#elif defined GNULIB_POSIXCHECK
1639# undef endusershell
1640# if HAVE_RAW_DECL_ENDUSERSHELL 1599# if HAVE_RAW_DECL_ENDUSERSHELL
1641_GL_WARN_ON_USE (endusershell, "endusershell is unportable - " 1600_GL_WARN_ON_USE (endusershell, "endusershell is unportable - "
1642 "use gnulib module getusershell for portability"); 1601 "use gnulib module getusershell for portability");
@@ -1652,7 +1611,6 @@ _GL_FUNCDECL_SYS (group_member, int, (gid_t gid), );
1652_GL_CXXALIAS_SYS (group_member, int, (gid_t gid)); 1611_GL_CXXALIAS_SYS (group_member, int, (gid_t gid));
1653_GL_CXXALIASWARN (group_member); 1612_GL_CXXALIASWARN (group_member);
1654#elif defined GNULIB_POSIXCHECK 1613#elif defined GNULIB_POSIXCHECK
1655# undef group_member
1656# if HAVE_RAW_DECL_GROUP_MEMBER 1614# if HAVE_RAW_DECL_GROUP_MEMBER
1657_GL_WARN_ON_USE (group_member, "group_member is unportable - " 1615_GL_WARN_ON_USE (group_member, "group_member is unportable - "
1658 "use gnulib module group-member for portability"); 1616 "use gnulib module group-member for portability");
@@ -1680,7 +1638,6 @@ _GL_CXXALIAS_SYS (isatty, int, (int fd));
1680# endif 1638# endif
1681_GL_CXXALIASWARN (isatty); 1639_GL_CXXALIASWARN (isatty);
1682#elif defined GNULIB_POSIXCHECK 1640#elif defined GNULIB_POSIXCHECK
1683# undef isatty
1684# if HAVE_RAW_DECL_ISATTY 1641# if HAVE_RAW_DECL_ISATTY
1685_GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - " 1642_GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - "
1686 "use gnulib module isatty for portability"); 1643 "use gnulib module isatty for portability");
@@ -1725,7 +1682,6 @@ _GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group));
1725# endif 1682# endif
1726_GL_CXXALIASWARN (lchown); 1683_GL_CXXALIASWARN (lchown);
1727#elif defined GNULIB_POSIXCHECK 1684#elif defined GNULIB_POSIXCHECK
1728# undef lchown
1729# if HAVE_RAW_DECL_LCHOWN 1685# if HAVE_RAW_DECL_LCHOWN
1730_GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " 1686_GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - "
1731 "use gnulib module lchown for portability"); 1687 "use gnulib module lchown for portability");
@@ -1754,7 +1710,6 @@ _GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2));
1754# endif 1710# endif
1755_GL_CXXALIASWARN (link); 1711_GL_CXXALIASWARN (link);
1756#elif defined GNULIB_POSIXCHECK 1712#elif defined GNULIB_POSIXCHECK
1757# undef link
1758# if HAVE_RAW_DECL_LINK 1713# if HAVE_RAW_DECL_LINK
1759_GL_WARN_ON_USE (link, "link is unportable - " 1714_GL_WARN_ON_USE (link, "link is unportable - "
1760 "use gnulib module link for portability"); 1715 "use gnulib module link for portability");
@@ -1793,7 +1748,6 @@ _GL_CXXALIAS_SYS (linkat, int,
1793_GL_CXXALIASWARN (linkat); 1748_GL_CXXALIASWARN (linkat);
1794# endif 1749# endif
1795#elif defined GNULIB_POSIXCHECK 1750#elif defined GNULIB_POSIXCHECK
1796# undef linkat
1797# if HAVE_RAW_DECL_LINKAT 1751# if HAVE_RAW_DECL_LINKAT
1798_GL_WARN_ON_USE (linkat, "linkat is unportable - " 1752_GL_WARN_ON_USE (linkat, "linkat is unportable - "
1799 "use gnulib module linkat for portability"); 1753 "use gnulib module linkat for portability");
@@ -1823,7 +1777,6 @@ _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence));
1823# endif 1777# endif
1824_GL_CXXALIASWARN (lseek); 1778_GL_CXXALIASWARN (lseek);
1825#elif defined GNULIB_POSIXCHECK 1779#elif defined GNULIB_POSIXCHECK
1826# undef lseek
1827# if HAVE_RAW_DECL_LSEEK 1780# if HAVE_RAW_DECL_LSEEK
1828_GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " 1781_GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
1829 "systems - use gnulib module lseek for portability"); 1782 "systems - use gnulib module lseek for portability");
@@ -1856,7 +1809,6 @@ _GL_FUNCDECL_SYS (pipe, int, (int fd[2]),
1856_GL_CXXALIAS_SYS (pipe, int, (int fd[2])); 1809_GL_CXXALIAS_SYS (pipe, int, (int fd[2]));
1857_GL_CXXALIASWARN (pipe); 1810_GL_CXXALIASWARN (pipe);
1858#elif defined GNULIB_POSIXCHECK 1811#elif defined GNULIB_POSIXCHECK
1859# undef pipe
1860# if HAVE_RAW_DECL_PIPE 1812# if HAVE_RAW_DECL_PIPE
1861_GL_WARN_ON_USE (pipe, "pipe is unportable - " 1813_GL_WARN_ON_USE (pipe, "pipe is unportable - "
1862 "use gnulib module pipe-posix for portability"); 1814 "use gnulib module pipe-posix for portability");
@@ -1890,7 +1842,6 @@ _GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags));
1890_GL_CXXALIASWARN (pipe2); 1842_GL_CXXALIASWARN (pipe2);
1891# endif 1843# endif
1892#elif defined GNULIB_POSIXCHECK 1844#elif defined GNULIB_POSIXCHECK
1893# undef pipe2
1894# if HAVE_RAW_DECL_PIPE2 1845# if HAVE_RAW_DECL_PIPE2
1895_GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " 1846_GL_WARN_ON_USE (pipe2, "pipe2 is unportable - "
1896 "use gnulib module pipe2 for portability"); 1847 "use gnulib module pipe2 for portability");
@@ -1927,7 +1878,6 @@ _GL_CXXALIAS_SYS (pread, ssize_t,
1927_GL_CXXALIASWARN (pread); 1878_GL_CXXALIASWARN (pread);
1928# endif 1879# endif
1929#elif defined GNULIB_POSIXCHECK 1880#elif defined GNULIB_POSIXCHECK
1930# undef pread
1931# if HAVE_RAW_DECL_PREAD 1881# if HAVE_RAW_DECL_PREAD
1932_GL_WARN_ON_USE (pread, "pread is unportable - " 1882_GL_WARN_ON_USE (pread, "pread is unportable - "
1933 "use gnulib module pread for portability"); 1883 "use gnulib module pread for portability");
@@ -1964,7 +1914,6 @@ _GL_CXXALIAS_SYS (pwrite, ssize_t,
1964_GL_CXXALIASWARN (pwrite); 1914_GL_CXXALIASWARN (pwrite);
1965# endif 1915# endif
1966#elif defined GNULIB_POSIXCHECK 1916#elif defined GNULIB_POSIXCHECK
1967# undef pwrite
1968# if HAVE_RAW_DECL_PWRITE 1917# if HAVE_RAW_DECL_PWRITE
1969_GL_WARN_ON_USE (pwrite, "pwrite is unportable - " 1918_GL_WARN_ON_USE (pwrite, "pwrite is unportable - "
1970 "use gnulib module pwrite for portability"); 1919 "use gnulib module pwrite for portability");
@@ -2042,7 +1991,6 @@ _GL_CXXALIAS_SYS (readlink, ssize_t,
2042# endif 1991# endif
2043_GL_CXXALIASWARN (readlink); 1992_GL_CXXALIASWARN (readlink);
2044#elif defined GNULIB_POSIXCHECK 1993#elif defined GNULIB_POSIXCHECK
2045# undef readlink
2046# if HAVE_RAW_DECL_READLINK 1994# if HAVE_RAW_DECL_READLINK
2047_GL_WARN_ON_USE (readlink, "readlink is unportable - " 1995_GL_WARN_ON_USE (readlink, "readlink is unportable - "
2048 "use gnulib module readlink for portability"); 1996 "use gnulib module readlink for portability");
@@ -2077,7 +2025,6 @@ _GL_CXXALIAS_SYS (readlinkat, ssize_t,
2077_GL_CXXALIASWARN (readlinkat); 2025_GL_CXXALIASWARN (readlinkat);
2078# endif 2026# endif
2079#elif defined GNULIB_POSIXCHECK 2027#elif defined GNULIB_POSIXCHECK
2080# undef readlinkat
2081# if HAVE_RAW_DECL_READLINKAT 2028# if HAVE_RAW_DECL_READLINKAT
2082_GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - " 2029_GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - "
2083 "use gnulib module readlinkat for portability"); 2030 "use gnulib module readlinkat for portability");
@@ -2104,7 +2051,6 @@ _GL_CXXALIAS_SYS (rmdir, int, (char const *name));
2104# endif 2051# endif
2105_GL_CXXALIASWARN (rmdir); 2052_GL_CXXALIASWARN (rmdir);
2106#elif defined GNULIB_POSIXCHECK 2053#elif defined GNULIB_POSIXCHECK
2107# undef rmdir
2108# if HAVE_RAW_DECL_RMDIR 2054# if HAVE_RAW_DECL_RMDIR
2109_GL_WARN_ON_USE (rmdir, "rmdir is unportable - " 2055_GL_WARN_ON_USE (rmdir, "rmdir is unportable - "
2110 "use gnulib module rmdir for portability"); 2056 "use gnulib module rmdir for portability");
@@ -2151,9 +2097,9 @@ _GL_FUNCDECL_SYS (sethostname, int,
2151 (const char *name, size_t len), 2097 (const char *name, size_t len),
2152 _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_NODISCARD); 2098 _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_NODISCARD);
2153# endif 2099# endif
2154/* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, IRIX 6.5 2100/* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, and FreeBSD 6.4
2155 and FreeBSD 6.4 the second parameter is int. On Solaris 11 2101 the second parameter is int. On Solaris 11 2011-10, the first parameter is
2156 2011-10, the first parameter is not const. */ 2102 not const. */
2157_GL_CXXALIAS_SYS_CAST (sethostname, int, 2103_GL_CXXALIAS_SYS_CAST (sethostname, int,
2158 (const char *name, size_t len)); 2104 (const char *name, size_t len));
2159# endif 2105# endif
@@ -2161,7 +2107,6 @@ _GL_CXXALIAS_SYS_CAST (sethostname, int,
2161_GL_CXXALIASWARN (sethostname); 2107_GL_CXXALIASWARN (sethostname);
2162# endif 2108# endif
2163#elif defined GNULIB_POSIXCHECK 2109#elif defined GNULIB_POSIXCHECK
2164# undef sethostname
2165# if HAVE_RAW_DECL_SETHOSTNAME 2110# if HAVE_RAW_DECL_SETHOSTNAME
2166_GL_WARN_ON_USE (sethostname, "sethostname is unportable - " 2111_GL_WARN_ON_USE (sethostname, "sethostname is unportable - "
2167 "use gnulib module sethostname for portability"); 2112 "use gnulib module sethostname for portability");
@@ -2189,7 +2134,6 @@ _GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n));
2189# endif 2134# endif
2190_GL_CXXALIASWARN (sleep); 2135_GL_CXXALIASWARN (sleep);
2191#elif defined GNULIB_POSIXCHECK 2136#elif defined GNULIB_POSIXCHECK
2192# undef sleep
2193# if HAVE_RAW_DECL_SLEEP 2137# if HAVE_RAW_DECL_SLEEP
2194_GL_WARN_ON_USE (sleep, "sleep is unportable - " 2138_GL_WARN_ON_USE (sleep, "sleep is unportable - "
2195 "use gnulib module sleep for portability"); 2139 "use gnulib module sleep for portability");
@@ -2244,7 +2188,6 @@ _GL_CXXALIAS_SYS (symlink, int,
2244# endif 2188# endif
2245_GL_CXXALIASWARN (symlink); 2189_GL_CXXALIASWARN (symlink);
2246#elif defined GNULIB_POSIXCHECK 2190#elif defined GNULIB_POSIXCHECK
2247# undef symlink
2248# if HAVE_RAW_DECL_SYMLINK 2191# if HAVE_RAW_DECL_SYMLINK
2249_GL_WARN_ON_USE (symlink, "symlink is not portable - " 2192_GL_WARN_ON_USE (symlink, "symlink is not portable - "
2250 "use gnulib module symlink for portability"); 2193 "use gnulib module symlink for portability");
@@ -2276,7 +2219,6 @@ _GL_CXXALIAS_SYS (symlinkat, int,
2276_GL_CXXALIASWARN (symlinkat); 2219_GL_CXXALIASWARN (symlinkat);
2277# endif 2220# endif
2278#elif defined GNULIB_POSIXCHECK 2221#elif defined GNULIB_POSIXCHECK
2279# undef symlinkat
2280# if HAVE_RAW_DECL_SYMLINKAT 2222# if HAVE_RAW_DECL_SYMLINKAT
2281_GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - " 2223_GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - "
2282 "use gnulib module symlinkat for portability"); 2224 "use gnulib module symlinkat for portability");
@@ -2308,7 +2250,6 @@ _GL_CXXALIAS_SYS (truncate, int, (const char *filename, off_t length));
2308_GL_CXXALIASWARN (truncate); 2250_GL_CXXALIASWARN (truncate);
2309# endif 2251# endif
2310#elif defined GNULIB_POSIXCHECK 2252#elif defined GNULIB_POSIXCHECK
2311# undef truncate
2312# if HAVE_RAW_DECL_TRUNCATE 2253# if HAVE_RAW_DECL_TRUNCATE
2313_GL_WARN_ON_USE (truncate, "truncate is unportable - " 2254_GL_WARN_ON_USE (truncate, "truncate is unportable - "
2314 "use gnulib module truncate for portability"); 2255 "use gnulib module truncate for portability");
@@ -2342,7 +2283,6 @@ _GL_CXXALIAS_SYS (ttyname_r, int,
2342_GL_CXXALIASWARN (ttyname_r); 2283_GL_CXXALIASWARN (ttyname_r);
2343# endif 2284# endif
2344#elif defined GNULIB_POSIXCHECK 2285#elif defined GNULIB_POSIXCHECK
2345# undef ttyname_r
2346# if HAVE_RAW_DECL_TTYNAME_R 2286# if HAVE_RAW_DECL_TTYNAME_R
2347_GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - " 2287_GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - "
2348 "use gnulib module ttyname_r for portability"); 2288 "use gnulib module ttyname_r for portability");
@@ -2369,7 +2309,6 @@ _GL_CXXALIAS_SYS (unlink, int, (char const *file));
2369# endif 2309# endif
2370_GL_CXXALIASWARN (unlink); 2310_GL_CXXALIASWARN (unlink);
2371#elif defined GNULIB_POSIXCHECK 2311#elif defined GNULIB_POSIXCHECK
2372# undef unlink
2373# if HAVE_RAW_DECL_UNLINK 2312# if HAVE_RAW_DECL_UNLINK
2374_GL_WARN_ON_USE (unlink, "unlink is not portable - " 2313_GL_WARN_ON_USE (unlink, "unlink is not portable - "
2375 "use gnulib module unlink for portability"); 2314 "use gnulib module unlink for portability");
@@ -2409,7 +2348,6 @@ _GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag));
2409# endif 2348# endif
2410_GL_CXXALIASWARN (unlinkat); 2349_GL_CXXALIASWARN (unlinkat);
2411#elif defined GNULIB_POSIXCHECK 2350#elif defined GNULIB_POSIXCHECK
2412# undef unlinkat
2413# if HAVE_RAW_DECL_UNLINKAT 2351# if HAVE_RAW_DECL_UNLINKAT
2414_GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " 2352_GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - "
2415 "use gnulib module unlinkat for portability"); 2353 "use gnulib module unlinkat for portability");
@@ -2439,7 +2377,6 @@ _GL_CXXALIAS_SYS_CAST (usleep, int, (useconds_t n));
2439# endif 2377# endif
2440_GL_CXXALIASWARN (usleep); 2378_GL_CXXALIASWARN (usleep);
2441#elif defined GNULIB_POSIXCHECK 2379#elif defined GNULIB_POSIXCHECK
2442# undef usleep
2443# if HAVE_RAW_DECL_USLEEP 2380# if HAVE_RAW_DECL_USLEEP
2444_GL_WARN_ON_USE (usleep, "usleep is unportable - " 2381_GL_WARN_ON_USE (usleep, "usleep is unportable - "
2445 "use gnulib module usleep for portability"); 2382 "use gnulib module usleep for portability");
@@ -2493,6 +2430,18 @@ _GL_CXXALIASWARN (write);
2493 2430
2494_GL_INLINE_HEADER_END 2431_GL_INLINE_HEADER_END
2495 2432
2433
2434/* Includes that provide only macros that don't need to be overridden.
2435 (Includes that are needed for type definitions and function declarations
2436 have their place above, before the function overrides.) */
2437
2438/* FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Solaris 11.4, and glibc 2.41
2439 do not define O_CLOEXEC in <unistd.h>. */
2440#if ! defined O_CLOEXEC
2441# include <fcntl.h>
2442#endif
2443
2444
2496#endif /* _@GUARD_PREFIX@_UNISTD_H */ 2445#endif /* _@GUARD_PREFIX@_UNISTD_H */
2497#endif /* _GL_INCLUDING_UNISTD_H */ 2446#endif /* _GL_INCLUDING_UNISTD_H */
2498#endif /* _@GUARD_PREFIX@_UNISTD_H */ 2447#endif /* _@GUARD_PREFIX@_UNISTD_H */