diff options
author | Jeff Bailey <jeffbailey@google.com> | 2023-02-23 06:44:46 +0000 |
---|---|---|
committer | Jeff Bailey <jeffbailey@google.com> | 2023-02-23 07:11:20 +0000 |
commit | 8aec3b126b5484780330378133cf9de811e227cc (patch) | |
tree | acf7b91526557ca44f1656a8129c3a60d64b1fe5 /libc/spec | |
parent | 6ed67ccba7e4699e9e42302f2f9b7653444258ba (diff) | |
download | llvm-8aec3b126b5484780330378133cf9de811e227cc.tar.gz |
[libc] Introduce sys/socket.h
This adds sys/socket.h and some definitions on Linux.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D144415
Diffstat (limited to 'libc/spec')
-rw-r--r-- | libc/spec/linux.td | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libc/spec/linux.td b/libc/spec/linux.td index 7c4740ac7dbe..5418c0bebf2b 100644 --- a/libc/spec/linux.td +++ b/libc/spec/linux.td @@ -94,6 +94,19 @@ def Linux : StandardSpec<"Linux"> { ] >; + HeaderSpec SysSocket = HeaderSpec< + "sys/socket.h", + [ + Macro<"AF_UNSPEC">, + Macro<"AF_LOCAL">, + Macro<"AF_INET">, + Macro<"AF_INET6">, + ], + [], // Types + [], // Enumerations + [] // Functions + >; + HeaderSpec SysTime = HeaderSpec< "sys/time.h", [ @@ -155,6 +168,7 @@ def Linux : StandardSpec<"Linux"> { SysMMan, SysPrctl, SysRandom, + SysSocket, SysTime, Signal, ]; |