"Fossies" - the Fresh Open Source Software Archive

Member "usr/include/sys/signalfd.h" (19 Aug 2019, 1007 Bytes) of package /windows/misc/cygwin-20190819-x86.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* sys/signalfd.h: define signalfd(2) and struct signalfd_siginfo
    2 
    3 This file is part of Cygwin.
    4 
    5 This software is a copyrighted work licensed under the terms of the
    6 Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
    7 details. */
    8 
    9 #ifndef _SYS_SIGNALFD_H
   10 #define _SYS_SIGNALFD_H
   11 
   12 #include <stdint.h>
   13 #include <sys/_default_fcntl.h>
   14 
   15 enum
   16 {
   17   SFD_CLOEXEC = O_CLOEXEC,
   18   SFD_NONBLOCK = O_NONBLOCK
   19 };
   20 #define SFD_CLOEXEC SFD_CLOEXEC
   21 #define SFD_NONBLOCK SFD_NONBLOCK
   22 
   23 struct signalfd_siginfo
   24 {
   25   uint32_t  ssi_signo;
   26   int32_t   ssi_errno;
   27   int32_t   ssi_code;
   28   uint32_t  ssi_pid;
   29   uint32_t  ssi_uid;
   30   int32_t   ssi_fd;
   31   uint32_t  ssi_tid;
   32   uint32_t  ssi_band;
   33   uint32_t  ssi_overrun;
   34   uint32_t  ssi_trapno;
   35   int32_t   ssi_status;
   36   int32_t   ssi_int;
   37   uint64_t  ssi_ptr;
   38   uint64_t  ssi_utime;
   39   uint64_t  ssi_stime;
   40   uint64_t  ssi_addr;
   41   uint8_t   pad[48];
   42 };
   43 
   44 #ifdef __cplusplus
   45 extern "C" {
   46 #endif
   47 
   48 extern int signalfd (int, const sigset_t *, int);
   49 
   50 #ifdef __cplusplus
   51 }
   52 #endif
   53 
   54 #endif /* _SYS_SIGNALFD_H */