signalfd.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* Copyright (C) 2007-2021 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, see
  13. <https://www.gnu.org/licenses/>. */
  14. #ifndef _SYS_SIGNALFD_H
  15. #define _SYS_SIGNALFD_H 1
  16. #include <stdint.h>
  17. #include <bits/types/sigset_t.h>
  18. /* Get the platform-dependent flags. */
  19. #include <bits/signalfd.h>
  20. struct signalfd_siginfo
  21. {
  22. uint32_t ssi_signo;
  23. int32_t ssi_errno;
  24. int32_t ssi_code;
  25. uint32_t ssi_pid;
  26. uint32_t ssi_uid;
  27. int32_t ssi_fd;
  28. uint32_t ssi_tid;
  29. uint32_t ssi_band;
  30. uint32_t ssi_overrun;
  31. uint32_t ssi_trapno;
  32. int32_t ssi_status;
  33. int32_t ssi_int;
  34. uint64_t ssi_ptr;
  35. uint64_t ssi_utime;
  36. uint64_t ssi_stime;
  37. uint64_t ssi_addr;
  38. uint16_t ssi_addr_lsb;
  39. uint16_t __pad2;
  40. int32_t ssi_syscall;
  41. uint64_t ssi_call_addr;
  42. uint32_t ssi_arch;
  43. uint8_t __pad[28];
  44. };
  45. __BEGIN_DECLS
  46. /* Request notification for delivery of signals in MASK to be
  47. performed using descriptor FD.*/
  48. extern int signalfd (int __fd, const sigset_t *__mask, int __flags)
  49. __THROW __nonnull ((2));
  50. __END_DECLS
  51. #endif /* sys/signalfd.h */