llvm/libc/src/stdio/linux/CMakeLists.txt

add_entrypoint_object(
  remove
  SRCS
    remove.cpp
  HDRS
    ../remove.h
  DEPENDS
    libc.include.fcntl
    libc.include.stdio
    libc.include.unistd
    libc.include.sys_syscall
    libc.src.__support.OSUtil.osutil
    libc.src.errno.errno
)

add_entrypoint_object(
  rename
  SRCS
    rename.cpp
  HDRS
    ../rename.h
  DEPENDS
    libc.include.sys_syscall
    libc.src.__support.OSUtil.osutil
    libc.src.errno.errno
)

add_entrypoint_object(
  fdopen
  SRCS
    fdopen.cpp
  HDRS
    ../fdopen.h
  DEPENDS
    libc.include.stdio
    libc.src.__support.File.file
    libc.src.__support.File.platform_file
)