1 //===-- Definition of macros from sys/socket.h ----------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H
10 #define LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H
12 // IEEE Std 1003.1-2017 - basedefs/sys_socket.h.html
13 // Macro values come from the Linux syscall interface.
15 #define AF_UNSPEC 0 // Unspecified
16 #define AF_UNIX 1 // Unix domain sockets
17 #define AF_LOCAL 1 // POSIX name for AF_UNIX
18 #define AF_INET 2 // Internet IPv4 Protocol
19 #define AF_INET6 10 // IP version 6
25 #define SOCK_SEQPACKET 5
26 #define SOCK_PACKET 10
28 #endif // LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H