un.h 384 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _LINUX_UN_H
  3. #define _LINUX_UN_H
  4. #include <linux/socket.h>
  5. #define UNIX_PATH_MAX 108
  6. struct sockaddr_un {
  7. __kernel_sa_family_t sun_family; /* AF_UNIX */
  8. char sun_path[UNIX_PATH_MAX]; /* pathname */
  9. };
  10. #define SIOCUNIXFILE (SIOCPROTOPRIVATE + 0) /* open a socket file with O_PATH */
  11. #endif /* _LINUX_UN_H */