xref: /linux-6.15/include/uapi/linux/un.h (revision 6f52b16c)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2607ca46eSDavid Howells #ifndef _LINUX_UN_H
3607ca46eSDavid Howells #define _LINUX_UN_H
4607ca46eSDavid Howells 
5607ca46eSDavid Howells #include <linux/socket.h>
6607ca46eSDavid Howells 
7607ca46eSDavid Howells #define UNIX_PATH_MAX	108
8607ca46eSDavid Howells 
9607ca46eSDavid Howells struct sockaddr_un {
10607ca46eSDavid Howells 	__kernel_sa_family_t sun_family; /* AF_UNIX */
11607ca46eSDavid Howells 	char sun_path[UNIX_PATH_MAX];	/* pathname */
12607ca46eSDavid Howells };
13607ca46eSDavid Howells 
14ba94f308SAndrey Vagin #define SIOCUNIXFILE (SIOCPROTOPRIVATE + 0) /* open a socket file with O_PATH */
15ba94f308SAndrey Vagin 
16607ca46eSDavid Howells #endif /* _LINUX_UN_H */
17