1// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build ignore
6
7/*
8Input to cgo.
9
10GOARCH=amd64 go tool cgo -cdefs defs_netbsd.go defs_netbsd_amd64.go >defs_netbsd_amd64.h
11GOARCH=386 go tool cgo -cdefs defs_netbsd.go defs_netbsd_386.go >defs_netbsd_386.h
12GOARCH=arm go tool cgo -cdefs defs_netbsd.go defs_netbsd_arm.go >defs_netbsd_arm.h
13*/
14
15// +godefs map __fpregset_t [644]byte
16
17package runtime
18
19/*
20#include <sys/types.h>
21#include <sys/mman.h>
22#include <sys/signal.h>
23#include <sys/event.h>
24#include <sys/time.h>
25#include <sys/ucontext.h>
26#include <sys/unistd.h>
27#include <errno.h>
28#include <signal.h>
29*/
30import "C"
31
32const (
33	EINTR  = C.EINTR
34	EFAULT = C.EFAULT
35	EAGAIN = C.EAGAIN
36	ENOSYS = C.ENOSYS
37
38	O_NONBLOCK = C.O_NONBLOCK
39	O_CLOEXEC  = C.O_CLOEXEC
40
41	PROT_NONE  = C.PROT_NONE
42	PROT_READ  = C.PROT_READ
43	PROT_WRITE = C.PROT_WRITE
44	PROT_EXEC  = C.PROT_EXEC
45
46	MAP_ANON    = C.MAP_ANON
47	MAP_PRIVATE = C.MAP_PRIVATE
48	MAP_FIXED   = C.MAP_FIXED
49
50	MADV_FREE = C.MADV_FREE
51
52	SA_SIGINFO = C.SA_SIGINFO
53	SA_RESTART = C.SA_RESTART
54	SA_ONSTACK = C.SA_ONSTACK
55
56	SIGHUP    = C.SIGHUP
57	SIGINT    = C.SIGINT
58	SIGQUIT   = C.SIGQUIT
59	SIGILL    = C.SIGILL
60	SIGTRAP   = C.SIGTRAP
61	SIGABRT   = C.SIGABRT
62	SIGEMT    = C.SIGEMT
63	SIGFPE    = C.SIGFPE
64	SIGKILL   = C.SIGKILL
65	SIGBUS    = C.SIGBUS
66	SIGSEGV   = C.SIGSEGV
67	SIGSYS    = C.SIGSYS
68	SIGPIPE   = C.SIGPIPE
69	SIGALRM   = C.SIGALRM
70	SIGTERM   = C.SIGTERM
71	SIGURG    = C.SIGURG
72	SIGSTOP   = C.SIGSTOP
73	SIGTSTP   = C.SIGTSTP
74	SIGCONT   = C.SIGCONT
75	SIGCHLD   = C.SIGCHLD
76	SIGTTIN   = C.SIGTTIN
77	SIGTTOU   = C.SIGTTOU
78	SIGIO     = C.SIGIO
79	SIGXCPU   = C.SIGXCPU
80	SIGXFSZ   = C.SIGXFSZ
81	SIGVTALRM = C.SIGVTALRM
82	SIGPROF   = C.SIGPROF
83	SIGWINCH  = C.SIGWINCH
84	SIGINFO   = C.SIGINFO
85	SIGUSR1   = C.SIGUSR1
86	SIGUSR2   = C.SIGUSR2
87
88	FPE_INTDIV = C.FPE_INTDIV
89	FPE_INTOVF = C.FPE_INTOVF
90	FPE_FLTDIV = C.FPE_FLTDIV
91	FPE_FLTOVF = C.FPE_FLTOVF
92	FPE_FLTUND = C.FPE_FLTUND
93	FPE_FLTRES = C.FPE_FLTRES
94	FPE_FLTINV = C.FPE_FLTINV
95	FPE_FLTSUB = C.FPE_FLTSUB
96
97	BUS_ADRALN = C.BUS_ADRALN
98	BUS_ADRERR = C.BUS_ADRERR
99	BUS_OBJERR = C.BUS_OBJERR
100
101	SEGV_MAPERR = C.SEGV_MAPERR
102	SEGV_ACCERR = C.SEGV_ACCERR
103
104	ITIMER_REAL    = C.ITIMER_REAL
105	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
106	ITIMER_PROF    = C.ITIMER_PROF
107
108	EV_ADD       = C.EV_ADD
109	EV_DELETE    = C.EV_DELETE
110	EV_CLEAR     = C.EV_CLEAR
111	EV_RECEIPT   = 0
112	EV_ERROR     = C.EV_ERROR
113	EV_EOF       = C.EV_EOF
114	EVFILT_READ  = C.EVFILT_READ
115	EVFILT_WRITE = C.EVFILT_WRITE
116)
117
118type Sigset C.sigset_t
119type Siginfo C.struct__ksiginfo
120
121type StackT C.stack_t
122
123type Timespec C.struct_timespec
124type Timeval C.struct_timeval
125type Itimerval C.struct_itimerval
126
127type McontextT C.mcontext_t
128type UcontextT C.ucontext_t
129
130type Kevent C.struct_kevent
131