686 lines · plain
1add_entrypoint_object(2 access3 SRCS4 access.cpp5 HDRS6 ../access.h7 DEPENDS8 libc.hdr.fcntl_macros9 libc.include.unistd10 libc.include.sys_syscall11 libc.src.__support.OSUtil.osutil12 libc.src.errno.errno13)14 15add_entrypoint_object(16 chdir17 SRCS18 chdir.cpp19 HDRS20 ../chdir.h21 DEPENDS22 libc.include.unistd23 libc.include.sys_syscall24 libc.src.__support.OSUtil.osutil25 libc.src.errno.errno26)27 28add_entrypoint_object(29 chown30 SRCS31 chown.cpp32 HDRS33 ../chown.h34 DEPENDS35 libc.hdr.types.uid_t36 libc.hdr.types.gid_t37 libc.include.sys_syscall38 libc.src.__support.OSUtil.osutil39 libc.src.errno.errno40)41 42add_entrypoint_object(43 close44 SRCS45 close.cpp46 HDRS47 ../close.h48 DEPENDS49 libc.include.unistd50 libc.include.sys_syscall51 libc.src.__support.OSUtil.osutil52 libc.src.errno.errno53)54 55add_entrypoint_object(56 dup57 SRCS58 dup.cpp59 HDRS60 ../dup.h61 DEPENDS62 libc.hdr.fcntl_macros63 libc.include.unistd64 libc.include.sys_syscall65 libc.src.__support.OSUtil.osutil66 libc.src.errno.errno67)68 69add_entrypoint_object(70 dup271 SRCS72 dup2.cpp73 HDRS74 ../dup2.h75 DEPENDS76 libc.hdr.fcntl_macros77 libc.include.unistd78 libc.include.sys_syscall79 libc.src.__support.OSUtil.osutil80 libc.src.errno.errno81)82 83add_entrypoint_object(84 dup385 SRCS86 dup3.cpp87 HDRS88 ../dup3.h89 DEPENDS90 libc.hdr.fcntl_macros91 libc.include.unistd92 libc.include.sys_syscall93 libc.src.__support.OSUtil.osutil94 libc.src.errno.errno95)96 97add_entrypoint_object(98 faccessat99 SRCS100 faccessat.cpp101 HDRS102 ../faccessat.h103 DEPENDS104 libc.hdr.fcntl_macros105 libc.include.sys_syscall106 libc.src.__support.OSUtil.osutil107 libc.src.errno.errno108)109 110add_entrypoint_object(111 fchdir112 SRCS113 fchdir.cpp114 HDRS115 ../fchdir.h116 DEPENDS117 libc.include.unistd118 libc.include.sys_syscall119 libc.src.__support.OSUtil.osutil120 libc.src.errno.errno121)122 123add_entrypoint_object(124 fchown125 SRCS126 fchown.cpp127 HDRS128 ../fchown.h129 DEPENDS130 libc.hdr.types.uid_t131 libc.hdr.types.gid_t132 libc.include.sys_syscall133 libc.src.__support.OSUtil.osutil134 libc.src.errno.errno135)136 137add_entrypoint_object(138 fork139 SRCS140 fork.cpp141 HDRS142 ../fork.h143 DEPENDS144 libc.hdr.types.pid_t145 libc.hdr.fcntl_macros146 libc.include.unistd147 libc.include.sys_syscall148 libc.src.__support.threads.fork_callbacks149 libc.src.__support.OSUtil.osutil150 libc.src.__support.threads.thread151 libc.src.errno.errno152 libc.src.__support.threads.identifier153)154 155add_entrypoint_object(156 fpathconf157 SRCS158 fpathconf.cpp159 HDRS160 ../fpathconf.h161 DEPENDS162 libc.include.unistd163 libc.include.sys_syscall164 libc.src.__support.OSUtil.osutil165 libc.src.errno.errno166 libc.src.unistd.linux.pathconf_utils167)168 169add_entrypoint_object(170 execv171 SRCS172 execv.cpp173 HDRS174 ../execv.h175 DEPENDS176 libc.include.sys_syscall177 libc.src.__support.OSUtil.osutil178 libc.src.errno.errno179 libc.src.unistd.environ180)181 182add_entrypoint_object(183 execve184 SRCS185 execve.cpp186 HDRS187 ../execve.h188 DEPENDS189 libc.include.sys_syscall190 libc.src.__support.OSUtil.osutil191 libc.src.errno.errno192)193 194add_entrypoint_object(195 fsync196 SRCS197 fsync.cpp198 HDRS199 ../fsync.h200 DEPENDS201 libc.include.unistd202 libc.include.sys_syscall203 libc.src.__support.OSUtil.osutil204 libc.src.errno.errno205)206 207add_entrypoint_object(208 ftruncate209 SRCS210 ftruncate.cpp211 HDRS212 ../ftruncate.h213 DEPENDS214 libc.hdr.types.off_t215 libc.hdr.fcntl_macros216 libc.hdr.stdint_proxy217 libc.include.unistd218 libc.include.sys_syscall219 libc.src.__support.OSUtil.osutil220 libc.src.errno.errno221)222 223add_entrypoint_object(224 getcwd225 SRCS226 getcwd.cpp227 HDRS228 ../getcwd.h229 DEPENDS230 libc.hdr.types.size_t231 libc.hdr.fcntl_macros232 libc.include.unistd233 libc.include.sys_syscall234 libc.src.__support.OSUtil.osutil235 libc.src.errno.errno236)237 238add_entrypoint_object(239 gethostname240 SRCS241 gethostname.cpp242 HDRS243 ../gethostname.h244 DEPENDS245 libc.hdr.types.size_t246 libc.include.sys_syscall247 libc.include.sys_utsname248 libc.src.__support.OSUtil.osutil249 libc.src.errno.errno250)251 252add_entrypoint_object(253 geteuid254 SRCS255 geteuid.cpp256 HDRS257 ../geteuid.h258 DEPENDS259 libc.hdr.types.uid_t260 libc.hdr.fcntl_macros261 libc.include.unistd262 libc.include.sys_syscall263 libc.src.__support.OSUtil.osutil264)265 266add_entrypoint_object(267 getpid268 SRCS269 getpid.cpp270 HDRS271 ../getpid.h272 DEPENDS273 libc.hdr.types.pid_t274 libc.hdr.fcntl_macros275 libc.include.unistd276 libc.include.sys_syscall277 libc.src.__support.OSUtil.osutil278)279 280add_entrypoint_object(281 getppid282 SRCS283 getppid.cpp284 HDRS285 ../getppid.h286 DEPENDS287 libc.hdr.types.pid_t288 libc.hdr.fcntl_macros289 libc.include.unistd290 libc.include.sys_syscall291 libc.src.__support.OSUtil.osutil292)293 294add_entrypoint_object(295 getsid296 SRCS297 getsid.cpp298 HDRS299 ../getsid.h300 DEPENDS301 libc.hdr.types.pid_t302 libc.include.sys_syscall303 libc.src.__support.OSUtil.osutil304 libc.src.errno.errno305)306 307add_entrypoint_object(308 getgid309 SRCS310 getgid.cpp311 HDRS312 ../getgid.h313 DEPENDS314 libc.hdr.types.gid_t315 libc.hdr.fcntl_macros316 libc.include.unistd317 libc.include.sys_syscall318 libc.src.__support.OSUtil.osutil319)320 321add_entrypoint_object(322 getuid323 SRCS324 getuid.cpp325 HDRS326 ../getuid.h327 DEPENDS328 libc.hdr.types.uid_t329 libc.hdr.fcntl_macros330 libc.include.unistd331 libc.include.sys_syscall332 libc.src.__support.OSUtil.osutil333)334 335add_entrypoint_object(336 isatty337 SRCS338 isatty.cpp339 HDRS340 ../isatty.h341 DEPENDS342 libc.hdr.fcntl_macros343 libc.include.unistd344 libc.include.sys_ioctl345 libc.include.sys_syscall346 libc.src.__support.OSUtil.osutil347 libc.src.errno.errno348)349 350add_entrypoint_object(351 link352 SRCS353 link.cpp354 HDRS355 ../link.h356 DEPENDS357 libc.hdr.fcntl_macros358 libc.include.unistd359 libc.include.sys_syscall360 libc.src.__support.OSUtil.osutil361 libc.src.errno.errno362)363 364add_entrypoint_object(365 linkat366 SRCS367 linkat.cpp368 HDRS369 ../linkat.h370 DEPENDS371 libc.hdr.fcntl_macros372 libc.include.unistd373 libc.include.sys_syscall374 libc.src.__support.OSUtil.osutil375 libc.src.errno.errno376)377 378add_entrypoint_object(379 lseek380 SRCS381 lseek.cpp382 HDRS383 ../lseek.h384 DEPENDS385 libc.hdr.types.off_t386 libc.hdr.fcntl_macros387 libc.include.unistd388 libc.include.sys_syscall389 libc.src.__support.OSUtil.osutil390 libc.src.errno.errno391)392 393add_entrypoint_object(394 pathconf395 SRCS396 pathconf.cpp397 HDRS398 ../pathconf.h399 DEPENDS400 libc.include.unistd401 libc.include.sys_syscall402 libc.src.__support.OSUtil.osutil403 libc.src.errno.errno404 libc.src.unistd.linux.pathconf_utils405)406 407add_object_library(408 pathconf_utils409 SRCS410 pathconf_utils.cpp411 HDRS412 pathconf_utils.h413 DEPENDS414 libc.hdr.limits_macros415 libc.hdr.unistd_macros416 libc.src.__support.OSUtil.osutil417 libc.src.errno.errno418 libc.src.sys.statvfs.linux.statfs_utils419)420 421add_entrypoint_object(422 pipe423 SRCS424 pipe.cpp425 HDRS426 ../pipe.h427 DEPENDS428 libc.include.unistd429 libc.include.sys_syscall430 libc.src.__support.OSUtil.osutil431 libc.src.errno.errno432)433 434add_entrypoint_object(435 pipe2436 SRCS437 pipe2.cpp438 HDRS439 ../pipe2.h440 DEPENDS441 libc.include.unistd442 libc.include.sys_syscall443 libc.src.__support.OSUtil.osutil444 libc.src.errno.errno445)446 447add_entrypoint_object(448 pread449 SRCS450 pread.cpp451 HDRS452 ../pread.h453 DEPENDS454 libc.hdr.types.off_t455 libc.hdr.types.size_t456 libc.hdr.types.ssize_t457 libc.hdr.fcntl_macros458 libc.hdr.stdint_proxy459 libc.include.unistd460 libc.include.sys_syscall461 libc.src.__support.OSUtil.osutil462 libc.src.__support.macros.sanitizer463 libc.src.errno.errno464)465 466add_entrypoint_object(467 pwrite468 SRCS469 pwrite.cpp470 HDRS471 ../pwrite.h472 DEPENDS473 libc.hdr.types.off_t474 libc.hdr.types.size_t475 libc.hdr.types.ssize_t476 libc.hdr.fcntl_macros477 libc.hdr.stdint_proxy478 libc.include.unistd479 libc.include.sys_syscall480 libc.src.__support.OSUtil.osutil481 libc.src.errno.errno482)483 484add_entrypoint_object(485 read486 SRCS487 read.cpp488 HDRS489 ../read.h490 DEPENDS491 libc.hdr.types.size_t492 libc.hdr.types.ssize_t493 libc.hdr.fcntl_macros494 libc.include.unistd495 libc.include.sys_syscall496 libc.src.__support.OSUtil.osutil497 libc.src.__support.macros.sanitizer498 libc.src.errno.errno499)500 501add_entrypoint_object(502 rmdir503 SRCS504 rmdir.cpp505 HDRS506 ../rmdir.h507 DEPENDS508 libc.hdr.fcntl_macros509 libc.include.unistd510 libc.include.sys_syscall511 libc.src.__support.OSUtil.osutil512 libc.src.errno.errno513)514 515add_entrypoint_object(516 readlink517 SRCS518 readlink.cpp519 HDRS520 ../readlink.h521 DEPENDS522 libc.hdr.types.size_t523 libc.hdr.types.ssize_t524 libc.hdr.fcntl_macros525 libc.include.unistd526 libc.include.sys_syscall527 libc.src.__support.OSUtil.osutil528 libc.src.errno.errno529)530 531add_entrypoint_object(532 readlinkat533 SRCS534 readlinkat.cpp535 HDRS536 ../readlinkat.h537 DEPENDS538 libc.hdr.types.size_t539 libc.hdr.types.ssize_t540 libc.hdr.fcntl_macros541 libc.include.unistd542 libc.include.sys_syscall543 libc.src.__support.OSUtil.osutil544 libc.src.errno.errno545)546 547add_entrypoint_object(548 setsid549 SRCS550 setsid.cpp551 HDRS552 ../setsid.h553 DEPENDS554 libc.hdr.types.pid_t555 libc.include.sys_syscall556 libc.src.__support.OSUtil.osutil557)558 559add_entrypoint_object(560 symlink561 SRCS562 symlink.cpp563 HDRS564 ../symlink.h565 DEPENDS566 libc.hdr.fcntl_macros567 libc.include.unistd568 libc.include.sys_syscall569 libc.src.__support.OSUtil.osutil570 libc.src.errno.errno571)572 573add_entrypoint_object(574 symlinkat575 SRCS576 symlinkat.cpp577 HDRS578 ../symlinkat.h579 DEPENDS580 libc.hdr.fcntl_macros581 libc.include.unistd582 libc.include.sys_syscall583 libc.src.__support.OSUtil.osutil584 libc.src.errno.errno585)586 587add_entrypoint_object(588 __llvm_libc_syscall589 SRCS590 syscall.cpp591 HDRS592 ../syscall.h593 DEPENDS594 libc.include.unistd595 libc.src.__support.OSUtil.osutil596 libc.src.errno.errno597)598 599add_entrypoint_object(600 sysconf601 SRCS602 sysconf.cpp603 HDRS604 ../sysconf.h605 DEPENDS606 libc.include.unistd607 libc.include.sys_auxv608 libc.src.__support.libc_errno609 libc.src.__support.OSUtil.linux.auxv610)611 612add_entrypoint_object(613 truncate614 SRCS615 truncate.cpp616 HDRS617 ../truncate.h618 DEPENDS619 libc.hdr.types.off_t620 libc.hdr.fcntl_macros621 libc.hdr.stdint_proxy622 libc.include.unistd623 libc.include.sys_syscall624 libc.src.__support.OSUtil.osutil625 libc.src.errno.errno626)627 628add_entrypoint_object(629 unlink630 SRCS631 unlink.cpp632 HDRS633 ../unlink.h634 DEPENDS635 libc.hdr.fcntl_macros636 libc.include.unistd637 libc.include.sys_syscall638 libc.src.__support.OSUtil.osutil639 libc.src.errno.errno640)641 642add_entrypoint_object(643 unlinkat644 SRCS645 unlinkat.cpp646 HDRS647 ../unlinkat.h648 DEPENDS649 libc.hdr.fcntl_macros650 libc.include.unistd651 libc.include.sys_syscall652 libc.src.__support.OSUtil.osutil653 libc.src.errno.errno654)655 656add_entrypoint_object(657 write658 SRCS659 write.cpp660 HDRS661 ../write.h662 DEPENDS663 libc.hdr.types.size_t664 libc.hdr.types.ssize_t665 libc.hdr.fcntl_macros666 libc.include.unistd667 libc.include.sys_syscall668 libc.src.__support.OSUtil.osutil669 libc.src.errno.errno670)671 672add_entrypoint_object(673 getentropy674 SRCS675 getentropy.cpp676 HDRS677 ../getentropy.h678 DEPENDS679 libc.hdr.types.size_t680 libc.hdr.types.ssize_t681 libc.hdr.errno_macros682 libc.include.sys_syscall683 libc.src.__support.OSUtil.osutil684 libc.src.errno.errno685)686