Bug#233946: libc6-dev: <sys/un.h> does not define UNIX_PATH_MAX
GOTO Masanori <gotom@debian.or.jp> wrote:
Hi,
>> Reading unix(7), I understand that <sys/un.h> should define UNIX_PATH_MAX,
>> and in fact it does not.
>>
>> Is this intentional ?
>
> I don't know this is intentional or not, but there is no rule that we
> need to define UNIX_PATH_MAX. In addition POSIX does not define its
> path size (typically it's between 92 and 108, and linux is 108). If
> you want to look UNIX_PATH_MAX like unix(7), see
> /usr/include/linux/un.h .
I haven't looked at other unices, but if the define is mentionned in
the manpage, I guess it's for a reason. Portability comes to mind :)
> I would like to close, OK?
Either one of libc or the manpage needs to be fixed, I'll let you
decide which one needs fixing.
JB.
--
Julien BLACHE <jblache@debian.org> | Debian, because code matters more
Debian & GNU/Linux Developer | <http://www.debian.org>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
Reply to: