Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106180165
D24272.id70554.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
728 B
Referenced Files
None
Subscribers
None
D24272.id70554.diff
View Options
Index: head/sys/sys/un.h
===================================================================
--- head/sys/sys/un.h
+++ head/sys/sys/un.h
@@ -44,12 +44,20 @@
#endif
/*
+ * Historically, (struct sockaddr) needed to fit inside an mbuf.
+ * For this reason, UNIX domain sockets were therefore limited to
+ * 104 bytes. While this limit is no longer necessary, it is kept for
+ * binary compatibility reasons.
+ */
+#define SUNPATHLEN 104
+
+/*
* Definitions for UNIX IPC domain.
*/
struct sockaddr_un {
unsigned char sun_len; /* sockaddr len including null */
sa_family_t sun_family; /* AF_UNIX */
- char sun_path[104]; /* path name (gag) */
+ char sun_path[SUNPATHLEN]; /* path name (gag) */
};
#if __BSD_VISIBLE
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 5:23 PM (3 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15530615
Default Alt Text
D24272.id70554.diff (728 B)
Attached To
Mode
D24272: Print more detail as part of the sonewconn() overflow message
Attached
Detach File
Event Timeline
Log In to Comment