Path: blob/main/contrib/llvm-project/libc/include/llvm-libc-macros/linux/sys-socket-macros.h
213799 views
//===-- Definition of macros from sys/socket.h ----------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H9#define LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H1011// IEEE Std 1003.1-2017 - basedefs/sys_socket.h.html12// Macro values come from the Linux syscall interface.1314#define AF_UNSPEC 0 // Unspecified15#define AF_UNIX 1 // Unix domain sockets16#define AF_LOCAL 1 // POSIX name for AF_UNIX17#define AF_INET 2 // Internet IPv4 Protocol18#define AF_INET6 10 // IP version 61920#define SOCK_STREAM 121#define SOCK_DGRAM 222#define SOCK_RAW 323#define SOCK_RDM 424#define SOCK_SEQPACKET 525#define SOCK_PACKET 102627#endif // LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H282930