File tree Expand file tree Collapse file tree 8 files changed +41
-15
lines changed Expand file tree Collapse file tree 8 files changed +41
-15
lines changed Original file line number Diff line number Diff line change @@ -126,3 +126,12 @@ add_proxy_header_library(
126
126
libc.include.llvm-libc-types.atexithandler_t
127
127
libc.include.stdlib
128
128
)
129
+
130
+ add_proxy_header_library (
131
+ struct_sigaction
132
+ HDRS
133
+ struct_sigaction.h
134
+ FULL_BUILD_DEPENDS
135
+ libc.include.llvm-libc-types.struct_sigaction
136
+ libc.include.signal
137
+ )
Original file line number Diff line number Diff line change
1
+ //===-- Proxy for struct sigaction ---------------------------------------===//
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
+ //===----------------------------------------------------------------------===//
8
+ #ifndef LLVM_LIBC_HDR_TYPES_STRUCT_SIGACTION_H
9
+ #define LLVM_LIBC_HDR_TYPES_STRUCT_SIGACTION_H
10
+
11
+ #ifdef LIBC_FULL_BUILD
12
+
13
+ #include "include/llvm-libc-types/struct_sigaction.h"
14
+
15
+ #else
16
+
17
+ #include <signal.h>
18
+
19
+ #endif // LIBC_FULL_BUILD
20
+
21
+ #endif // LLVM_LIBC_HDR_TYPES_STRUCT_SIGACTION_H
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ add_entrypoint_object(
60
60
DEPENDS
61
61
.__restore
62
62
libc.hdr.types.sigset_t
63
+ libc.hdr.types.struct_sigaction
63
64
libc.include.sys_syscall
64
65
libc.src.__support.OSUtil.osutil
65
66
libc.src.errno.errno
@@ -124,7 +125,7 @@ add_entrypoint_object(
124
125
../signal.h
125
126
DEPENDS
126
127
.sigaction
127
- libc.include.signal
128
+ libc.hdr.signal_macros
128
129
)
129
130
130
131
add_entrypoint_object (
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/signal/signal.h"
10
- #include " src/signal/sigaction.h"
11
-
10
+ #include " hdr/signal_macros.h"
12
11
#include " src/__support/common.h"
13
-
14
- #include < signal.h>
12
+ #include " src/signal/sigaction.h"
15
13
16
14
namespace LIBC_NAMESPACE {
17
15
Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_SRC_SIGNAL_SIGACTION_H
10
10
#define LLVM_LIBC_SRC_SIGNAL_SIGACTION_H
11
11
12
- #include < signal.h >
12
+ #include " hdr/types/struct_sigaction.h "
13
13
14
14
namespace LIBC_NAMESPACE {
15
15
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ add_libc_unittest(
32
32
SRCS
33
33
sigaction_test.cpp
34
34
DEPENDS
35
- libc.include.errno
36
- libc.include.signal
35
+ libc.hdr.errno_macros
36
+ libc.hdr.signal_macros
37
37
libc.src.signal.raise
38
38
libc.src.signal.sigaction
39
39
libc.test.UnitTest.ErrnoSetterMatcher
@@ -119,7 +119,7 @@ add_libc_unittest(
119
119
SRCS
120
120
sigaltstack_test.cpp
121
121
DEPENDS
122
- libc.include.signal
122
+ libc.hdr.signal_macros
123
123
libc.src.errno.errno
124
124
libc.src.signal.raise
125
125
libc.src.signal.sigaltstack
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
+ #include " hdr/errno_macros.h"
10
+ #include " hdr/signal_macros.h"
9
11
#include " src/signal/raise.h"
10
12
#include " src/signal/sigaction.h"
11
-
12
13
#include " test/UnitTest/ErrnoSetterMatcher.h"
13
14
#include " test/UnitTest/Test.h"
14
15
15
- #include < errno.h>
16
- #include < signal.h>
17
-
18
16
using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Fails;
19
17
using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Succeeds;
20
18
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
+ #include " hdr/signal_macros.h"
9
10
#include " src/__support/OSUtil/syscall.h" // For internal syscall function.
10
11
#include " src/errno/libc_errno.h"
11
12
#include " src/signal/linux/signal_utils.h"
12
13
#include " src/signal/raise.h"
13
14
#include " src/signal/sigaction.h"
14
15
#include " src/signal/sigaltstack.h"
15
-
16
16
#include " test/UnitTest/ErrnoSetterMatcher.h"
17
17
#include " test/UnitTest/Test.h"
18
18
19
- #include < signal.h>
20
19
#include < stdint.h>
21
20
#include < sys/syscall.h>
22
21
You can’t perform that action at this time.
0 commit comments