29 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H10#define LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H11 12// IEEE Std 1003.1-2017 - basedefs/sys_socket.h.html13// Macro values come from the Linux syscall interface.14 15#define AF_UNSPEC 0 // Unspecified16#define AF_UNIX 1 // Unix domain sockets17#define AF_LOCAL 1 // POSIX name for AF_UNIX18#define AF_INET 2 // Internet IPv4 Protocol19#define AF_INET6 10 // IP version 620 21#define SOCK_STREAM 122#define SOCK_DGRAM 223#define SOCK_RAW 324#define SOCK_RDM 425#define SOCK_SEQPACKET 526#define SOCK_PACKET 1027 28#endif // LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H29