xref: /llvm-project/libc/include/llvm-libc-types/CMakeLists.txt (revision db6b7a84e6e4949569e756f46357d9f54ad16a03)
1add_header(off64_t HDR off64_t.h)
2add_header(size_t HDR size_t.h)
3add_header(ssize_t HDR ssize_t.h)
4add_header(__atfork_callback_t HDR __atfork_callback_t.h)
5add_header(__bsearchcompare_t HDR __bsearchcompare_t.h)
6add_header(__lsearchcompare_t HDR __lsearchcompare_t.h)
7add_header(__call_once_func_t HDR __call_once_func_t.h)
8add_header(__exec_argv_t HDR __exec_argv_t.h)
9add_header(__exec_envp_t HDR __exec_envp_t.h)
10add_header(__futex_word HDR __futex_word.h)
11add_header(pid_t HDR pid_t.h)
12add_header(__mutex_type HDR __mutex_type.h DEPENDS .__futex_word .pid_t)
13add_header(__pthread_once_func_t HDR __pthread_once_func_t.h)
14add_header(__pthread_start_t HDR __pthread_start_t.h)
15add_header(__pthread_tss_dtor_t HDR __pthread_tss_dtor_t.h)
16add_header(__qsortcompare_t HDR __qsortcompare_t.h)
17add_header(__qsortrcompare_t HDR __qsortrcompare_t.h)
18add_header(__sighandler_t HDR __sighandler_t.h)
19add_header(__thread_type HDR __thread_type.h)
20add_header(blkcnt_t HDR blkcnt_t.h)
21add_header(blksize_t HDR blksize_t.h)
22add_header(cc_t HDR cc_t.h)
23add_header(clock_t HDR clock_t.h)
24add_header(clockid_t HDR clockid_t.h)
25add_header(cnd_t HDR cnd_t.h DEPENDS .__futex_word)
26add_header(cookie_io_functions_t HDR cookie_io_functions_t.h DEPENDS .off64_t .ssize_t)
27add_header(cpu_set_t HDR cpu_set_t.h)
28add_header(double_t HDR double_t.h)
29add_header(DIR HDR DIR.h)
30add_header(dev_t HDR dev_t.h)
31add_header(div_t HDR div_t.h)
32add_header(ldiv_t HDR ldiv_t.h)
33add_header(lldiv_t HDR lldiv_t.h)
34add_header(FILE HDR FILE.h)
35add_header(fd_set HDR fd_set.h DEPENDS libc.include.llvm-libc-macros.sys_select_macros)
36add_header(fenv_t HDR fenv_t.h)
37add_header(fexcept_t HDR fexcept_t.h)
38add_header(float_t HDR float_t.h)
39add_header(gid_t HDR gid_t.h)
40add_header(uid_t HDR uid_t.h)
41add_header(imaxdiv_t HDR imaxdiv_t.h)
42add_header(ino_t HDR ino_t.h)
43add_header(jmp_buf HDR jmp_buf.h)
44add_header(mbstate_t HDR mbstate_t.h)
45add_header(mode_t HDR mode_t.h)
46add_header(mtx_t HDR mtx_t.h DEPENDS .__futex_word .__mutex_type)
47add_header(nlink_t HDR nlink_t.h)
48add_header(off_t HDR off_t.h)
49add_header(once_flag HDR once_flag.h DEPENDS .__futex_word)
50add_header(posix_spawn_file_actions_t HDR posix_spawn_file_actions_t.h)
51add_header(posix_spawnattr_t HDR posix_spawnattr_t.h)
52add_header(pthread_attr_t HDR pthread_attr_t.h DEPENDS .size_t)
53add_header(pthread_condattr_t HDR pthread_condattr_t.h DEPENDS .clockid_t)
54add_header(pthread_key_t HDR pthread_key_t.h)
55add_header(pthread_mutex_t HDR pthread_mutex_t.h DEPENDS .__futex_word .__mutex_type)
56add_header(pthread_mutexattr_t HDR pthread_mutexattr_t.h)
57add_header(pthread_once_t HDR pthread_once_t.h DEPENDS .__futex_word)
58add_header(pthread_rwlock_t HDR pthread_rwlock_t.h DEPENDS .__futex_word .pid_t)
59add_header(pthread_rwlockattr_t HDR pthread_rwlockattr_t.h)
60add_header(pthread_spinlock_t HDR pthread_spinlock_t.h DEPENDS .pid_t)
61add_header(pthread_t HDR pthread_t.h DEPENDS .__thread_type)
62add_header(rlim_t HDR rlim_t.h)
63if(LIBC_TYPES_TIME_T_IS_32_BIT)
64  add_header(time_t HDR time_t_32.h DEST_HDR time_t.h)
65else()
66  add_header(time_t HDR time_t_64.h DEST_HDR time_t.h)
67endif()
68add_header(stack_t HDR stack_t.h DEPENDS .size_t)
69add_header(suseconds_t HDR suseconds_t.h)
70add_header(struct_flock HDR struct_flock.h DEPENDS .off_t .pid_t)
71add_header(struct_flock64 HDR struct_flock64.h DEPENDS .off64_t .pid_t)
72add_header(struct_f_owner_ex HDR struct_f_owner_ex.h DEPENDS .pid_t)
73add_header(struct_timeval HDR struct_timeval.h DEPENDS .suseconds_t .time_t)
74add_header(struct_rlimit HDR struct_rlimit.h DEPENDS .rlim_t)
75add_header(struct_rusage HDR struct_rusage.h DEPENDS .struct_timeval)
76add_header(struct_dirent HDR struct_dirent.h DEPENDS .ino_t .off_t)
77add_header(struct_sched_param HDR struct_sched_param.h)
78add_header(union_sigval HDR union_sigval.h)
79add_header(siginfo_t HDR siginfo_t.h DEPENDS .union_sigval .pid_t .uid_t .clock_t)
80add_header(sig_atomic_t HDR sig_atomic_t.h)
81add_header(sigset_t HDR sigset_t.h DEPENDS libc.include.llvm-libc-macros.signal_macros)
82add_header(struct_sigaction HDR struct_sigaction.h DEPENDS .sigset_t .siginfo_t)
83add_header(struct_timespec HDR struct_timespec.h DEPENDS .time_t)
84add_header(
85  struct_stat
86  HDR struct_stat.h
87  DEPENDS
88    .dev_t .ino_t .mode_t .nlink_t .uid_t .gid_t .off_t .struct_timespec
89    .blksize_t .blkcnt_t
90)
91add_header(struct_tm HDR struct_tm.h)
92add_header(struct_utsname HDR struct_utsname.h)
93add_header(thrd_start_t HDR thrd_start_t.h)
94add_header(thrd_t HDR thrd_t.h DEPENDS .__thread_type)
95add_header(tss_t HDR tss_t.h)
96add_header(tss_dtor_t HDR tss_dtor_t.h)
97add_header(__atexithandler_t HDR __atexithandler_t.h)
98add_header(speed_t HDR speed_t.h)
99add_header(tcflag_t HDR tcflag_t.h)
100add_header(struct_termios HDR struct_termios.h DEPENDS .cc_t .speed_t .tcflag_t)
101add_header(__getoptargv_t HDR __getoptargv_t.h)
102add_header(wchar_t HDR wchar_t.h)
103add_header(char8_t HDR char8_t.h)
104add_header(
105    char16_t
106  HDR
107    char16_t.h
108  DEPENDS
109    libc.include.llvm-libc-macros.stdint_macros
110)
111add_header(
112    char32_t
113  HDR
114    char32_t.h
115  DEPENDS
116    libc.include.llvm-libc-macros.stdint_macros
117)
118add_header(wint_t HDR wint_t.h)
119add_header(sa_family_t HDR sa_family_t.h)
120add_header(socklen_t HDR socklen_t.h)
121add_header(struct_sockaddr_un HDR struct_sockaddr_un.h DEPENDS .sa_family_t)
122add_header(struct_sockaddr HDR struct_sockaddr.h DEPENDS .sa_family_t)
123add_header(struct_iovec HDR struct_iovec.h DEPENDS .size_t)
124add_header(struct_msghdr HDR struct_msghdr.h DEPENDS .size_t .socklen_t .struct_iovec)
125add_header(ACTION HDR ACTION.h)
126add_header(ENTRY HDR ENTRY.h)
127add_header(struct_hsearch_data HDR struct_hsearch_data.h)
128add_header(struct_epoll_event HDR struct_epoll_event.h)
129add_header(struct_epoll_data HDR struct_epoll_data.h)
130add_header(
131  float128
132  HDR
133    float128.h
134  DEPENDS
135    libc.include.llvm-libc-macros.float_macros
136)
137add_header(
138  cfloat128
139  HDR
140    cfloat128.h
141  DEPENDS
142    libc.include.llvm-libc-macros.float_macros
143)
144add_header(cfloat16 HDR cfloat16.h)
145add_header(fsblkcnt_t HDR fsblkcnt_t.h)
146add_header(fsfilcnt_t HDR fsfilcnt_t.h)
147add_header(
148  struct_statvfs
149HDR
150  struct_statvfs.h
151DEPENDS
152  .fsblkcnt_t
153  .fsfilcnt_t
154)
155add_header(locale_t HDR locale_t.h)
156add_header(struct_lconv HDR struct_lconv.h)
157add_header(stdfix-types HDR stdfix-types.h)
158