[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / unistd / linux / CMakeLists.txt
blob2507e1e9a9387ad035b780ea40c5bc6fdbf07d36
1 add_entrypoint_object(
2   access
3   SRCS
4     access.cpp
5   HDRS
6     ../access.h
7   DEPENDS
8     libc.include.unistd
9     libc.include.sys_syscall
10     libc.src.__support.OSUtil.osutil
11     libc.src.errno.errno
14 add_entrypoint_object(
15   chdir
16   SRCS
17     chdir.cpp
18   HDRS
19     ../chdir.h
20   DEPENDS
21     libc.include.unistd
22     libc.include.sys_syscall
23     libc.src.__support.OSUtil.osutil
24     libc.src.errno.errno
27 add_entrypoint_object(
28   close
29   SRCS
30     close.cpp
31   HDRS
32     ../close.h
33   DEPENDS
34     libc.include.unistd
35     libc.include.sys_syscall
36     libc.src.__support.OSUtil.osutil
37     libc.src.errno.errno
40 add_entrypoint_object(
41   dup
42   SRCS
43     dup.cpp
44   HDRS
45     ../dup.h
46   DEPENDS
47     libc.include.unistd
48     libc.include.sys_syscall
49     libc.src.__support.OSUtil.osutil
50     libc.src.errno.errno
53 add_entrypoint_object(
54   dup2
55   SRCS
56     dup2.cpp
57   HDRS
58     ../dup2.h
59   DEPENDS
60     libc.include.fcntl
61     libc.include.unistd
62     libc.include.sys_syscall
63     libc.src.__support.OSUtil.osutil
64     libc.src.errno.errno
67 add_entrypoint_object(
68   dup3
69   SRCS
70     dup3.cpp
71   HDRS
72     ../dup3.h
73   DEPENDS
74     libc.include.unistd
75     libc.include.sys_syscall
76     libc.src.__support.OSUtil.osutil
77     libc.src.errno.errno
80 add_entrypoint_object(
81   fchdir
82   SRCS
83     fchdir.cpp
84   HDRS
85     ../fchdir.h
86   DEPENDS
87     libc.include.unistd
88     libc.include.sys_syscall
89     libc.src.__support.OSUtil.osutil
90     libc.src.errno.errno
93 add_entrypoint_object(
94   fork
95   SRCS
96     fork.cpp
97   HDRS
98     ../fork.h
99   DEPENDS
100     libc.include.unistd
101     libc.include.sys_syscall
102     libc.src.__support.threads.fork_callbacks
103     libc.src.__support.OSUtil.osutil
104     libc.src.__support.threads.thread
105     libc.src.errno.errno
108 add_entrypoint_object(
109   execv
110   SRCS
111     execv.cpp
112   HDRS
113     ../execv.h
114   DEPENDS
115     libc.include.sys_syscall
116     libc.src.__support.OSUtil.osutil
117     libc.src.errno.errno
118     libc.src.unistd.environ
121 add_entrypoint_object(
122   execve
123   SRCS
124     execve.cpp
125   HDRS
126     ../execve.h
127   DEPENDS
128     libc.include.sys_syscall
129     libc.src.__support.OSUtil.osutil
130     libc.src.errno.errno
133 add_entrypoint_object(
134   fsync
135   SRCS
136     fsync.cpp
137   HDRS
138     ../fsync.h
139   DEPENDS
140     libc.include.unistd
141     libc.include.sys_syscall
142     libc.src.__support.OSUtil.osutil
143     libc.src.errno.errno
146 add_entrypoint_object(
147   ftruncate
148   SRCS
149     ftruncate.cpp
150   HDRS
151     ../ftruncate.h
152   DEPENDS
153     libc.include.unistd
154     libc.include.sys_syscall
155     libc.src.__support.OSUtil.osutil
156     libc.src.errno.errno
159 add_entrypoint_object(
160   getcwd
161   SRCS
162     getcwd.cpp
163   HDRS
164     ../getcwd.h
165   DEPENDS
166     libc.include.stdlib
167     libc.include.unistd
168     libc.include.sys_syscall
169     libc.src.__support.OSUtil.osutil
170     libc.src.errno.errno
173 add_entrypoint_object(
174   geteuid
175   SRCS
176     geteuid.cpp
177   HDRS
178     ../geteuid.h
179   DEPENDS
180     libc.include.unistd
181     libc.include.sys_syscall
182     libc.src.__support.OSUtil.osutil
185 add_entrypoint_object(
186   getpid
187   SRCS
188     getpid.cpp
189   HDRS
190     ../getpid.h
191   DEPENDS
192     libc.include.unistd
193     libc.include.sys_syscall
194     libc.src.__support.OSUtil.osutil
197 add_entrypoint_object(
198   getppid
199   SRCS
200     getppid.cpp
201   HDRS
202     ../getppid.h
203   DEPENDS
204     libc.include.unistd
205     libc.include.sys_syscall
206     libc.src.__support.OSUtil.osutil
209 add_entrypoint_object(
210   getuid
211   SRCS
212     getuid.cpp
213   HDRS
214     ../getuid.h
215   DEPENDS
216     libc.include.unistd
217     libc.include.sys_syscall
218     libc.src.__support.OSUtil.osutil
221 add_entrypoint_object(
222   isatty
223   SRCS
224     isatty.cpp
225   HDRS
226     ../isatty.h
227   DEPENDS
228     libc.include.unistd
229     libc.include.sys_syscall
230     libc.src.__support.OSUtil.osutil
231     libc.src.errno.errno
234 add_entrypoint_object(
235   link
236   SRCS
237     link.cpp
238   HDRS
239     ../link.h
240   DEPENDS
241     libc.include.fcntl
242     libc.include.unistd
243     libc.include.sys_syscall
244     libc.src.__support.OSUtil.osutil
245     libc.src.errno.errno
248 add_entrypoint_object(
249   linkat
250   SRCS
251     linkat.cpp
252   HDRS
253     ../linkat.h
254   DEPENDS
255     libc.include.fcntl
256     libc.include.unistd
257     libc.include.sys_syscall
258     libc.src.__support.OSUtil.osutil
259     libc.src.errno.errno
262 add_entrypoint_object(
263   lseek
264   SRCS
265     lseek.cpp
266   HDRS
267     ../lseek.h
268   DEPENDS
269     libc.include.unistd
270     libc.include.sys_syscall
271     libc.src.__support.OSUtil.osutil
272     libc.src.errno.errno
275 add_entrypoint_object(
276   pread
277   SRCS
278     pread.cpp
279   HDRS
280     ../pread.h
281   DEPENDS
282     libc.include.unistd
283     libc.include.sys_syscall
284     libc.src.__support.OSUtil.osutil
285     libc.src.errno.errno
288 add_entrypoint_object(
289   pwrite
290   SRCS
291     pwrite.cpp
292   HDRS
293     ../pwrite.h
294   DEPENDS
295     libc.include.unistd
296     libc.include.sys_syscall
297     libc.src.__support.OSUtil.osutil
298     libc.src.errno.errno
301 add_entrypoint_object(
302   read
303   SRCS
304     read.cpp
305   HDRS
306     ../read.h
307   DEPENDS
308     libc.include.unistd
309     libc.include.sys_syscall
310     libc.src.__support.OSUtil.osutil
311     libc.src.errno.errno
314 add_entrypoint_object(
315   rmdir
316   SRCS
317     rmdir.cpp
318   HDRS
319     ../rmdir.h
320   DEPENDS
321     libc.include.fcntl
322     libc.include.unistd
323     libc.include.sys_syscall
324     libc.src.__support.OSUtil.osutil
325     libc.src.errno.errno
328 add_entrypoint_object(
329   readlink
330   SRCS
331     readlink.cpp
332   HDRS
333     ../readlink.h
334   DEPENDS
335     libc.include.fcntl
336     libc.include.unistd
337     libc.include.sys_syscall
338     libc.src.__support.OSUtil.osutil
339     libc.src.errno.errno
342 add_entrypoint_object(
343   readlinkat
344   SRCS
345     readlinkat.cpp
346   HDRS
347     ../readlinkat.h
348   DEPENDS
349     libc.include.fcntl
350     libc.include.unistd
351     libc.include.sys_syscall
352     libc.src.__support.OSUtil.osutil
353     libc.src.errno.errno
356 add_entrypoint_object(
357   symlink
358   SRCS
359     symlink.cpp
360   HDRS
361     ../symlink.h
362   DEPENDS
363     libc.include.fcntl
364     libc.include.unistd
365     libc.include.sys_syscall
366     libc.src.__support.OSUtil.osutil
367     libc.src.errno.errno
370 add_entrypoint_object(
371   symlinkat
372   SRCS
373     symlinkat.cpp
374   HDRS
375     ../symlinkat.h
376   DEPENDS
377     libc.include.fcntl
378     libc.include.unistd
379     libc.include.sys_syscall
380     libc.src.__support.OSUtil.osutil
381     libc.src.errno.errno
384 add_entrypoint_object(
385   __llvm_libc_syscall
386   SRCS
387     syscall.cpp
388   HDRS
389     ../syscall.h
390   DEPENDS
391     libc.include.unistd
392     libc.src.__support.OSUtil.osutil
393     libc.src.errno.errno
396 add_entrypoint_object(
397   sysconf
398   SRCS
399     sysconf.cpp
400   HDRS
401     ../sysconf.h
402   DEPENDS
403     libc.include.unistd
404     libc.src.errno.errno
407 add_entrypoint_object(
408   truncate
409   SRCS
410     truncate.cpp
411   HDRS
412     ../truncate.h
413   DEPENDS
414     libc.include.unistd
415     libc.include.sys_syscall
416     libc.src.__support.OSUtil.osutil
417     libc.src.errno.errno
420 add_entrypoint_object(
421   unlink
422   SRCS
423     unlink.cpp
424   HDRS
425     ../unlink.h
426   DEPENDS
427     libc.include.fcntl
428     libc.include.unistd
429     libc.include.sys_syscall
430     libc.src.__support.OSUtil.osutil
431     libc.src.errno.errno
434 add_entrypoint_object(
435   unlinkat
436   SRCS
437     unlinkat.cpp
438   HDRS
439     ../unlinkat.h
440   DEPENDS
441     libc.include.fcntl
442     libc.include.unistd
443     libc.include.sys_syscall
444     libc.src.__support.OSUtil.osutil
445     libc.src.errno.errno
448 add_entrypoint_object(
449   write
450   SRCS
451     write.cpp
452   HDRS
453     ../write.h
454   DEPENDS
455     libc.include.unistd
456     libc.include.sys_syscall
457     libc.src.__support.OSUtil.osutil
458     libc.src.errno.errno