[flang] Use object before converts in fir.dispatch (#68589)
[llvm-project.git] / libc / include / llvm-libc-types / struct_sigaction.h
blob3940f14ffa842474c9b212a80c2261e119aedc8e
1 //===-- Definition of 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 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_TYPES_SIGACTION_H__
10 #define __LLVM_LIBC_TYPES_SIGACTION_H__
12 #include <llvm-libc-types/siginfo_t.h>
13 #include <llvm-libc-types/sigset_t.h>
15 struct sigaction {
16 union {
17 void (*sa_handler)(int);
18 void (*sa_sigaction)(int, siginfo_t *, void *);
20 sigset_t sa_mask;
21 int sa_flags;
22 #ifdef __linux__
23 // This field is present on linux for most targets.
24 void (*sa_restorer)(void);
25 #endif
28 typedef void (*__sighandler_t)(int);
30 #endif // __LLVM_LIBC_TYPES_SIGACTION_H__