2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
2021-05-09 17:09:30 +00:00
|
|
|
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
|
2020-01-18 09:38:21 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
2018-11-05 16:40:48 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2021-08-14 15:36:26 +02:00
|
|
|
#include <Kernel/API/POSIX/fcntl.h>
|
2018-11-05 16:40:48 +01:00
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
2019-11-16 17:08:11 +01:00
|
|
|
int creat(const char* path, mode_t);
|
|
|
|
|
int open(const char* path, int options, ...);
|
|
|
|
|
int openat(int dirfd, const char* path, int options, ...);
|
|
|
|
|
|
2018-11-11 10:38:33 +01:00
|
|
|
int fcntl(int fd, int cmd, ...);
|
2021-05-09 17:09:30 +00:00
|
|
|
int create_inode_watcher(unsigned flags);
|
|
|
|
|
int inode_watcher_add_watch(int fd, const char* path, size_t path_length, unsigned event_mask);
|
|
|
|
|
int inode_watcher_remove_watch(int fd, int wd);
|
2018-11-11 10:38:33 +01:00
|
|
|
|
2018-11-05 16:40:48 +01:00
|
|
|
__END_DECLS
|