fcntl.h 614 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <Kernel/API/POSIX/fcntl.h>
  9. __BEGIN_DECLS
  10. int creat(char const* path, mode_t);
  11. int open(char const* path, int options, ...);
  12. int openat(int dirfd, char const* path, int options, ...);
  13. int fcntl(int fd, int cmd, ...);
  14. int create_inode_watcher(unsigned flags);
  15. int inode_watcher_add_watch(int fd, char const* path, size_t path_length, unsigned event_mask);
  16. int inode_watcher_remove_watch(int fd, int wd);
  17. __END_DECLS