[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libc / include / llvm-libc-macros / linux / sys-socket-macros.h
blob7de410225b7126dc971ab96bd773fd3a69d8295d
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 //===----------------------------------------------------------------------===//
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
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
28 #endif // __LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H