[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / unistd / CMakeLists.txt
blob1eb653d6f138baa2f59baf28a1c67e02059f1956
1 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
3 endif()
5 add_entrypoint_object(
6   access
7   ALIAS
8   DEPENDS
9     .${LIBC_TARGET_OS}.access
12 add_entrypoint_object(
13   chdir
14   ALIAS
15   DEPENDS
16     .${LIBC_TARGET_OS}.chdir
19 add_entrypoint_object(
20   close
21   ALIAS
22   DEPENDS
23     .${LIBC_TARGET_OS}.close
26 add_entrypoint_object(
27   dup
28   ALIAS
29   DEPENDS
30     .${LIBC_TARGET_OS}.dup
33 add_entrypoint_object(
34   dup2
35   ALIAS
36   DEPENDS
37     .${LIBC_TARGET_OS}.dup2
40 add_entrypoint_object(
41   dup3
42   ALIAS
43   DEPENDS
44     .${LIBC_TARGET_OS}.dup3
47 add_entrypoint_object(
48   fchdir
49   ALIAS
50   DEPENDS
51     .${LIBC_TARGET_OS}.fchdir
54 add_entrypoint_object(
55   fork
56   ALIAS
57   DEPENDS
58     .${LIBC_TARGET_OS}.fork
61 add_entrypoint_object(
62   execv
63   ALIAS
64   DEPENDS
65     .${LIBC_TARGET_OS}.execv
68 add_entrypoint_object(
69   execve
70   ALIAS
71   DEPENDS
72     .${LIBC_TARGET_OS}.execve
75 add_entrypoint_object(
76   fsync
77   ALIAS
78   DEPENDS
79     .${LIBC_TARGET_OS}.fsync
82 add_entrypoint_object(
83   ftruncate
84   ALIAS
85   DEPENDS
86     .${LIBC_TARGET_OS}.ftruncate
89 add_entrypoint_object(
90   getcwd
91   ALIAS
92   DEPENDS
93     .${LIBC_TARGET_OS}.getcwd
96 add_entrypoint_object(
97   getpid
98   ALIAS
99   DEPENDS
100     .${LIBC_TARGET_OS}.getpid
103 add_entrypoint_object(
104   getppid
105   ALIAS
106   DEPENDS
107     .${LIBC_TARGET_OS}.getppid
110 add_entrypoint_object(
111   geteuid
112   ALIAS
113   DEPENDS
114     .${LIBC_TARGET_OS}.geteuid
117 add_entrypoint_object(
118   getuid
119   ALIAS
120   DEPENDS
121     .${LIBC_TARGET_OS}.getuid
124 add_entrypoint_object(
125   isatty
126   ALIAS
127   DEPENDS
128     .${LIBC_TARGET_OS}.isatty
131 add_entrypoint_object(
132   link
133   ALIAS
134   DEPENDS
135     .${LIBC_TARGET_OS}.link
138 add_entrypoint_object(
139   linkat
140   ALIAS
141   DEPENDS
142     .${LIBC_TARGET_OS}.linkat
145 add_entrypoint_object(
146   lseek
147   ALIAS
148   DEPENDS
149     .${LIBC_TARGET_OS}.lseek
152 add_entrypoint_object(
153   pread
154   ALIAS
155   DEPENDS
156     .${LIBC_TARGET_OS}.pread
159 add_entrypoint_object(
160   pwrite
161   ALIAS
162   DEPENDS
163     .${LIBC_TARGET_OS}.pwrite
166 add_entrypoint_object(
167   read
168   ALIAS
169   DEPENDS
170     .${LIBC_TARGET_OS}.read
173 add_entrypoint_object(
174   readlink
175   ALIAS
176   DEPENDS
177     .${LIBC_TARGET_OS}.readlink
180 add_entrypoint_object(
181   readlinkat
182   ALIAS
183   DEPENDS
184     .${LIBC_TARGET_OS}.readlinkat
187 add_entrypoint_object(
188   rmdir
189   ALIAS
190   DEPENDS
191     .${LIBC_TARGET_OS}.rmdir
194 add_entrypoint_object(
195   symlink
196   ALIAS
197   DEPENDS
198     .${LIBC_TARGET_OS}.symlink
201 add_entrypoint_object(
202   symlinkat
203   ALIAS
204   DEPENDS
205     .${LIBC_TARGET_OS}.symlinkat
208 add_entrypoint_object(
209   __llvm_libc_syscall
210   ALIAS
211   DEPENDS
212     .${LIBC_TARGET_OS}.__llvm_libc_syscall
215 add_entrypoint_object(
216   sysconf
217   ALIAS
218   DEPENDS
219     .${LIBC_TARGET_OS}.sysconf
222 add_entrypoint_object(
223   truncate
224   ALIAS
225   DEPENDS
226     .${LIBC_TARGET_OS}.truncate
229 add_entrypoint_object(
230   unlink
231   ALIAS
232   DEPENDS
233     .${LIBC_TARGET_OS}.unlink
236 add_entrypoint_object(
237   unlinkat
238   ALIAS
239   DEPENDS
240     .${LIBC_TARGET_OS}.unlinkat
243 add_entrypoint_object(
244   write
245   ALIAS
246   DEPENDS
247     .${LIBC_TARGET_OS}.write
250 add_entrypoint_object(
251   environ
252   SRCS
253     environ.cpp
254   HDRS
255     environ.h
258 add_entrypoint_object(
259   getopt
260   SRCS
261     getopt.cpp
262   HDRS
263     getopt.h
264   DEPENDS
265     libc.include.unistd
266     libc.src.__support.CPP.optional
267     libc.src.__support.CPP.string_view
268     libc.src.__support.File.file
269     libc.src.stdio.fprintf
272 add_entrypoint_object(
273   swab
274   SRCS
275     swab.cpp
276   HDRS
277     swab.h
278   DEPENDS
279     libc.include.unistd
280     libc.src.__support.CPP.optional
283 # These aren't actual external per-se, but this is just an easy way to create
284 # targets that don't do anything. They exist to be referenced in entrypoints.txt
285 # so that the header will properly expose their definitions. Their declaration
286 # is in getopt.cpp.
287 add_entrypoint_external(
288   optarg
291 add_entrypoint_external(
292   optind
295 add_entrypoint_external(
296   optopt
299 add_entrypoint_external(
300   opterr