[Top][All Lists]

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

Re: socklen_t data type

From: Eli Zaretskii
Subject: Re: socklen_t data type
Date: Tue, 30 Jun 2020 05:29:52 +0300

> From: Bruno Haible <bruno@clisp.org>
> Cc: Eli Zaretskii <eliz@gnu.org>, Keith Marshall 
> <keith.d.marshall@ntlworld.com>, Rahul Das <bokul_4u@yahoo.com>
> Date: Tue, 30 Jun 2020 03:07:39 +0200
> >   <sys/socket.h> makes available a type, socklen_t, which is an
> >   unsigned opaque integral type of length of at least 32 bits.
> The page you cite is part of SUSv2. It has been superseded by POSIX,
> first by the 2004 edition:
>   https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html
> and then by the current edition:
>   https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html
> Please update your bookmarks.

Right, the "unsigned" part disappeared in the later versions.

> So, gnulib should define socklen_t if and only if the system's header don't.
> The code which does this is in m4/socklen.m4. I'm therefore applying the patch
> below.


reply via email to

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