Skip to contentSkip to conversation

Bug about UNIX_PATH_MAX in the manpage of Unix(7)

DISCUSSION Christophe Lohr 2 participants 2 messages Nov 3, 2010 – May 6, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

File: /usr/share/man/man7/unix.7.gz
Version: 3.25-1
System: debian testing

Hi,
Manpage of Unix(7) says:

---------------------------------

|    SYNOPSIS
|           #include <sys/socket.h>
|           #include <sys/un.h>
(../..)
|    DESCRIPTION
(../..)
|
|       Address Format
|           A Unix domain socket address is represented in the following structure:
|
|               #define UNIX_PATH_MAX    108
|
|               struct sockaddr_un {
|                   sa_family_t sun_family;               /* AF_UNIX */
|                   char        sun_path[UNIX_PATH_MAX];  /* pathname */
|               };

---------------------------------

However, UNIX_PATH_MAX is not defined in the mentioned include <sys/un.h>. In fact, these definitions come from <linux/un.h>.

There is a confusion between the two includes (sys/un.h and linux/un.h).

Maybe they should be merged, but today it is not the case... :-(

Regards,
Christophe

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to a message not in the archive

Christophe,

Quoted 29 lines · Christophe Lohr

File: /usr/share/man/man7/unix.7.gz
Version: 3.25-1
System: debian testing

Hi,
Manpage of Unix(7) says:

---------------------------------

|    SYNOPSIS
|           #include <sys/socket.h>
|           #include <sys/un.h>
(../..)
|    DESCRIPTION
(../..)
|
|       Address Format
|           A Unix domain socket address is represented in the following 
structure:
|
|               #define UNIX_PATH_MAX    108
|
|               struct sockaddr_un {
|                   sa_family_t sun_family;               /* AF_UNIX */
|                   char        sun_path[UNIX_PATH_MAX];  /* pathname */
|               };

---------------------------------

Quoted 6 lines

However, UNIX_PATH_MAX is not defined in the mentioned include <sys/un.h>. In fact, these definitions come from <linux/un.h>.

There is a confusion between the two includes (sys/un.h and linux/un.h).

Maybe they should be merged, but today it is not the case... :-(

Long after the fact... I've removed mention of UNIX_PATH_MAX from the page.

Thanks,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html