summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/fcntl.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-01 20:58:27 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 21:24:45 +0100
commit086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch)
tree02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibC/fcntl.cpp
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibC/fcntl.cpp')
-rw-r--r--Userland/Libraries/LibC/fcntl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibC/fcntl.cpp b/Userland/Libraries/LibC/fcntl.cpp
index 47805d0a44..5c1ed89ded 100644
--- a/Userland/Libraries/LibC/fcntl.cpp
+++ b/Userland/Libraries/LibC/fcntl.cpp
@@ -30,7 +30,7 @@ int create_inode_watcher(unsigned flags)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
-int inode_watcher_add_watch(int fd, const char* path, size_t path_length, unsigned event_mask)
+int inode_watcher_add_watch(int fd, char const* path, size_t path_length, unsigned event_mask)
{
Syscall::SC_inode_watcher_add_watch_params params { { path, path_length }, fd, event_mask };
int rc = syscall(SC_inode_watcher_add_watch, &params);
@@ -43,12 +43,12 @@ int inode_watcher_remove_watch(int fd, int wd)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
-int creat(const char* path, mode_t mode)
+int creat(char const* path, mode_t mode)
{
return open(path, O_CREAT | O_WRONLY | O_TRUNC, mode);
}
-int open(const char* path, int options, ...)
+int open(char const* path, int options, ...)
{
if (!path) {
errno = EFAULT;
@@ -68,7 +68,7 @@ int open(const char* path, int options, ...)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
-int openat(int dirfd, const char* path, int options, ...)
+int openat(int dirfd, char const* path, int options, ...)
{
if (!path) {
errno = EFAULT;