bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sys_socket tests: Improve checks for socklen_t and sa_family_t.


From: Collin Funk
Subject: sys_socket tests: Improve checks for socklen_t and sa_family_t.
Date: Tue, 23 Jul 2024 19:09:45 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Another longstanding part of the sys/socket.h specification:

    * The <sys/socket.h> header shall define the socklen_t type, which
      is an integer type of width of at least 32 bits; see APPLICATION
      USAGE.
    * The <sys/socket.h> header shall define the sa_family_t unsigned
      integer type.

On mingw I see 'typedef int socklen_t' in ws2tcpip.h. But sa_family_t is
undefined so Gnulib uses 'unsigned short' which is conforming.

I've committed a test for this to catch any other platforms. If Windows
satisfies it then hopefully nowhere else should be a problem.

Collin

Attachment: 0001-sys_socket-tests-Improve-checks-for-socklen_t-and-sa.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]