1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -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;