diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2022-10-24 22:18:58 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2022-10-25 00:24:49 +0000 |
commit | 6faf40bb75cfc97bf3f5168672bf71e906496a46 (patch) | |
tree | 67ca56ebe481ea57972f8a18e13ca96c22624fa9 /libc/include | |
parent | 67ad31c88e8b77798f347aff9385f9973ea05798 (diff) | |
download | llvm-6faf40bb75cfc97bf3f5168672bf71e906496a46.tar.gz |
[libc] Add the header sys/types.h.
Reviewed By: michaelrj
Differential Revision: https://reviews.llvm.org/D136642
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/CMakeLists.txt | 29 | ||||
-rw-r--r-- | libc/include/sys/types.h.def | 16 |
2 files changed, 45 insertions, 0 deletions
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt index cd00565aa13c..135e659a7468 100644 --- a/libc/include/CMakeLists.txt +++ b/libc/include/CMakeLists.txt @@ -348,6 +348,35 @@ add_gen_header( ) add_gen_header( + sys_types + DEF_FILE sys/types.h.def + GEN_HDR sys/types.h + DEPENDS + .llvm_libc_common_h + .llvm-libc-types.blkcnt_t + .llvm-libc-types.blksize_t + .llvm-libc-types.clockid_t + .llvm-libc-types.dev_t + .llvm-libc-types.gid_t + .llvm-libc-types.ino_t + .llvm-libc-types.mode_t + .llvm-libc-types.nlink_t + .llvm-libc-types.off_t + .llvm-libc-types.pid_t + .llvm-libc-types.pthread_attr_t + .llvm-libc-types.pthread_key_t + .llvm-libc-types.pthread_mutex_t + .llvm-libc-types.pthread_mutexattr_t + .llvm-libc-types.pthread_once_t + .llvm-libc-types.pthread_t + .llvm-libc-types.size_t + .llvm-libc-types.ssize_t + .llvm-libc-types.suseconds_t + .llvm-libc-types.time_t + .llvm-libc-types.uid_t +) + +add_gen_header( sys_utsname DEF_FILE sys/utsname.h.def GEN_HDR sys/utsname.h diff --git a/libc/include/sys/types.h.def b/libc/include/sys/types.h.def new file mode 100644 index 000000000000..689482973fc7 --- /dev/null +++ b/libc/include/sys/types.h.def @@ -0,0 +1,16 @@ +//===-- Header for sys/types.h --------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SYS_TYPES_H +#define LLVM_LIBC_SYS_TYPES_H + +#include <__llvm-libc-common.h> + +%%public_api() + +#endif // LLVM_LIBC_SYS_TYPES_H |