File tree Expand file tree Collapse file tree 6 files changed +20
-25
lines changed Expand file tree Collapse file tree 6 files changed +20
-25
lines changed Original file line number Diff line number Diff line change @@ -275,9 +275,9 @@ add_header_macro(
275275 signal.h
276276 DEPENDS
277277 .llvm-libc-macros .signal_macros
278- .llvm-libc-types.__sighandler_t
279278 .llvm-libc-types.pid_t
280279 .llvm-libc-types.sig_atomic_t
280+ .llvm-libc-types.sighandler_t
281281 .llvm-libc-types.siginfo_t
282282 .llvm-libc-types.sigset_t
283283 .llvm-libc-types.stack_t
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ add_header(__pthread_start_t HDR __pthread_start_t.h)
1515add_header(__pthread_tss_dtor_t HDR __pthread_tss_dtor_t.h)
1616add_header(__qsortcompare_t HDR __qsortcompare_t.h)
1717add_header(__qsortrcompare_t HDR __qsortrcompare_t.h)
18- add_header(__sighandler_t HDR __sighandler_t.h)
1918add_header(__thread_type HDR __thread_type.h)
2019add_header(blkcnt_t HDR blkcnt_t.h)
2120add_header(blksize_t HDR blksize_t.h)
@@ -65,6 +64,7 @@ if(LIBC_TYPES_TIME_T_IS_32_BIT)
6564else ()
6665 add_header(time_t HDR time_t_64.h DEST_HDR time_t.h)
6766endif ()
67+ add_header(sighandler_t HDR sighandler_t.h)
6868add_header(stack_t HDR stack_t.h DEPENDS .size_t)
6969add_header(suseconds_t HDR suseconds_t.h)
7070add_header(struct_flock HDR struct_flock.h DEPENDS .off_t .pid_t)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ //===-- Definition of sighandler_t ----------------------------------------===//
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+
9+ #ifndef LLVM_LIBC_TYPES_SIGHANDLER_T_H
10+ #define LLVM_LIBC_TYPES_SIGHANDLER_T_H
11+
12+ #ifdef __linux__
13+ // For compatibility with glibc.
14+ typedef void (* sighandler_t )(int );
15+ #endif
16+
17+ #endif // LLVM_LIBC_TYPES_SIGHANDLER_T_H
Original file line number Diff line number Diff line change 1616
1717#include "llvm-libc-macros/signal-macros.h"
1818
19- #ifdef __linux__
20- #include "llvm-libc-types/__sighandler_t.h"
21- #endif
22-
2319%%public_api()
2420
2521#endif // LLVM_LIBC_SIGNAL_H
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ macros: []
44types :
55 - type_name : pid_t
66 - type_name : sig_atomic_t
7+ - type_name : sighandler_t
78 - type_name : siginfo_t
89 - type_name : sigset_t
910 - type_name : stack_t
You can’t perform that action at this time.
0 commit comments