1 //===-- Signalfd.h ----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines signalfd functions & structures
12 #ifndef liblldb_Host_linux_Signalfd_h_
13 #define liblldb_Host_linux_Signalfd_h_
15 #ifdef __ANDROID_NDK__
16 #include <android/api-level.h>
19 #if defined(__ANDROID_API__) && __ANDROID_API__ < 21
21 #include <linux/types.h>
22 #include <linux/fcntl.h>
24 #define SFD_CLOEXEC O_CLOEXEC
25 #define SFD_NONBLOCK O_NONBLOCK
27 struct signalfd_siginfo {
48 int signalfd (int fd, const sigset_t *mask, int flags);
51 #include <sys/signalfd.h>
54 #endif // liblldb_Host_linux_Signalfd_h_