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 //===----------------------------------------------------------------------===// 8 9 #ifndef __LLVM_LIBC_TYPES_SIGACTION_H__ 10 #define __LLVM_LIBC_TYPES_SIGACTION_H__ 11 12 struct __sigaction { 13 union { 14 void (*sa_handler)(int); 15 void (*sa_action)(int, siginfo_t *, void *); 16 }; 17 sigset_t sa_mask; 18 int sa_flags; 19 void (*sa_restorer)(void); 20 }; 21 22 #endif // __LLVM_LIBC_TYPES_SIGACTION_H__ 23