161
# define FD_ISSET(fd, set) rpl_fd_isset(fd, set)
179
# define FD_ISSET(fd, set) rpl_fd_isset(fd, set)
165
183
/* Wrap everything else to use libc file descriptors for sockets. */
167
# if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
185
#if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
186
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
169
188
# define close close_used_without_including_unistd_h
190
_GL_WARN_ON_USE (close,
191
"close() used without including <unistd.h>");
172
# if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
195
#if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H
196
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
173
197
# undef gethostname
174
198
# define gethostname gethostname_used_without_including_unistd_h
200
_GL_WARN_ON_USE (gethostname,
201
"gethostname() used without including <unistd.h>");
178
# if @HAVE_WINSOCK2_H@
206
# if @HAVE_WINSOCK2_H@
207
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
180
# define socket rpl_socket
181
extern int rpl_socket (int, int, int protocol);
209
# define socket rpl_socket
183
# elif @HAVE_WINSOCK2_H@
185
# define socket socket_used_without_requesting_gnulib_module_socket
186
# elif defined GNULIB_POSIXCHECK
188
# define socket(d,t,p) \
189
(GL_LINK_WARNING ("socket is not always POSIX compliant - " \
190
"use gnulib module socket for portability"), \
211
_GL_FUNCDECL_RPL (socket, int, (int domain, int type, int protocol));
212
_GL_CXXALIAS_RPL (socket, int, (int domain, int type, int protocol));
214
_GL_CXXALIAS_SYS (socket, int, (int domain, int type, int protocol));
216
_GL_CXXALIASWARN (socket);
217
#elif @HAVE_WINSOCK2_H@
219
# define socket socket_used_without_requesting_gnulib_module_socket
220
#elif defined GNULIB_POSIXCHECK
222
# if HAVE_RAW_DECL_SOCKET
223
_GL_WARN_ON_USE (socket, "socket is not always POSIX compliant - "
224
"use gnulib module socket for portability");
194
# if @GNULIB_CONNECT@
195
# if @HAVE_WINSOCK2_H@
229
# if @HAVE_WINSOCK2_H@
230
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
197
# define connect rpl_connect
198
extern int rpl_connect (int, struct sockaddr *, int);
232
# define connect rpl_connect
200
# elif @HAVE_WINSOCK2_H@
202
# define connect socket_used_without_requesting_gnulib_module_connect
203
# elif defined GNULIB_POSIXCHECK
205
# define connect(s,a,l) \
206
(GL_LINK_WARNING ("connect is not always POSIX compliant - " \
207
"use gnulib module connect for portability"), \
234
_GL_FUNCDECL_RPL (connect, int,
235
(int fd, const struct sockaddr *addr, socklen_t addrlen)
236
_GL_ARG_NONNULL ((2)));
237
_GL_CXXALIAS_RPL (connect, int,
238
(int fd, const struct sockaddr *addr, socklen_t addrlen));
240
_GL_CXXALIAS_SYS (connect, int,
241
(int fd, const struct sockaddr *addr, socklen_t addrlen));
243
_GL_CXXALIASWARN (connect);
244
#elif @HAVE_WINSOCK2_H@
246
# define connect socket_used_without_requesting_gnulib_module_connect
247
#elif defined GNULIB_POSIXCHECK
249
# if HAVE_RAW_DECL_CONNECT
250
_GL_WARN_ON_USE (connect, "connect is not always POSIX compliant - "
251
"use gnulib module connect for portability");
212
# if @HAVE_WINSOCK2_H@
256
# if @HAVE_WINSOCK2_H@
257
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
214
# define accept rpl_accept
215
extern int rpl_accept (int, struct sockaddr *, int *);
259
# define accept rpl_accept
217
# elif @HAVE_WINSOCK2_H@
219
# define accept accept_used_without_requesting_gnulib_module_accept
220
# elif defined GNULIB_POSIXCHECK
222
# define accept(s,a,l) \
223
(GL_LINK_WARNING ("accept is not always POSIX compliant - " \
224
"use gnulib module accept for portability"), \
261
_GL_FUNCDECL_RPL (accept, int,
262
(int fd, struct sockaddr *addr, socklen_t *addrlen));
263
_GL_CXXALIAS_RPL (accept, int,
264
(int fd, struct sockaddr *addr, socklen_t *addrlen));
266
/* Need to cast, because on Solaris 10 systems, the third parameter is
268
_GL_CXXALIAS_SYS_CAST (accept, int,
269
(int fd, struct sockaddr *addr, socklen_t *addrlen));
271
_GL_CXXALIASWARN (accept);
272
#elif @HAVE_WINSOCK2_H@
274
# define accept accept_used_without_requesting_gnulib_module_accept
275
#elif defined GNULIB_POSIXCHECK
277
# if HAVE_RAW_DECL_ACCEPT
278
_GL_WARN_ON_USE (accept, "accept is not always POSIX compliant - "
279
"use gnulib module accept for portability");
229
# if @HAVE_WINSOCK2_H@
284
# if @HAVE_WINSOCK2_H@
285
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
231
# define bind rpl_bind
232
extern int rpl_bind (int, struct sockaddr *, int);
287
# define bind rpl_bind
234
# elif @HAVE_WINSOCK2_H@
236
# define bind bind_used_without_requesting_gnulib_module_bind
237
# elif defined GNULIB_POSIXCHECK
239
# define bind(s,a,l) \
240
(GL_LINK_WARNING ("bind is not always POSIX compliant - " \
241
"use gnulib module bind for portability"), \
289
_GL_FUNCDECL_RPL (bind, int,
290
(int fd, const struct sockaddr *addr, socklen_t addrlen)
291
_GL_ARG_NONNULL ((2)));
292
_GL_CXXALIAS_RPL (bind, int,
293
(int fd, const struct sockaddr *addr, socklen_t addrlen));
295
_GL_CXXALIAS_SYS (bind, int,
296
(int fd, const struct sockaddr *addr, socklen_t addrlen));
298
_GL_CXXALIASWARN (bind);
299
#elif @HAVE_WINSOCK2_H@
301
# define bind bind_used_without_requesting_gnulib_module_bind
302
#elif defined GNULIB_POSIXCHECK
304
# if HAVE_RAW_DECL_BIND
305
_GL_WARN_ON_USE (bind, "bind is not always POSIX compliant - "
306
"use gnulib module bind for portability");
245
# if @GNULIB_GETPEERNAME@
246
# if @HAVE_WINSOCK2_H@
310
#if @GNULIB_GETPEERNAME@
311
# if @HAVE_WINSOCK2_H@
312
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
247
313
# undef getpeername
248
# define getpeername rpl_getpeername
249
extern int rpl_getpeername (int, struct sockaddr *, int *);
314
# define getpeername rpl_getpeername
251
# elif @HAVE_WINSOCK2_H@
253
# define getpeername getpeername_used_without_requesting_gnulib_module_getpeername
254
# elif defined GNULIB_POSIXCHECK
256
# define getpeername(s,a,l) \
257
(GL_LINK_WARNING ("getpeername is not always POSIX compliant - " \
258
"use gnulib module getpeername for portability"), \
259
getpeername (s, a, l))
316
_GL_FUNCDECL_RPL (getpeername, int,
317
(int fd, struct sockaddr *addr, socklen_t *addrlen)
318
_GL_ARG_NONNULL ((2, 3)));
319
_GL_CXXALIAS_RPL (getpeername, int,
320
(int fd, struct sockaddr *addr, socklen_t *addrlen));
322
/* Need to cast, because on Solaris 10 systems, the third parameter is
324
_GL_CXXALIAS_SYS_CAST (getpeername, int,
325
(int fd, struct sockaddr *addr, socklen_t *addrlen));
327
_GL_CXXALIASWARN (getpeername);
328
#elif @HAVE_WINSOCK2_H@
330
# define getpeername getpeername_used_without_requesting_gnulib_module_getpeername
331
#elif defined GNULIB_POSIXCHECK
333
# if HAVE_RAW_DECL_GETPEERNAME
334
_GL_WARN_ON_USE (getpeername, "getpeername is not always POSIX compliant - "
335
"use gnulib module getpeername for portability");
262
# if @GNULIB_GETSOCKNAME@
263
# if @HAVE_WINSOCK2_H@
339
#if @GNULIB_GETSOCKNAME@
340
# if @HAVE_WINSOCK2_H@
341
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
264
342
# undef getsockname
265
# define getsockname rpl_getsockname
266
extern int rpl_getsockname (int, struct sockaddr *, int *);
343
# define getsockname rpl_getsockname
268
# elif @HAVE_WINSOCK2_H@
270
# define getsockname getsockname_used_without_requesting_gnulib_module_getsockname
271
# elif defined GNULIB_POSIXCHECK
273
# define getsockname(s,a,l) \
274
(GL_LINK_WARNING ("getsockname is not always POSIX compliant - " \
275
"use gnulib module getsockname for portability"), \
276
getsockname (s, a, l))
345
_GL_FUNCDECL_RPL (getsockname, int,
346
(int fd, struct sockaddr *addr, socklen_t *addrlen)
347
_GL_ARG_NONNULL ((2, 3)));
348
_GL_CXXALIAS_RPL (getsockname, int,
349
(int fd, struct sockaddr *addr, socklen_t *addrlen));
351
/* Need to cast, because on Solaris 10 systems, the third parameter is
353
_GL_CXXALIAS_SYS_CAST (getsockname, int,
354
(int fd, struct sockaddr *addr, socklen_t *addrlen));
356
_GL_CXXALIASWARN (getsockname);
357
#elif @HAVE_WINSOCK2_H@
359
# define getsockname getsockname_used_without_requesting_gnulib_module_getsockname
360
#elif defined GNULIB_POSIXCHECK
362
# if HAVE_RAW_DECL_GETSOCKNAME
363
_GL_WARN_ON_USE (getsockname, "getsockname is not always POSIX compliant - "
364
"use gnulib module getsockname for portability");
279
# if @GNULIB_GETSOCKOPT@
280
# if @HAVE_WINSOCK2_H@
368
#if @GNULIB_GETSOCKOPT@
369
# if @HAVE_WINSOCK2_H@
370
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
281
371
# undef getsockopt
282
# define getsockopt rpl_getsockopt
283
extern int rpl_getsockopt (int, int, int, void *, socklen_t *);
372
# define getsockopt rpl_getsockopt
285
# elif @HAVE_WINSOCK2_H@
287
# define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt
288
# elif defined GNULIB_POSIXCHECK
290
# define getsockopt(s,lvl,o,v,l) \
291
(GL_LINK_WARNING ("getsockopt is not always POSIX compliant - " \
292
"use gnulib module getsockopt for portability"), \
293
getsockopt (s, lvl, o, v, l))
374
_GL_FUNCDECL_RPL (getsockopt, int, (int fd, int level, int optname,
375
void *optval, socklen_t *optlen)
376
_GL_ARG_NONNULL ((4, 5)));
377
_GL_CXXALIAS_RPL (getsockopt, int, (int fd, int level, int optname,
378
void *optval, socklen_t *optlen));
380
/* Need to cast, because on Solaris 10 systems, the fifth parameter is
382
_GL_CXXALIAS_SYS_CAST (getsockopt, int, (int fd, int level, int optname,
383
void *optval, socklen_t *optlen));
385
_GL_CXXALIASWARN (getsockopt);
386
#elif @HAVE_WINSOCK2_H@
388
# define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt
389
#elif defined GNULIB_POSIXCHECK
391
# if HAVE_RAW_DECL_GETSOCKOPT
392
_GL_WARN_ON_USE (getsockopt, "getsockopt is not always POSIX compliant - "
393
"use gnulib module getsockopt for portability");
297
# if @HAVE_WINSOCK2_H@
398
# if @HAVE_WINSOCK2_H@
399
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
299
# define listen rpl_listen
300
extern int rpl_listen (int, int);
401
# define listen rpl_listen
302
# elif @HAVE_WINSOCK2_H@
304
# define listen listen_used_without_requesting_gnulib_module_listen
305
# elif defined GNULIB_POSIXCHECK
307
# define listen(s,b) \
308
(GL_LINK_WARNING ("listen is not always POSIX compliant - " \
309
"use gnulib module listen for portability"), \
403
_GL_FUNCDECL_RPL (listen, int, (int fd, int backlog));
404
_GL_CXXALIAS_RPL (listen, int, (int fd, int backlog));
406
_GL_CXXALIAS_SYS (listen, int, (int fd, int backlog));
408
_GL_CXXALIASWARN (listen);
409
#elif @HAVE_WINSOCK2_H@
411
# define listen listen_used_without_requesting_gnulib_module_listen
412
#elif defined GNULIB_POSIXCHECK
414
# if HAVE_RAW_DECL_LISTEN
415
_GL_WARN_ON_USE (listen, "listen is not always POSIX compliant - "
416
"use gnulib module listen for portability");
314
# if @HAVE_WINSOCK2_H@
421
# if @HAVE_WINSOCK2_H@
422
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
316
# define recv rpl_recv
317
extern int rpl_recv (int, void *, int, int);
424
# define recv rpl_recv
319
# elif @HAVE_WINSOCK2_H@
321
# define recv recv_used_without_requesting_gnulib_module_recv
322
# elif defined GNULIB_POSIXCHECK
324
# define recv(s,b,n,f) \
325
(GL_LINK_WARNING ("recv is not always POSIX compliant - " \
326
"use gnulib module recv for portability"), \
426
_GL_FUNCDECL_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags)
427
_GL_ARG_NONNULL ((2)));
428
_GL_CXXALIAS_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags));
430
_GL_CXXALIAS_SYS (recv, ssize_t, (int fd, void *buf, size_t len, int flags));
432
_GL_CXXALIASWARN (recv);
433
#elif @HAVE_WINSOCK2_H@
435
# define recv recv_used_without_requesting_gnulib_module_recv
436
#elif defined GNULIB_POSIXCHECK
438
# if HAVE_RAW_DECL_RECV
439
_GL_WARN_ON_USE (recv, "recv is not always POSIX compliant - "
440
"use gnulib module recv for portability");
331
# if @HAVE_WINSOCK2_H@
445
# if @HAVE_WINSOCK2_H@
446
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
333
# define send rpl_send
334
extern int rpl_send (int, const void *, int, int);
448
# define send rpl_send
336
# elif @HAVE_WINSOCK2_H@
338
# define send send_used_without_requesting_gnulib_module_send
339
# elif defined GNULIB_POSIXCHECK
341
# define send(s,b,n,f) \
342
(GL_LINK_WARNING ("send is not always POSIX compliant - " \
343
"use gnulib module send for portability"), \
450
_GL_FUNCDECL_RPL (send, ssize_t,
451
(int fd, const void *buf, size_t len, int flags)
452
_GL_ARG_NONNULL ((2)));
453
_GL_CXXALIAS_RPL (send, ssize_t,
454
(int fd, const void *buf, size_t len, int flags));
456
_GL_CXXALIAS_SYS (send, ssize_t,
457
(int fd, const void *buf, size_t len, int flags));
459
_GL_CXXALIASWARN (send);
460
#elif @HAVE_WINSOCK2_H@
462
# define send send_used_without_requesting_gnulib_module_send
463
#elif defined GNULIB_POSIXCHECK
465
# if HAVE_RAW_DECL_SEND
466
_GL_WARN_ON_USE (send, "send is not always POSIX compliant - "
467
"use gnulib module send for portability");
347
# if @GNULIB_RECVFROM@
348
# if @HAVE_WINSOCK2_H@
471
#if @GNULIB_RECVFROM@
472
# if @HAVE_WINSOCK2_H@
473
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
350
# define recvfrom rpl_recvfrom
351
extern int rpl_recvfrom (int, void *, int, int, struct sockaddr *, int *);
475
# define recvfrom rpl_recvfrom
353
# elif @HAVE_WINSOCK2_H@
355
# define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom
356
# elif defined GNULIB_POSIXCHECK
358
# define recvfrom(s,b,n,f,a,l) \
359
(GL_LINK_WARNING ("recvfrom is not always POSIX compliant - " \
360
"use gnulib module recvfrom for portability"), \
361
recvfrom (s, b, n, f, a, l))
477
_GL_FUNCDECL_RPL (recvfrom, ssize_t,
478
(int fd, void *buf, size_t len, int flags,
479
struct sockaddr *from, socklen_t *fromlen)
480
_GL_ARG_NONNULL ((2)));
481
_GL_CXXALIAS_RPL (recvfrom, ssize_t,
482
(int fd, void *buf, size_t len, int flags,
483
struct sockaddr *from, socklen_t *fromlen));
485
/* Need to cast, because on Solaris 10 systems, the sixth parameter is
487
_GL_CXXALIAS_SYS_CAST (recvfrom, ssize_t,
488
(int fd, void *buf, size_t len, int flags,
489
struct sockaddr *from, socklen_t *fromlen));
491
_GL_CXXALIASWARN (recvfrom);
492
#elif @HAVE_WINSOCK2_H@
494
# define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom
495
#elif defined GNULIB_POSIXCHECK
497
# if HAVE_RAW_DECL_RECVFROM
498
_GL_WARN_ON_USE (recvfrom, "recvfrom is not always POSIX compliant - "
499
"use gnulib module recvfrom for portability");
365
# if @HAVE_WINSOCK2_H@
504
# if @HAVE_WINSOCK2_H@
505
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
367
# define sendto rpl_sendto
368
extern int rpl_sendto (int, const void *, int, int, struct sockaddr *, int);
507
# define sendto rpl_sendto
370
# elif @HAVE_WINSOCK2_H@
372
# define sendto sendto_used_without_requesting_gnulib_module_sendto
373
# elif defined GNULIB_POSIXCHECK
375
# define sendto(s,b,n,f,a,l) \
376
(GL_LINK_WARNING ("sendto is not always POSIX compliant - " \
377
"use gnulib module sendto for portability"), \
378
sendto (s, b, n, f, a, l))
509
_GL_FUNCDECL_RPL (sendto, ssize_t,
510
(int fd, const void *buf, size_t len, int flags,
511
const struct sockaddr *to, socklen_t tolen)
512
_GL_ARG_NONNULL ((2)));
513
_GL_CXXALIAS_RPL (sendto, ssize_t,
514
(int fd, const void *buf, size_t len, int flags,
515
const struct sockaddr *to, socklen_t tolen));
517
_GL_CXXALIAS_SYS (sendto, ssize_t,
518
(int fd, const void *buf, size_t len, int flags,
519
const struct sockaddr *to, socklen_t tolen));
521
_GL_CXXALIASWARN (sendto);
522
#elif @HAVE_WINSOCK2_H@
524
# define sendto sendto_used_without_requesting_gnulib_module_sendto
525
#elif defined GNULIB_POSIXCHECK
527
# if HAVE_RAW_DECL_SENDTO
528
_GL_WARN_ON_USE (sendto, "sendto is not always POSIX compliant - "
529
"use gnulib module sendto for portability");
381
# if @GNULIB_SETSOCKOPT@
382
# if @HAVE_WINSOCK2_H@
533
#if @GNULIB_SETSOCKOPT@
534
# if @HAVE_WINSOCK2_H@
535
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
383
536
# undef setsockopt
384
# define setsockopt rpl_setsockopt
385
extern int rpl_setsockopt (int, int, int, const void *, socklen_t);
537
# define setsockopt rpl_setsockopt
387
# elif @HAVE_WINSOCK2_H@
389
# define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt
390
# elif defined GNULIB_POSIXCHECK
392
# define setsockopt(s,lvl,o,v,l) \
393
(GL_LINK_WARNING ("setsockopt is not always POSIX compliant - " \
394
"use gnulib module setsockopt for portability"), \
395
setsockopt (s, lvl, o, v, l))
539
_GL_FUNCDECL_RPL (setsockopt, int, (int fd, int level, int optname,
540
const void * optval, socklen_t optlen)
541
_GL_ARG_NONNULL ((4)));
542
_GL_CXXALIAS_RPL (setsockopt, int, (int fd, int level, int optname,
543
const void * optval, socklen_t optlen));
545
_GL_CXXALIAS_SYS (setsockopt, int, (int fd, int level, int optname,
546
const void * optval, socklen_t optlen));
548
_GL_CXXALIASWARN (setsockopt);
549
#elif @HAVE_WINSOCK2_H@
551
# define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt
552
#elif defined GNULIB_POSIXCHECK
554
# if HAVE_RAW_DECL_SETSOCKOPT
555
_GL_WARN_ON_USE (setsockopt, "setsockopt is not always POSIX compliant - "
556
"use gnulib module setsockopt for portability");
398
# if @GNULIB_SHUTDOWN@
399
# if @HAVE_WINSOCK2_H@
560
#if @GNULIB_SHUTDOWN@
561
# if @HAVE_WINSOCK2_H@
562
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
401
# define shutdown rpl_shutdown
402
extern int rpl_shutdown (int, int);
564
# define shutdown rpl_shutdown
404
# elif @HAVE_WINSOCK2_H@
406
# define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
407
# elif defined GNULIB_POSIXCHECK
409
# define shutdown(s,h) \
410
(GL_LINK_WARNING ("shutdown is not always POSIX compliant - " \
411
"use gnulib module shutdown for portability"), \
566
_GL_FUNCDECL_RPL (shutdown, int, (int fd, int how));
567
_GL_CXXALIAS_RPL (shutdown, int, (int fd, int how));
569
_GL_CXXALIAS_SYS (shutdown, int, (int fd, int how));
571
_GL_CXXALIASWARN (shutdown);
572
#elif @HAVE_WINSOCK2_H@
574
# define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
575
#elif defined GNULIB_POSIXCHECK
577
# if HAVE_RAW_DECL_SHUTDOWN
578
_GL_WARN_ON_USE (shutdown, "shutdown is not always POSIX compliant - "
579
"use gnulib module shutdown for portability");
415
# if @HAVE_WINSOCK2_H@
583
#if @HAVE_WINSOCK2_H@
584
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
417
# define select select_used_without_including_sys_select_h
424
#endif /* HAVE_SYS_SOCKET_H */
426
#endif /* _GL_SYS_SOCKET_H */
427
#endif /* _GL_SYS_SOCKET_H */
586
# define select select_used_without_including_sys_select_h
588
_GL_WARN_ON_USE (select,
589
"select() used without including <sys/select.h>");
594
/* Accept a connection on a socket, with specific opening flags.
595
The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>)
596
and O_TEXT, O_BINARY (defined in "binary-io.h").
597
See also the Linux man page at
598
<http://www.kernel.org/doc/man-pages/online/pages/man2/accept4.2.html>. */
600
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
601
# define accept4 rpl_accept4
603
_GL_FUNCDECL_RPL (accept4, int,
604
(int sockfd, struct sockaddr *addr, socklen_t *addrlen,
606
_GL_CXXALIAS_RPL (accept4, int,
607
(int sockfd, struct sockaddr *addr, socklen_t *addrlen,
610
_GL_FUNCDECL_SYS (accept4, int,
611
(int sockfd, struct sockaddr *addr, socklen_t *addrlen,
613
_GL_CXXALIAS_SYS (accept4, int,
614
(int sockfd, struct sockaddr *addr, socklen_t *addrlen,
617
_GL_CXXALIASWARN (accept4);
618
#elif defined GNULIB_POSIXCHECK
620
# if HAVE_RAW_DECL_ACCEPT4
621
_GL_WARN_ON_USE (accept4, "accept4 is unportable - "
622
"use gnulib module accept4 for portability");
626
#endif /* _GL_SYS_SOCKET_H */
627
#endif /* _GL_SYS_SOCKET_H */