00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #if __GNUC__ >= 3
00029 @PRAGMA_SYSTEM_HEADER@
00030 #endif
00031 @PRAGMA_COLUMNS@
00032
00033 #if defined _GL_ALREADY_INCLUDING_SYS_SOCKET_H
00034
00035
00036
00037
00038
00039
00040 #@INCLUDE_NEXT@ @NEXT_SYS_SOCKET_H@
00041
00042 #else
00043
00044
00045 #ifndef _GL_SYS_SOCKET_H
00046
00047 #if @HAVE_SYS_SOCKET_H@
00048
00049 # define _GL_ALREADY_INCLUDING_SYS_SOCKET_H
00050
00051
00052
00053 # include <sys/types.h>
00054
00055
00056 # @INCLUDE_NEXT@ @NEXT_SYS_SOCKET_H@
00057
00058 # undef _GL_ALREADY_INCLUDING_SYS_SOCKET_H
00059
00060 #endif
00061
00062 #ifndef _GL_SYS_SOCKET_H
00063 #define _GL_SYS_SOCKET_H
00064
00065
00066
00067
00068
00069
00070
00071 #if !@HAVE_SA_FAMILY_T@
00072 # if !GNULIB_defined_sa_family_t
00073 typedef unsigned short sa_family_t;
00074 # define GNULIB_defined_sa_family_t 1
00075 # endif
00076 #endif
00077
00078 #if @HAVE_STRUCT_SOCKADDR_STORAGE@
00079
00080 # if !@HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@
00081 # ifndef ss_family
00082 # define ss_family __ss_family
00083 # endif
00084 # endif
00085 #else
00086 # include <alignof.h>
00087
00088
00089 # define __ss_aligntype unsigned long int
00090 # define _SS_SIZE 256
00091 # define _SS_PADSIZE \
00092 (_SS_SIZE - ((sizeof (sa_family_t) >= alignof (__ss_aligntype) \
00093 ? sizeof (sa_family_t) \
00094 : alignof (__ss_aligntype)) \
00095 + sizeof (__ss_aligntype)))
00096
00097 # if !GNULIB_defined_struct_sockaddr_storage
00098 struct sockaddr_storage
00099 {
00100 sa_family_t ss_family;
00101 __ss_aligntype __ss_align;
00102 char __ss_padding[_SS_PADSIZE];
00103 };
00104 # define GNULIB_defined_struct_sockaddr_storage 1
00105 # endif
00106
00107 #endif
00108
00109 #if @HAVE_SYS_SOCKET_H@
00110
00111
00112
00113
00114 # if !defined SHUT_RD
00115 # define SHUT_RD 0
00116 # endif
00117 # if !defined SHUT_WR
00118 # define SHUT_WR 1
00119 # endif
00120 # if !defined SHUT_RDWR
00121 # define SHUT_RDWR 2
00122 # endif
00123
00124 #else
00125
00126 # ifdef __CYGWIN__
00127 # error "Cygwin does have a sys/socket.h, doesn't it?!?"
00128 # endif
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148 # if @HAVE_WINSOCK2_H@
00149 # include <winsock2.h>
00150 # endif
00151 # if @HAVE_WS2TCPIP_H@
00152 # include <ws2tcpip.h>
00153 # endif
00154
00155
00156 # if !defined SHUT_RD && defined SD_RECEIVE
00157 # define SHUT_RD SD_RECEIVE
00158 # endif
00159 # if !defined SHUT_WR && defined SD_SEND
00160 # define SHUT_WR SD_SEND
00161 # endif
00162 # if !defined SHUT_RDWR && defined SD_BOTH
00163 # define SHUT_RDWR SD_BOTH
00164 # endif
00165
00166 # if @HAVE_WINSOCK2_H@
00167
00168 # include <sys/types.h>
00169 # include <io.h>
00170
00171 # if !GNULIB_defined_socklen_t
00172 typedef int socklen_t;
00173 # define GNULIB_defined_socklen_t 1
00174 # endif
00175
00176 # endif
00177
00178 #endif
00179
00180 #if @HAVE_WINSOCK2_H@
00181
00182 # if !GNULIB_defined_rpl_fd_isset
00183
00184
00185
00186 static inline int
00187 rpl_fd_isset (SOCKET fd, fd_set * set)
00188 {
00189 u_int i;
00190 if (set == NULL)
00191 return 0;
00192
00193 for (i = 0; i < set->fd_count; i++)
00194 if (set->fd_array[i] == fd)
00195 return 1;
00196
00197 return 0;
00198 }
00199
00200 # define GNULIB_defined_rpl_fd_isset 1
00201 # endif
00202
00203 # undef FD_ISSET
00204 # define FD_ISSET(fd, set) rpl_fd_isset(fd, set)
00205
00206 #endif
00207
00208
00209
00210 #if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
00211 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00212 # undef close
00213 # define close close_used_without_including_unistd_h
00214 # else
00215 _GL_WARN_ON_USE (close,
00216 "close() used without including <unistd.h>");
00217 # endif
00218 #endif
00219
00220 #if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
00221 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00222 # undef gethostname
00223 # define gethostname gethostname_used_without_including_unistd_h
00224 # else
00225 _GL_WARN_ON_USE (gethostname,
00226 "gethostname() used without including <unistd.h>");
00227 # endif
00228 #endif
00229
00230 #if @GNULIB_SOCKET@
00231 # if @HAVE_WINSOCK2_H@
00232 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00233 # undef socket
00234 # define socket rpl_socket
00235 # endif
00236 _GL_FUNCDECL_RPL (socket, int, (int domain, int type, int protocol));
00237 _GL_CXXALIAS_RPL (socket, int, (int domain, int type, int protocol));
00238 # else
00239 _GL_CXXALIAS_SYS (socket, int, (int domain, int type, int protocol));
00240 # endif
00241 _GL_CXXALIASWARN (socket);
00242 #elif @HAVE_WINSOCK2_H@
00243 # undef socket
00244 # define socket socket_used_without_requesting_gnulib_module_socket
00245 #elif defined GNULIB_POSIXCHECK
00246 # undef socket
00247 # if HAVE_RAW_DECL_SOCKET
00248 _GL_WARN_ON_USE (socket, "socket is not always POSIX compliant - "
00249 "use gnulib module socket for portability");
00250 # endif
00251 #endif
00252
00253 #if @GNULIB_CONNECT@
00254 # if @HAVE_WINSOCK2_H@
00255 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00256 # undef connect
00257 # define connect rpl_connect
00258 # endif
00259 _GL_FUNCDECL_RPL (connect, int,
00260 (int fd, const struct sockaddr *addr, socklen_t addrlen)
00261 _GL_ARG_NONNULL ((2)));
00262 _GL_CXXALIAS_RPL (connect, int,
00263 (int fd, const struct sockaddr *addr, socklen_t addrlen));
00264 # else
00265
00266
00267 _GL_CXXALIAS_SYS_CAST (connect, int,
00268 (int fd,
00269 const struct sockaddr *addr, socklen_t addrlen));
00270 # endif
00271 _GL_CXXALIASWARN (connect);
00272 #elif @HAVE_WINSOCK2_H@
00273 # undef connect
00274 # define connect socket_used_without_requesting_gnulib_module_connect
00275 #elif defined GNULIB_POSIXCHECK
00276 # undef connect
00277 # if HAVE_RAW_DECL_CONNECT
00278 _GL_WARN_ON_USE (connect, "connect is not always POSIX compliant - "
00279 "use gnulib module connect for portability");
00280 # endif
00281 #endif
00282
00283 #if @GNULIB_ACCEPT@
00284 # if @HAVE_WINSOCK2_H@
00285 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00286 # undef accept
00287 # define accept rpl_accept
00288 # endif
00289 _GL_FUNCDECL_RPL (accept, int,
00290 (int fd, struct sockaddr *addr, socklen_t *addrlen));
00291 _GL_CXXALIAS_RPL (accept, int,
00292 (int fd, struct sockaddr *addr, socklen_t *addrlen));
00293 # else
00294
00295
00296 _GL_CXXALIAS_SYS_CAST (accept, int,
00297 (int fd, struct sockaddr *addr, socklen_t *addrlen));
00298 # endif
00299 _GL_CXXALIASWARN (accept);
00300 #elif @HAVE_WINSOCK2_H@
00301 # undef accept
00302 # define accept accept_used_without_requesting_gnulib_module_accept
00303 #elif defined GNULIB_POSIXCHECK
00304 # undef accept
00305 # if HAVE_RAW_DECL_ACCEPT
00306 _GL_WARN_ON_USE (accept, "accept is not always POSIX compliant - "
00307 "use gnulib module accept for portability");
00308 # endif
00309 #endif
00310
00311 #if @GNULIB_BIND@
00312 # if @HAVE_WINSOCK2_H@
00313 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00314 # undef bind
00315 # define bind rpl_bind
00316 # endif
00317 _GL_FUNCDECL_RPL (bind, int,
00318 (int fd, const struct sockaddr *addr, socklen_t addrlen)
00319 _GL_ARG_NONNULL ((2)));
00320 _GL_CXXALIAS_RPL (bind, int,
00321 (int fd, const struct sockaddr *addr, socklen_t addrlen));
00322 # else
00323
00324
00325 _GL_CXXALIAS_SYS_CAST (bind, int,
00326 (int fd,
00327 const struct sockaddr *addr, socklen_t addrlen));
00328 # endif
00329 _GL_CXXALIASWARN (bind);
00330 #elif @HAVE_WINSOCK2_H@
00331 # undef bind
00332 # define bind bind_used_without_requesting_gnulib_module_bind
00333 #elif defined GNULIB_POSIXCHECK
00334 # undef bind
00335 # if HAVE_RAW_DECL_BIND
00336 _GL_WARN_ON_USE (bind, "bind is not always POSIX compliant - "
00337 "use gnulib module bind for portability");
00338 # endif
00339 #endif
00340
00341 #if @GNULIB_GETPEERNAME@
00342 # if @HAVE_WINSOCK2_H@
00343 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00344 # undef getpeername
00345 # define getpeername rpl_getpeername
00346 # endif
00347 _GL_FUNCDECL_RPL (getpeername, int,
00348 (int fd, struct sockaddr *addr, socklen_t *addrlen)
00349 _GL_ARG_NONNULL ((2, 3)));
00350 _GL_CXXALIAS_RPL (getpeername, int,
00351 (int fd, struct sockaddr *addr, socklen_t *addrlen));
00352 # else
00353
00354
00355 _GL_CXXALIAS_SYS_CAST (getpeername, int,
00356 (int fd, struct sockaddr *addr, socklen_t *addrlen));
00357 # endif
00358 _GL_CXXALIASWARN (getpeername);
00359 #elif @HAVE_WINSOCK2_H@
00360 # undef getpeername
00361 # define getpeername getpeername_used_without_requesting_gnulib_module_getpeername
00362 #elif defined GNULIB_POSIXCHECK
00363 # undef getpeername
00364 # if HAVE_RAW_DECL_GETPEERNAME
00365 _GL_WARN_ON_USE (getpeername, "getpeername is not always POSIX compliant - "
00366 "use gnulib module getpeername for portability");
00367 # endif
00368 #endif
00369
00370 #if @GNULIB_GETSOCKNAME@
00371 # if @HAVE_WINSOCK2_H@
00372 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00373 # undef getsockname
00374 # define getsockname rpl_getsockname
00375 # endif
00376 _GL_FUNCDECL_RPL (getsockname, int,
00377 (int fd, struct sockaddr *addr, socklen_t *addrlen)
00378 _GL_ARG_NONNULL ((2, 3)));
00379 _GL_CXXALIAS_RPL (getsockname, int,
00380 (int fd, struct sockaddr *addr, socklen_t *addrlen));
00381 # else
00382
00383
00384 _GL_CXXALIAS_SYS_CAST (getsockname, int,
00385 (int fd, struct sockaddr *addr, socklen_t *addrlen));
00386 # endif
00387 _GL_CXXALIASWARN (getsockname);
00388 #elif @HAVE_WINSOCK2_H@
00389 # undef getsockname
00390 # define getsockname getsockname_used_without_requesting_gnulib_module_getsockname
00391 #elif defined GNULIB_POSIXCHECK
00392 # undef getsockname
00393 # if HAVE_RAW_DECL_GETSOCKNAME
00394 _GL_WARN_ON_USE (getsockname, "getsockname is not always POSIX compliant - "
00395 "use gnulib module getsockname for portability");
00396 # endif
00397 #endif
00398
00399 #if @GNULIB_GETSOCKOPT@
00400 # if @HAVE_WINSOCK2_H@
00401 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00402 # undef getsockopt
00403 # define getsockopt rpl_getsockopt
00404 # endif
00405 _GL_FUNCDECL_RPL (getsockopt, int, (int fd, int level, int optname,
00406 void *optval, socklen_t *optlen)
00407 _GL_ARG_NONNULL ((4, 5)));
00408 _GL_CXXALIAS_RPL (getsockopt, int, (int fd, int level, int optname,
00409 void *optval, socklen_t *optlen));
00410 # else
00411
00412
00413 _GL_CXXALIAS_SYS_CAST (getsockopt, int, (int fd, int level, int optname,
00414 void *optval, socklen_t *optlen));
00415 # endif
00416 _GL_CXXALIASWARN (getsockopt);
00417 #elif @HAVE_WINSOCK2_H@
00418 # undef getsockopt
00419 # define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt
00420 #elif defined GNULIB_POSIXCHECK
00421 # undef getsockopt
00422 # if HAVE_RAW_DECL_GETSOCKOPT
00423 _GL_WARN_ON_USE (getsockopt, "getsockopt is not always POSIX compliant - "
00424 "use gnulib module getsockopt for portability");
00425 # endif
00426 #endif
00427
00428 #if @GNULIB_LISTEN@
00429 # if @HAVE_WINSOCK2_H@
00430 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00431 # undef listen
00432 # define listen rpl_listen
00433 # endif
00434 _GL_FUNCDECL_RPL (listen, int, (int fd, int backlog));
00435 _GL_CXXALIAS_RPL (listen, int, (int fd, int backlog));
00436 # else
00437 _GL_CXXALIAS_SYS (listen, int, (int fd, int backlog));
00438 # endif
00439 _GL_CXXALIASWARN (listen);
00440 #elif @HAVE_WINSOCK2_H@
00441 # undef listen
00442 # define listen listen_used_without_requesting_gnulib_module_listen
00443 #elif defined GNULIB_POSIXCHECK
00444 # undef listen
00445 # if HAVE_RAW_DECL_LISTEN
00446 _GL_WARN_ON_USE (listen, "listen is not always POSIX compliant - "
00447 "use gnulib module listen for portability");
00448 # endif
00449 #endif
00450
00451 #if @GNULIB_RECV@
00452 # if @HAVE_WINSOCK2_H@
00453 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00454 # undef recv
00455 # define recv rpl_recv
00456 # endif
00457 _GL_FUNCDECL_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags)
00458 _GL_ARG_NONNULL ((2)));
00459 _GL_CXXALIAS_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags));
00460 # else
00461 _GL_CXXALIAS_SYS (recv, ssize_t, (int fd, void *buf, size_t len, int flags));
00462 # endif
00463 _GL_CXXALIASWARN (recv);
00464 #elif @HAVE_WINSOCK2_H@
00465 # undef recv
00466 # define recv recv_used_without_requesting_gnulib_module_recv
00467 #elif defined GNULIB_POSIXCHECK
00468 # undef recv
00469 # if HAVE_RAW_DECL_RECV
00470 _GL_WARN_ON_USE (recv, "recv is not always POSIX compliant - "
00471 "use gnulib module recv for portability");
00472 # endif
00473 #endif
00474
00475 #if @GNULIB_SEND@
00476 # if @HAVE_WINSOCK2_H@
00477 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00478 # undef send
00479 # define send rpl_send
00480 # endif
00481 _GL_FUNCDECL_RPL (send, ssize_t,
00482 (int fd, const void *buf, size_t len, int flags)
00483 _GL_ARG_NONNULL ((2)));
00484 _GL_CXXALIAS_RPL (send, ssize_t,
00485 (int fd, const void *buf, size_t len, int flags));
00486 # else
00487 _GL_CXXALIAS_SYS (send, ssize_t,
00488 (int fd, const void *buf, size_t len, int flags));
00489 # endif
00490 _GL_CXXALIASWARN (send);
00491 #elif @HAVE_WINSOCK2_H@
00492 # undef send
00493 # define send send_used_without_requesting_gnulib_module_send
00494 #elif defined GNULIB_POSIXCHECK
00495 # undef send
00496 # if HAVE_RAW_DECL_SEND
00497 _GL_WARN_ON_USE (send, "send is not always POSIX compliant - "
00498 "use gnulib module send for portability");
00499 # endif
00500 #endif
00501
00502 #if @GNULIB_RECVFROM@
00503 # if @HAVE_WINSOCK2_H@
00504 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00505 # undef recvfrom
00506 # define recvfrom rpl_recvfrom
00507 # endif
00508 _GL_FUNCDECL_RPL (recvfrom, ssize_t,
00509 (int fd, void *buf, size_t len, int flags,
00510 struct sockaddr *from, socklen_t *fromlen)
00511 _GL_ARG_NONNULL ((2)));
00512 _GL_CXXALIAS_RPL (recvfrom, ssize_t,
00513 (int fd, void *buf, size_t len, int flags,
00514 struct sockaddr *from, socklen_t *fromlen));
00515 # else
00516
00517
00518 _GL_CXXALIAS_SYS_CAST (recvfrom, ssize_t,
00519 (int fd, void *buf, size_t len, int flags,
00520 struct sockaddr *from, socklen_t *fromlen));
00521 # endif
00522 _GL_CXXALIASWARN (recvfrom);
00523 #elif @HAVE_WINSOCK2_H@
00524 # undef recvfrom
00525 # define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom
00526 #elif defined GNULIB_POSIXCHECK
00527 # undef recvfrom
00528 # if HAVE_RAW_DECL_RECVFROM
00529 _GL_WARN_ON_USE (recvfrom, "recvfrom is not always POSIX compliant - "
00530 "use gnulib module recvfrom for portability");
00531 # endif
00532 #endif
00533
00534 #if @GNULIB_SENDTO@
00535 # if @HAVE_WINSOCK2_H@
00536 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00537 # undef sendto
00538 # define sendto rpl_sendto
00539 # endif
00540 _GL_FUNCDECL_RPL (sendto, ssize_t,
00541 (int fd, const void *buf, size_t len, int flags,
00542 const struct sockaddr *to, socklen_t tolen)
00543 _GL_ARG_NONNULL ((2)));
00544 _GL_CXXALIAS_RPL (sendto, ssize_t,
00545 (int fd, const void *buf, size_t len, int flags,
00546 const struct sockaddr *to, socklen_t tolen));
00547 # else
00548
00549
00550 _GL_CXXALIAS_SYS_CAST (sendto, ssize_t,
00551 (int fd, const void *buf, size_t len, int flags,
00552 const struct sockaddr *to, socklen_t tolen));
00553 # endif
00554 _GL_CXXALIASWARN (sendto);
00555 #elif @HAVE_WINSOCK2_H@
00556 # undef sendto
00557 # define sendto sendto_used_without_requesting_gnulib_module_sendto
00558 #elif defined GNULIB_POSIXCHECK
00559 # undef sendto
00560 # if HAVE_RAW_DECL_SENDTO
00561 _GL_WARN_ON_USE (sendto, "sendto is not always POSIX compliant - "
00562 "use gnulib module sendto for portability");
00563 # endif
00564 #endif
00565
00566 #if @GNULIB_SETSOCKOPT@
00567 # if @HAVE_WINSOCK2_H@
00568 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00569 # undef setsockopt
00570 # define setsockopt rpl_setsockopt
00571 # endif
00572 _GL_FUNCDECL_RPL (setsockopt, int, (int fd, int level, int optname,
00573 const void * optval, socklen_t optlen)
00574 _GL_ARG_NONNULL ((4)));
00575 _GL_CXXALIAS_RPL (setsockopt, int, (int fd, int level, int optname,
00576 const void * optval, socklen_t optlen));
00577 # else
00578
00579
00580 _GL_CXXALIAS_SYS_CAST (setsockopt, int,
00581 (int fd, int level, int optname,
00582 const void * optval, socklen_t optlen));
00583 # endif
00584 _GL_CXXALIASWARN (setsockopt);
00585 #elif @HAVE_WINSOCK2_H@
00586 # undef setsockopt
00587 # define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt
00588 #elif defined GNULIB_POSIXCHECK
00589 # undef setsockopt
00590 # if HAVE_RAW_DECL_SETSOCKOPT
00591 _GL_WARN_ON_USE (setsockopt, "setsockopt is not always POSIX compliant - "
00592 "use gnulib module setsockopt for portability");
00593 # endif
00594 #endif
00595
00596 #if @GNULIB_SHUTDOWN@
00597 # if @HAVE_WINSOCK2_H@
00598 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00599 # undef shutdown
00600 # define shutdown rpl_shutdown
00601 # endif
00602 _GL_FUNCDECL_RPL (shutdown, int, (int fd, int how));
00603 _GL_CXXALIAS_RPL (shutdown, int, (int fd, int how));
00604 # else
00605 _GL_CXXALIAS_SYS (shutdown, int, (int fd, int how));
00606 # endif
00607 _GL_CXXALIASWARN (shutdown);
00608 #elif @HAVE_WINSOCK2_H@
00609 # undef shutdown
00610 # define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
00611 #elif defined GNULIB_POSIXCHECK
00612 # undef shutdown
00613 # if HAVE_RAW_DECL_SHUTDOWN
00614 _GL_WARN_ON_USE (shutdown, "shutdown is not always POSIX compliant - "
00615 "use gnulib module shutdown for portability");
00616 # endif
00617 #endif
00618
00619 #if @HAVE_WINSOCK2_H@
00620 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00621 # undef select
00622 # define select select_used_without_including_sys_select_h
00623 # else
00624 _GL_WARN_ON_USE (select,
00625 "select() used without including <sys/select.h>");
00626 # endif
00627 #endif
00628
00629 #if @GNULIB_ACCEPT4@
00630
00631
00632
00633
00634
00635 # if @HAVE_ACCEPT4@
00636 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00637 # define accept4 rpl_accept4
00638 # endif
00639 _GL_FUNCDECL_RPL (accept4, int,
00640 (int sockfd, struct sockaddr *addr, socklen_t *addrlen,
00641 int flags));
00642 _GL_CXXALIAS_RPL (accept4, int,
00643 (int sockfd, struct sockaddr *addr, socklen_t *addrlen,
00644 int flags));
00645 # else
00646 _GL_FUNCDECL_SYS (accept4, int,
00647 (int sockfd, struct sockaddr *addr, socklen_t *addrlen,
00648 int flags));
00649 _GL_CXXALIAS_SYS (accept4, int,
00650 (int sockfd, struct sockaddr *addr, socklen_t *addrlen,
00651 int flags));
00652 # endif
00653 _GL_CXXALIASWARN (accept4);
00654 #elif defined GNULIB_POSIXCHECK
00655 # undef accept4
00656 # if HAVE_RAW_DECL_ACCEPT4
00657 _GL_WARN_ON_USE (accept4, "accept4 is unportable - "
00658 "use gnulib module accept4 for portability");
00659 # endif
00660 #endif
00661
00662 #endif
00663 #endif
00664 #endif