diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibC/signal.cpp | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibC/signal.cpp')
-rw-r--r-- | Userland/Libraries/LibC/signal.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Libraries/LibC/signal.cpp b/Userland/Libraries/LibC/signal.cpp index abbab504a4..37fba25965 100644 --- a/Userland/Libraries/LibC/signal.cpp +++ b/Userland/Libraries/LibC/signal.cpp @@ -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; |