diff options
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/fcntl.cpp | 7 | ||||
-rw-r--r-- | Libraries/LibC/fcntl.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Libraries/LibC/fcntl.cpp b/Libraries/LibC/fcntl.cpp index 582c339710..4ee34c6dac 100644 --- a/Libraries/LibC/fcntl.cpp +++ b/Libraries/LibC/fcntl.cpp @@ -14,4 +14,11 @@ int fcntl(int fd, int cmd, ...) int rc = syscall(SC_fcntl, fd, cmd, extra_arg); __RETURN_WITH_ERRNO(rc, rc, -1); } + +int watch_file(const char* path, int path_length) +{ + int rc = syscall(SC_watch_file, path, path_length); + __RETURN_WITH_ERRNO(rc, rc, -1); +} + } diff --git a/Libraries/LibC/fcntl.h b/Libraries/LibC/fcntl.h index 78aac1abdf..7c886f9f7e 100644 --- a/Libraries/LibC/fcntl.h +++ b/Libraries/LibC/fcntl.h @@ -54,6 +54,7 @@ __BEGIN_DECLS #define S_IRWXO (S_IRWXG >> 3) int fcntl(int fd, int cmd, ...); +int watch_file(const char* path, int path_length); #define F_RDLCK 0 #define F_WRLCK 1 |