[LICM] allow MemoryAccess creation failure (#116813)
[llvm-project.git] / libc / include / llvm-libc-macros / linux / sys-socket-macros.h
blobf335200a103bb0d962c9b6cbe1c1b7a11c89b057
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