diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-10 19:25:56 +0900 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-10 19:25:56 +0900 |
| commit | 63f5dc16d6bfca0512fb034052b41d13c3751e20 (patch) | |
| tree | e70266be1fda941e0974e71e3d2c1cf080081311 /libc/include | |
| parent | 9e5734688ed3d5f6b3fb76a26b3d90a736d60781 (diff) | |
| parent | 397ac44f623f891d8f05d6673a95984ac0a26671 (diff) | |
Merge branch 'main' into users/chapuni/cov/single/unifyusers/chapuni/cov/single/unify
Diffstat (limited to 'libc/include')
57 files changed, 82 insertions, 76 deletions
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt index eb407183c99f..568bb05d9230 100644 --- a/libc/include/CMakeLists.txt +++ b/libc/include/CMakeLists.txt @@ -19,11 +19,10 @@ add_header( # TODO: Can we simplify this macro expansion? # https://github.com/llvm/llvm-project/issues/117254 -macro(add_header_macro TARGET_NAME YAML_FILE DEF_FILE GEN_HDR DEPENDS) +macro(add_header_macro TARGET_NAME YAML_FILE GEN_HDR DEPENDS) add_gen_header( ${TARGET_NAME} YAML_FILE ${YAML_FILE} - DEF_FILE ${DEF_FILE} GEN_HDR ${GEN_HDR} ${DEPENDS} ${ARGN} @@ -33,7 +32,6 @@ endmacro() add_header_macro( ctype ../libc/include/ctype.yaml - ctype.h.def ctype.h DEPENDS .llvm_libc_common_h @@ -43,7 +41,6 @@ add_header_macro( add_header_macro( dirent ../libc/include/dirent.yaml - dirent.h.def dirent.h DEPENDS .llvm_libc_common_h @@ -55,7 +52,6 @@ add_header_macro( add_header_macro( fcntl ../libc/include/fcntl.yaml - fcntl.h.def fcntl.h DEPENDS .llvm-libc-macros.fcntl_macros @@ -71,7 +67,6 @@ add_header_macro( add_header_macro( dlfcn ../libc/include/dlfcn.yaml - dlfcn.h.def dlfcn.h DEPENDS .llvm-libc-macros.dlfcn_macros @@ -81,7 +76,6 @@ add_header_macro( add_header_macro( features ../libc/include/features.yaml - features.h.def features.h DEPENDS .llvm_libc_common_h @@ -91,7 +85,6 @@ add_header_macro( add_header_macro( fenv ../libc/include/fenv.yaml - fenv.h.def fenv.h DEPENDS .llvm_libc_common_h @@ -103,7 +96,6 @@ add_header_macro( add_header_macro( inttypes ../libc/include/inttypes.yaml - inttypes.h.def inttypes.h DEPENDS .llvm_libc_common_h @@ -114,7 +106,6 @@ add_header_macro( add_header_macro( float ../libc/include/float.yaml - float.h.def float.h DEPENDS .llvm-libc-macros.float_macros @@ -123,7 +114,6 @@ add_header_macro( add_header_macro( stdint ../libc/include/stdint.yaml - stdint.h.def stdint.h DEPENDS .llvm-libc-macros.stdint_macros @@ -132,7 +122,6 @@ add_header_macro( add_header_macro( limits ../libc/include/limits.yaml - limits.h.def limits.h DEPENDS .llvm-libc-macros.limits_macros @@ -141,7 +130,6 @@ add_header_macro( add_header_macro( malloc ../libc/include/malloc.yaml - malloc.h.def malloc.h DEPENDS .llvm_libc_common_h @@ -151,7 +139,6 @@ add_header_macro( add_header_macro( math ../libc/include/math.yaml - math.h.def math.h DEPENDS .llvm_libc_common_h @@ -166,7 +153,6 @@ add_header_macro( add_header_macro( stdfix ../libc/include/stdfix.yaml - stdfix.h.def stdfix.h DEPENDS .llvm-libc-macros.stdfix_macros @@ -179,7 +165,6 @@ file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/arpa) add_header_macro( arpa_inet ../libc/include/arpa/inet.yaml - arpa/inet.h.def arpa/inet.h DEPENDS .llvm_libc_common_h @@ -188,7 +173,6 @@ add_header_macro( add_header_macro( assert ../libc/include/assert.yaml - assert.h.def assert.h DEPENDS .llvm_libc_common_h @@ -198,7 +182,6 @@ add_header_macro( add_header_macro( complex ../libc/include/complex.yaml - complex.h.def complex.h DEPENDS .llvm_libc_common_h @@ -208,7 +191,6 @@ add_header_macro( add_header_macro( setjmp ../libc/include/setjmp.yaml - setjmp.h.def setjmp.h DEPENDS .llvm_libc_common_h @@ -218,7 +200,6 @@ add_header_macro( add_header_macro( string ../libc/include/string.yaml - string.h.def string.h DEPENDS .llvm_libc_common_h @@ -229,7 +210,6 @@ add_header_macro( add_header_macro( strings ../libc/include/strings.yaml - strings.h.def strings.h DEPENDS .llvm_libc_common_h @@ -239,7 +219,6 @@ add_header_macro( add_header_macro( search ../libc/include/search.yaml - search.h.def search.h DEPENDS .llvm_libc_common_h @@ -253,7 +232,6 @@ add_header_macro( add_header_macro( time ../libc/include/time.yaml - time.h.def time.h DEPENDS .llvm_libc_common_h @@ -269,7 +247,6 @@ add_header_macro( add_header_macro( threads ../libc/include/threads.yaml - threads.h.def threads.h DEPENDS .llvm_libc_common_h @@ -286,7 +263,6 @@ add_header_macro( add_header_macro( errno ../libc/include/errno.yaml - errno.h.def errno.h DEPENDS .llvm-libc-macros.generic_error_number_macros @@ -296,7 +272,6 @@ add_header_macro( add_header_macro( signal ../libc/include/signal.yaml - signal.h.def signal.h DEPENDS .llvm-libc-macros.signal_macros @@ -312,7 +287,6 @@ add_header_macro( add_header_macro( stdbit ../libc/include/stdbit.yaml - stdbit.h.def stdbit.h DEPENDS .llvm_libc_common_h @@ -322,7 +296,6 @@ add_header_macro( add_header_macro( stdckdint ../libc/include/stdckdint.yaml - stdckdint.h.def stdckdint.h DEPENDS .llvm_libc_common_h @@ -332,7 +305,6 @@ add_header_macro( add_header_macro( stdio ../libc/include/stdio.yaml - stdio.h.def stdio.h DEPENDS .llvm-libc-macros.file_seek_macros @@ -348,7 +320,6 @@ add_header_macro( add_header_macro( stdlib ../libc/include/stdlib.yaml - stdlib.h.def stdlib.h DEPENDS .llvm_libc_common_h @@ -367,7 +338,6 @@ add_header_macro( add_header_macro( unistd ../libc/include/unistd.yaml - unistd.h.def unistd.h DEPENDS .llvm_libc_common_h @@ -386,7 +356,6 @@ add_header_macro( add_header_macro( pthread ../libc/include/pthread.yaml - pthread.h.def pthread.h DEPENDS .llvm-libc-macros.pthread_macros @@ -410,7 +379,6 @@ add_header_macro( add_header_macro( sched ../libc/include/sched.yaml - sched.h.def sched.h DEPENDS .llvm_libc_common_h @@ -427,7 +395,6 @@ add_header_macro( add_header_macro( spawn ../libc/include/spawn.yaml - spawn.h.def spawn.h DEPENDS .llvm_libc_common_h @@ -440,7 +407,6 @@ add_header_macro( add_header_macro( link ../libc/include/link.yaml - link.h.def link.h DEPENDS .llvm_libc_common_h @@ -450,7 +416,6 @@ add_header_macro( add_header_macro( elf ../libc/include/elf.yaml - elf.h.def elf.h DEPENDS .llvm-libc-macros.elf_macros @@ -464,7 +429,6 @@ file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/sys) add_header_macro( sys_auxv ../libc/include/sys/auxv.yaml - sys/auxv.h.def sys/auxv.h DEPENDS .llvm_libc_common_h @@ -474,7 +438,6 @@ add_header_macro( add_header_macro( sys_epoll ../libc/include/sys/epoll.yaml - sys/epoll.h.def sys/epoll.h DEPENDS .llvm_libc_common_h @@ -487,7 +450,6 @@ add_header_macro( add_header_macro( sys_ioctl ../libc/include/sys/ioctl.yaml - sys/ioctl.h.def sys/ioctl.h DEPENDS .llvm_libc_common_h @@ -497,7 +459,6 @@ add_header_macro( add_header_macro( sys_mman ../libc/include/sys/mman.yaml - sys/mman.h.def sys/mman.h DEPENDS .llvm_libc_common_h @@ -510,7 +471,6 @@ add_header_macro( add_header_macro( sys_prctl ../libc/include/sys/prctl.yaml - sys/prctl.h.def sys/prctl.h DEPENDS .llvm_libc_common_h @@ -527,7 +487,6 @@ add_header( add_header_macro( sys_random ../libc/include/sys/random.yaml - sys/random.h.def sys/random.h DEPENDS .llvm_libc_common_h @@ -539,7 +498,6 @@ add_header_macro( add_header_macro( sys_resource ../libc/include/sys/resource.yaml - sys/resource.h.def sys/resource.h DEPENDS .llvm_libc_common_h @@ -551,7 +509,6 @@ add_header_macro( add_header_macro( sys_stat ../libc/include/sys/stat.yaml - sys/stat.h.def sys/stat.h DEPENDS .llvm_libc_common_h @@ -573,7 +530,6 @@ add_header_macro( add_header_macro( sys_select ../libc/include/sys/select.yaml - sys/select.h.def sys/select.h DEPENDS .llvm_libc_common_h @@ -589,7 +545,6 @@ add_header_macro( add_header_macro( sys_sendfile ../libc/include/sys/sendfile.yaml - sys/sendfile.h.def sys/sendfile.h DEPENDS .llvm_libc_common_h @@ -601,7 +556,6 @@ add_header_macro( add_header_macro( sys_socket ../libc/include/sys/socket.yaml - sys/socket.h.def sys/socket.h DEPENDS .llvm_libc_common_h @@ -617,7 +571,6 @@ add_header_macro( add_header_macro( sys_statvfs ../libc/include/sys/statvfs.yaml - sys/statvfs.h.def sys/statvfs.h DEPENDS .llvm_libc_common_h @@ -627,7 +580,6 @@ add_header_macro( add_header_macro( sys_syscall ../libc/include/sys/syscall.yaml - sys/syscall.h.def sys/syscall.h DEPENDS ) @@ -635,7 +587,6 @@ add_header_macro( add_header_macro( sys_time ../libc/include/sys/time.yaml - sys/time.h.def sys/time.h DEPENDS .llvm_libc_common_h @@ -646,7 +597,6 @@ add_header_macro( add_header_macro( sys_types ../libc/include/sys/types.yaml - sys/types.h.def sys/types.h DEPENDS .llvm_libc_common_h @@ -676,7 +626,6 @@ add_header_macro( add_header_macro( sys_utsname ../libc/include/sys/utsname.yaml - sys/utsname.h.def sys/utsname.h DEPENDS .llvm_libc_common_h @@ -686,7 +635,6 @@ add_header_macro( add_header_macro( sys_wait ../libc/include/sys/wait.yaml - sys/wait.h.def sys/wait.h DEPENDS .llvm_libc_common_h @@ -699,7 +647,6 @@ add_header_macro( add_header_macro( termios ../libc/include/termios.yaml - termios.h.def termios.h DEPENDS .llvm_libc_common_h @@ -714,7 +661,6 @@ add_header_macro( add_header_macro( uchar ../libc/include/uchar.yaml - uchar.h.def uchar.h DEPENDS .llvm_libc_common_h @@ -727,7 +673,6 @@ add_header_macro( add_header_macro( wchar ../libc/include/wchar.yaml - wchar.h.def wchar.h DEPENDS .llvm_libc_common_h @@ -741,7 +686,6 @@ add_header_macro( add_header_macro( locale ../libc/include/locale.yaml - locale.h.def locale.h DEPENDS .llvm_libc_common_h diff --git a/libc/include/__llvm-libc-common.h b/libc/include/__llvm-libc-common.h index d9d70aff771c..c63eb134a5e5 100644 --- a/libc/include/__llvm-libc-common.h +++ b/libc/include/__llvm-libc-common.h @@ -50,7 +50,14 @@ #define __END_C_DECLS #undef __restrict -#define __restrict restrict // C99 and above support the restrict keyword. +#if __STDC_VERSION__ >= 199901L +// C99 and above support the restrict keyword. +#define __restrict restrict +#elif !defined(__GNUC__) +// GNU-compatible compilers accept the __ spelling in all modes. +// Otherwise, omit the qualifier for pure C89 compatibility. +#define __restrict +#endif #undef _Noreturn #if __STDC_VERSION__ >= 201112L diff --git a/libc/include/arpa/inet.yaml b/libc/include/arpa/inet.yaml index cb366e0f5d69..10cd56d6ce78 100644 --- a/libc/include/arpa/inet.yaml +++ b/libc/include/arpa/inet.yaml @@ -1,4 +1,5 @@ -header: arpa-inet.h +header: arpa/inet.h +header_template: inet.h.def macros: [] types: [] enums: [] diff --git a/libc/include/assert.yaml b/libc/include/assert.yaml index f740554488ed..1a3bdeda7e54 100644 --- a/libc/include/assert.yaml +++ b/libc/include/assert.yaml @@ -1,4 +1,5 @@ header: assert.h +header_template: assert.h.def macros: [] types: [] enums: [] diff --git a/libc/include/complex.yaml b/libc/include/complex.yaml index cd81de7dd9e2..05318480a02f 100644 --- a/libc/include/complex.yaml +++ b/libc/include/complex.yaml @@ -1,4 +1,5 @@ header: complex.h +header_template: complex.h.def macros: [] types: - type_name: cfloat16 diff --git a/libc/include/ctype.yaml b/libc/include/ctype.yaml index b4823c3e5323..6238f1b88998 100644 --- a/libc/include/ctype.yaml +++ b/libc/include/ctype.yaml @@ -1,4 +1,5 @@ header: ctype.h +header_template: ctype.h.def macros: [] types: - type_name: locale_t diff --git a/libc/include/dirent.yaml b/libc/include/dirent.yaml index cdccf6a0c7f2..3fc522fda80e 100644 --- a/libc/include/dirent.yaml +++ b/libc/include/dirent.yaml @@ -1,4 +1,5 @@ header: dirent.h +header_template: dirent.h.def macros: [] types: - type_name: struct_dirent diff --git a/libc/include/dlfcn.yaml b/libc/include/dlfcn.yaml index 725ee705714a..9e8803cb5fa7 100644 --- a/libc/include/dlfcn.yaml +++ b/libc/include/dlfcn.yaml @@ -1,4 +1,5 @@ header: dlfcn.h +header_template: dlfcn.h.def macros: - macro_name: RTLD_LAZY macro_value: null diff --git a/libc/include/elf.yaml b/libc/include/elf.yaml index 2e9db329e229..f78ae82c7785 100644 --- a/libc/include/elf.yaml +++ b/libc/include/elf.yaml @@ -1,4 +1,5 @@ header: elf.h +header_template: elf.h.def standards: - Linux macros: [] diff --git a/libc/include/errno.yaml b/libc/include/errno.yaml index a894063a1ee2..188a9fa1211a 100644 --- a/libc/include/errno.yaml +++ b/libc/include/errno.yaml @@ -1,4 +1,5 @@ header: errno.h +header_template: errno.h.def standards: - stdc - Linux diff --git a/libc/include/fcntl.yaml b/libc/include/fcntl.yaml index 71c0df3b0fad..78f93533b84d 100644 --- a/libc/include/fcntl.yaml +++ b/libc/include/fcntl.yaml @@ -1,4 +1,5 @@ header: fcntl.h +header_template: fcntl.h.def macros: [] types: - type_name: off_t diff --git a/libc/include/features.yaml b/libc/include/features.yaml index a18af22edb74..726320a40881 100644 --- a/libc/include/features.yaml +++ b/libc/include/features.yaml @@ -1,4 +1,5 @@ header: features.h +header_template: features.h.def standards: - stdc macros: [] diff --git a/libc/include/fenv.yaml b/libc/include/fenv.yaml index 1010efc6402c..1ecaf6308550 100644 --- a/libc/include/fenv.yaml +++ b/libc/include/fenv.yaml @@ -1,4 +1,5 @@ header: fenv.h +header_template: fenv.h.def macros: [] types: - type_name: fenv_t diff --git a/libc/include/float.yaml b/libc/include/float.yaml index 63639a6e8ed1..21df6513e77e 100644 --- a/libc/include/float.yaml +++ b/libc/include/float.yaml @@ -1,4 +1,5 @@ header: float.h +header_template: float.h.def standards: - stdc macros: [] diff --git a/libc/include/inttypes.yaml b/libc/include/inttypes.yaml index ad636cc5121a..d5dec5b465ba 100644 --- a/libc/include/inttypes.yaml +++ b/libc/include/inttypes.yaml @@ -1,4 +1,5 @@ header: inttypes.h +header_template: inttypes.h.def macros: [] types: - type_name: imaxdiv_t diff --git a/libc/include/limits.yaml b/libc/include/limits.yaml index bf33ed24e7a8..b664041bb56c 100644 --- a/libc/include/limits.yaml +++ b/libc/include/limits.yaml @@ -1,4 +1,5 @@ header: limits.h +header_template: limits.h.def standards: - stdc macros: [] diff --git a/libc/include/link.yaml b/libc/include/link.yaml index d1963a86813a..1cd609e292b5 100644 --- a/libc/include/link.yaml +++ b/libc/include/link.yaml @@ -1,4 +1,5 @@ header: link.h +header_template: link.h.def standards: - Linux macros: [] diff --git a/libc/include/locale.yaml b/libc/include/locale.yaml index 7da7966ea730..9ff53c16398a 100644 --- a/libc/include/locale.yaml +++ b/libc/include/locale.yaml @@ -1,4 +1,5 @@ header: locale.h +header_template: locale.h.def functions: - name: localeconv standards: diff --git a/libc/include/malloc.yaml b/libc/include/malloc.yaml index 8db4f3aebb9b..ec73c9090f72 100644 --- a/libc/include/malloc.yaml +++ b/libc/include/malloc.yaml @@ -1,4 +1,5 @@ header: malloc.h +header_template: malloc.h.def macros: [] types: [] enums: [] diff --git a/libc/include/math.yaml b/libc/include/math.yaml index 3b8caec66bbf..831d04574567 100644 --- a/libc/include/math.yaml +++ b/libc/include/math.yaml @@ -1,4 +1,5 @@ header: math.h +header_template: math.h.def macros: [] types: - type_name: float_t diff --git a/libc/include/pthread.yaml b/libc/include/pthread.yaml index b9068c3f1765..4f386bdd11cf 100644 --- a/libc/include/pthread.yaml +++ b/libc/include/pthread.yaml @@ -1,4 +1,5 @@ header: pthread.h +header_template: pthread.h.def macros: [] types: - type_name: pthread_t diff --git a/libc/include/sched.yaml b/libc/include/sched.yaml index 2d4876b722ab..57871f524bf1 100644 --- a/libc/include/sched.yaml +++ b/libc/include/sched.yaml @@ -1,4 +1,5 @@ header: sched.h +header_template: sched.h.def macros: [] types: - type_name: struct_timespec diff --git a/libc/include/search.yaml b/libc/include/search.yaml index a0c73bc679d8..b7ce06d48e70 100644 --- a/libc/include/search.yaml +++ b/libc/include/search.yaml @@ -1,4 +1,5 @@ header: search.h +header_template: search.h.def macros: [] types: - type_name: struct_hsearch_data diff --git a/libc/include/setjmp.yaml b/libc/include/setjmp.yaml index 68e3ff046e4b..2c4f7fb6dfcc 100644 --- a/libc/include/setjmp.yaml +++ b/libc/include/setjmp.yaml @@ -1,4 +1,5 @@ header: setjmp.h +header_template: setjmp.h.def macros: [] types: - type_name: jmp_buf diff --git a/libc/include/signal.yaml b/libc/include/signal.yaml index c66abb1a8744..576e77576ac7 100644 --- a/libc/include/signal.yaml +++ b/libc/include/signal.yaml @@ -1,4 +1,5 @@ header: signal.h +header_template: signal.h.def macros: [] types: - type_name: pid_t diff --git a/libc/include/spawn.yaml b/libc/include/spawn.yaml index be3f4e99d27f..e725ab9719ed 100644 --- a/libc/include/spawn.yaml +++ b/libc/include/spawn.yaml @@ -1,4 +1,5 @@ header: spawn.h +header_template: spawn.h.def macros: [] types: - type_name: posix_spawn_file_actions_t diff --git a/libc/include/stdbit.yaml b/libc/include/stdbit.yaml index 25d2d326c30e..e9bd6b3918e7 100644 --- a/libc/include/stdbit.yaml +++ b/libc/include/stdbit.yaml @@ -1,4 +1,5 @@ header: stdbit.h +header_template: stdbit.h.def macros: [] types: [] enums: [] diff --git a/libc/include/stdckdint.yaml b/libc/include/stdckdint.yaml index ea8fc47625b0..e8b2e80ee029 100644 --- a/libc/include/stdckdint.yaml +++ b/libc/include/stdckdint.yaml @@ -1,4 +1,5 @@ header: stdckdint.h +header_template: stdckdint.h.def standards: - stdc macros: [] diff --git a/libc/include/stdfix.yaml b/libc/include/stdfix.yaml index 9787eaba45e4..7b3bdba082dd 100644 --- a/libc/include/stdfix.yaml +++ b/libc/include/stdfix.yaml @@ -1,4 +1,5 @@ header: stdfix.h +header_template: stdfix.h.def macros: [] types: - type_name: stdfix-types diff --git a/libc/include/stdint.yaml b/libc/include/stdint.yaml index 8887f596bc8a..d583a104af37 100644 --- a/libc/include/stdint.yaml +++ b/libc/include/stdint.yaml @@ -1,4 +1,5 @@ header: stdint.h +header_template: stdint.h.def standards: - stdc macros: [] diff --git a/libc/include/stdio.yaml b/libc/include/stdio.yaml index fd116bbc0089..2619984cca26 100644 --- a/libc/include/stdio.yaml +++ b/libc/include/stdio.yaml @@ -1,4 +1,5 @@ header: stdio.h +header_template: stdio.h.def macros: - macro_name: stdout macro_value: stdout diff --git a/libc/include/stdlib.yaml b/libc/include/stdlib.yaml index c6c95e421cee..4b68f272613b 100644 --- a/libc/include/stdlib.yaml +++ b/libc/include/stdlib.yaml @@ -1,4 +1,5 @@ header: stdlib.h +header_template: stdlib.h.def standards: - stdc macros: [] diff --git a/libc/include/string.yaml b/libc/include/string.yaml index af1750e91243..deded309abc2 100644 --- a/libc/include/string.yaml +++ b/libc/include/string.yaml @@ -1,4 +1,5 @@ header: string.h +header_template: string.h.def macros: [] types: - type_name: size_t diff --git a/libc/include/strings.yaml b/libc/include/strings.yaml index ca91b626740c..e672dca6a94d 100644 --- a/libc/include/strings.yaml +++ b/libc/include/strings.yaml @@ -1,4 +1,5 @@ header: strings.h +header_template: strings.h.def macros: [] types: [] enums: [] diff --git a/libc/include/sys/auxv.yaml b/libc/include/sys/auxv.yaml index 9d546b358824..82ecee75c40a 100644 --- a/libc/include/sys/auxv.yaml +++ b/libc/include/sys/auxv.yaml @@ -1,4 +1,5 @@ -header: sys-auxv.h +header: sys/auxv.h +header_template: auxv.h.def macros: [] types: [] enums: [] diff --git a/libc/include/sys/epoll.yaml b/libc/include/sys/epoll.yaml index ee188c17fedc..996eb785bc71 100644 --- a/libc/include/sys/epoll.yaml +++ b/libc/include/sys/epoll.yaml @@ -1,4 +1,5 @@ -header: sys-epoll.h +header: sys/epoll.h +header_template: epoll.h.def macros: [] types: - type_name: struct_epoll_event diff --git a/libc/include/sys/ioctl.yaml b/libc/include/sys/ioctl.yaml index ffe73a84d51b..5f7b7f333191 100644 --- a/libc/include/sys/ioctl.yaml +++ b/libc/include/sys/ioctl.yaml @@ -1,4 +1,5 @@ -header: sys-ioctl.h +header: sys/ioctl.h +header_template: ioctl.h.def standards: POSIX macros: [] types: [] diff --git a/libc/include/sys/mman.yaml b/libc/include/sys/mman.yaml index 962ca3591917..8c207552f980 100644 --- a/libc/include/sys/mman.yaml +++ b/libc/include/sys/mman.yaml @@ -1,4 +1,5 @@ -header: sys-mman.h +header: sys/mman.h +header_template: mman.h.def macros: [] types: - type_name: mode_t diff --git a/libc/include/sys/prctl.yaml b/libc/include/sys/prctl.yaml index 82374be87d5d..53f57645b18e 100644 --- a/libc/include/sys/prctl.yaml +++ b/libc/include/sys/prctl.yaml @@ -1,4 +1,5 @@ -header: sys-prctl.h +header: sys/prctl.h +header_template: prctl.h.def macros: [] types: [] enums: [] diff --git a/libc/include/sys/random.yaml b/libc/include/sys/random.yaml index 228bb50d5db9..4efb2fbb4473 100644 --- a/libc/include/sys/random.yaml +++ b/libc/include/sys/random.yaml @@ -1,4 +1,5 @@ -header: sys-random.h +header: sys/random.h +header_template: random.h.def macros: [] types: - type_name: ssize_t diff --git a/libc/include/sys/resource.yaml b/libc/include/sys/resource.yaml index 85ea1ad12f19..3652d6d490a4 100644 --- a/libc/include/sys/resource.yaml +++ b/libc/include/sys/resource.yaml @@ -1,4 +1,5 @@ -header: sys-resource.h +header: sys/resource.h +header_template: resource.h.def macros: [] types: - type_name: struct_rlimit diff --git a/libc/include/sys/select.yaml b/libc/include/sys/select.yaml index c6806122aa81..6066fd341f07 100644 --- a/libc/include/sys/select.yaml +++ b/libc/include/sys/select.yaml @@ -1,4 +1,5 @@ -header: sys-select.h +header: sys/select.h +header_template: select.h.def macros: [] types: - type_name: struct_timeval diff --git a/libc/include/sys/sendfile.yaml b/libc/include/sys/sendfile.yaml index 7e45e40e171d..259ab83dff54 100644 --- a/libc/include/sys/sendfile.yaml +++ b/libc/include/sys/sendfile.yaml @@ -1,4 +1,5 @@ -header: sys-sendfile.h +header: sys/sendfile.h +header_template: sendfile.h.def macros: [] types: - type_name: ssize_t diff --git a/libc/include/sys/socket.yaml b/libc/include/sys/socket.yaml index 47d835fa5f4a..00d5de6af8a8 100644 --- a/libc/include/sys/socket.yaml +++ b/libc/include/sys/socket.yaml @@ -1,4 +1,5 @@ -header: sys-socket.h +header: sys/socket.h +header_template: socket.h.def macros: [] types: - type_name: struct_sockaddr_un diff --git a/libc/include/sys/stat.yaml b/libc/include/sys/stat.yaml index ed500f832f90..7f013420818a 100644 --- a/libc/include/sys/stat.yaml +++ b/libc/include/sys/stat.yaml @@ -1,4 +1,5 @@ -header: sys-stat.h +header: sys/stat.h +header_template: stat.h.def macros: [] types: - type_name: blkcnt_t diff --git a/libc/include/sys/statvfs.yaml b/libc/include/sys/statvfs.yaml index 22e0ef22c413..8c1d254add37 100644 --- a/libc/include/sys/statvfs.yaml +++ b/libc/include/sys/statvfs.yaml @@ -1,4 +1,5 @@ -header: sys-statvfs.h +header: sys/statvfs.h +header_template: statvfs.h.def macros: [] types: - type_name: struct_statvfs diff --git a/libc/include/sys/syscall.yaml b/libc/include/sys/syscall.yaml index c0a64338b6f7..879d95c2ea39 100644 --- a/libc/include/sys/syscall.yaml +++ b/libc/include/sys/syscall.yaml @@ -1,4 +1,5 @@ -header: sys-syscall.h +header: sys/syscall.h +header_template: syscall.h.def standards: Linux macros: [] types: [] diff --git a/libc/include/sys/time.yaml b/libc/include/sys/time.yaml index eb3dd548389b..687c1f83028d 100644 --- a/libc/include/sys/time.yaml +++ b/libc/include/sys/time.yaml @@ -1,4 +1,5 @@ -header: sys-time.h +header: sys/time.h +header_template: time.h.def standards: Linux macros: [] types: [] diff --git a/libc/include/sys/types.yaml b/libc/include/sys/types.yaml index 15eaf107f691..6fa0b448fcd3 100644 --- a/libc/include/sys/types.yaml +++ b/libc/include/sys/types.yaml @@ -1,4 +1,5 @@ -header: sys-types.h +header: sys/types.h +header_template: types.h.def standards: POSIX macros: [] types: diff --git a/libc/include/sys/utsname.yaml b/libc/include/sys/utsname.yaml index eecd55b18082..6c7cb71f9a34 100644 --- a/libc/include/sys/utsname.yaml +++ b/libc/include/sys/utsname.yaml @@ -1,4 +1,5 @@ -header: sys-utsname.h +header: sys/utsname.h +header_template: utsname.h.def macros: [] types: - type_name: struct_utsname diff --git a/libc/include/sys/wait.yaml b/libc/include/sys/wait.yaml index 4f0c69baee2c..6257e34b9e08 100644 --- a/libc/include/sys/wait.yaml +++ b/libc/include/sys/wait.yaml @@ -1,4 +1,5 @@ -header: sys-wait.h +header: sys/wait.h +header_template: wait.h.def macros: [] types: - type_name: siginfo_t diff --git a/libc/include/termios.yaml b/libc/include/termios.yaml index e9c4cd375d0b..8815097264f9 100644 --- a/libc/include/termios.yaml +++ b/libc/include/termios.yaml @@ -1,4 +1,5 @@ header: termios.h +header_template: termios.h.def macros: [] types: - type_name: tcflag_t diff --git a/libc/include/threads.yaml b/libc/include/threads.yaml index aadcaf5f66e0..7014822f9251 100644 --- a/libc/include/threads.yaml +++ b/libc/include/threads.yaml @@ -1,4 +1,5 @@ header: threads.h +header_template: threads.h.def macros: - macro_name: ONCE_FLAG_INIT macro_value: '{0}' diff --git a/libc/include/time.yaml b/libc/include/time.yaml index 3f745e5ee338..b71b9ab72075 100644 --- a/libc/include/time.yaml +++ b/libc/include/time.yaml @@ -1,4 +1,5 @@ header: time.h +header_template: time.h.def macros: [] types: - type_name: struct_timeval diff --git a/libc/include/uchar.yaml b/libc/include/uchar.yaml index 18ca840612e0..713919796762 100644 --- a/libc/include/uchar.yaml +++ b/libc/include/uchar.yaml @@ -1,4 +1,5 @@ header: uchar.h +header_template: uchar.h.def standards: - stdc macros: [] diff --git a/libc/include/unistd.yaml b/libc/include/unistd.yaml index c6441c04ce3a..fada365e0103 100644 --- a/libc/include/unistd.yaml +++ b/libc/include/unistd.yaml @@ -1,4 +1,5 @@ header: unistd.h +header_template: unistd.h.def macros: [] types: - type_name: uid_t diff --git a/libc/include/wchar.yaml b/libc/include/wchar.yaml index bc824b21d8be..27a5926b5745 100644 --- a/libc/include/wchar.yaml +++ b/libc/include/wchar.yaml @@ -1,4 +1,5 @@ header: wchar.h +header_template: wchar.h.def macros: [] types: - type_name: size_t |
