github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/defs_openbsd_amd64.h (about)

     1  // Created by cgo -cdefs - DO NOT EDIT
     2  // cgo -cdefs defs_openbsd.go
     3  
     4  
     5  enum {
     6  	EINTR	= 0x4,
     7  	EFAULT	= 0xe,
     8  
     9  	PROT_NONE	= 0x0,
    10  	PROT_READ	= 0x1,
    11  	PROT_WRITE	= 0x2,
    12  	PROT_EXEC	= 0x4,
    13  
    14  	MAP_ANON	= 0x1000,
    15  	MAP_PRIVATE	= 0x2,
    16  	MAP_FIXED	= 0x10,
    17  
    18  	MADV_FREE	= 0x6,
    19  
    20  	SA_SIGINFO	= 0x40,
    21  	SA_RESTART	= 0x2,
    22  	SA_ONSTACK	= 0x1,
    23  
    24  	SIGHUP		= 0x1,
    25  	SIGINT		= 0x2,
    26  	SIGQUIT		= 0x3,
    27  	SIGILL		= 0x4,
    28  	SIGTRAP		= 0x5,
    29  	SIGABRT		= 0x6,
    30  	SIGEMT		= 0x7,
    31  	SIGFPE		= 0x8,
    32  	SIGKILL		= 0x9,
    33  	SIGBUS		= 0xa,
    34  	SIGSEGV		= 0xb,
    35  	SIGSYS		= 0xc,
    36  	SIGPIPE		= 0xd,
    37  	SIGALRM		= 0xe,
    38  	SIGTERM		= 0xf,
    39  	SIGURG		= 0x10,
    40  	SIGSTOP		= 0x11,
    41  	SIGTSTP		= 0x12,
    42  	SIGCONT		= 0x13,
    43  	SIGCHLD		= 0x14,
    44  	SIGTTIN		= 0x15,
    45  	SIGTTOU		= 0x16,
    46  	SIGIO		= 0x17,
    47  	SIGXCPU		= 0x18,
    48  	SIGXFSZ		= 0x19,
    49  	SIGVTALRM	= 0x1a,
    50  	SIGPROF		= 0x1b,
    51  	SIGWINCH	= 0x1c,
    52  	SIGINFO		= 0x1d,
    53  	SIGUSR1		= 0x1e,
    54  	SIGUSR2		= 0x1f,
    55  
    56  	FPE_INTDIV	= 0x1,
    57  	FPE_INTOVF	= 0x2,
    58  	FPE_FLTDIV	= 0x3,
    59  	FPE_FLTOVF	= 0x4,
    60  	FPE_FLTUND	= 0x5,
    61  	FPE_FLTRES	= 0x6,
    62  	FPE_FLTINV	= 0x7,
    63  	FPE_FLTSUB	= 0x8,
    64  
    65  	BUS_ADRALN	= 0x1,
    66  	BUS_ADRERR	= 0x2,
    67  	BUS_OBJERR	= 0x3,
    68  
    69  	SEGV_MAPERR	= 0x1,
    70  	SEGV_ACCERR	= 0x2,
    71  
    72  	ITIMER_REAL	= 0x0,
    73  	ITIMER_VIRTUAL	= 0x1,
    74  	ITIMER_PROF	= 0x2,
    75  
    76  	EV_ADD		= 0x1,
    77  	EV_DELETE	= 0x2,
    78  	EV_CLEAR	= 0x20,
    79  	EV_ERROR	= 0x4000,
    80  	EVFILT_READ	= -0x1,
    81  	EVFILT_WRITE	= -0x2,
    82  };
    83  
    84  typedef struct TforkT TforkT;
    85  typedef struct SigaltstackT SigaltstackT;
    86  typedef struct Sigcontext Sigcontext;
    87  typedef struct Siginfo Siginfo;
    88  typedef struct StackT StackT;
    89  typedef struct Timespec Timespec;
    90  typedef struct Timeval Timeval;
    91  typedef struct Itimerval Itimerval;
    92  typedef struct KeventT KeventT;
    93  
    94  #pragma pack on
    95  
    96  struct TforkT {
    97  	byte	*tf_tcb;
    98  	int32	*tf_tid;
    99  	byte	*tf_stack;
   100  };
   101  
   102  struct SigaltstackT {
   103  	byte	*ss_sp;
   104  	uint64	ss_size;
   105  	int32	ss_flags;
   106  	byte	Pad_cgo_0[4];
   107  };
   108  struct Sigcontext {
   109  	int64	sc_rdi;
   110  	int64	sc_rsi;
   111  	int64	sc_rdx;
   112  	int64	sc_rcx;
   113  	int64	sc_r8;
   114  	int64	sc_r9;
   115  	int64	sc_r10;
   116  	int64	sc_r11;
   117  	int64	sc_r12;
   118  	int64	sc_r13;
   119  	int64	sc_r14;
   120  	int64	sc_r15;
   121  	int64	sc_rbp;
   122  	int64	sc_rbx;
   123  	int64	sc_rax;
   124  	int64	sc_gs;
   125  	int64	sc_fs;
   126  	int64	sc_es;
   127  	int64	sc_ds;
   128  	int64	sc_trapno;
   129  	int64	sc_err;
   130  	int64	sc_rip;
   131  	int64	sc_cs;
   132  	int64	sc_rflags;
   133  	int64	sc_rsp;
   134  	int64	sc_ss;
   135  	void	*sc_fpstate;
   136  	int32	__sc_unused;
   137  	int32	sc_mask;
   138  };
   139  struct Siginfo {
   140  	int32	si_signo;
   141  	int32	si_code;
   142  	int32	si_errno;
   143  	byte	Pad_cgo_0[4];
   144  	byte	_data[120];
   145  };
   146  typedef	uint32	Sigset;
   147  typedef	byte	Sigval[8];
   148  
   149  struct StackT {
   150  	byte	*ss_sp;
   151  	uint64	ss_size;
   152  	int32	ss_flags;
   153  	byte	Pad_cgo_0[4];
   154  };
   155  
   156  struct Timespec {
   157  	int64	tv_sec;
   158  	int64	tv_nsec;
   159  };
   160  struct Timeval {
   161  	int64	tv_sec;
   162  	int64	tv_usec;
   163  };
   164  struct Itimerval {
   165  	Timeval	it_interval;
   166  	Timeval	it_value;
   167  };
   168  
   169  struct KeventT {
   170  	uint64	ident;
   171  	int16	filter;
   172  	uint16	flags;
   173  	uint32	fflags;
   174  	int64	data;
   175  	byte	*udata;
   176  };
   177  
   178  
   179  #pragma pack off