This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The lack of UNIX_PATH_MAX on sys/un.h


On 12/07/2017 10:33 PM, omri wrote:

The change to use sys/un.h is fairly trivial but I was using the UNIX_PATH_MAX
definition.

Is there any reason this isn't defined in glibc? are there any reservations from adding it?

I don't think it is in any standard.

UNIX_PATH_MAX is also a misnomer, it's just the size of the defined array in struct sockaddr_un. The actual kernel limit is somewhere around PATH_MAX.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]