1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +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

@ -84,7 +84,7 @@ int sigaddset(sigset_t* set, int sig)
}
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html
int sigaltstack(const stack_t* ss, stack_t* old_ss)
int sigaltstack(stack_t const* ss, stack_t* old_ss)
{
int rc = syscall(SC_sigaltstack, ss, old_ss);
__RETURN_WITH_ERRNO(rc, rc, -1);
@ -102,7 +102,7 @@ int sigdelset(sigset_t* set, int sig)
}
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigismember.html
int sigismember(const sigset_t* set, int sig)
int sigismember(sigset_t const* set, int sig)
{
if (sig < 1 || sig > 32) {
errno = EINVAL;
@ -114,7 +114,7 @@ int sigismember(const sigset_t* set, int sig)
}
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigprocmask.html
int sigprocmask(int how, const sigset_t* set, sigset_t* old_set)
int sigprocmask(int how, sigset_t const* set, sigset_t* old_set)
{
int rc = syscall(SC_sigprocmask, how, set, old_set);
__RETURN_WITH_ERRNO(rc, rc, -1);
@ -127,7 +127,7 @@ int sigpending(sigset_t* set)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
const char* sys_siglist[NSIG] = {
char const* sys_siglist[NSIG] = {
"Invalid signal number",
"Hangup",
"Interrupt",
@ -173,7 +173,7 @@ void siglongjmp(jmp_buf env, int val)
}
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigsuspend.html
int sigsuspend(const sigset_t* set)
int sigsuspend(sigset_t const* set)
{
return pselect(0, nullptr, nullptr, nullptr, nullptr, set);
}
@ -202,7 +202,7 @@ int sigtimedwait(sigset_t const* set, siginfo_t* info, struct timespec const* ti
__RETURN_WITH_ERRNO(rc, rc, -1);
}
const char* sys_signame[] = {
char const* sys_signame[] = {
"INVAL",
"HUP",
"INT",
@ -237,9 +237,9 @@ const char* sys_signame[] = {
"SYS",
};
static_assert(sizeof(sys_signame) == sizeof(const char*) * NSIG);
static_assert(sizeof(sys_signame) == sizeof(char const*) * NSIG);
int getsignalbyname(const char* name)
int getsignalbyname(char const* name)
{
VERIFY(name);
StringView name_sv(name);
@ -252,7 +252,7 @@ int getsignalbyname(const char* name)
return -1;
}
const char* getsignalname(int signal)
char const* getsignalname(int signal)
{
if (signal < 0 || signal >= NSIG) {
errno = EINVAL;