00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #if __GNUC__ >= 3
00021 @PRAGMA_SYSTEM_HEADER@
00022 #endif
00023 @PRAGMA_COLUMNS@
00024
00025
00026
00027
00028
00029 #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \
00030 && !defined _GL_WINSOCK2_H_WITNESS && defined _WINSOCK2_H
00031
00032
00033 # if @HAVE_UNISTD_H@
00034 # @INCLUDE_NEXT@ @NEXT_UNISTD_H@
00035 # else
00036 # error unexpected; report this to bug-gnulib@gnu.org
00037 # endif
00038 # define _GL_WINSOCK2_H_WITNESS
00039
00040
00041 #elif !defined _GL_UNISTD_H
00042
00043
00044 #if @HAVE_UNISTD_H@
00045 # @INCLUDE_NEXT@ @NEXT_UNISTD_H@
00046 #endif
00047
00048
00049 #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \
00050 && !defined _GL_INCLUDING_WINSOCK2_H
00051 # define _GL_INCLUDING_WINSOCK2_H
00052 # include <winsock2.h>
00053 # undef _GL_INCLUDING_WINSOCK2_H
00054 #endif
00055
00056 #if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H
00057 #define _GL_UNISTD_H
00058
00059
00060 #include <stddef.h>
00061
00062
00063
00064
00065 #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \
00066 || ((@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK) \
00067 && defined __CYGWIN__)) \
00068 && ! defined __GLIBC__
00069 # include <stdio.h>
00070 #endif
00071
00072
00073
00074 #if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) && defined __CYGWIN__ \
00075 && ! defined __GLIBC__
00076 # include <fcntl.h>
00077 #endif
00078
00079
00080
00081
00082
00083 #ifndef __GLIBC__
00084 # include <stdlib.h>
00085 #endif
00086
00087
00088 #if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \
00089 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
00090 # include <io.h>
00091 #endif
00092
00093
00094
00095
00096 #if ((@GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__)) \
00097 || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \
00098 && !defined __GLIBC__
00099 # include <netdb.h>
00100 #endif
00101
00102 #if (@GNULIB_WRITE@ || @GNULIB_READLINK@ || @GNULIB_READLINKAT@ \
00103 || @GNULIB_PREAD@ || @GNULIB_PWRITE@ || defined GNULIB_POSIXCHECK)
00104
00105 # include <sys/types.h>
00106 #endif
00107
00108
00109
00110 #if @GNULIB_UNISTD_H_GETOPT@ && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT
00111 # include <getopt.h>
00112 #endif
00113
00114
00115
00116
00117
00118
00119
00120
00121 #if @GNULIB_GETHOSTNAME@
00122
00123 # if @UNISTD_H_HAVE_WINSOCK2_H@
00124 # if !defined _GL_SYS_SOCKET_H
00125 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00126 # undef socket
00127 # define socket socket_used_without_including_sys_socket_h
00128 # undef connect
00129 # define connect connect_used_without_including_sys_socket_h
00130 # undef accept
00131 # define accept accept_used_without_including_sys_socket_h
00132 # undef bind
00133 # define bind bind_used_without_including_sys_socket_h
00134 # undef getpeername
00135 # define getpeername getpeername_used_without_including_sys_socket_h
00136 # undef getsockname
00137 # define getsockname getsockname_used_without_including_sys_socket_h
00138 # undef getsockopt
00139 # define getsockopt getsockopt_used_without_including_sys_socket_h
00140 # undef listen
00141 # define listen listen_used_without_including_sys_socket_h
00142 # undef recv
00143 # define recv recv_used_without_including_sys_socket_h
00144 # undef send
00145 # define send send_used_without_including_sys_socket_h
00146 # undef recvfrom
00147 # define recvfrom recvfrom_used_without_including_sys_socket_h
00148 # undef sendto
00149 # define sendto sendto_used_without_including_sys_socket_h
00150 # undef setsockopt
00151 # define setsockopt setsockopt_used_without_including_sys_socket_h
00152 # undef shutdown
00153 # define shutdown shutdown_used_without_including_sys_socket_h
00154 # else
00155 _GL_WARN_ON_USE (socket,
00156 "socket() used without including <sys/socket.h>");
00157 _GL_WARN_ON_USE (connect,
00158 "connect() used without including <sys/socket.h>");
00159 _GL_WARN_ON_USE (accept,
00160 "accept() used without including <sys/socket.h>");
00161 _GL_WARN_ON_USE (bind,
00162 "bind() used without including <sys/socket.h>");
00163 _GL_WARN_ON_USE (getpeername,
00164 "getpeername() used without including <sys/socket.h>");
00165 _GL_WARN_ON_USE (getsockname,
00166 "getsockname() used without including <sys/socket.h>");
00167 _GL_WARN_ON_USE (getsockopt,
00168 "getsockopt() used without including <sys/socket.h>");
00169 _GL_WARN_ON_USE (listen,
00170 "listen() used without including <sys/socket.h>");
00171 _GL_WARN_ON_USE (recv,
00172 "recv() used without including <sys/socket.h>");
00173 _GL_WARN_ON_USE (send,
00174 "send() used without including <sys/socket.h>");
00175 _GL_WARN_ON_USE (recvfrom,
00176 "recvfrom() used without including <sys/socket.h>");
00177 _GL_WARN_ON_USE (sendto,
00178 "sendto() used without including <sys/socket.h>");
00179 _GL_WARN_ON_USE (setsockopt,
00180 "setsockopt() used without including <sys/socket.h>");
00181 _GL_WARN_ON_USE (shutdown,
00182 "shutdown() used without including <sys/socket.h>");
00183 # endif
00184 # endif
00185 # if !defined _GL_SYS_SELECT_H
00186 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00187 # undef select
00188 # define select select_used_without_including_sys_select_h
00189 # else
00190 _GL_WARN_ON_USE (select,
00191 "select() used without including <sys/select.h>");
00192 # endif
00193 # endif
00194 # endif
00195 #endif
00196
00197
00198
00199 #ifndef STDIN_FILENO
00200 # define STDIN_FILENO 0
00201 #endif
00202 #ifndef STDOUT_FILENO
00203 # define STDOUT_FILENO 1
00204 #endif
00205 #ifndef STDERR_FILENO
00206 # define STDERR_FILENO 2
00207 #endif
00208
00209
00210 #ifndef F_OK
00211 # define F_OK 0
00212 # define X_OK 1
00213 # define W_OK 2
00214 # define R_OK 4
00215 #endif
00216
00217
00218
00219
00220
00221 #if defined GNULIB_POSIXCHECK
00222
00223 _GL_WARN_ON_USE (access, "the access function is a security risk - "
00224 "use the gnulib module faccessat instead");
00225 #endif
00226
00227
00228 #if @GNULIB_CHOWN@
00229
00230
00231
00232
00233
00234 # if @REPLACE_CHOWN@
00235 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00236 # undef chown
00237 # define chown rpl_chown
00238 # endif
00239 _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)
00240 _GL_ARG_NONNULL ((1)));
00241 _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid));
00242 # else
00243 # if !@HAVE_CHOWN@
00244 _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)
00245 _GL_ARG_NONNULL ((1)));
00246 # endif
00247 _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid));
00248 # endif
00249 _GL_CXXALIASWARN (chown);
00250 #elif defined GNULIB_POSIXCHECK
00251 # undef chown
00252 # if HAVE_RAW_DECL_CHOWN
00253 _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and "
00254 "doesn't treat a uid or gid of -1 on some systems - "
00255 "use gnulib module chown for portability");
00256 # endif
00257 #endif
00258
00259
00260 #if @GNULIB_CLOSE@
00261 # if @REPLACE_CLOSE@
00262
00263 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00264 # undef close
00265 # define close rpl_close
00266 # endif
00267 _GL_FUNCDECL_RPL (close, int, (int fd));
00268 _GL_CXXALIAS_RPL (close, int, (int fd));
00269 # else
00270 _GL_CXXALIAS_SYS (close, int, (int fd));
00271 # endif
00272 _GL_CXXALIASWARN (close);
00273 #elif @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@
00274 # undef close
00275 # define close close_used_without_requesting_gnulib_module_close
00276 #elif defined GNULIB_POSIXCHECK
00277 # undef close
00278
00279 _GL_WARN_ON_USE (close, "close does not portably work on sockets - "
00280 "use gnulib module close for portability");
00281 #endif
00282
00283
00284 #if @REPLACE_DUP@
00285 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00286 # define dup rpl_dup
00287 # endif
00288 _GL_FUNCDECL_RPL (dup, int, (int oldfd));
00289 _GL_CXXALIAS_RPL (dup, int, (int oldfd));
00290 #else
00291 _GL_CXXALIAS_SYS (dup, int, (int oldfd));
00292 #endif
00293 _GL_CXXALIASWARN (dup);
00294
00295
00296 #if @GNULIB_DUP2@
00297
00298
00299
00300
00301
00302 # if @REPLACE_DUP2@
00303 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00304 # define dup2 rpl_dup2
00305 # endif
00306 _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd));
00307 _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd));
00308 # else
00309 # if !@HAVE_DUP2@
00310 _GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd));
00311 # endif
00312 _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd));
00313 # endif
00314 _GL_CXXALIASWARN (dup2);
00315 #elif defined GNULIB_POSIXCHECK
00316 # undef dup2
00317 # if HAVE_RAW_DECL_DUP2
00318 _GL_WARN_ON_USE (dup2, "dup2 is unportable - "
00319 "use gnulib module dup2 for portability");
00320 # endif
00321 #endif
00322
00323
00324 #if @GNULIB_DUP3@
00325
00326
00327
00328
00329
00330
00331
00332
00333 # if @HAVE_DUP3@
00334 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00335 # define dup3 rpl_dup3
00336 # endif
00337 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags));
00338 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags));
00339 # else
00340 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags));
00341 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags));
00342 # endif
00343 _GL_CXXALIASWARN (dup3);
00344 #elif defined GNULIB_POSIXCHECK
00345 # undef dup3
00346 # if HAVE_RAW_DECL_DUP3
00347 _GL_WARN_ON_USE (dup3, "dup3 is unportable - "
00348 "use gnulib module dup3 for portability");
00349 # endif
00350 #endif
00351
00352
00353 #if @GNULIB_ENVIRON@
00354 # if !@HAVE_DECL_ENVIRON@
00355
00356
00357 # if defined __APPLE__ && defined __MACH__
00358 # include <crt_externs.h>
00359 # define environ (*_NSGetEnviron ())
00360 # else
00361 # ifdef __cplusplus
00362 extern "C" {
00363 # endif
00364 extern char **environ;
00365 # ifdef __cplusplus
00366 }
00367 # endif
00368 # endif
00369 # endif
00370 #elif defined GNULIB_POSIXCHECK
00371 # if HAVE_RAW_DECL_ENVIRON
00372 static inline char ***
00373 rpl_environ (void)
00374 {
00375 return &environ;
00376 }
00377 _GL_WARN_ON_USE (rpl_environ, "environ is unportable - "
00378 "use gnulib module environ for portability");
00379 # undef environ
00380 # define environ (*rpl_environ ())
00381 # endif
00382 #endif
00383
00384
00385 #if @GNULIB_EUIDACCESS@
00386
00387
00388 # if !@HAVE_EUIDACCESS@
00389 _GL_FUNCDECL_SYS (euidaccess, int, (const char *filename, int mode)
00390 _GL_ARG_NONNULL ((1)));
00391 # endif
00392 _GL_CXXALIAS_SYS (euidaccess, int, (const char *filename, int mode));
00393 _GL_CXXALIASWARN (euidaccess);
00394 # if defined GNULIB_POSIXCHECK
00395
00396 _GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - "
00397 "use the gnulib module faccessat instead");
00398 # endif
00399 #elif defined GNULIB_POSIXCHECK
00400 # undef euidaccess
00401 # if HAVE_RAW_DECL_EUIDACCESS
00402 _GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - "
00403 "use gnulib module euidaccess for portability");
00404 # endif
00405 #endif
00406
00407
00408 #if @GNULIB_FACCESSAT@
00409 # if !@HAVE_FACCESSAT@
00410 _GL_FUNCDECL_SYS (faccessat, int,
00411 (int fd, char const *file, int mode, int flag)
00412 _GL_ARG_NONNULL ((2)));
00413 # endif
00414 _GL_CXXALIAS_SYS (faccessat, int,
00415 (int fd, char const *file, int mode, int flag));
00416 _GL_CXXALIASWARN (faccessat);
00417 #elif defined GNULIB_POSIXCHECK
00418 # undef faccessat
00419 # if HAVE_RAW_DECL_FACCESSAT
00420 _GL_WARN_ON_USE (faccessat, "faccessat is not portable - "
00421 "use gnulib module faccessat for portability");
00422 # endif
00423 #endif
00424
00425
00426 #if @GNULIB_FCHDIR@
00427
00428
00429
00430
00431
00432 # if ! @HAVE_FCHDIR@
00433 _GL_FUNCDECL_SYS (fchdir, int, (int ));
00434
00435
00436 _GL_EXTERN_C int _gl_register_fd (int fd, const char *filename)
00437 _GL_ARG_NONNULL ((2));
00438 _GL_EXTERN_C void _gl_unregister_fd (int fd);
00439 _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd);
00440 _GL_EXTERN_C const char *_gl_directory_name (int fd);
00441
00442 # else
00443 # if !@HAVE_DECL_FCHDIR@
00444 _GL_FUNCDECL_SYS (fchdir, int, (int ));
00445 # endif
00446 # endif
00447 _GL_CXXALIAS_SYS (fchdir, int, (int ));
00448 _GL_CXXALIASWARN (fchdir);
00449 #elif defined GNULIB_POSIXCHECK
00450 # undef fchdir
00451 # if HAVE_RAW_DECL_FCHDIR
00452 _GL_WARN_ON_USE (fchdir, "fchdir is unportable - "
00453 "use gnulib module fchdir for portability");
00454 # endif
00455 #endif
00456
00457
00458 #if @GNULIB_FCHOWNAT@
00459 # if @REPLACE_FCHOWNAT@
00460 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00461 # undef fchownat
00462 # define fchownat rpl_fchownat
00463 # endif
00464 _GL_FUNCDECL_RPL (fchownat, int, (int fd, char const *file,
00465 uid_t owner, gid_t group, int flag)
00466 _GL_ARG_NONNULL ((2)));
00467 _GL_CXXALIAS_RPL (fchownat, int, (int fd, char const *file,
00468 uid_t owner, gid_t group, int flag));
00469 # else
00470 # if !@HAVE_FCHOWNAT@
00471 _GL_FUNCDECL_SYS (fchownat, int, (int fd, char const *file,
00472 uid_t owner, gid_t group, int flag)
00473 _GL_ARG_NONNULL ((2)));
00474 # endif
00475 _GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file,
00476 uid_t owner, gid_t group, int flag));
00477 # endif
00478 _GL_CXXALIASWARN (fchownat);
00479 #elif defined GNULIB_POSIXCHECK
00480 # undef fchownat
00481 # if HAVE_RAW_DECL_FCHOWNAT
00482 _GL_WARN_ON_USE (fchownat, "fchownat is not portable - "
00483 "use gnulib module openat for portability");
00484 # endif
00485 #endif
00486
00487
00488 #if @GNULIB_FSYNC@
00489
00490
00491
00492
00493 # if !@HAVE_FSYNC@
00494 _GL_FUNCDECL_SYS (fsync, int, (int fd));
00495 # endif
00496 _GL_CXXALIAS_SYS (fsync, int, (int fd));
00497 _GL_CXXALIASWARN (fsync);
00498 #elif defined GNULIB_POSIXCHECK
00499 # undef fsync
00500 # if HAVE_RAW_DECL_FSYNC
00501 _GL_WARN_ON_USE (fsync, "fsync is unportable - "
00502 "use gnulib module fsync for portability");
00503 # endif
00504 #endif
00505
00506
00507 #if @GNULIB_FTRUNCATE@
00508
00509
00510
00511
00512 # if !@HAVE_FTRUNCATE@
00513 _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length));
00514 # endif
00515 _GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length));
00516 _GL_CXXALIASWARN (ftruncate);
00517 #elif defined GNULIB_POSIXCHECK
00518 # undef ftruncate
00519 # if HAVE_RAW_DECL_FTRUNCATE
00520 _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - "
00521 "use gnulib module ftruncate for portability");
00522 # endif
00523 #endif
00524
00525
00526 #if @GNULIB_GETCWD@
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537 # if @REPLACE_GETCWD@
00538 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00539 # define getcwd rpl_getcwd
00540 # endif
00541 _GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size));
00542 _GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size));
00543 # else
00544
00545
00546 _GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size));
00547 # endif
00548 _GL_CXXALIASWARN (getcwd);
00549 #elif defined GNULIB_POSIXCHECK
00550 # undef getcwd
00551 # if HAVE_RAW_DECL_GETCWD
00552 _GL_WARN_ON_USE (getcwd, "getcwd is unportable - "
00553 "use gnulib module getcwd for portability");
00554 # endif
00555 #endif
00556
00557
00558 #if @GNULIB_GETDOMAINNAME@
00559
00560
00561
00562
00563
00564
00565
00566
00567
00568
00569 # if @REPLACE_GETDOMAINNAME@
00570 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00571 # undef getdomainname
00572 # define getdomainname rpl_getdomainname
00573 # endif
00574 _GL_FUNCDECL_RPL (getdomainname, int, (char *name, size_t len)
00575 _GL_ARG_NONNULL ((1)));
00576 _GL_CXXALIAS_RPL (getdomainname, int, (char *name, size_t len));
00577 # else
00578 # if !@HAVE_DECL_GETDOMAINNAME@
00579 _GL_FUNCDECL_SYS (getdomainname, int, (char *name, size_t len)
00580 _GL_ARG_NONNULL ((1)));
00581 # endif
00582 _GL_CXXALIAS_SYS (getdomainname, int, (char *name, size_t len));
00583 # endif
00584 _GL_CXXALIASWARN (getdomainname);
00585 #elif defined GNULIB_POSIXCHECK
00586 # undef getdomainname
00587 # if HAVE_RAW_DECL_GETDOMAINNAME
00588 _GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - "
00589 "use gnulib module getdomainname for portability");
00590 # endif
00591 #endif
00592
00593
00594 #if @GNULIB_GETDTABLESIZE@
00595
00596
00597 # if !@HAVE_GETDTABLESIZE@
00598 _GL_FUNCDECL_SYS (getdtablesize, int, (void));
00599 # endif
00600 _GL_CXXALIAS_SYS (getdtablesize, int, (void));
00601 _GL_CXXALIASWARN (getdtablesize);
00602 #elif defined GNULIB_POSIXCHECK
00603 # undef getdtablesize
00604 # if HAVE_RAW_DECL_GETDTABLESIZE
00605 _GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - "
00606 "use gnulib module getdtablesize for portability");
00607 # endif
00608 #endif
00609
00610
00611 #if @GNULIB_GETGROUPS@
00612
00613
00614
00615
00616
00617 # if @REPLACE_GETGROUPS@
00618 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00619 # undef getgroups
00620 # define getgroups rpl_getgroups
00621 # endif
00622 _GL_FUNCDECL_RPL (getgroups, int, (int n, gid_t *groups));
00623 _GL_CXXALIAS_RPL (getgroups, int, (int n, gid_t *groups));
00624 # else
00625 # if !@HAVE_GETGROUPS@
00626 _GL_FUNCDECL_SYS (getgroups, int, (int n, gid_t *groups));
00627 # endif
00628 _GL_CXXALIAS_SYS (getgroups, int, (int n, gid_t *groups));
00629 # endif
00630 _GL_CXXALIASWARN (getgroups);
00631 #elif defined GNULIB_POSIXCHECK
00632 # undef getgroups
00633 # if HAVE_RAW_DECL_GETGROUPS
00634 _GL_WARN_ON_USE (getgroups, "getgroups is unportable - "
00635 "use gnulib module getgroups for portability");
00636 # endif
00637 #endif
00638
00639
00640 #if @GNULIB_GETHOSTNAME@
00641
00642
00643
00644
00645
00646
00647
00648 # if @UNISTD_H_HAVE_WINSOCK2_H@
00649 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00650 # undef gethostname
00651 # define gethostname rpl_gethostname
00652 # endif
00653 _GL_FUNCDECL_RPL (gethostname, int, (char *name, size_t len)
00654 _GL_ARG_NONNULL ((1)));
00655 _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len));
00656 # else
00657 # if !@HAVE_GETHOSTNAME@
00658 _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len)
00659 _GL_ARG_NONNULL ((1)));
00660 # endif
00661
00662
00663
00664 _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len));
00665 # endif
00666 _GL_CXXALIASWARN (gethostname);
00667 #elif @UNISTD_H_HAVE_WINSOCK2_H@
00668 # undef gethostname
00669 # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname
00670 #elif defined GNULIB_POSIXCHECK
00671 # undef gethostname
00672 # if HAVE_RAW_DECL_GETHOSTNAME
00673 _GL_WARN_ON_USE (gethostname, "gethostname is unportable - "
00674 "use gnulib module gethostname for portability");
00675 # endif
00676 #endif
00677
00678
00679 #if @GNULIB_GETLOGIN@
00680
00681
00682
00683
00684
00685
00686
00687
00688
00689
00690 # if !@HAVE_GETLOGIN@
00691 _GL_FUNCDECL_SYS (getlogin, char *, (void));
00692 # endif
00693 _GL_CXXALIAS_SYS (getlogin, char *, (void));
00694 _GL_CXXALIASWARN (getlogin);
00695 #elif defined GNULIB_POSIXCHECK
00696 # undef getlogin
00697 # if HAVE_RAW_DECL_GETLOGIN
00698 _GL_WARN_ON_USE (getlogin, "getlogin is unportable - "
00699 "use gnulib module getlogin for portability");
00700 # endif
00701 #endif
00702
00703
00704 #if @GNULIB_GETLOGIN_R@
00705
00706
00707
00708
00709
00710
00711
00712
00713
00714
00715
00716
00717
00718
00719 # if @REPLACE_GETLOGIN_R@
00720 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00721 # define getlogin_r rpl_getlogin_r
00722 # endif
00723 _GL_FUNCDECL_RPL (getlogin_r, int, (char *name, size_t size)
00724 _GL_ARG_NONNULL ((1)));
00725 _GL_CXXALIAS_RPL (getlogin_r, int, (char *name, size_t size));
00726 # else
00727 # if !@HAVE_DECL_GETLOGIN_R@
00728 _GL_FUNCDECL_SYS (getlogin_r, int, (char *name, size_t size)
00729 _GL_ARG_NONNULL ((1)));
00730 # endif
00731
00732
00733 _GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size));
00734 # endif
00735 _GL_CXXALIASWARN (getlogin_r);
00736 #elif defined GNULIB_POSIXCHECK
00737 # undef getlogin_r
00738 # if HAVE_RAW_DECL_GETLOGIN_R
00739 _GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - "
00740 "use gnulib module getlogin_r for portability");
00741 # endif
00742 #endif
00743
00744
00745 #if @GNULIB_GETPAGESIZE@
00746 # if @REPLACE_GETPAGESIZE@
00747 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00748 # define getpagesize rpl_getpagesize
00749 # endif
00750 _GL_FUNCDECL_RPL (getpagesize, int, (void));
00751 _GL_CXXALIAS_RPL (getpagesize, int, (void));
00752 # else
00753 # if !@HAVE_GETPAGESIZE@
00754 # if !defined getpagesize
00755
00756 # if !defined _gl_getpagesize && defined _SC_PAGESIZE
00757 # if ! (defined __VMS && __VMS_VER < 70000000)
00758 # define _gl_getpagesize() sysconf (_SC_PAGESIZE)
00759 # endif
00760 # endif
00761
00762 # if !defined _gl_getpagesize && defined __VMS
00763 # ifdef __ALPHA
00764 # define _gl_getpagesize() 8192
00765 # else
00766 # define _gl_getpagesize() 512
00767 # endif
00768 # endif
00769
00770 # if !defined _gl_getpagesize && @HAVE_OS_H@
00771 # include <OS.h>
00772 # if defined B_PAGE_SIZE
00773 # define _gl_getpagesize() B_PAGE_SIZE
00774 # endif
00775 # endif
00776
00777 # if !defined _gl_getpagesize && defined __amigaos4__
00778 # define _gl_getpagesize() 2048
00779 # endif
00780
00781 # if !defined _gl_getpagesize && @HAVE_SYS_PARAM_H@
00782 # include <sys/param.h>
00783 # ifdef EXEC_PAGESIZE
00784 # define _gl_getpagesize() EXEC_PAGESIZE
00785 # else
00786 # ifdef NBPG
00787 # ifndef CLSIZE
00788 # define CLSIZE 1
00789 # endif
00790 # define _gl_getpagesize() (NBPG * CLSIZE)
00791 # else
00792 # ifdef NBPC
00793 # define _gl_getpagesize() NBPC
00794 # endif
00795 # endif
00796 # endif
00797 # endif
00798 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00799 # define getpagesize() _gl_getpagesize ()
00800 # else
00801 # if !GNULIB_defined_getpagesize_function
00802 static inline int
00803 getpagesize ()
00804 {
00805 return _gl_getpagesize ();
00806 }
00807 # define GNULIB_defined_getpagesize_function 1
00808 # endif
00809 # endif
00810 # endif
00811 # endif
00812
00813 _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void));
00814 # endif
00815 # if @HAVE_DECL_GETPAGESIZE@
00816 _GL_CXXALIASWARN (getpagesize);
00817 # endif
00818 #elif defined GNULIB_POSIXCHECK
00819 # undef getpagesize
00820 # if HAVE_RAW_DECL_GETPAGESIZE
00821 _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - "
00822 "use gnulib module getpagesize for portability");
00823 # endif
00824 #endif
00825
00826
00827 #if @GNULIB_GETUSERSHELL@
00828
00829
00830 # if !@HAVE_DECL_GETUSERSHELL@
00831 _GL_FUNCDECL_SYS (getusershell, char *, (void));
00832 # endif
00833 _GL_CXXALIAS_SYS (getusershell, char *, (void));
00834 _GL_CXXALIASWARN (getusershell);
00835 #elif defined GNULIB_POSIXCHECK
00836 # undef getusershell
00837 # if HAVE_RAW_DECL_GETUSERSHELL
00838 _GL_WARN_ON_USE (getusershell, "getusershell is unportable - "
00839 "use gnulib module getusershell for portability");
00840 # endif
00841 #endif
00842
00843 #if @GNULIB_GETUSERSHELL@
00844
00845 # if !@HAVE_DECL_GETUSERSHELL@
00846 _GL_FUNCDECL_SYS (setusershell, void, (void));
00847 # endif
00848 _GL_CXXALIAS_SYS (setusershell, void, (void));
00849 _GL_CXXALIASWARN (setusershell);
00850 #elif defined GNULIB_POSIXCHECK
00851 # undef setusershell
00852 # if HAVE_RAW_DECL_SETUSERSHELL
00853 _GL_WARN_ON_USE (setusershell, "setusershell is unportable - "
00854 "use gnulib module getusershell for portability");
00855 # endif
00856 #endif
00857
00858 #if @GNULIB_GETUSERSHELL@
00859
00860
00861 # if !@HAVE_DECL_GETUSERSHELL@
00862 _GL_FUNCDECL_SYS (endusershell, void, (void));
00863 # endif
00864 _GL_CXXALIAS_SYS (endusershell, void, (void));
00865 _GL_CXXALIASWARN (endusershell);
00866 #elif defined GNULIB_POSIXCHECK
00867 # undef endusershell
00868 # if HAVE_RAW_DECL_ENDUSERSHELL
00869 _GL_WARN_ON_USE (endusershell, "endusershell is unportable - "
00870 "use gnulib module getusershell for portability");
00871 # endif
00872 #endif
00873
00874
00875 #if @GNULIB_LCHOWN@
00876
00877
00878
00879
00880
00881 # if @REPLACE_LCHOWN@
00882 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00883 # undef lchown
00884 # define lchown rpl_lchown
00885 # endif
00886 _GL_FUNCDECL_RPL (lchown, int, (char const *file, uid_t owner, gid_t group)
00887 _GL_ARG_NONNULL ((1)));
00888 _GL_CXXALIAS_RPL (lchown, int, (char const *file, uid_t owner, gid_t group));
00889 # else
00890 # if !@HAVE_LCHOWN@
00891 _GL_FUNCDECL_SYS (lchown, int, (char const *file, uid_t owner, gid_t group)
00892 _GL_ARG_NONNULL ((1)));
00893 # endif
00894 _GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group));
00895 # endif
00896 _GL_CXXALIASWARN (lchown);
00897 #elif defined GNULIB_POSIXCHECK
00898 # undef lchown
00899 # if HAVE_RAW_DECL_LCHOWN
00900 _GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - "
00901 "use gnulib module lchown for portability");
00902 # endif
00903 #endif
00904
00905
00906 #if @GNULIB_LINK@
00907
00908
00909
00910
00911 # if @REPLACE_LINK@
00912 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00913 # define link rpl_link
00914 # endif
00915 _GL_FUNCDECL_RPL (link, int, (const char *path1, const char *path2)
00916 _GL_ARG_NONNULL ((1, 2)));
00917 _GL_CXXALIAS_RPL (link, int, (const char *path1, const char *path2));
00918 # else
00919 # if !@HAVE_LINK@
00920 _GL_FUNCDECL_SYS (link, int, (const char *path1, const char *path2)
00921 _GL_ARG_NONNULL ((1, 2)));
00922 # endif
00923 _GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2));
00924 # endif
00925 _GL_CXXALIASWARN (link);
00926 #elif defined GNULIB_POSIXCHECK
00927 # undef link
00928 # if HAVE_RAW_DECL_LINK
00929 _GL_WARN_ON_USE (link, "link is unportable - "
00930 "use gnulib module link for portability");
00931 # endif
00932 #endif
00933
00934
00935 #if @GNULIB_LINKAT@
00936
00937
00938
00939 # if @REPLACE_LINKAT@
00940 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00941 # undef linkat
00942 # define linkat rpl_linkat
00943 # endif
00944 _GL_FUNCDECL_RPL (linkat, int,
00945 (int fd1, const char *path1, int fd2, const char *path2,
00946 int flag)
00947 _GL_ARG_NONNULL ((2, 4)));
00948 _GL_CXXALIAS_RPL (linkat, int,
00949 (int fd1, const char *path1, int fd2, const char *path2,
00950 int flag));
00951 # else
00952 # if !@HAVE_LINKAT@
00953 _GL_FUNCDECL_SYS (linkat, int,
00954 (int fd1, const char *path1, int fd2, const char *path2,
00955 int flag)
00956 _GL_ARG_NONNULL ((2, 4)));
00957 # endif
00958 _GL_CXXALIAS_SYS (linkat, int,
00959 (int fd1, const char *path1, int fd2, const char *path2,
00960 int flag));
00961 # endif
00962 _GL_CXXALIASWARN (linkat);
00963 #elif defined GNULIB_POSIXCHECK
00964 # undef linkat
00965 # if HAVE_RAW_DECL_LINKAT
00966 _GL_WARN_ON_USE (linkat, "linkat is unportable - "
00967 "use gnulib module linkat for portability");
00968 # endif
00969 #endif
00970
00971
00972 #if @GNULIB_LSEEK@
00973
00974
00975
00976
00977 # if @REPLACE_LSEEK@
00978 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00979 # define lseek rpl_lseek
00980 # endif
00981 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence));
00982 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence));
00983 # else
00984 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence));
00985 # endif
00986 _GL_CXXALIASWARN (lseek);
00987 #elif defined GNULIB_POSIXCHECK
00988 # undef lseek
00989 # if HAVE_RAW_DECL_LSEEK
00990 _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
00991 "systems - use gnulib module lseek for portability");
00992 # endif
00993 #endif
00994
00995
00996 #if @GNULIB_PIPE@
00997
00998
00999
01000 # if !@HAVE_PIPE@
01001 _GL_FUNCDECL_SYS (pipe, int, (int fd[2]) _GL_ARG_NONNULL ((1)));
01002 # endif
01003 _GL_CXXALIAS_SYS (pipe, int, (int fd[2]));
01004 _GL_CXXALIASWARN (pipe);
01005 #elif defined GNULIB_POSIXCHECK
01006 # undef pipe
01007 # if HAVE_RAW_DECL_PIPE
01008 _GL_WARN_ON_USE (pipe, "pipe is unportable - "
01009 "use gnulib module pipe-posix for portability");
01010 # endif
01011 #endif
01012
01013
01014 #if @GNULIB_PIPE2@
01015
01016
01017
01018
01019
01020
01021
01022
01023 # if @HAVE_PIPE2@
01024 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01025 # define pipe2 rpl_pipe2
01026 # endif
01027 _GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1)));
01028 _GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags));
01029 # else
01030 _GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1)));
01031 _GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags));
01032 # endif
01033 _GL_CXXALIASWARN (pipe2);
01034 #elif defined GNULIB_POSIXCHECK
01035 # undef pipe2
01036 # if HAVE_RAW_DECL_PIPE2
01037 _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - "
01038 "use gnulib module pipe2 for portability");
01039 # endif
01040 #endif
01041
01042
01043 #if @GNULIB_PREAD@
01044
01045
01046
01047
01048 # if @REPLACE_PREAD@
01049 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01050 # define pread rpl_pread
01051 # endif
01052 _GL_FUNCDECL_RPL (pread, ssize_t,
01053 (int fd, void *buf, size_t bufsize, off_t offset)
01054 _GL_ARG_NONNULL ((2)));
01055 _GL_CXXALIAS_RPL (pread, ssize_t,
01056 (int fd, void *buf, size_t bufsize, off_t offset));
01057 # else
01058 # if !@HAVE_PREAD@
01059 _GL_FUNCDECL_SYS (pread, ssize_t,
01060 (int fd, void *buf, size_t bufsize, off_t offset)
01061 _GL_ARG_NONNULL ((2)));
01062 # endif
01063 _GL_CXXALIAS_SYS (pread, ssize_t,
01064 (int fd, void *buf, size_t bufsize, off_t offset));
01065 # endif
01066 _GL_CXXALIASWARN (pread);
01067 #elif defined GNULIB_POSIXCHECK
01068 # undef pread
01069 # if HAVE_RAW_DECL_PREAD
01070 _GL_WARN_ON_USE (pread, "pread is unportable - "
01071 "use gnulib module pread for portability");
01072 # endif
01073 #endif
01074
01075
01076 #if @GNULIB_PWRITE@
01077
01078
01079
01080
01081
01082 # if @REPLACE_PWRITE@
01083 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01084 # define pwrite rpl_pwrite
01085 # endif
01086 _GL_FUNCDECL_RPL (pwrite, ssize_t,
01087 (int fd, const void *buf, size_t bufsize, off_t offset)
01088 _GL_ARG_NONNULL ((2)));
01089 _GL_CXXALIAS_RPL (pwrite, ssize_t,
01090 (int fd, const void *buf, size_t bufsize, off_t offset));
01091 # else
01092 # if !@HAVE_PWRITE@
01093 _GL_FUNCDECL_SYS (pwrite, ssize_t,
01094 (int fd, const void *buf, size_t bufsize, off_t offset)
01095 _GL_ARG_NONNULL ((2)));
01096 # endif
01097 _GL_CXXALIAS_SYS (pwrite, ssize_t,
01098 (int fd, const void *buf, size_t bufsize, off_t offset));
01099 # endif
01100 _GL_CXXALIASWARN (pwrite);
01101 #elif defined GNULIB_POSIXCHECK
01102 # undef pwrite
01103 # if HAVE_RAW_DECL_PWRITE
01104 _GL_WARN_ON_USE (pwrite, "pwrite is unportable - "
01105 "use gnulib module pwrite for portability");
01106 # endif
01107 #endif
01108
01109
01110 #if @GNULIB_READLINK@
01111
01112
01113
01114
01115
01116 # if @REPLACE_READLINK@
01117 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01118 # define readlink rpl_readlink
01119 # endif
01120 _GL_FUNCDECL_RPL (readlink, ssize_t,
01121 (const char *file, char *buf, size_t bufsize)
01122 _GL_ARG_NONNULL ((1, 2)));
01123 _GL_CXXALIAS_RPL (readlink, ssize_t,
01124 (const char *file, char *buf, size_t bufsize));
01125 # else
01126 # if !@HAVE_READLINK@
01127 _GL_FUNCDECL_SYS (readlink, ssize_t,
01128 (const char *file, char *buf, size_t bufsize)
01129 _GL_ARG_NONNULL ((1, 2)));
01130 # endif
01131 _GL_CXXALIAS_SYS (readlink, ssize_t,
01132 (const char *file, char *buf, size_t bufsize));
01133 # endif
01134 _GL_CXXALIASWARN (readlink);
01135 #elif defined GNULIB_POSIXCHECK
01136 # undef readlink
01137 # if HAVE_RAW_DECL_READLINK
01138 _GL_WARN_ON_USE (readlink, "readlink is unportable - "
01139 "use gnulib module readlink for portability");
01140 # endif
01141 #endif
01142
01143
01144 #if @GNULIB_READLINKAT@
01145 # if !@HAVE_READLINKAT@
01146 _GL_FUNCDECL_SYS (readlinkat, ssize_t,
01147 (int fd, char const *file, char *buf, size_t len)
01148 _GL_ARG_NONNULL ((2, 3)));
01149 # endif
01150 _GL_CXXALIAS_SYS (readlinkat, ssize_t,
01151 (int fd, char const *file, char *buf, size_t len));
01152 _GL_CXXALIASWARN (readlinkat);
01153 #elif defined GNULIB_POSIXCHECK
01154 # undef readlinkat
01155 # if HAVE_RAW_DECL_READLINKAT
01156 _GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - "
01157 "use gnulib module readlinkat for portability");
01158 # endif
01159 #endif
01160
01161
01162 #if @GNULIB_RMDIR@
01163
01164 # if @REPLACE_RMDIR@
01165 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01166 # define rmdir rpl_rmdir
01167 # endif
01168 _GL_FUNCDECL_RPL (rmdir, int, (char const *name) _GL_ARG_NONNULL ((1)));
01169 _GL_CXXALIAS_RPL (rmdir, int, (char const *name));
01170 # else
01171 _GL_CXXALIAS_SYS (rmdir, int, (char const *name));
01172 # endif
01173 _GL_CXXALIASWARN (rmdir);
01174 #elif defined GNULIB_POSIXCHECK
01175 # undef rmdir
01176 # if HAVE_RAW_DECL_RMDIR
01177 _GL_WARN_ON_USE (rmdir, "rmdir is unportable - "
01178 "use gnulib module rmdir for portability");
01179 # endif
01180 #endif
01181
01182
01183 #if @GNULIB_SLEEP@
01184
01185
01186
01187
01188 # if @REPLACE_SLEEP@
01189 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01190 # undef sleep
01191 # define sleep rpl_sleep
01192 # endif
01193 _GL_FUNCDECL_RPL (sleep, unsigned int, (unsigned int n));
01194 _GL_CXXALIAS_RPL (sleep, unsigned int, (unsigned int n));
01195 # else
01196 # if !@HAVE_SLEEP@
01197 _GL_FUNCDECL_SYS (sleep, unsigned int, (unsigned int n));
01198 # endif
01199 _GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n));
01200 # endif
01201 _GL_CXXALIASWARN (sleep);
01202 #elif defined GNULIB_POSIXCHECK
01203 # undef sleep
01204 # if HAVE_RAW_DECL_SLEEP
01205 _GL_WARN_ON_USE (sleep, "sleep is unportable - "
01206 "use gnulib module sleep for portability");
01207 # endif
01208 #endif
01209
01210
01211 #if @GNULIB_SYMLINK@
01212 # if @REPLACE_SYMLINK@
01213 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01214 # undef symlink
01215 # define symlink rpl_symlink
01216 # endif
01217 _GL_FUNCDECL_RPL (symlink, int, (char const *contents, char const *file)
01218 _GL_ARG_NONNULL ((1, 2)));
01219 _GL_CXXALIAS_RPL (symlink, int, (char const *contents, char const *file));
01220 # else
01221 # if !@HAVE_SYMLINK@
01222 _GL_FUNCDECL_SYS (symlink, int, (char const *contents, char const *file)
01223 _GL_ARG_NONNULL ((1, 2)));
01224 # endif
01225 _GL_CXXALIAS_SYS (symlink, int, (char const *contents, char const *file));
01226 # endif
01227 _GL_CXXALIASWARN (symlink);
01228 #elif defined GNULIB_POSIXCHECK
01229 # undef symlink
01230 # if HAVE_RAW_DECL_SYMLINK
01231 _GL_WARN_ON_USE (symlink, "symlink is not portable - "
01232 "use gnulib module symlink for portability");
01233 # endif
01234 #endif
01235
01236
01237 #if @GNULIB_SYMLINKAT@
01238 # if !@HAVE_SYMLINKAT@
01239 _GL_FUNCDECL_SYS (symlinkat, int,
01240 (char const *contents, int fd, char const *file)
01241 _GL_ARG_NONNULL ((1, 3)));
01242 # endif
01243 _GL_CXXALIAS_SYS (symlinkat, int,
01244 (char const *contents, int fd, char const *file));
01245 _GL_CXXALIASWARN (symlinkat);
01246 #elif defined GNULIB_POSIXCHECK
01247 # undef symlinkat
01248 # if HAVE_RAW_DECL_SYMLINKAT
01249 _GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - "
01250 "use gnulib module symlinkat for portability");
01251 # endif
01252 #endif
01253
01254
01255 #if @GNULIB_TTYNAME_R@
01256
01257
01258 # if @REPLACE_TTYNAME_R@
01259 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01260 # undef ttyname_r
01261 # define ttyname_r rpl_ttyname_r
01262 # endif
01263 _GL_FUNCDECL_RPL (ttyname_r, int,
01264 (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2)));
01265 _GL_CXXALIAS_RPL (ttyname_r, int,
01266 (int fd, char *buf, size_t buflen));
01267 # else
01268 # if !@HAVE_DECL_TTYNAME_R@
01269 _GL_FUNCDECL_SYS (ttyname_r, int,
01270 (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2)));
01271 # endif
01272 _GL_CXXALIAS_SYS (ttyname_r, int,
01273 (int fd, char *buf, size_t buflen));
01274 # endif
01275 _GL_CXXALIASWARN (ttyname_r);
01276 #elif defined GNULIB_POSIXCHECK
01277 # undef ttyname_r
01278 # if HAVE_RAW_DECL_TTYNAME_R
01279 _GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - "
01280 "use gnulib module ttyname_r for portability");
01281 # endif
01282 #endif
01283
01284
01285 #if @GNULIB_UNLINK@
01286 # if @REPLACE_UNLINK@
01287 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01288 # undef unlink
01289 # define unlink rpl_unlink
01290 # endif
01291 _GL_FUNCDECL_RPL (unlink, int, (char const *file) _GL_ARG_NONNULL ((1)));
01292 _GL_CXXALIAS_RPL (unlink, int, (char const *file));
01293 # else
01294 _GL_CXXALIAS_SYS (unlink, int, (char const *file));
01295 # endif
01296 _GL_CXXALIASWARN (unlink);
01297 #elif defined GNULIB_POSIXCHECK
01298 # undef unlink
01299 # if HAVE_RAW_DECL_UNLINK
01300 _GL_WARN_ON_USE (unlink, "unlink is not portable - "
01301 "use gnulib module unlink for portability");
01302 # endif
01303 #endif
01304
01305
01306 #if @GNULIB_UNLINKAT@
01307 # if @REPLACE_UNLINKAT@
01308 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01309 # undef unlinkat
01310 # define unlinkat rpl_unlinkat
01311 # endif
01312 _GL_FUNCDECL_RPL (unlinkat, int, (int fd, char const *file, int flag)
01313 _GL_ARG_NONNULL ((2)));
01314 _GL_CXXALIAS_RPL (unlinkat, int, (int fd, char const *file, int flag));
01315 # else
01316 # if !@HAVE_UNLINKAT@
01317 _GL_FUNCDECL_SYS (unlinkat, int, (int fd, char const *file, int flag)
01318 _GL_ARG_NONNULL ((2)));
01319 # endif
01320 _GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag));
01321 # endif
01322 _GL_CXXALIASWARN (unlinkat);
01323 #elif defined GNULIB_POSIXCHECK
01324 # undef unlinkat
01325 # if HAVE_RAW_DECL_UNLINKAT
01326 _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - "
01327 "use gnulib module openat for portability");
01328 # endif
01329 #endif
01330
01331
01332 #if @GNULIB_USLEEP@
01333
01334
01335
01336
01337 # if @REPLACE_USLEEP@
01338 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01339 # undef usleep
01340 # define usleep rpl_usleep
01341 # endif
01342 _GL_FUNCDECL_RPL (usleep, int, (useconds_t n));
01343 _GL_CXXALIAS_RPL (usleep, int, (useconds_t n));
01344 # else
01345 # if !@HAVE_USLEEP@
01346 _GL_FUNCDECL_SYS (usleep, int, (useconds_t n));
01347 # endif
01348 _GL_CXXALIAS_SYS (usleep, int, (useconds_t n));
01349 # endif
01350 _GL_CXXALIASWARN (usleep);
01351 #elif defined GNULIB_POSIXCHECK
01352 # undef usleep
01353 # if HAVE_RAW_DECL_USLEEP
01354 _GL_WARN_ON_USE (usleep, "usleep is unportable - "
01355 "use gnulib module usleep for portability");
01356 # endif
01357 #endif
01358
01359
01360 #if @GNULIB_WRITE@
01361
01362
01363
01364 # if @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@
01365 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01366 # undef write
01367 # define write rpl_write
01368 # endif
01369 _GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count)
01370 _GL_ARG_NONNULL ((2)));
01371 _GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count));
01372 # else
01373
01374
01375
01376 _GL_CXXALIAS_SYS_CAST (write, ssize_t, (int fd, const void *buf, size_t count));
01377 # endif
01378 _GL_CXXALIASWARN (write);
01379 #endif
01380
01381
01382 #endif
01383 #endif