Advertisement
Guest User

siginfo_t & SignalfdSiginfo comparison

a guest
Feb 18th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. /x/sys/unix SignalfdSiginfo struct vs C siginfo_t struct
  2.  
  3. GO: C:
  4. Signo si_signo /* Signal number */
  5. Errno si_errno /* An errno value */
  6. Code si_code /* Signal code */
  7. Trapno si_trapno /* Trap number that caused
  8. hardware-generated signal
  9. (unused on most architectures) */
  10. Pid si_pid /* Sending process ID */
  11. Uid si_uid /* Real user ID of sending process */
  12. Status si_status /* Exit value or signal */
  13. Utime si_utime /* User time consumed */
  14. Stime si_stime /* System time consumed */
  15. _____ si_sigval /* Signal value */ <-- needed value
  16. Int si_int /* POSIX.1B signal */
  17. Ptr si_ptr /* POSIX.1B signal */
  18. Overrun si_overrun /* Timer overrun count;
  19. POSIX.1b timers */
  20. Tid si_timerid /* Timer IDl POSIX.1b timers */
  21. Addr si_adder /* memory location that caused fault */
  22. Band si_band /* band event (was int in glibc 2.3.2 and earlier | now long */
  23. Fd si_fd /* file descripter */
  24. Addr_lsb si_addr_lsb /* least significant bit of adress (since Linux 2.6.32) */
  25. _____ si_lower /* lower bound when adress violation occured (since linux 3.19) */
  26. _____ si_upper /* upper bound when adress violation occured (since linux 3.19) */
  27. _____ si_pkey /* protection key on PTE that cauded fault (since Linux 4.6 */
  28. Call_addr si_call_addr /* Adress of system call instruction (since linux 3.5) */
  29. Syscall si_syscall /* number of attempted system call (since linux 3.5) */
  30. Arch si_arch /* architecture of attempted system call (since linux 3.5) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement