00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #if __GNUC__ >= 3
00022 #pragma GCC system_header
00023 #endif
00024
00025
00026
00027
00028
00029
00030 #if 1 && 0 \
00031 && !defined _GL_WINSOCK2_H_WITNESS && defined _WINSOCK2_H
00032
00033
00034 # if 1
00035 # include_next <unistd.h>
00036 # else
00037 # error unexpected; report this to bug-gnulib@gnu.org
00038 # endif
00039 # define _GL_WINSOCK2_H_WITNESS
00040
00041
00042 #elif !defined _GL_UNISTD_H
00043
00044
00045 #if 1
00046 # include_next <unistd.h>
00047 #endif
00048
00049
00050 #if 1 && 0 \
00051 && !defined _GL_INCLUDING_WINSOCK2_H
00052 # define _GL_INCLUDING_WINSOCK2_H
00053 # include <winsock2.h>
00054 # undef _GL_INCLUDING_WINSOCK2_H
00055 #endif
00056
00057 #if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H
00058 #define _GL_UNISTD_H
00059
00060
00061 #include <stddef.h>
00062
00063
00064
00065
00066 #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \
00067 || ((0 || defined GNULIB_POSIXCHECK) \
00068 && defined __CYGWIN__)) \
00069 && ! defined __GLIBC__
00070 # include <stdio.h>
00071 #endif
00072
00073
00074
00075 #if (1 || defined GNULIB_POSIXCHECK) && defined __CYGWIN__ \
00076 && ! defined __GLIBC__
00077 # include <fcntl.h>
00078 #endif
00079
00080
00081
00082
00083
00084 #ifndef __GLIBC__
00085 # include <stdlib.h>
00086 #endif
00087
00088
00089 #if ((1 || defined GNULIB_POSIXCHECK) \
00090 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
00091 # include <io.h>
00092 #endif
00093
00094
00095
00096
00097 #if ((0 && (defined _AIX || defined __osf__)) \
00098 || (1 && defined __TANDEM)) \
00099 && !defined __GLIBC__
00100 # include <netdb.h>
00101 #endif
00102
00103 #if (0 || 1 || 0 \
00104 || 0 || 0 || defined GNULIB_POSIXCHECK)
00105
00106 # include <sys/types.h>
00107 #endif
00108
00109
00110
00111 #if 0 && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT
00112 # include <getopt.h>
00113 #endif
00114
00115
00116 #ifndef _GL_CXXDEFS_H
00117 #define _GL_CXXDEFS_H
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180 #if defined __cplusplus
00181 # define _GL_EXTERN_C extern "C"
00182 #else
00183 # define _GL_EXTERN_C extern
00184 #endif
00185
00186
00187
00188
00189
00190
00191
00192
00193 #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
00194 _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
00195 #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \
00196 _GL_EXTERN_C rettype rpl_func parameters_and_attributes
00197
00198
00199
00200
00201
00202
00203
00204
00205 #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
00206 _GL_EXTERN_C rettype func parameters_and_attributes
00207
00208
00209
00210
00211
00212
00213
00214 #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
00215 _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
00216 #if defined __cplusplus && defined GNULIB_NAMESPACE
00217 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
00218 namespace GNULIB_NAMESPACE \
00219 { \
00220 rettype (*const func) parameters = ::rpl_func; \
00221 } \
00222 _GL_EXTERN_C int _gl_cxxalias_dummy
00223 #else
00224 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
00225 _GL_EXTERN_C int _gl_cxxalias_dummy
00226 #endif
00227
00228
00229
00230
00231
00232
00233 #if defined __cplusplus && defined GNULIB_NAMESPACE
00234 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
00235 namespace GNULIB_NAMESPACE \
00236 { \
00237 rettype (*const func) parameters = \
00238 reinterpret_cast<rettype(*)parameters>(::rpl_func); \
00239 } \
00240 _GL_EXTERN_C int _gl_cxxalias_dummy
00241 #else
00242 # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
00243 _GL_EXTERN_C int _gl_cxxalias_dummy
00244 #endif
00245
00246
00247
00248
00249
00250
00251
00252
00253 #if defined __cplusplus && defined GNULIB_NAMESPACE
00254
00255
00256
00257
00258
00259
00260 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
00261 namespace GNULIB_NAMESPACE \
00262 { \
00263 static rettype (*func) parameters = ::func; \
00264 } \
00265 _GL_EXTERN_C int _gl_cxxalias_dummy
00266 #else
00267 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
00268 _GL_EXTERN_C int _gl_cxxalias_dummy
00269 #endif
00270
00271
00272
00273
00274
00275
00276 #if defined __cplusplus && defined GNULIB_NAMESPACE
00277 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
00278 namespace GNULIB_NAMESPACE \
00279 { \
00280 static rettype (*func) parameters = \
00281 reinterpret_cast<rettype(*)parameters>(::func); \
00282 } \
00283 _GL_EXTERN_C int _gl_cxxalias_dummy
00284 #else
00285 # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
00286 _GL_EXTERN_C int _gl_cxxalias_dummy
00287 #endif
00288
00289
00290
00291
00292
00293
00294
00295 #if defined __cplusplus && defined GNULIB_NAMESPACE
00296
00297
00298
00299
00300
00301 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
00302 namespace GNULIB_NAMESPACE \
00303 { \
00304 static rettype (*func) parameters = \
00305 reinterpret_cast<rettype(*)parameters>( \
00306 (rettype2(*)parameters2)(::func)); \
00307 } \
00308 _GL_EXTERN_C int _gl_cxxalias_dummy
00309 #else
00310 # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
00311 _GL_EXTERN_C int _gl_cxxalias_dummy
00312 #endif
00313
00314
00315
00316
00317
00318 #if defined __cplusplus && defined GNULIB_NAMESPACE
00319 # define _GL_CXXALIASWARN(func) \
00320 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
00321 # define _GL_CXXALIASWARN_1(func,namespace) \
00322 _GL_CXXALIASWARN_2 (func, namespace)
00323
00324
00325 # if !__OPTIMIZE__
00326 # define _GL_CXXALIASWARN_2(func,namespace) \
00327 _GL_WARN_ON_USE (func, \
00328 "The symbol ::" #func " refers to the system function. " \
00329 "Use " #namespace "::" #func " instead.")
00330 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00331 # define _GL_CXXALIASWARN_2(func,namespace) \
00332 extern __typeof__ (func) func
00333 # else
00334 # define _GL_CXXALIASWARN_2(func,namespace) \
00335 _GL_EXTERN_C int _gl_cxxalias_dummy
00336 # endif
00337 #else
00338 # define _GL_CXXALIASWARN(func) \
00339 _GL_EXTERN_C int _gl_cxxalias_dummy
00340 #endif
00341
00342
00343
00344
00345 #if defined __cplusplus && defined GNULIB_NAMESPACE
00346 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
00347 _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
00348 GNULIB_NAMESPACE)
00349 # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
00350 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
00351
00352
00353 # if !__OPTIMIZE__
00354 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00355 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
00356 "The symbol ::" #func " refers to the system function. " \
00357 "Use " #namespace "::" #func " instead.")
00358 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00359 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00360 extern __typeof__ (func) func
00361 # else
00362 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
00363 _GL_EXTERN_C int _gl_cxxalias_dummy
00364 # endif
00365 #else
00366 # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
00367 _GL_EXTERN_C int _gl_cxxalias_dummy
00368 #endif
00369
00370 #endif
00371
00372
00373
00374
00375
00376 #ifndef _GL_ARG_NONNULL
00377 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
00378 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
00379 # else
00380 # define _GL_ARG_NONNULL(params)
00381 # endif
00382 #endif
00383
00384
00385 #ifndef _GL_WARN_ON_USE
00386
00387 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00388
00389 # define _GL_WARN_ON_USE(function, message) \
00390 extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
00391 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00392
00393 # define _GL_WARN_ON_USE(function, message) \
00394 extern __typeof__ (function) function
00395 # else
00396 # define _GL_WARN_ON_USE(function, message) \
00397 _GL_WARN_EXTERN_C int _gl_warn_on_use
00398 # endif
00399 #endif
00400
00401
00402
00403
00404
00405
00406
00407 #ifndef _GL_WARN_ON_USE_CXX
00408 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00409 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00410 extern rettype function parameters_and_attributes \
00411 __attribute__ ((__warning__ (msg)))
00412 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00413
00414 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00415 extern rettype function parameters_and_attributes
00416 # else
00417 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00418 _GL_WARN_EXTERN_C int _gl_warn_on_use
00419 # endif
00420 #endif
00421
00422
00423
00424 #ifndef _GL_WARN_EXTERN_C
00425 # if defined __cplusplus
00426 # define _GL_WARN_EXTERN_C extern "C"
00427 # else
00428 # define _GL_WARN_EXTERN_C extern
00429 # endif
00430 #endif
00431
00432
00433 #if 1
00434
00435 # if 0
00436 # if !defined _GL_SYS_SOCKET_H
00437 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00438 # undef socket
00439 # define socket socket_used_without_including_sys_socket_h
00440 # undef connect
00441 # define connect connect_used_without_including_sys_socket_h
00442 # undef accept
00443 # define accept accept_used_without_including_sys_socket_h
00444 # undef bind
00445 # define bind bind_used_without_including_sys_socket_h
00446 # undef getpeername
00447 # define getpeername getpeername_used_without_including_sys_socket_h
00448 # undef getsockname
00449 # define getsockname getsockname_used_without_including_sys_socket_h
00450 # undef getsockopt
00451 # define getsockopt getsockopt_used_without_including_sys_socket_h
00452 # undef listen
00453 # define listen listen_used_without_including_sys_socket_h
00454 # undef recv
00455 # define recv recv_used_without_including_sys_socket_h
00456 # undef send
00457 # define send send_used_without_including_sys_socket_h
00458 # undef recvfrom
00459 # define recvfrom recvfrom_used_without_including_sys_socket_h
00460 # undef sendto
00461 # define sendto sendto_used_without_including_sys_socket_h
00462 # undef setsockopt
00463 # define setsockopt setsockopt_used_without_including_sys_socket_h
00464 # undef shutdown
00465 # define shutdown shutdown_used_without_including_sys_socket_h
00466 # else
00467 _GL_WARN_ON_USE (socket,
00468 "socket() used without including <sys/socket.h>");
00469 _GL_WARN_ON_USE (connect,
00470 "connect() used without including <sys/socket.h>");
00471 _GL_WARN_ON_USE (accept,
00472 "accept() used without including <sys/socket.h>");
00473 _GL_WARN_ON_USE (bind,
00474 "bind() used without including <sys/socket.h>");
00475 _GL_WARN_ON_USE (getpeername,
00476 "getpeername() used without including <sys/socket.h>");
00477 _GL_WARN_ON_USE (getsockname,
00478 "getsockname() used without including <sys/socket.h>");
00479 _GL_WARN_ON_USE (getsockopt,
00480 "getsockopt() used without including <sys/socket.h>");
00481 _GL_WARN_ON_USE (listen,
00482 "listen() used without including <sys/socket.h>");
00483 _GL_WARN_ON_USE (recv,
00484 "recv() used without including <sys/socket.h>");
00485 _GL_WARN_ON_USE (send,
00486 "send() used without including <sys/socket.h>");
00487 _GL_WARN_ON_USE (recvfrom,
00488 "recvfrom() used without including <sys/socket.h>");
00489 _GL_WARN_ON_USE (sendto,
00490 "sendto() used without including <sys/socket.h>");
00491 _GL_WARN_ON_USE (setsockopt,
00492 "setsockopt() used without including <sys/socket.h>");
00493 _GL_WARN_ON_USE (shutdown,
00494 "shutdown() used without including <sys/socket.h>");
00495 # endif
00496 # endif
00497 # if !defined _GL_SYS_SELECT_H
00498 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00499 # undef select
00500 # define select select_used_without_including_sys_select_h
00501 # else
00502 _GL_WARN_ON_USE (select,
00503 "select() used without including <sys/select.h>");
00504 # endif
00505 # endif
00506 # endif
00507 #endif
00508
00509
00510
00511 #ifndef STDIN_FILENO
00512 # define STDIN_FILENO 0
00513 #endif
00514 #ifndef STDOUT_FILENO
00515 # define STDOUT_FILENO 1
00516 #endif
00517 #ifndef STDERR_FILENO
00518 # define STDERR_FILENO 2
00519 #endif
00520
00521
00522 #ifndef F_OK
00523 # define F_OK 0
00524 # define X_OK 1
00525 # define W_OK 2
00526 # define R_OK 4
00527 #endif
00528
00529
00530
00531
00532
00533 #if defined GNULIB_POSIXCHECK
00534
00535 _GL_WARN_ON_USE (access, "the access function is a security risk - "
00536 "use the gnulib module faccessat instead");
00537 #endif
00538
00539
00540 #if 1
00541
00542
00543
00544
00545
00546 # if 0
00547 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00548 # undef chown
00549 # define chown rpl_chown
00550 # endif
00551 _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)
00552 _GL_ARG_NONNULL ((1)));
00553 _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid));
00554 # else
00555 # if !1
00556 _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)
00557 _GL_ARG_NONNULL ((1)));
00558 # endif
00559 _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid));
00560 # endif
00561 _GL_CXXALIASWARN (chown);
00562 #elif defined GNULIB_POSIXCHECK
00563 # undef chown
00564 # if HAVE_RAW_DECL_CHOWN
00565 _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and "
00566 "doesn't treat a uid or gid of -1 on some systems - "
00567 "use gnulib module chown for portability");
00568 # endif
00569 #endif
00570
00571
00572 #if 1
00573 # if 0
00574
00575 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00576 # undef close
00577 # define close rpl_close
00578 # endif
00579 _GL_FUNCDECL_RPL (close, int, (int fd));
00580 _GL_CXXALIAS_RPL (close, int, (int fd));
00581 # else
00582 _GL_CXXALIAS_SYS (close, int, (int fd));
00583 # endif
00584 _GL_CXXALIASWARN (close);
00585 #elif 0
00586 # undef close
00587 # define close close_used_without_requesting_gnulib_module_close
00588 #elif defined GNULIB_POSIXCHECK
00589 # undef close
00590
00591 _GL_WARN_ON_USE (close, "close does not portably work on sockets - "
00592 "use gnulib module close for portability");
00593 #endif
00594
00595
00596 #if 0
00597 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00598 # define dup rpl_dup
00599 # endif
00600 _GL_FUNCDECL_RPL (dup, int, (int oldfd));
00601 _GL_CXXALIAS_RPL (dup, int, (int oldfd));
00602 #else
00603 _GL_CXXALIAS_SYS (dup, int, (int oldfd));
00604 #endif
00605 _GL_CXXALIASWARN (dup);
00606
00607
00608 #if 1
00609
00610
00611
00612
00613
00614 # if 0
00615 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00616 # define dup2 rpl_dup2
00617 # endif
00618 _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd));
00619 _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd));
00620 # else
00621 # if !1
00622 _GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd));
00623 # endif
00624 _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd));
00625 # endif
00626 _GL_CXXALIASWARN (dup2);
00627 #elif defined GNULIB_POSIXCHECK
00628 # undef dup2
00629 # if HAVE_RAW_DECL_DUP2
00630 _GL_WARN_ON_USE (dup2, "dup2 is unportable - "
00631 "use gnulib module dup2 for portability");
00632 # endif
00633 #endif
00634
00635
00636 #if 0
00637
00638
00639
00640
00641
00642
00643
00644
00645 # if 1
00646 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00647 # define dup3 rpl_dup3
00648 # endif
00649 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags));
00650 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags));
00651 # else
00652 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags));
00653 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags));
00654 # endif
00655 _GL_CXXALIASWARN (dup3);
00656 #elif defined GNULIB_POSIXCHECK
00657 # undef dup3
00658 # if HAVE_RAW_DECL_DUP3
00659 _GL_WARN_ON_USE (dup3, "dup3 is unportable - "
00660 "use gnulib module dup3 for portability");
00661 # endif
00662 #endif
00663
00664
00665 #if 0
00666 # if !1
00667
00668
00669 # if defined __APPLE__ && defined __MACH__
00670 # include <crt_externs.h>
00671 # define environ (*_NSGetEnviron ())
00672 # else
00673 # ifdef __cplusplus
00674 extern "C" {
00675 # endif
00676 extern char **environ;
00677 # ifdef __cplusplus
00678 }
00679 # endif
00680 # endif
00681 # endif
00682 #elif defined GNULIB_POSIXCHECK
00683 # if HAVE_RAW_DECL_ENVIRON
00684 static inline char ***
00685 rpl_environ (void)
00686 {
00687 return &environ;
00688 }
00689 _GL_WARN_ON_USE (rpl_environ, "environ is unportable - "
00690 "use gnulib module environ for portability");
00691 # undef environ
00692 # define environ (*rpl_environ ())
00693 # endif
00694 #endif
00695
00696
00697 #if 0
00698
00699
00700 # if !1
00701 _GL_FUNCDECL_SYS (euidaccess, int, (const char *filename, int mode)
00702 _GL_ARG_NONNULL ((1)));
00703 # endif
00704 _GL_CXXALIAS_SYS (euidaccess, int, (const char *filename, int mode));
00705 _GL_CXXALIASWARN (euidaccess);
00706 # if defined GNULIB_POSIXCHECK
00707
00708 _GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - "
00709 "use the gnulib module faccessat instead");
00710 # endif
00711 #elif defined GNULIB_POSIXCHECK
00712 # undef euidaccess
00713 # if HAVE_RAW_DECL_EUIDACCESS
00714 _GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - "
00715 "use gnulib module euidaccess for portability");
00716 # endif
00717 #endif
00718
00719
00720 #if 0
00721 # if !1
00722 _GL_FUNCDECL_SYS (faccessat, int,
00723 (int fd, char const *file, int mode, int flag)
00724 _GL_ARG_NONNULL ((2)));
00725 # endif
00726 _GL_CXXALIAS_SYS (faccessat, int,
00727 (int fd, char const *file, int mode, int flag));
00728 _GL_CXXALIASWARN (faccessat);
00729 #elif defined GNULIB_POSIXCHECK
00730 # undef faccessat
00731 # if HAVE_RAW_DECL_FACCESSAT
00732 _GL_WARN_ON_USE (faccessat, "faccessat is not portable - "
00733 "use gnulib module faccessat for portability");
00734 # endif
00735 #endif
00736
00737
00738 #if 1
00739
00740
00741
00742
00743
00744 # if ! 1
00745 _GL_FUNCDECL_SYS (fchdir, int, (int ));
00746
00747
00748 _GL_EXTERN_C int _gl_register_fd (int fd, const char *filename)
00749 _GL_ARG_NONNULL ((2));
00750 _GL_EXTERN_C void _gl_unregister_fd (int fd);
00751 _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd);
00752 _GL_EXTERN_C const char *_gl_directory_name (int fd);
00753
00754 # else
00755 # if !1
00756 _GL_FUNCDECL_SYS (fchdir, int, (int ));
00757 # endif
00758 # endif
00759 _GL_CXXALIAS_SYS (fchdir, int, (int ));
00760 _GL_CXXALIASWARN (fchdir);
00761 #elif defined GNULIB_POSIXCHECK
00762 # undef fchdir
00763 # if HAVE_RAW_DECL_FCHDIR
00764 _GL_WARN_ON_USE (fchdir, "fchdir is unportable - "
00765 "use gnulib module fchdir for portability");
00766 # endif
00767 #endif
00768
00769
00770 #if 1
00771 # if 0
00772 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00773 # undef fchownat
00774 # define fchownat rpl_fchownat
00775 # endif
00776 _GL_FUNCDECL_RPL (fchownat, int, (int fd, char const *file,
00777 uid_t owner, gid_t group, int flag)
00778 _GL_ARG_NONNULL ((2)));
00779 _GL_CXXALIAS_RPL (fchownat, int, (int fd, char const *file,
00780 uid_t owner, gid_t group, int flag));
00781 # else
00782 # if !1
00783 _GL_FUNCDECL_SYS (fchownat, int, (int fd, char const *file,
00784 uid_t owner, gid_t group, int flag)
00785 _GL_ARG_NONNULL ((2)));
00786 # endif
00787 _GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file,
00788 uid_t owner, gid_t group, int flag));
00789 # endif
00790 _GL_CXXALIASWARN (fchownat);
00791 #elif defined GNULIB_POSIXCHECK
00792 # undef fchownat
00793 # if HAVE_RAW_DECL_FCHOWNAT
00794 _GL_WARN_ON_USE (fchownat, "fchownat is not portable - "
00795 "use gnulib module openat for portability");
00796 # endif
00797 #endif
00798
00799
00800 #if 0
00801
00802
00803
00804
00805 # if !1
00806 _GL_FUNCDECL_SYS (fsync, int, (int fd));
00807 # endif
00808 _GL_CXXALIAS_SYS (fsync, int, (int fd));
00809 _GL_CXXALIASWARN (fsync);
00810 #elif defined GNULIB_POSIXCHECK
00811 # undef fsync
00812 # if HAVE_RAW_DECL_FSYNC
00813 _GL_WARN_ON_USE (fsync, "fsync is unportable - "
00814 "use gnulib module fsync for portability");
00815 # endif
00816 #endif
00817
00818
00819 #if 0
00820
00821
00822
00823
00824 # if !1
00825 _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length));
00826 # endif
00827 _GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length));
00828 _GL_CXXALIASWARN (ftruncate);
00829 #elif defined GNULIB_POSIXCHECK
00830 # undef ftruncate
00831 # if HAVE_RAW_DECL_FTRUNCATE
00832 _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - "
00833 "use gnulib module ftruncate for portability");
00834 # endif
00835 #endif
00836
00837
00838 #if 1
00839
00840
00841
00842
00843
00844
00845
00846
00847
00848
00849 # if 1
00850 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00851 # define getcwd rpl_getcwd
00852 # endif
00853 _GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size));
00854 _GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size));
00855 # else
00856
00857
00858 _GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size));
00859 # endif
00860 _GL_CXXALIASWARN (getcwd);
00861 #elif defined GNULIB_POSIXCHECK
00862 # undef getcwd
00863 # if HAVE_RAW_DECL_GETCWD
00864 _GL_WARN_ON_USE (getcwd, "getcwd is unportable - "
00865 "use gnulib module getcwd for portability");
00866 # endif
00867 #endif
00868
00869
00870 #if 0
00871
00872
00873
00874
00875
00876
00877
00878
00879
00880
00881 # if 0
00882 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00883 # undef getdomainname
00884 # define getdomainname rpl_getdomainname
00885 # endif
00886 _GL_FUNCDECL_RPL (getdomainname, int, (char *name, size_t len)
00887 _GL_ARG_NONNULL ((1)));
00888 _GL_CXXALIAS_RPL (getdomainname, int, (char *name, size_t len));
00889 # else
00890 # if !1
00891 _GL_FUNCDECL_SYS (getdomainname, int, (char *name, size_t len)
00892 _GL_ARG_NONNULL ((1)));
00893 # endif
00894 _GL_CXXALIAS_SYS (getdomainname, int, (char *name, size_t len));
00895 # endif
00896 _GL_CXXALIASWARN (getdomainname);
00897 #elif defined GNULIB_POSIXCHECK
00898 # undef getdomainname
00899 # if HAVE_RAW_DECL_GETDOMAINNAME
00900 _GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - "
00901 "use gnulib module getdomainname for portability");
00902 # endif
00903 #endif
00904
00905
00906 #if 1
00907
00908
00909 # if !1
00910 _GL_FUNCDECL_SYS (getdtablesize, int, (void));
00911 # endif
00912 _GL_CXXALIAS_SYS (getdtablesize, int, (void));
00913 _GL_CXXALIASWARN (getdtablesize);
00914 #elif defined GNULIB_POSIXCHECK
00915 # undef getdtablesize
00916 # if HAVE_RAW_DECL_GETDTABLESIZE
00917 _GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - "
00918 "use gnulib module getdtablesize for portability");
00919 # endif
00920 #endif
00921
00922
00923 #if 0
00924
00925
00926
00927
00928
00929 # if 0
00930 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00931 # undef getgroups
00932 # define getgroups rpl_getgroups
00933 # endif
00934 _GL_FUNCDECL_RPL (getgroups, int, (int n, gid_t *groups));
00935 _GL_CXXALIAS_RPL (getgroups, int, (int n, gid_t *groups));
00936 # else
00937 # if !1
00938 _GL_FUNCDECL_SYS (getgroups, int, (int n, gid_t *groups));
00939 # endif
00940 _GL_CXXALIAS_SYS (getgroups, int, (int n, gid_t *groups));
00941 # endif
00942 _GL_CXXALIASWARN (getgroups);
00943 #elif defined GNULIB_POSIXCHECK
00944 # undef getgroups
00945 # if HAVE_RAW_DECL_GETGROUPS
00946 _GL_WARN_ON_USE (getgroups, "getgroups is unportable - "
00947 "use gnulib module getgroups for portability");
00948 # endif
00949 #endif
00950
00951
00952 #if 1
00953
00954
00955
00956
00957
00958
00959
00960 # if 0
00961 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00962 # undef gethostname
00963 # define gethostname rpl_gethostname
00964 # endif
00965 _GL_FUNCDECL_RPL (gethostname, int, (char *name, size_t len)
00966 _GL_ARG_NONNULL ((1)));
00967 _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len));
00968 # else
00969 # if !1
00970 _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len)
00971 _GL_ARG_NONNULL ((1)));
00972 # endif
00973
00974
00975
00976 _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len));
00977 # endif
00978 _GL_CXXALIASWARN (gethostname);
00979 #elif 0
00980 # undef gethostname
00981 # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname
00982 #elif defined GNULIB_POSIXCHECK
00983 # undef gethostname
00984 # if HAVE_RAW_DECL_GETHOSTNAME
00985 _GL_WARN_ON_USE (gethostname, "gethostname is unportable - "
00986 "use gnulib module gethostname for portability");
00987 # endif
00988 #endif
00989
00990
00991 #if 0
00992
00993
00994
00995
00996
00997
00998
00999
01000
01001
01002 # if !1
01003 _GL_FUNCDECL_SYS (getlogin, char *, (void));
01004 # endif
01005 _GL_CXXALIAS_SYS (getlogin, char *, (void));
01006 _GL_CXXALIASWARN (getlogin);
01007 #elif defined GNULIB_POSIXCHECK
01008 # undef getlogin
01009 # if HAVE_RAW_DECL_GETLOGIN
01010 _GL_WARN_ON_USE (getlogin, "getlogin is unportable - "
01011 "use gnulib module getlogin for portability");
01012 # endif
01013 #endif
01014
01015
01016 #if 1
01017
01018
01019
01020
01021
01022
01023
01024
01025
01026
01027
01028
01029
01030
01031 # if 0
01032 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01033 # define getlogin_r rpl_getlogin_r
01034 # endif
01035 _GL_FUNCDECL_RPL (getlogin_r, int, (char *name, size_t size)
01036 _GL_ARG_NONNULL ((1)));
01037 _GL_CXXALIAS_RPL (getlogin_r, int, (char *name, size_t size));
01038 # else
01039 # if !1
01040 _GL_FUNCDECL_SYS (getlogin_r, int, (char *name, size_t size)
01041 _GL_ARG_NONNULL ((1)));
01042 # endif
01043
01044
01045 _GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size));
01046 # endif
01047 _GL_CXXALIASWARN (getlogin_r);
01048 #elif defined GNULIB_POSIXCHECK
01049 # undef getlogin_r
01050 # if HAVE_RAW_DECL_GETLOGIN_R
01051 _GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - "
01052 "use gnulib module getlogin_r for portability");
01053 # endif
01054 #endif
01055
01056
01057 #if 0
01058 # if 0
01059 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01060 # define getpagesize rpl_getpagesize
01061 # endif
01062 _GL_FUNCDECL_RPL (getpagesize, int, (void));
01063 _GL_CXXALIAS_RPL (getpagesize, int, (void));
01064 # else
01065 # if !1
01066 # if !defined getpagesize
01067
01068 # if !defined _gl_getpagesize && defined _SC_PAGESIZE
01069 # if ! (defined __VMS && __VMS_VER < 70000000)
01070 # define _gl_getpagesize() sysconf (_SC_PAGESIZE)
01071 # endif
01072 # endif
01073
01074 # if !defined _gl_getpagesize && defined __VMS
01075 # ifdef __ALPHA
01076 # define _gl_getpagesize() 8192
01077 # else
01078 # define _gl_getpagesize() 512
01079 # endif
01080 # endif
01081
01082 # if !defined _gl_getpagesize && 0
01083 # include <OS.h>
01084 # if defined B_PAGE_SIZE
01085 # define _gl_getpagesize() B_PAGE_SIZE
01086 # endif
01087 # endif
01088
01089 # if !defined _gl_getpagesize && defined __amigaos4__
01090 # define _gl_getpagesize() 2048
01091 # endif
01092
01093 # if !defined _gl_getpagesize && 0
01094 # include <sys/param.h>
01095 # ifdef EXEC_PAGESIZE
01096 # define _gl_getpagesize() EXEC_PAGESIZE
01097 # else
01098 # ifdef NBPG
01099 # ifndef CLSIZE
01100 # define CLSIZE 1
01101 # endif
01102 # define _gl_getpagesize() (NBPG * CLSIZE)
01103 # else
01104 # ifdef NBPC
01105 # define _gl_getpagesize() NBPC
01106 # endif
01107 # endif
01108 # endif
01109 # endif
01110 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01111 # define getpagesize() _gl_getpagesize ()
01112 # else
01113 # if !GNULIB_defined_getpagesize_function
01114 static inline int
01115 getpagesize ()
01116 {
01117 return _gl_getpagesize ();
01118 }
01119 # define GNULIB_defined_getpagesize_function 1
01120 # endif
01121 # endif
01122 # endif
01123 # endif
01124
01125 _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void));
01126 # endif
01127 # if 1
01128 _GL_CXXALIASWARN (getpagesize);
01129 # endif
01130 #elif defined GNULIB_POSIXCHECK
01131 # undef getpagesize
01132 # if HAVE_RAW_DECL_GETPAGESIZE
01133 _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - "
01134 "use gnulib module getpagesize for portability");
01135 # endif
01136 #endif
01137
01138
01139 #if 0
01140
01141
01142 # if !1
01143 _GL_FUNCDECL_SYS (getusershell, char *, (void));
01144 # endif
01145 _GL_CXXALIAS_SYS (getusershell, char *, (void));
01146 _GL_CXXALIASWARN (getusershell);
01147 #elif defined GNULIB_POSIXCHECK
01148 # undef getusershell
01149 # if HAVE_RAW_DECL_GETUSERSHELL
01150 _GL_WARN_ON_USE (getusershell, "getusershell is unportable - "
01151 "use gnulib module getusershell for portability");
01152 # endif
01153 #endif
01154
01155 #if 0
01156
01157 # if !1
01158 _GL_FUNCDECL_SYS (setusershell, void, (void));
01159 # endif
01160 _GL_CXXALIAS_SYS (setusershell, void, (void));
01161 _GL_CXXALIASWARN (setusershell);
01162 #elif defined GNULIB_POSIXCHECK
01163 # undef setusershell
01164 # if HAVE_RAW_DECL_SETUSERSHELL
01165 _GL_WARN_ON_USE (setusershell, "setusershell is unportable - "
01166 "use gnulib module getusershell for portability");
01167 # endif
01168 #endif
01169
01170 #if 0
01171
01172
01173 # if !1
01174 _GL_FUNCDECL_SYS (endusershell, void, (void));
01175 # endif
01176 _GL_CXXALIAS_SYS (endusershell, void, (void));
01177 _GL_CXXALIASWARN (endusershell);
01178 #elif defined GNULIB_POSIXCHECK
01179 # undef endusershell
01180 # if HAVE_RAW_DECL_ENDUSERSHELL
01181 _GL_WARN_ON_USE (endusershell, "endusershell is unportable - "
01182 "use gnulib module getusershell for portability");
01183 # endif
01184 #endif
01185
01186
01187 #if 1
01188
01189
01190
01191
01192
01193 # if 0
01194 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01195 # undef lchown
01196 # define lchown rpl_lchown
01197 # endif
01198 _GL_FUNCDECL_RPL (lchown, int, (char const *file, uid_t owner, gid_t group)
01199 _GL_ARG_NONNULL ((1)));
01200 _GL_CXXALIAS_RPL (lchown, int, (char const *file, uid_t owner, gid_t group));
01201 # else
01202 # if !1
01203 _GL_FUNCDECL_SYS (lchown, int, (char const *file, uid_t owner, gid_t group)
01204 _GL_ARG_NONNULL ((1)));
01205 # endif
01206 _GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group));
01207 # endif
01208 _GL_CXXALIASWARN (lchown);
01209 #elif defined GNULIB_POSIXCHECK
01210 # undef lchown
01211 # if HAVE_RAW_DECL_LCHOWN
01212 _GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - "
01213 "use gnulib module lchown for portability");
01214 # endif
01215 #endif
01216
01217
01218 #if 1
01219
01220
01221
01222
01223 # if 0
01224 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01225 # define link rpl_link
01226 # endif
01227 _GL_FUNCDECL_RPL (link, int, (const char *path1, const char *path2)
01228 _GL_ARG_NONNULL ((1, 2)));
01229 _GL_CXXALIAS_RPL (link, int, (const char *path1, const char *path2));
01230 # else
01231 # if !1
01232 _GL_FUNCDECL_SYS (link, int, (const char *path1, const char *path2)
01233 _GL_ARG_NONNULL ((1, 2)));
01234 # endif
01235 _GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2));
01236 # endif
01237 _GL_CXXALIASWARN (link);
01238 #elif defined GNULIB_POSIXCHECK
01239 # undef link
01240 # if HAVE_RAW_DECL_LINK
01241 _GL_WARN_ON_USE (link, "link is unportable - "
01242 "use gnulib module link for portability");
01243 # endif
01244 #endif
01245
01246
01247 #if 0
01248
01249
01250
01251 # if 0
01252 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01253 # undef linkat
01254 # define linkat rpl_linkat
01255 # endif
01256 _GL_FUNCDECL_RPL (linkat, int,
01257 (int fd1, const char *path1, int fd2, const char *path2,
01258 int flag)
01259 _GL_ARG_NONNULL ((2, 4)));
01260 _GL_CXXALIAS_RPL (linkat, int,
01261 (int fd1, const char *path1, int fd2, const char *path2,
01262 int flag));
01263 # else
01264 # if !1
01265 _GL_FUNCDECL_SYS (linkat, int,
01266 (int fd1, const char *path1, int fd2, const char *path2,
01267 int flag)
01268 _GL_ARG_NONNULL ((2, 4)));
01269 # endif
01270 _GL_CXXALIAS_SYS (linkat, int,
01271 (int fd1, const char *path1, int fd2, const char *path2,
01272 int flag));
01273 # endif
01274 _GL_CXXALIASWARN (linkat);
01275 #elif defined GNULIB_POSIXCHECK
01276 # undef linkat
01277 # if HAVE_RAW_DECL_LINKAT
01278 _GL_WARN_ON_USE (linkat, "linkat is unportable - "
01279 "use gnulib module linkat for portability");
01280 # endif
01281 #endif
01282
01283
01284 #if 0
01285
01286
01287
01288
01289 # if 0
01290 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01291 # define lseek rpl_lseek
01292 # endif
01293 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence));
01294 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence));
01295 # else
01296 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence));
01297 # endif
01298 _GL_CXXALIASWARN (lseek);
01299 #elif defined GNULIB_POSIXCHECK
01300 # undef lseek
01301 # if HAVE_RAW_DECL_LSEEK
01302 _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
01303 "systems - use gnulib module lseek for portability");
01304 # endif
01305 #endif
01306
01307
01308 #if 0
01309
01310
01311
01312 # if !1
01313 _GL_FUNCDECL_SYS (pipe, int, (int fd[2]) _GL_ARG_NONNULL ((1)));
01314 # endif
01315 _GL_CXXALIAS_SYS (pipe, int, (int fd[2]));
01316 _GL_CXXALIASWARN (pipe);
01317 #elif defined GNULIB_POSIXCHECK
01318 # undef pipe
01319 # if HAVE_RAW_DECL_PIPE
01320 _GL_WARN_ON_USE (pipe, "pipe is unportable - "
01321 "use gnulib module pipe-posix for portability");
01322 # endif
01323 #endif
01324
01325
01326 #if 0
01327
01328
01329
01330
01331
01332
01333
01334
01335 # if 1
01336 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01337 # define pipe2 rpl_pipe2
01338 # endif
01339 _GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1)));
01340 _GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags));
01341 # else
01342 _GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1)));
01343 _GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags));
01344 # endif
01345 _GL_CXXALIASWARN (pipe2);
01346 #elif defined GNULIB_POSIXCHECK
01347 # undef pipe2
01348 # if HAVE_RAW_DECL_PIPE2
01349 _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - "
01350 "use gnulib module pipe2 for portability");
01351 # endif
01352 #endif
01353
01354
01355 #if 0
01356
01357
01358
01359
01360 # if 0
01361 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01362 # define pread rpl_pread
01363 # endif
01364 _GL_FUNCDECL_RPL (pread, ssize_t,
01365 (int fd, void *buf, size_t bufsize, off_t offset)
01366 _GL_ARG_NONNULL ((2)));
01367 _GL_CXXALIAS_RPL (pread, ssize_t,
01368 (int fd, void *buf, size_t bufsize, off_t offset));
01369 # else
01370 # if !1
01371 _GL_FUNCDECL_SYS (pread, ssize_t,
01372 (int fd, void *buf, size_t bufsize, off_t offset)
01373 _GL_ARG_NONNULL ((2)));
01374 # endif
01375 _GL_CXXALIAS_SYS (pread, ssize_t,
01376 (int fd, void *buf, size_t bufsize, off_t offset));
01377 # endif
01378 _GL_CXXALIASWARN (pread);
01379 #elif defined GNULIB_POSIXCHECK
01380 # undef pread
01381 # if HAVE_RAW_DECL_PREAD
01382 _GL_WARN_ON_USE (pread, "pread is unportable - "
01383 "use gnulib module pread for portability");
01384 # endif
01385 #endif
01386
01387
01388 #if 0
01389
01390
01391
01392
01393
01394 # if 0
01395 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01396 # define pwrite rpl_pwrite
01397 # endif
01398 _GL_FUNCDECL_RPL (pwrite, ssize_t,
01399 (int fd, const void *buf, size_t bufsize, off_t offset)
01400 _GL_ARG_NONNULL ((2)));
01401 _GL_CXXALIAS_RPL (pwrite, ssize_t,
01402 (int fd, const void *buf, size_t bufsize, off_t offset));
01403 # else
01404 # if !1
01405 _GL_FUNCDECL_SYS (pwrite, ssize_t,
01406 (int fd, const void *buf, size_t bufsize, off_t offset)
01407 _GL_ARG_NONNULL ((2)));
01408 # endif
01409 _GL_CXXALIAS_SYS (pwrite, ssize_t,
01410 (int fd, const void *buf, size_t bufsize, off_t offset));
01411 # endif
01412 _GL_CXXALIASWARN (pwrite);
01413 #elif defined GNULIB_POSIXCHECK
01414 # undef pwrite
01415 # if HAVE_RAW_DECL_PWRITE
01416 _GL_WARN_ON_USE (pwrite, "pwrite is unportable - "
01417 "use gnulib module pwrite for portability");
01418 # endif
01419 #endif
01420
01421
01422 #if 1
01423
01424
01425
01426
01427
01428 # if 0
01429 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01430 # define readlink rpl_readlink
01431 # endif
01432 _GL_FUNCDECL_RPL (readlink, ssize_t,
01433 (const char *file, char *buf, size_t bufsize)
01434 _GL_ARG_NONNULL ((1, 2)));
01435 _GL_CXXALIAS_RPL (readlink, ssize_t,
01436 (const char *file, char *buf, size_t bufsize));
01437 # else
01438 # if !1
01439 _GL_FUNCDECL_SYS (readlink, ssize_t,
01440 (const char *file, char *buf, size_t bufsize)
01441 _GL_ARG_NONNULL ((1, 2)));
01442 # endif
01443 _GL_CXXALIAS_SYS (readlink, ssize_t,
01444 (const char *file, char *buf, size_t bufsize));
01445 # endif
01446 _GL_CXXALIASWARN (readlink);
01447 #elif defined GNULIB_POSIXCHECK
01448 # undef readlink
01449 # if HAVE_RAW_DECL_READLINK
01450 _GL_WARN_ON_USE (readlink, "readlink is unportable - "
01451 "use gnulib module readlink for portability");
01452 # endif
01453 #endif
01454
01455
01456 #if 0
01457 # if !1
01458 _GL_FUNCDECL_SYS (readlinkat, ssize_t,
01459 (int fd, char const *file, char *buf, size_t len)
01460 _GL_ARG_NONNULL ((2, 3)));
01461 # endif
01462 _GL_CXXALIAS_SYS (readlinkat, ssize_t,
01463 (int fd, char const *file, char *buf, size_t len));
01464 _GL_CXXALIASWARN (readlinkat);
01465 #elif defined GNULIB_POSIXCHECK
01466 # undef readlinkat
01467 # if HAVE_RAW_DECL_READLINKAT
01468 _GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - "
01469 "use gnulib module readlinkat for portability");
01470 # endif
01471 #endif
01472
01473
01474 #if 1
01475
01476 # if 0
01477 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01478 # define rmdir rpl_rmdir
01479 # endif
01480 _GL_FUNCDECL_RPL (rmdir, int, (char const *name) _GL_ARG_NONNULL ((1)));
01481 _GL_CXXALIAS_RPL (rmdir, int, (char const *name));
01482 # else
01483 _GL_CXXALIAS_SYS (rmdir, int, (char const *name));
01484 # endif
01485 _GL_CXXALIASWARN (rmdir);
01486 #elif defined GNULIB_POSIXCHECK
01487 # undef rmdir
01488 # if HAVE_RAW_DECL_RMDIR
01489 _GL_WARN_ON_USE (rmdir, "rmdir is unportable - "
01490 "use gnulib module rmdir for portability");
01491 # endif
01492 #endif
01493
01494
01495 #if 1
01496
01497
01498
01499
01500 # if 0
01501 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01502 # undef sleep
01503 # define sleep rpl_sleep
01504 # endif
01505 _GL_FUNCDECL_RPL (sleep, unsigned int, (unsigned int n));
01506 _GL_CXXALIAS_RPL (sleep, unsigned int, (unsigned int n));
01507 # else
01508 # if !1
01509 _GL_FUNCDECL_SYS (sleep, unsigned int, (unsigned int n));
01510 # endif
01511 _GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n));
01512 # endif
01513 _GL_CXXALIASWARN (sleep);
01514 #elif defined GNULIB_POSIXCHECK
01515 # undef sleep
01516 # if HAVE_RAW_DECL_SLEEP
01517 _GL_WARN_ON_USE (sleep, "sleep is unportable - "
01518 "use gnulib module sleep for portability");
01519 # endif
01520 #endif
01521
01522
01523 #if 1
01524 # if 0
01525 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01526 # undef symlink
01527 # define symlink rpl_symlink
01528 # endif
01529 _GL_FUNCDECL_RPL (symlink, int, (char const *contents, char const *file)
01530 _GL_ARG_NONNULL ((1, 2)));
01531 _GL_CXXALIAS_RPL (symlink, int, (char const *contents, char const *file));
01532 # else
01533 # if !1
01534 _GL_FUNCDECL_SYS (symlink, int, (char const *contents, char const *file)
01535 _GL_ARG_NONNULL ((1, 2)));
01536 # endif
01537 _GL_CXXALIAS_SYS (symlink, int, (char const *contents, char const *file));
01538 # endif
01539 _GL_CXXALIASWARN (symlink);
01540 #elif defined GNULIB_POSIXCHECK
01541 # undef symlink
01542 # if HAVE_RAW_DECL_SYMLINK
01543 _GL_WARN_ON_USE (symlink, "symlink is not portable - "
01544 "use gnulib module symlink for portability");
01545 # endif
01546 #endif
01547
01548
01549 #if 0
01550 # if !1
01551 _GL_FUNCDECL_SYS (symlinkat, int,
01552 (char const *contents, int fd, char const *file)
01553 _GL_ARG_NONNULL ((1, 3)));
01554 # endif
01555 _GL_CXXALIAS_SYS (symlinkat, int,
01556 (char const *contents, int fd, char const *file));
01557 _GL_CXXALIASWARN (symlinkat);
01558 #elif defined GNULIB_POSIXCHECK
01559 # undef symlinkat
01560 # if HAVE_RAW_DECL_SYMLINKAT
01561 _GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - "
01562 "use gnulib module symlinkat for portability");
01563 # endif
01564 #endif
01565
01566
01567 #if 0
01568
01569
01570 # if 0
01571 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01572 # undef ttyname_r
01573 # define ttyname_r rpl_ttyname_r
01574 # endif
01575 _GL_FUNCDECL_RPL (ttyname_r, int,
01576 (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2)));
01577 _GL_CXXALIAS_RPL (ttyname_r, int,
01578 (int fd, char *buf, size_t buflen));
01579 # else
01580 # if !1
01581 _GL_FUNCDECL_SYS (ttyname_r, int,
01582 (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2)));
01583 # endif
01584 _GL_CXXALIAS_SYS (ttyname_r, int,
01585 (int fd, char *buf, size_t buflen));
01586 # endif
01587 _GL_CXXALIASWARN (ttyname_r);
01588 #elif defined GNULIB_POSIXCHECK
01589 # undef ttyname_r
01590 # if HAVE_RAW_DECL_TTYNAME_R
01591 _GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - "
01592 "use gnulib module ttyname_r for portability");
01593 # endif
01594 #endif
01595
01596
01597 #if 1
01598 # if 0
01599 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01600 # undef unlink
01601 # define unlink rpl_unlink
01602 # endif
01603 _GL_FUNCDECL_RPL (unlink, int, (char const *file) _GL_ARG_NONNULL ((1)));
01604 _GL_CXXALIAS_RPL (unlink, int, (char const *file));
01605 # else
01606 _GL_CXXALIAS_SYS (unlink, int, (char const *file));
01607 # endif
01608 _GL_CXXALIASWARN (unlink);
01609 #elif defined GNULIB_POSIXCHECK
01610 # undef unlink
01611 # if HAVE_RAW_DECL_UNLINK
01612 _GL_WARN_ON_USE (unlink, "unlink is not portable - "
01613 "use gnulib module unlink for portability");
01614 # endif
01615 #endif
01616
01617
01618 #if 1
01619 # if 0
01620 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01621 # undef unlinkat
01622 # define unlinkat rpl_unlinkat
01623 # endif
01624 _GL_FUNCDECL_RPL (unlinkat, int, (int fd, char const *file, int flag)
01625 _GL_ARG_NONNULL ((2)));
01626 _GL_CXXALIAS_RPL (unlinkat, int, (int fd, char const *file, int flag));
01627 # else
01628 # if !1
01629 _GL_FUNCDECL_SYS (unlinkat, int, (int fd, char const *file, int flag)
01630 _GL_ARG_NONNULL ((2)));
01631 # endif
01632 _GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag));
01633 # endif
01634 _GL_CXXALIASWARN (unlinkat);
01635 #elif defined GNULIB_POSIXCHECK
01636 # undef unlinkat
01637 # if HAVE_RAW_DECL_UNLINKAT
01638 _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - "
01639 "use gnulib module openat for portability");
01640 # endif
01641 #endif
01642
01643
01644 #if 0
01645
01646
01647
01648
01649 # if 0
01650 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01651 # undef usleep
01652 # define usleep rpl_usleep
01653 # endif
01654 _GL_FUNCDECL_RPL (usleep, int, (useconds_t n));
01655 _GL_CXXALIAS_RPL (usleep, int, (useconds_t n));
01656 # else
01657 # if !1
01658 _GL_FUNCDECL_SYS (usleep, int, (useconds_t n));
01659 # endif
01660 _GL_CXXALIAS_SYS (usleep, int, (useconds_t n));
01661 # endif
01662 _GL_CXXALIASWARN (usleep);
01663 #elif defined GNULIB_POSIXCHECK
01664 # undef usleep
01665 # if HAVE_RAW_DECL_USLEEP
01666 _GL_WARN_ON_USE (usleep, "usleep is unportable - "
01667 "use gnulib module usleep for portability");
01668 # endif
01669 #endif
01670
01671
01672 #if 0
01673
01674
01675
01676 # if 0 && 0
01677 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
01678 # undef write
01679 # define write rpl_write
01680 # endif
01681 _GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count)
01682 _GL_ARG_NONNULL ((2)));
01683 _GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count));
01684 # else
01685
01686
01687
01688 _GL_CXXALIAS_SYS_CAST (write, ssize_t, (int fd, const void *buf, size_t count));
01689 # endif
01690 _GL_CXXALIASWARN (write);
01691 #endif
01692
01693
01694 #endif
01695 #endif