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

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

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

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

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