diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-03-26 12:53:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 12:53:53 +0100 |
| commit | 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch) | |
| tree | 3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/sys_socket.in.h | |
| parent | 9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff) | |
| download | monitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz | |
* Sync with the 202601-stable Gnulib code (4a3650d887)
* Ignore more deps stuff in gnulib
* Remove autogenerated gnulib files
* Ignore more gnulib generated headers
Diffstat (limited to 'gl/sys_socket.in.h')
| -rw-r--r-- | gl/sys_socket.in.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/gl/sys_socket.in.h b/gl/sys_socket.in.h index 8632c66d..c19b7461 100644 --- a/gl/sys_socket.in.h +++ b/gl/sys_socket.in.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Provide a sys/socket header file for systems lacking it (read: MinGW) | 1 | /* Provide a sys/socket header file for systems lacking it (read: MinGW) |
| 2 | and for systems where it is incomplete. | 2 | and for systems where it is incomplete. |
| 3 | Copyright (C) 2005-2025 Free Software Foundation, Inc. | 3 | Copyright (C) 2005-2026 Free Software Foundation, Inc. |
| 4 | Written by Simon Josefsson. | 4 | Written by Simon Josefsson. |
| 5 | 5 | ||
| 6 | This file is free software: you can redistribute it and/or modify | 6 | This file is free software: you can redistribute it and/or modify |
| @@ -235,11 +235,10 @@ struct msghdr { | |||
| 235 | _GL_SYS_SOCKET_INLINE int | 235 | _GL_SYS_SOCKET_INLINE int |
| 236 | rpl_fd_isset (SOCKET fd, fd_set * set) | 236 | rpl_fd_isset (SOCKET fd, fd_set * set) |
| 237 | { | 237 | { |
| 238 | u_int i; | ||
| 239 | if (set == NULL) | 238 | if (set == NULL) |
| 240 | return 0; | 239 | return 0; |
| 241 | 240 | ||
| 242 | for (i = 0; i < set->fd_count; i++) | 241 | for (u_int i = 0; i < set->fd_count; i++) |
| 243 | if (set->fd_array[i] == fd) | 242 | if (set->fd_array[i] == fd) |
| 244 | return 1; | 243 | return 1; |
| 245 | 244 | ||
| @@ -304,7 +303,6 @@ _GL_CXXALIASWARN (socket); | |||
| 304 | # define socket socket_used_without_requesting_gnulib_module_socket | 303 | # define socket socket_used_without_requesting_gnulib_module_socket |
| 305 | # endif | 304 | # endif |
| 306 | #elif defined GNULIB_POSIXCHECK | 305 | #elif defined GNULIB_POSIXCHECK |
| 307 | # undef socket | ||
| 308 | # if HAVE_RAW_DECL_SOCKET | 306 | # if HAVE_RAW_DECL_SOCKET |
| 309 | _GL_WARN_ON_USE (socket, "socket is not always POSIX compliant - " | 307 | _GL_WARN_ON_USE (socket, "socket is not always POSIX compliant - " |
| 310 | "use gnulib module socket for portability"); | 308 | "use gnulib module socket for portability"); |
| @@ -336,7 +334,6 @@ _GL_CXXALIASWARN (connect); | |||
| 336 | # define connect connect_used_without_requesting_gnulib_module_connect | 334 | # define connect connect_used_without_requesting_gnulib_module_connect |
| 337 | # endif | 335 | # endif |
| 338 | #elif defined GNULIB_POSIXCHECK | 336 | #elif defined GNULIB_POSIXCHECK |
| 339 | # undef connect | ||
| 340 | # if HAVE_RAW_DECL_CONNECT | 337 | # if HAVE_RAW_DECL_CONNECT |
| 341 | _GL_WARN_ON_USE (connect, "connect is not always POSIX compliant - " | 338 | _GL_WARN_ON_USE (connect, "connect is not always POSIX compliant - " |
| 342 | "use gnulib module connect for portability"); | 339 | "use gnulib module connect for portability"); |
| @@ -374,7 +371,6 @@ _GL_CXXALIASWARN (accept); | |||
| 374 | # define accept accept_used_without_requesting_gnulib_module_accept | 371 | # define accept accept_used_without_requesting_gnulib_module_accept |
| 375 | # endif | 372 | # endif |
| 376 | #elif defined GNULIB_POSIXCHECK | 373 | #elif defined GNULIB_POSIXCHECK |
| 377 | # undef accept | ||
| 378 | # if HAVE_RAW_DECL_ACCEPT | 374 | # if HAVE_RAW_DECL_ACCEPT |
| 379 | _GL_WARN_ON_USE (accept, "accept is not always POSIX compliant - " | 375 | _GL_WARN_ON_USE (accept, "accept is not always POSIX compliant - " |
| 380 | "use gnulib module accept for portability"); | 376 | "use gnulib module accept for portability"); |
| @@ -406,7 +402,6 @@ _GL_CXXALIASWARN (bind); | |||
| 406 | # define bind bind_used_without_requesting_gnulib_module_bind | 402 | # define bind bind_used_without_requesting_gnulib_module_bind |
| 407 | # endif | 403 | # endif |
| 408 | #elif defined GNULIB_POSIXCHECK | 404 | #elif defined GNULIB_POSIXCHECK |
| 409 | # undef bind | ||
| 410 | # if HAVE_RAW_DECL_BIND | 405 | # if HAVE_RAW_DECL_BIND |
| 411 | _GL_WARN_ON_USE (bind, "bind is not always POSIX compliant - " | 406 | _GL_WARN_ON_USE (bind, "bind is not always POSIX compliant - " |
| 412 | "use gnulib module bind for portability"); | 407 | "use gnulib module bind for portability"); |
| @@ -442,7 +437,6 @@ _GL_CXXALIASWARN (getpeername); | |||
| 442 | # define getpeername getpeername_used_without_requesting_gnulib_module_getpeername | 437 | # define getpeername getpeername_used_without_requesting_gnulib_module_getpeername |
| 443 | # endif | 438 | # endif |
| 444 | #elif defined GNULIB_POSIXCHECK | 439 | #elif defined GNULIB_POSIXCHECK |
| 445 | # undef getpeername | ||
| 446 | # if HAVE_RAW_DECL_GETPEERNAME | 440 | # if HAVE_RAW_DECL_GETPEERNAME |
| 447 | _GL_WARN_ON_USE (getpeername, "getpeername is not always POSIX compliant - " | 441 | _GL_WARN_ON_USE (getpeername, "getpeername is not always POSIX compliant - " |
| 448 | "use gnulib module getpeername for portability"); | 442 | "use gnulib module getpeername for portability"); |
| @@ -478,7 +472,6 @@ _GL_CXXALIASWARN (getsockname); | |||
| 478 | # define getsockname getsockname_used_without_requesting_gnulib_module_getsockname | 472 | # define getsockname getsockname_used_without_requesting_gnulib_module_getsockname |
| 479 | # endif | 473 | # endif |
| 480 | #elif defined GNULIB_POSIXCHECK | 474 | #elif defined GNULIB_POSIXCHECK |
| 481 | # undef getsockname | ||
| 482 | # if HAVE_RAW_DECL_GETSOCKNAME | 475 | # if HAVE_RAW_DECL_GETSOCKNAME |
| 483 | _GL_WARN_ON_USE (getsockname, "getsockname is not always POSIX compliant - " | 476 | _GL_WARN_ON_USE (getsockname, "getsockname is not always POSIX compliant - " |
| 484 | "use gnulib module getsockname for portability"); | 477 | "use gnulib module getsockname for portability"); |
| @@ -512,7 +505,6 @@ _GL_CXXALIASWARN (getsockopt); | |||
| 512 | # define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt | 505 | # define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt |
| 513 | # endif | 506 | # endif |
| 514 | #elif defined GNULIB_POSIXCHECK | 507 | #elif defined GNULIB_POSIXCHECK |
| 515 | # undef getsockopt | ||
| 516 | # if HAVE_RAW_DECL_GETSOCKOPT | 508 | # if HAVE_RAW_DECL_GETSOCKOPT |
| 517 | _GL_WARN_ON_USE (getsockopt, "getsockopt is not always POSIX compliant - " | 509 | _GL_WARN_ON_USE (getsockopt, "getsockopt is not always POSIX compliant - " |
| 518 | "use gnulib module getsockopt for portability"); | 510 | "use gnulib module getsockopt for portability"); |
| @@ -537,7 +529,6 @@ _GL_CXXALIASWARN (listen); | |||
| 537 | # define listen listen_used_without_requesting_gnulib_module_listen | 529 | # define listen listen_used_without_requesting_gnulib_module_listen |
| 538 | # endif | 530 | # endif |
| 539 | #elif defined GNULIB_POSIXCHECK | 531 | #elif defined GNULIB_POSIXCHECK |
| 540 | # undef listen | ||
| 541 | # if HAVE_RAW_DECL_LISTEN | 532 | # if HAVE_RAW_DECL_LISTEN |
| 542 | _GL_WARN_ON_USE (listen, "listen is not always POSIX compliant - " | 533 | _GL_WARN_ON_USE (listen, "listen is not always POSIX compliant - " |
| 543 | "use gnulib module listen for portability"); | 534 | "use gnulib module listen for portability"); |
| @@ -566,7 +557,6 @@ _GL_CXXALIASWARN (recv); | |||
| 566 | # define recv recv_used_without_requesting_gnulib_module_recv | 557 | # define recv recv_used_without_requesting_gnulib_module_recv |
| 567 | # endif | 558 | # endif |
| 568 | #elif defined GNULIB_POSIXCHECK | 559 | #elif defined GNULIB_POSIXCHECK |
| 569 | # undef recv | ||
| 570 | # if HAVE_RAW_DECL_RECV | 560 | # if HAVE_RAW_DECL_RECV |
| 571 | _GL_WARN_ON_USE (recv, "recv is not always POSIX compliant - " | 561 | _GL_WARN_ON_USE (recv, "recv is not always POSIX compliant - " |
| 572 | "use gnulib module recv for portability"); | 562 | "use gnulib module recv for portability"); |
| @@ -598,7 +588,6 @@ _GL_CXXALIASWARN (send); | |||
| 598 | # define send send_used_without_requesting_gnulib_module_send | 588 | # define send send_used_without_requesting_gnulib_module_send |
| 599 | # endif | 589 | # endif |
| 600 | #elif defined GNULIB_POSIXCHECK | 590 | #elif defined GNULIB_POSIXCHECK |
| 601 | # undef send | ||
| 602 | # if HAVE_RAW_DECL_SEND | 591 | # if HAVE_RAW_DECL_SEND |
| 603 | _GL_WARN_ON_USE (send, "send is not always POSIX compliant - " | 592 | _GL_WARN_ON_USE (send, "send is not always POSIX compliant - " |
| 604 | "use gnulib module send for portability"); | 593 | "use gnulib module send for portability"); |
| @@ -637,7 +626,6 @@ _GL_CXXALIASWARN (recvfrom); | |||
| 637 | # define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom | 626 | # define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom |
| 638 | # endif | 627 | # endif |
| 639 | #elif defined GNULIB_POSIXCHECK | 628 | #elif defined GNULIB_POSIXCHECK |
| 640 | # undef recvfrom | ||
| 641 | # if HAVE_RAW_DECL_RECVFROM | 629 | # if HAVE_RAW_DECL_RECVFROM |
| 642 | _GL_WARN_ON_USE (recvfrom, "recvfrom is not always POSIX compliant - " | 630 | _GL_WARN_ON_USE (recvfrom, "recvfrom is not always POSIX compliant - " |
| 643 | "use gnulib module recvfrom for portability"); | 631 | "use gnulib module recvfrom for portability"); |
| @@ -671,7 +659,6 @@ _GL_CXXALIASWARN (sendto); | |||
| 671 | # define sendto sendto_used_without_requesting_gnulib_module_sendto | 659 | # define sendto sendto_used_without_requesting_gnulib_module_sendto |
| 672 | # endif | 660 | # endif |
| 673 | #elif defined GNULIB_POSIXCHECK | 661 | #elif defined GNULIB_POSIXCHECK |
| 674 | # undef sendto | ||
| 675 | # if HAVE_RAW_DECL_SENDTO | 662 | # if HAVE_RAW_DECL_SENDTO |
| 676 | _GL_WARN_ON_USE (sendto, "sendto is not always POSIX compliant - " | 663 | _GL_WARN_ON_USE (sendto, "sendto is not always POSIX compliant - " |
| 677 | "use gnulib module sendto for portability"); | 664 | "use gnulib module sendto for portability"); |
| @@ -703,7 +690,6 @@ _GL_CXXALIASWARN (setsockopt); | |||
| 703 | # define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt | 690 | # define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt |
| 704 | # endif | 691 | # endif |
| 705 | #elif defined GNULIB_POSIXCHECK | 692 | #elif defined GNULIB_POSIXCHECK |
| 706 | # undef setsockopt | ||
| 707 | # if HAVE_RAW_DECL_SETSOCKOPT | 693 | # if HAVE_RAW_DECL_SETSOCKOPT |
| 708 | _GL_WARN_ON_USE (setsockopt, "setsockopt is not always POSIX compliant - " | 694 | _GL_WARN_ON_USE (setsockopt, "setsockopt is not always POSIX compliant - " |
| 709 | "use gnulib module setsockopt for portability"); | 695 | "use gnulib module setsockopt for portability"); |
| @@ -728,7 +714,6 @@ _GL_CXXALIASWARN (shutdown); | |||
| 728 | # define shutdown shutdown_used_without_requesting_gnulib_module_shutdown | 714 | # define shutdown shutdown_used_without_requesting_gnulib_module_shutdown |
| 729 | # endif | 715 | # endif |
| 730 | #elif defined GNULIB_POSIXCHECK | 716 | #elif defined GNULIB_POSIXCHECK |
| 731 | # undef shutdown | ||
| 732 | # if HAVE_RAW_DECL_SHUTDOWN | 717 | # if HAVE_RAW_DECL_SHUTDOWN |
| 733 | _GL_WARN_ON_USE (shutdown, "shutdown is not always POSIX compliant - " | 718 | _GL_WARN_ON_USE (shutdown, "shutdown is not always POSIX compliant - " |
| 734 | "use gnulib module shutdown for portability"); | 719 | "use gnulib module shutdown for portability"); |
| @@ -761,7 +746,6 @@ _GL_CXXALIAS_SYS (accept4, int, | |||
| 761 | # endif | 746 | # endif |
| 762 | _GL_CXXALIASWARN (accept4); | 747 | _GL_CXXALIASWARN (accept4); |
| 763 | #elif defined GNULIB_POSIXCHECK | 748 | #elif defined GNULIB_POSIXCHECK |
| 764 | # undef accept4 | ||
| 765 | # if HAVE_RAW_DECL_ACCEPT4 | 749 | # if HAVE_RAW_DECL_ACCEPT4 |
| 766 | _GL_WARN_ON_USE (accept4, "accept4 is unportable - " | 750 | _GL_WARN_ON_USE (accept4, "accept4 is unportable - " |
| 767 | "use gnulib module accept4 for portability"); | 751 | "use gnulib module accept4 for portability"); |
