Re: sys_un-h: Ensure that defines sa_family_t

2025-01-11 Thread Bruno Haible via Gnulib discussion list
Oops, I see this configuration warning: checking whether defines the SHUT_* macros... yes ./configure: line 10600: test: =: unary operator expected checking for struct sockaddr_storage... yes This patch fixes it. 2025-01-11 Bruno Haible sys_socket-h: Fix configuration mistake (regr

sys_un-h: Ensure that defines sa_family_t

2025-01-10 Thread Bruno Haible via Gnulib discussion list
POSIX:2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_un.h.html> specifies that should define the sa_family_t type. This patch ensures it. 2025-01-10 Bruno Haible sys_un-h: Ensure that defines sa_family_t. * lib/sys_un.in.h: Include or

sys_socket tests: Improve checks for socklen_t and sa_family_t.

2024-07-23 Thread Collin Funk
Another longstanding part of the sys/socket.h specification: * The header shall define the socklen_t type, which is an integer type of width of at least 32 bits; see APPLICATION USAGE. * The header shall define the sa_family_t unsigned integer type. On mingw I see

[PATCH 1/4] sys_socket: typedef sa_family_t correctly on OS/2 kLIBC

2016-12-01 Thread KO Myung-Hun
On OS/2 kLIBC, sa_family_t is unsigned char unless TCPV40HDRS is defined. * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on OS/2 kLIBC unless TCPV40HDRS is defined. --- lib/sys_socket.in.h | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/sys_socket.in.h b/lib

[PATCH] sys_socket: typedef sa_family_t correctly on OS/2 kLIBC

2016-11-13 Thread KO Myung-Hun
On OS/2 kLIBC, sa_family_t is unsigned char unless TCPV40HDRS is defined. * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on OS/2 kLIBC unless TCPV40HDRS is defined. --- lib/sys_socket.in.h | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/sys_socket.in.h b/lib

Re: sa_family_t

2009-05-20 Thread Bruno Haible
Simon Josefsson wrote: > Mingw and IRIX does not seem to have sa_family_t. IRIX 6.5 has it. But other systems, like Haiku, also lack sa_family_t. Bruno

sa_family_t

2009-05-19 Thread Simon Josefsson
Mingw and IRIX does not seem to have sa_family_t. Does anyone know of a system where 'unsigned short' is not the appropriate type for sa_family_t? It has to be the same type as the sin_family field in struct sockaddr_in, or the sa_family field in struct sockaddr. Those structs typica