[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / signal / linux / sigemptyset.cpp
blob6f4c731b0831acfea6930cc88576d543ffe0956a
1 //===-- Linux implementation of sigemptyset -------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "src/signal/sigemptyset.h"
10 #include "src/errno/libc_errno.h"
11 #include "src/signal/linux/signal_utils.h"
13 #include "src/__support/common.h"
15 #include <signal.h>
17 namespace __llvm_libc {
19 LLVM_LIBC_FUNCTION(int, sigemptyset, (sigset_t * set)) {
20 if (!set) {
21 libc_errno = EINVAL;
22 return -1;
24 *set = empty_set();
25 return 0;
28 } // namespace __llvm_libc