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