1 //===-- Definition of macros from sys/socket.h ----------------------------===// 2 // 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 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H 10 #define LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H 11 12 // IEEE Std 1003.1-2017 - basedefs/sys_socket.h.html 13 // Macro values come from the Linux syscall interface. 14 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 20 21 #define SOCK_STREAM 1 22 #define SOCK_DGRAM 2 23 #define SOCK_RAW 3 24 #define SOCK_RDM 4 25 #define SOCK_SEQPACKET 5 26 #define SOCK_PACKET 10 27 28 #endif // LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H 29