mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Initial import
This commit is contained in:
commit
c91b3c5006
14915 changed files with 590219 additions and 0 deletions
57
libc/calls/struct/siginfo.h
Normal file
57
libc/calls/struct/siginfo.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_H_
|
||||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_H_
|
||||
#include "libc/calls/struct/sigval.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct siginfo {
|
||||
int32_t si_signo;
|
||||
int32_t si_errno;
|
||||
int32_t si_code;
|
||||
union {
|
||||
struct {
|
||||
union {
|
||||
struct {
|
||||
int32_t si_pid;
|
||||
uint32_t si_uid;
|
||||
};
|
||||
struct {
|
||||
int32_t si_timerid;
|
||||
int32_t si_overrun;
|
||||
};
|
||||
};
|
||||
union {
|
||||
union sigval si_value;
|
||||
struct {
|
||||
int32_t si_status;
|
||||
int64_t si_utime, si_stime;
|
||||
};
|
||||
};
|
||||
};
|
||||
struct {
|
||||
void *si_addr;
|
||||
int16_t si_addr_lsb;
|
||||
union {
|
||||
struct {
|
||||
void *si_lower;
|
||||
void *si_upper;
|
||||
};
|
||||
uint32_t si_pkey;
|
||||
};
|
||||
};
|
||||
struct {
|
||||
int64_t si_band;
|
||||
int32_t si_fd;
|
||||
};
|
||||
struct {
|
||||
void *si_call_addr;
|
||||
int32_t si_syscall;
|
||||
uint32_t si_arch;
|
||||
};
|
||||
char __ignoreme[128 - 2 * sizeof(int32_t) - sizeof(int64_t)];
|
||||
};
|
||||
} aligned(8);
|
||||
|
||||
typedef struct siginfo siginfo_t;
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGINFO_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue