diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go | 1189 |
1 files changed, 970 insertions, 219 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go index de99270..c142e33 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go | |||
@@ -1,7 +1,7 @@ | |||
1 | // mksyscall.pl -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go | 1 | // go run mksyscall.go -tags darwin,amd64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go |
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
3 | 3 | ||
4 | // +build darwin,amd64 | 4 | // +build darwin,amd64,go1.12 |
5 | 5 | ||
6 | package unix | 6 | package unix |
7 | 7 | ||
@@ -15,7 +15,7 @@ var _ syscall.Errno | |||
15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 15 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
16 | 16 | ||
17 | func getgroups(ngid int, gid *_Gid_t) (n int, err error) { | 17 | func getgroups(ngid int, gid *_Gid_t) (n int, err error) { |
18 | r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) | 18 | r0, _, e1 := syscall_rawSyscall(funcPC(libc_getgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) |
19 | n = int(r0) | 19 | n = int(r0) |
20 | if e1 != 0 { | 20 | if e1 != 0 { |
21 | err = errnoErr(e1) | 21 | err = errnoErr(e1) |
@@ -23,20 +23,30 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) { | |||
23 | return | 23 | return |
24 | } | 24 | } |
25 | 25 | ||
26 | func libc_getgroups_trampoline() | ||
27 | |||
28 | //go:linkname libc_getgroups libc_getgroups | ||
29 | //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib" | ||
30 | |||
26 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 31 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
27 | 32 | ||
28 | func setgroups(ngid int, gid *_Gid_t) (err error) { | 33 | func setgroups(ngid int, gid *_Gid_t) (err error) { |
29 | _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) | 34 | _, _, e1 := syscall_rawSyscall(funcPC(libc_setgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) |
30 | if e1 != 0 { | 35 | if e1 != 0 { |
31 | err = errnoErr(e1) | 36 | err = errnoErr(e1) |
32 | } | 37 | } |
33 | return | 38 | return |
34 | } | 39 | } |
35 | 40 | ||
41 | func libc_setgroups_trampoline() | ||
42 | |||
43 | //go:linkname libc_setgroups libc_setgroups | ||
44 | //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib" | ||
45 | |||
36 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 46 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
37 | 47 | ||
38 | func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { | 48 | func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { |
39 | r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) | 49 | r0, _, e1 := syscall_syscall6(funcPC(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) |
40 | wpid = int(r0) | 50 | wpid = int(r0) |
41 | if e1 != 0 { | 51 | if e1 != 0 { |
42 | err = errnoErr(e1) | 52 | err = errnoErr(e1) |
@@ -44,10 +54,15 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err | |||
44 | return | 54 | return |
45 | } | 55 | } |
46 | 56 | ||
57 | func libc_wait4_trampoline() | ||
58 | |||
59 | //go:linkname libc_wait4 libc_wait4 | ||
60 | //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib" | ||
61 | |||
47 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 62 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
48 | 63 | ||
49 | func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { | 64 | func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { |
50 | r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | 65 | r0, _, e1 := syscall_syscall(funcPC(libc_accept_trampoline), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
51 | fd = int(r0) | 66 | fd = int(r0) |
52 | if e1 != 0 { | 67 | if e1 != 0 { |
53 | err = errnoErr(e1) | 68 | err = errnoErr(e1) |
@@ -55,30 +70,45 @@ func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { | |||
55 | return | 70 | return |
56 | } | 71 | } |
57 | 72 | ||
73 | func libc_accept_trampoline() | ||
74 | |||
75 | //go:linkname libc_accept libc_accept | ||
76 | //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib" | ||
77 | |||
58 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 78 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
59 | 79 | ||
60 | func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | 80 | func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { |
61 | _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) | 81 | _, _, e1 := syscall_syscall(funcPC(libc_bind_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen)) |
62 | if e1 != 0 { | 82 | if e1 != 0 { |
63 | err = errnoErr(e1) | 83 | err = errnoErr(e1) |
64 | } | 84 | } |
65 | return | 85 | return |
66 | } | 86 | } |
67 | 87 | ||
88 | func libc_bind_trampoline() | ||
89 | |||
90 | //go:linkname libc_bind libc_bind | ||
91 | //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib" | ||
92 | |||
68 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 93 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
69 | 94 | ||
70 | func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | 95 | func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { |
71 | _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) | 96 | _, _, e1 := syscall_syscall(funcPC(libc_connect_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen)) |
72 | if e1 != 0 { | 97 | if e1 != 0 { |
73 | err = errnoErr(e1) | 98 | err = errnoErr(e1) |
74 | } | 99 | } |
75 | return | 100 | return |
76 | } | 101 | } |
77 | 102 | ||
103 | func libc_connect_trampoline() | ||
104 | |||
105 | //go:linkname libc_connect libc_connect | ||
106 | //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib" | ||
107 | |||
78 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 108 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
79 | 109 | ||
80 | func socket(domain int, typ int, proto int) (fd int, err error) { | 110 | func socket(domain int, typ int, proto int) (fd int, err error) { |
81 | r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) | 111 | r0, _, e1 := syscall_rawSyscall(funcPC(libc_socket_trampoline), uintptr(domain), uintptr(typ), uintptr(proto)) |
82 | fd = int(r0) | 112 | fd = int(r0) |
83 | if e1 != 0 { | 113 | if e1 != 0 { |
84 | err = errnoErr(e1) | 114 | err = errnoErr(e1) |
@@ -86,66 +116,101 @@ func socket(domain int, typ int, proto int) (fd int, err error) { | |||
86 | return | 116 | return |
87 | } | 117 | } |
88 | 118 | ||
119 | func libc_socket_trampoline() | ||
120 | |||
121 | //go:linkname libc_socket libc_socket | ||
122 | //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib" | ||
123 | |||
89 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 124 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
90 | 125 | ||
91 | func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { | 126 | func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { |
92 | _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) | 127 | _, _, e1 := syscall_syscall6(funcPC(libc_getsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) |
93 | if e1 != 0 { | 128 | if e1 != 0 { |
94 | err = errnoErr(e1) | 129 | err = errnoErr(e1) |
95 | } | 130 | } |
96 | return | 131 | return |
97 | } | 132 | } |
98 | 133 | ||
134 | func libc_getsockopt_trampoline() | ||
135 | |||
136 | //go:linkname libc_getsockopt libc_getsockopt | ||
137 | //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib" | ||
138 | |||
99 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 139 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
100 | 140 | ||
101 | func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { | 141 | func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { |
102 | _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) | 142 | _, _, e1 := syscall_syscall6(funcPC(libc_setsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) |
103 | if e1 != 0 { | 143 | if e1 != 0 { |
104 | err = errnoErr(e1) | 144 | err = errnoErr(e1) |
105 | } | 145 | } |
106 | return | 146 | return |
107 | } | 147 | } |
108 | 148 | ||
149 | func libc_setsockopt_trampoline() | ||
150 | |||
151 | //go:linkname libc_setsockopt libc_setsockopt | ||
152 | //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib" | ||
153 | |||
109 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 154 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
110 | 155 | ||
111 | func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | 156 | func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { |
112 | _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | 157 | _, _, e1 := syscall_rawSyscall(funcPC(libc_getpeername_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
113 | if e1 != 0 { | 158 | if e1 != 0 { |
114 | err = errnoErr(e1) | 159 | err = errnoErr(e1) |
115 | } | 160 | } |
116 | return | 161 | return |
117 | } | 162 | } |
118 | 163 | ||
164 | func libc_getpeername_trampoline() | ||
165 | |||
166 | //go:linkname libc_getpeername libc_getpeername | ||
167 | //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib" | ||
168 | |||
119 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 169 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
120 | 170 | ||
121 | func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | 171 | func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { |
122 | _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | 172 | _, _, e1 := syscall_rawSyscall(funcPC(libc_getsockname_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
123 | if e1 != 0 { | 173 | if e1 != 0 { |
124 | err = errnoErr(e1) | 174 | err = errnoErr(e1) |
125 | } | 175 | } |
126 | return | 176 | return |
127 | } | 177 | } |
128 | 178 | ||
179 | func libc_getsockname_trampoline() | ||
180 | |||
181 | //go:linkname libc_getsockname libc_getsockname | ||
182 | //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib" | ||
183 | |||
129 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 184 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
130 | 185 | ||
131 | func Shutdown(s int, how int) (err error) { | 186 | func Shutdown(s int, how int) (err error) { |
132 | _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) | 187 | _, _, e1 := syscall_syscall(funcPC(libc_shutdown_trampoline), uintptr(s), uintptr(how), 0) |
133 | if e1 != 0 { | 188 | if e1 != 0 { |
134 | err = errnoErr(e1) | 189 | err = errnoErr(e1) |
135 | } | 190 | } |
136 | return | 191 | return |
137 | } | 192 | } |
138 | 193 | ||
194 | func libc_shutdown_trampoline() | ||
195 | |||
196 | //go:linkname libc_shutdown libc_shutdown | ||
197 | //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib" | ||
198 | |||
139 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 199 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
140 | 200 | ||
141 | func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { | 201 | func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { |
142 | _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) | 202 | _, _, e1 := syscall_rawSyscall6(funcPC(libc_socketpair_trampoline), uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) |
143 | if e1 != 0 { | 203 | if e1 != 0 { |
144 | err = errnoErr(e1) | 204 | err = errnoErr(e1) |
145 | } | 205 | } |
146 | return | 206 | return |
147 | } | 207 | } |
148 | 208 | ||
209 | func libc_socketpair_trampoline() | ||
210 | |||
211 | //go:linkname libc_socketpair libc_socketpair | ||
212 | //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib" | ||
213 | |||
149 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 214 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
150 | 215 | ||
151 | func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { | 216 | func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { |
@@ -155,7 +220,7 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl | |||
155 | } else { | 220 | } else { |
156 | _p0 = unsafe.Pointer(&_zero) | 221 | _p0 = unsafe.Pointer(&_zero) |
157 | } | 222 | } |
158 | r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) | 223 | r0, _, e1 := syscall_syscall6(funcPC(libc_recvfrom_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) |
159 | n = int(r0) | 224 | n = int(r0) |
160 | if e1 != 0 { | 225 | if e1 != 0 { |
161 | err = errnoErr(e1) | 226 | err = errnoErr(e1) |
@@ -163,6 +228,11 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl | |||
163 | return | 228 | return |
164 | } | 229 | } |
165 | 230 | ||
231 | func libc_recvfrom_trampoline() | ||
232 | |||
233 | //go:linkname libc_recvfrom libc_recvfrom | ||
234 | //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib" | ||
235 | |||
166 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 236 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
167 | 237 | ||
168 | func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { | 238 | func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { |
@@ -172,17 +242,22 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) ( | |||
172 | } else { | 242 | } else { |
173 | _p0 = unsafe.Pointer(&_zero) | 243 | _p0 = unsafe.Pointer(&_zero) |
174 | } | 244 | } |
175 | _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) | 245 | _, _, e1 := syscall_syscall6(funcPC(libc_sendto_trampoline), uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) |
176 | if e1 != 0 { | 246 | if e1 != 0 { |
177 | err = errnoErr(e1) | 247 | err = errnoErr(e1) |
178 | } | 248 | } |
179 | return | 249 | return |
180 | } | 250 | } |
181 | 251 | ||
252 | func libc_sendto_trampoline() | ||
253 | |||
254 | //go:linkname libc_sendto libc_sendto | ||
255 | //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib" | ||
256 | |||
182 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 257 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
183 | 258 | ||
184 | func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { | 259 | func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { |
185 | r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | 260 | r0, _, e1 := syscall_syscall(funcPC(libc_recvmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) |
186 | n = int(r0) | 261 | n = int(r0) |
187 | if e1 != 0 { | 262 | if e1 != 0 { |
188 | err = errnoErr(e1) | 263 | err = errnoErr(e1) |
@@ -190,10 +265,15 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { | |||
190 | return | 265 | return |
191 | } | 266 | } |
192 | 267 | ||
268 | func libc_recvmsg_trampoline() | ||
269 | |||
270 | //go:linkname libc_recvmsg libc_recvmsg | ||
271 | //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib" | ||
272 | |||
193 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 273 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
194 | 274 | ||
195 | func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { | 275 | func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { |
196 | r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | 276 | r0, _, e1 := syscall_syscall(funcPC(libc_sendmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) |
197 | n = int(r0) | 277 | n = int(r0) |
198 | if e1 != 0 { | 278 | if e1 != 0 { |
199 | err = errnoErr(e1) | 279 | err = errnoErr(e1) |
@@ -201,10 +281,15 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { | |||
201 | return | 281 | return |
202 | } | 282 | } |
203 | 283 | ||
284 | func libc_sendmsg_trampoline() | ||
285 | |||
286 | //go:linkname libc_sendmsg libc_sendmsg | ||
287 | //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib" | ||
288 | |||
204 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 289 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
205 | 290 | ||
206 | func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { | 291 | func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { |
207 | r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) | 292 | r0, _, e1 := syscall_syscall6(funcPC(libc_kevent_trampoline), uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) |
208 | n = int(r0) | 293 | n = int(r0) |
209 | if e1 != 0 { | 294 | if e1 != 0 { |
210 | err = errnoErr(e1) | 295 | err = errnoErr(e1) |
@@ -212,6 +297,11 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne | |||
212 | return | 297 | return |
213 | } | 298 | } |
214 | 299 | ||
300 | func libc_kevent_trampoline() | ||
301 | |||
302 | //go:linkname libc_kevent libc_kevent | ||
303 | //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib" | ||
304 | |||
215 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 305 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
216 | 306 | ||
217 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { | 307 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { |
@@ -221,13 +311,18 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) | |||
221 | } else { | 311 | } else { |
222 | _p0 = unsafe.Pointer(&_zero) | 312 | _p0 = unsafe.Pointer(&_zero) |
223 | } | 313 | } |
224 | _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) | 314 | _, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) |
225 | if e1 != 0 { | 315 | if e1 != 0 { |
226 | err = errnoErr(e1) | 316 | err = errnoErr(e1) |
227 | } | 317 | } |
228 | return | 318 | return |
229 | } | 319 | } |
230 | 320 | ||
321 | func libc___sysctl_trampoline() | ||
322 | |||
323 | //go:linkname libc___sysctl libc___sysctl | ||
324 | //go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib" | ||
325 | |||
231 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 326 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
232 | 327 | ||
233 | func utimes(path string, timeval *[2]Timeval) (err error) { | 328 | func utimes(path string, timeval *[2]Timeval) (err error) { |
@@ -236,27 +331,37 @@ func utimes(path string, timeval *[2]Timeval) (err error) { | |||
236 | if err != nil { | 331 | if err != nil { |
237 | return | 332 | return |
238 | } | 333 | } |
239 | _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) | 334 | _, _, e1 := syscall_syscall(funcPC(libc_utimes_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) |
240 | if e1 != 0 { | 335 | if e1 != 0 { |
241 | err = errnoErr(e1) | 336 | err = errnoErr(e1) |
242 | } | 337 | } |
243 | return | 338 | return |
244 | } | 339 | } |
245 | 340 | ||
341 | func libc_utimes_trampoline() | ||
342 | |||
343 | //go:linkname libc_utimes libc_utimes | ||
344 | //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib" | ||
345 | |||
246 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 346 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
247 | 347 | ||
248 | func futimes(fd int, timeval *[2]Timeval) (err error) { | 348 | func futimes(fd int, timeval *[2]Timeval) (err error) { |
249 | _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) | 349 | _, _, e1 := syscall_syscall(funcPC(libc_futimes_trampoline), uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) |
250 | if e1 != 0 { | 350 | if e1 != 0 { |
251 | err = errnoErr(e1) | 351 | err = errnoErr(e1) |
252 | } | 352 | } |
253 | return | 353 | return |
254 | } | 354 | } |
255 | 355 | ||
356 | func libc_futimes_trampoline() | ||
357 | |||
358 | //go:linkname libc_futimes libc_futimes | ||
359 | //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib" | ||
360 | |||
256 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 361 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
257 | 362 | ||
258 | func fcntl(fd int, cmd int, arg int) (val int, err error) { | 363 | func fcntl(fd int, cmd int, arg int) (val int, err error) { |
259 | r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) | 364 | r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) |
260 | val = int(r0) | 365 | val = int(r0) |
261 | if e1 != 0 { | 366 | if e1 != 0 { |
262 | err = errnoErr(e1) | 367 | err = errnoErr(e1) |
@@ -264,10 +369,15 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) { | |||
264 | return | 369 | return |
265 | } | 370 | } |
266 | 371 | ||
372 | func libc_fcntl_trampoline() | ||
373 | |||
374 | //go:linkname libc_fcntl libc_fcntl | ||
375 | //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" | ||
376 | |||
267 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 377 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
268 | 378 | ||
269 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | 379 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { |
270 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | 380 | r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) |
271 | n = int(r0) | 381 | n = int(r0) |
272 | if e1 != 0 { | 382 | if e1 != 0 { |
273 | err = errnoErr(e1) | 383 | err = errnoErr(e1) |
@@ -275,6 +385,11 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |||
275 | return | 385 | return |
276 | } | 386 | } |
277 | 387 | ||
388 | func libc_poll_trampoline() | ||
389 | |||
390 | //go:linkname libc_poll libc_poll | ||
391 | //go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib" | ||
392 | |||
278 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 393 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
279 | 394 | ||
280 | func Madvise(b []byte, behav int) (err error) { | 395 | func Madvise(b []byte, behav int) (err error) { |
@@ -284,13 +399,18 @@ func Madvise(b []byte, behav int) (err error) { | |||
284 | } else { | 399 | } else { |
285 | _p0 = unsafe.Pointer(&_zero) | 400 | _p0 = unsafe.Pointer(&_zero) |
286 | } | 401 | } |
287 | _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) | 402 | _, _, e1 := syscall_syscall(funcPC(libc_madvise_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(behav)) |
288 | if e1 != 0 { | 403 | if e1 != 0 { |
289 | err = errnoErr(e1) | 404 | err = errnoErr(e1) |
290 | } | 405 | } |
291 | return | 406 | return |
292 | } | 407 | } |
293 | 408 | ||
409 | func libc_madvise_trampoline() | ||
410 | |||
411 | //go:linkname libc_madvise libc_madvise | ||
412 | //go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib" | ||
413 | |||
294 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 414 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
295 | 415 | ||
296 | func Mlock(b []byte) (err error) { | 416 | func Mlock(b []byte) (err error) { |
@@ -300,23 +420,33 @@ func Mlock(b []byte) (err error) { | |||
300 | } else { | 420 | } else { |
301 | _p0 = unsafe.Pointer(&_zero) | 421 | _p0 = unsafe.Pointer(&_zero) |
302 | } | 422 | } |
303 | _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) | 423 | _, _, e1 := syscall_syscall(funcPC(libc_mlock_trampoline), uintptr(_p0), uintptr(len(b)), 0) |
304 | if e1 != 0 { | 424 | if e1 != 0 { |
305 | err = errnoErr(e1) | 425 | err = errnoErr(e1) |
306 | } | 426 | } |
307 | return | 427 | return |
308 | } | 428 | } |
309 | 429 | ||
430 | func libc_mlock_trampoline() | ||
431 | |||
432 | //go:linkname libc_mlock libc_mlock | ||
433 | //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib" | ||
434 | |||
310 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 435 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
311 | 436 | ||
312 | func Mlockall(flags int) (err error) { | 437 | func Mlockall(flags int) (err error) { |
313 | _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) | 438 | _, _, e1 := syscall_syscall(funcPC(libc_mlockall_trampoline), uintptr(flags), 0, 0) |
314 | if e1 != 0 { | 439 | if e1 != 0 { |
315 | err = errnoErr(e1) | 440 | err = errnoErr(e1) |
316 | } | 441 | } |
317 | return | 442 | return |
318 | } | 443 | } |
319 | 444 | ||
445 | func libc_mlockall_trampoline() | ||
446 | |||
447 | //go:linkname libc_mlockall libc_mlockall | ||
448 | //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib" | ||
449 | |||
320 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 450 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
321 | 451 | ||
322 | func Mprotect(b []byte, prot int) (err error) { | 452 | func Mprotect(b []byte, prot int) (err error) { |
@@ -326,13 +456,18 @@ func Mprotect(b []byte, prot int) (err error) { | |||
326 | } else { | 456 | } else { |
327 | _p0 = unsafe.Pointer(&_zero) | 457 | _p0 = unsafe.Pointer(&_zero) |
328 | } | 458 | } |
329 | _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) | 459 | _, _, e1 := syscall_syscall(funcPC(libc_mprotect_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(prot)) |
330 | if e1 != 0 { | 460 | if e1 != 0 { |
331 | err = errnoErr(e1) | 461 | err = errnoErr(e1) |
332 | } | 462 | } |
333 | return | 463 | return |
334 | } | 464 | } |
335 | 465 | ||
466 | func libc_mprotect_trampoline() | ||
467 | |||
468 | //go:linkname libc_mprotect libc_mprotect | ||
469 | //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib" | ||
470 | |||
336 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 471 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
337 | 472 | ||
338 | func Msync(b []byte, flags int) (err error) { | 473 | func Msync(b []byte, flags int) (err error) { |
@@ -342,13 +477,18 @@ func Msync(b []byte, flags int) (err error) { | |||
342 | } else { | 477 | } else { |
343 | _p0 = unsafe.Pointer(&_zero) | 478 | _p0 = unsafe.Pointer(&_zero) |
344 | } | 479 | } |
345 | _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) | 480 | _, _, e1 := syscall_syscall(funcPC(libc_msync_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(flags)) |
346 | if e1 != 0 { | 481 | if e1 != 0 { |
347 | err = errnoErr(e1) | 482 | err = errnoErr(e1) |
348 | } | 483 | } |
349 | return | 484 | return |
350 | } | 485 | } |
351 | 486 | ||
487 | func libc_msync_trampoline() | ||
488 | |||
489 | //go:linkname libc_msync libc_msync | ||
490 | //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib" | ||
491 | |||
352 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 492 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
353 | 493 | ||
354 | func Munlock(b []byte) (err error) { | 494 | func Munlock(b []byte) (err error) { |
@@ -358,37 +498,67 @@ func Munlock(b []byte) (err error) { | |||
358 | } else { | 498 | } else { |
359 | _p0 = unsafe.Pointer(&_zero) | 499 | _p0 = unsafe.Pointer(&_zero) |
360 | } | 500 | } |
361 | _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) | 501 | _, _, e1 := syscall_syscall(funcPC(libc_munlock_trampoline), uintptr(_p0), uintptr(len(b)), 0) |
362 | if e1 != 0 { | 502 | if e1 != 0 { |
363 | err = errnoErr(e1) | 503 | err = errnoErr(e1) |
364 | } | 504 | } |
365 | return | 505 | return |
366 | } | 506 | } |
367 | 507 | ||
508 | func libc_munlock_trampoline() | ||
509 | |||
510 | //go:linkname libc_munlock libc_munlock | ||
511 | //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib" | ||
512 | |||
368 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 513 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
369 | 514 | ||
370 | func Munlockall() (err error) { | 515 | func Munlockall() (err error) { |
371 | _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) | 516 | _, _, e1 := syscall_syscall(funcPC(libc_munlockall_trampoline), 0, 0, 0) |
372 | if e1 != 0 { | 517 | if e1 != 0 { |
373 | err = errnoErr(e1) | 518 | err = errnoErr(e1) |
374 | } | 519 | } |
375 | return | 520 | return |
376 | } | 521 | } |
377 | 522 | ||
523 | func libc_munlockall_trampoline() | ||
524 | |||
525 | //go:linkname libc_munlockall libc_munlockall | ||
526 | //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib" | ||
527 | |||
378 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 528 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
379 | 529 | ||
380 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { | 530 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { |
381 | _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) | 531 | _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) |
382 | if e1 != 0 { | 532 | if e1 != 0 { |
383 | err = errnoErr(e1) | 533 | err = errnoErr(e1) |
384 | } | 534 | } |
385 | return | 535 | return |
386 | } | 536 | } |
387 | 537 | ||
538 | func libc_ptrace_trampoline() | ||
539 | |||
540 | //go:linkname libc_ptrace libc_ptrace | ||
541 | //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" | ||
542 | |||
543 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
544 | |||
545 | func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { | ||
546 | _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) | ||
547 | if e1 != 0 { | ||
548 | err = errnoErr(e1) | ||
549 | } | ||
550 | return | ||
551 | } | ||
552 | |||
553 | func libc_getattrlist_trampoline() | ||
554 | |||
555 | //go:linkname libc_getattrlist libc_getattrlist | ||
556 | //go:cgo_import_dynamic libc_getattrlist getattrlist "/usr/lib/libSystem.B.dylib" | ||
557 | |||
388 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 558 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
389 | 559 | ||
390 | func pipe() (r int, w int, err error) { | 560 | func pipe() (r int, w int, err error) { |
391 | r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) | 561 | r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0) |
392 | r = int(r0) | 562 | r = int(r0) |
393 | w = int(r1) | 563 | w = int(r1) |
394 | if e1 != 0 { | 564 | if e1 != 0 { |
@@ -397,6 +567,11 @@ func pipe() (r int, w int, err error) { | |||
397 | return | 567 | return |
398 | } | 568 | } |
399 | 569 | ||
570 | func libc_pipe_trampoline() | ||
571 | |||
572 | //go:linkname libc_pipe libc_pipe | ||
573 | //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib" | ||
574 | |||
400 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 575 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
401 | 576 | ||
402 | func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { | 577 | func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { |
@@ -410,7 +585,7 @@ func getxattr(path string, attr string, dest *byte, size int, position uint32, o | |||
410 | if err != nil { | 585 | if err != nil { |
411 | return | 586 | return |
412 | } | 587 | } |
413 | r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) | 588 | r0, _, e1 := syscall_syscall6(funcPC(libc_getxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) |
414 | sz = int(r0) | 589 | sz = int(r0) |
415 | if e1 != 0 { | 590 | if e1 != 0 { |
416 | err = errnoErr(e1) | 591 | err = errnoErr(e1) |
@@ -418,6 +593,11 @@ func getxattr(path string, attr string, dest *byte, size int, position uint32, o | |||
418 | return | 593 | return |
419 | } | 594 | } |
420 | 595 | ||
596 | func libc_getxattr_trampoline() | ||
597 | |||
598 | //go:linkname libc_getxattr libc_getxattr | ||
599 | //go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib" | ||
600 | |||
421 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 601 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
422 | 602 | ||
423 | func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { | 603 | func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { |
@@ -426,7 +606,7 @@ func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, optio | |||
426 | if err != nil { | 606 | if err != nil { |
427 | return | 607 | return |
428 | } | 608 | } |
429 | r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) | 609 | r0, _, e1 := syscall_syscall6(funcPC(libc_fgetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) |
430 | sz = int(r0) | 610 | sz = int(r0) |
431 | if e1 != 0 { | 611 | if e1 != 0 { |
432 | err = errnoErr(e1) | 612 | err = errnoErr(e1) |
@@ -434,6 +614,11 @@ func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, optio | |||
434 | return | 614 | return |
435 | } | 615 | } |
436 | 616 | ||
617 | func libc_fgetxattr_trampoline() | ||
618 | |||
619 | //go:linkname libc_fgetxattr libc_fgetxattr | ||
620 | //go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib" | ||
621 | |||
437 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 622 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
438 | 623 | ||
439 | func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) { | 624 | func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) { |
@@ -447,13 +632,18 @@ func setxattr(path string, attr string, data *byte, size int, position uint32, o | |||
447 | if err != nil { | 632 | if err != nil { |
448 | return | 633 | return |
449 | } | 634 | } |
450 | _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) | 635 | _, _, e1 := syscall_syscall6(funcPC(libc_setxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) |
451 | if e1 != 0 { | 636 | if e1 != 0 { |
452 | err = errnoErr(e1) | 637 | err = errnoErr(e1) |
453 | } | 638 | } |
454 | return | 639 | return |
455 | } | 640 | } |
456 | 641 | ||
642 | func libc_setxattr_trampoline() | ||
643 | |||
644 | //go:linkname libc_setxattr libc_setxattr | ||
645 | //go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib" | ||
646 | |||
457 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 647 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
458 | 648 | ||
459 | func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) { | 649 | func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) { |
@@ -462,13 +652,18 @@ func fsetxattr(fd int, attr string, data *byte, size int, position uint32, optio | |||
462 | if err != nil { | 652 | if err != nil { |
463 | return | 653 | return |
464 | } | 654 | } |
465 | _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) | 655 | _, _, e1 := syscall_syscall6(funcPC(libc_fsetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) |
466 | if e1 != 0 { | 656 | if e1 != 0 { |
467 | err = errnoErr(e1) | 657 | err = errnoErr(e1) |
468 | } | 658 | } |
469 | return | 659 | return |
470 | } | 660 | } |
471 | 661 | ||
662 | func libc_fsetxattr_trampoline() | ||
663 | |||
664 | //go:linkname libc_fsetxattr libc_fsetxattr | ||
665 | //go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib" | ||
666 | |||
472 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 667 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
473 | 668 | ||
474 | func removexattr(path string, attr string, options int) (err error) { | 669 | func removexattr(path string, attr string, options int) (err error) { |
@@ -482,13 +677,18 @@ func removexattr(path string, attr string, options int) (err error) { | |||
482 | if err != nil { | 677 | if err != nil { |
483 | return | 678 | return |
484 | } | 679 | } |
485 | _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) | 680 | _, _, e1 := syscall_syscall(funcPC(libc_removexattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) |
486 | if e1 != 0 { | 681 | if e1 != 0 { |
487 | err = errnoErr(e1) | 682 | err = errnoErr(e1) |
488 | } | 683 | } |
489 | return | 684 | return |
490 | } | 685 | } |
491 | 686 | ||
687 | func libc_removexattr_trampoline() | ||
688 | |||
689 | //go:linkname libc_removexattr libc_removexattr | ||
690 | //go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib" | ||
691 | |||
492 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 692 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
493 | 693 | ||
494 | func fremovexattr(fd int, attr string, options int) (err error) { | 694 | func fremovexattr(fd int, attr string, options int) (err error) { |
@@ -497,13 +697,18 @@ func fremovexattr(fd int, attr string, options int) (err error) { | |||
497 | if err != nil { | 697 | if err != nil { |
498 | return | 698 | return |
499 | } | 699 | } |
500 | _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options)) | 700 | _, _, e1 := syscall_syscall(funcPC(libc_fremovexattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options)) |
501 | if e1 != 0 { | 701 | if e1 != 0 { |
502 | err = errnoErr(e1) | 702 | err = errnoErr(e1) |
503 | } | 703 | } |
504 | return | 704 | return |
505 | } | 705 | } |
506 | 706 | ||
707 | func libc_fremovexattr_trampoline() | ||
708 | |||
709 | //go:linkname libc_fremovexattr libc_fremovexattr | ||
710 | //go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib" | ||
711 | |||
507 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 712 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
508 | 713 | ||
509 | func listxattr(path string, dest *byte, size int, options int) (sz int, err error) { | 714 | func listxattr(path string, dest *byte, size int, options int) (sz int, err error) { |
@@ -512,7 +717,7 @@ func listxattr(path string, dest *byte, size int, options int) (sz int, err erro | |||
512 | if err != nil { | 717 | if err != nil { |
513 | return | 718 | return |
514 | } | 719 | } |
515 | r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) | 720 | r0, _, e1 := syscall_syscall6(funcPC(libc_listxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) |
516 | sz = int(r0) | 721 | sz = int(r0) |
517 | if e1 != 0 { | 722 | if e1 != 0 { |
518 | err = errnoErr(e1) | 723 | err = errnoErr(e1) |
@@ -520,10 +725,15 @@ func listxattr(path string, dest *byte, size int, options int) (sz int, err erro | |||
520 | return | 725 | return |
521 | } | 726 | } |
522 | 727 | ||
728 | func libc_listxattr_trampoline() | ||
729 | |||
730 | //go:linkname libc_listxattr libc_listxattr | ||
731 | //go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib" | ||
732 | |||
523 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 733 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
524 | 734 | ||
525 | func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) { | 735 | func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) { |
526 | r0, _, e1 := Syscall6(SYS_FLISTXATTR, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) | 736 | r0, _, e1 := syscall_syscall6(funcPC(libc_flistxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) |
527 | sz = int(r0) | 737 | sz = int(r0) |
528 | if e1 != 0 { | 738 | if e1 != 0 { |
529 | err = errnoErr(e1) | 739 | err = errnoErr(e1) |
@@ -531,26 +741,71 @@ func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) { | |||
531 | return | 741 | return |
532 | } | 742 | } |
533 | 743 | ||
744 | func libc_flistxattr_trampoline() | ||
745 | |||
746 | //go:linkname libc_flistxattr libc_flistxattr | ||
747 | //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib" | ||
748 | |||
749 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
750 | |||
751 | func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { | ||
752 | _, _, e1 := syscall_syscall6(funcPC(libc_setattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) | ||
753 | if e1 != 0 { | ||
754 | err = errnoErr(e1) | ||
755 | } | ||
756 | return | ||
757 | } | ||
758 | |||
759 | func libc_setattrlist_trampoline() | ||
760 | |||
761 | //go:linkname libc_setattrlist libc_setattrlist | ||
762 | //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib" | ||
763 | |||
534 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 764 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
535 | 765 | ||
536 | func kill(pid int, signum int, posix int) (err error) { | 766 | func kill(pid int, signum int, posix int) (err error) { |
537 | _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) | 767 | _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix)) |
538 | if e1 != 0 { | 768 | if e1 != 0 { |
539 | err = errnoErr(e1) | 769 | err = errnoErr(e1) |
540 | } | 770 | } |
541 | return | 771 | return |
542 | } | 772 | } |
543 | 773 | ||
774 | func libc_kill_trampoline() | ||
775 | |||
776 | //go:linkname libc_kill libc_kill | ||
777 | //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib" | ||
778 | |||
544 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 779 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
545 | 780 | ||
546 | func ioctl(fd int, req uint, arg uintptr) (err error) { | 781 | func ioctl(fd int, req uint, arg uintptr) (err error) { |
547 | _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) | 782 | _, _, e1 := syscall_syscall(funcPC(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg)) |
783 | if e1 != 0 { | ||
784 | err = errnoErr(e1) | ||
785 | } | ||
786 | return | ||
787 | } | ||
788 | |||
789 | func libc_ioctl_trampoline() | ||
790 | |||
791 | //go:linkname libc_ioctl libc_ioctl | ||
792 | //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib" | ||
793 | |||
794 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
795 | |||
796 | func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { | ||
797 | _, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) | ||
548 | if e1 != 0 { | 798 | if e1 != 0 { |
549 | err = errnoErr(e1) | 799 | err = errnoErr(e1) |
550 | } | 800 | } |
551 | return | 801 | return |
552 | } | 802 | } |
553 | 803 | ||
804 | func libc_sendfile_trampoline() | ||
805 | |||
806 | //go:linkname libc_sendfile libc_sendfile | ||
807 | //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib" | ||
808 | |||
554 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 809 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
555 | 810 | ||
556 | func Access(path string, mode uint32) (err error) { | 811 | func Access(path string, mode uint32) (err error) { |
@@ -559,23 +814,33 @@ func Access(path string, mode uint32) (err error) { | |||
559 | if err != nil { | 814 | if err != nil { |
560 | return | 815 | return |
561 | } | 816 | } |
562 | _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | 817 | _, _, e1 := syscall_syscall(funcPC(libc_access_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
563 | if e1 != 0 { | 818 | if e1 != 0 { |
564 | err = errnoErr(e1) | 819 | err = errnoErr(e1) |
565 | } | 820 | } |
566 | return | 821 | return |
567 | } | 822 | } |
568 | 823 | ||
824 | func libc_access_trampoline() | ||
825 | |||
826 | //go:linkname libc_access libc_access | ||
827 | //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib" | ||
828 | |||
569 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 829 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
570 | 830 | ||
571 | func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { | 831 | func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { |
572 | _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) | 832 | _, _, e1 := syscall_syscall(funcPC(libc_adjtime_trampoline), uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) |
573 | if e1 != 0 { | 833 | if e1 != 0 { |
574 | err = errnoErr(e1) | 834 | err = errnoErr(e1) |
575 | } | 835 | } |
576 | return | 836 | return |
577 | } | 837 | } |
578 | 838 | ||
839 | func libc_adjtime_trampoline() | ||
840 | |||
841 | //go:linkname libc_adjtime libc_adjtime | ||
842 | //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib" | ||
843 | |||
579 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 844 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
580 | 845 | ||
581 | func Chdir(path string) (err error) { | 846 | func Chdir(path string) (err error) { |
@@ -584,13 +849,18 @@ func Chdir(path string) (err error) { | |||
584 | if err != nil { | 849 | if err != nil { |
585 | return | 850 | return |
586 | } | 851 | } |
587 | _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | 852 | _, _, e1 := syscall_syscall(funcPC(libc_chdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
588 | if e1 != 0 { | 853 | if e1 != 0 { |
589 | err = errnoErr(e1) | 854 | err = errnoErr(e1) |
590 | } | 855 | } |
591 | return | 856 | return |
592 | } | 857 | } |
593 | 858 | ||
859 | func libc_chdir_trampoline() | ||
860 | |||
861 | //go:linkname libc_chdir libc_chdir | ||
862 | //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib" | ||
863 | |||
594 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 864 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
595 | 865 | ||
596 | func Chflags(path string, flags int) (err error) { | 866 | func Chflags(path string, flags int) (err error) { |
@@ -599,13 +869,18 @@ func Chflags(path string, flags int) (err error) { | |||
599 | if err != nil { | 869 | if err != nil { |
600 | return | 870 | return |
601 | } | 871 | } |
602 | _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | 872 | _, _, e1 := syscall_syscall(funcPC(libc_chflags_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) |
603 | if e1 != 0 { | 873 | if e1 != 0 { |
604 | err = errnoErr(e1) | 874 | err = errnoErr(e1) |
605 | } | 875 | } |
606 | return | 876 | return |
607 | } | 877 | } |
608 | 878 | ||
879 | func libc_chflags_trampoline() | ||
880 | |||
881 | //go:linkname libc_chflags libc_chflags | ||
882 | //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib" | ||
883 | |||
609 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 884 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
610 | 885 | ||
611 | func Chmod(path string, mode uint32) (err error) { | 886 | func Chmod(path string, mode uint32) (err error) { |
@@ -614,13 +889,18 @@ func Chmod(path string, mode uint32) (err error) { | |||
614 | if err != nil { | 889 | if err != nil { |
615 | return | 890 | return |
616 | } | 891 | } |
617 | _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | 892 | _, _, e1 := syscall_syscall(funcPC(libc_chmod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
618 | if e1 != 0 { | 893 | if e1 != 0 { |
619 | err = errnoErr(e1) | 894 | err = errnoErr(e1) |
620 | } | 895 | } |
621 | return | 896 | return |
622 | } | 897 | } |
623 | 898 | ||
899 | func libc_chmod_trampoline() | ||
900 | |||
901 | //go:linkname libc_chmod libc_chmod | ||
902 | //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib" | ||
903 | |||
624 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 904 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
625 | 905 | ||
626 | func Chown(path string, uid int, gid int) (err error) { | 906 | func Chown(path string, uid int, gid int) (err error) { |
@@ -629,13 +909,18 @@ func Chown(path string, uid int, gid int) (err error) { | |||
629 | if err != nil { | 909 | if err != nil { |
630 | return | 910 | return |
631 | } | 911 | } |
632 | _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | 912 | _, _, e1 := syscall_syscall(funcPC(libc_chown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) |
633 | if e1 != 0 { | 913 | if e1 != 0 { |
634 | err = errnoErr(e1) | 914 | err = errnoErr(e1) |
635 | } | 915 | } |
636 | return | 916 | return |
637 | } | 917 | } |
638 | 918 | ||
919 | func libc_chown_trampoline() | ||
920 | |||
921 | //go:linkname libc_chown libc_chown | ||
922 | //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib" | ||
923 | |||
639 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 924 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
640 | 925 | ||
641 | func Chroot(path string) (err error) { | 926 | func Chroot(path string) (err error) { |
@@ -644,27 +929,52 @@ func Chroot(path string) (err error) { | |||
644 | if err != nil { | 929 | if err != nil { |
645 | return | 930 | return |
646 | } | 931 | } |
647 | _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) | 932 | _, _, e1 := syscall_syscall(funcPC(libc_chroot_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
933 | if e1 != 0 { | ||
934 | err = errnoErr(e1) | ||
935 | } | ||
936 | return | ||
937 | } | ||
938 | |||
939 | func libc_chroot_trampoline() | ||
940 | |||
941 | //go:linkname libc_chroot libc_chroot | ||
942 | //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib" | ||
943 | |||
944 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
945 | |||
946 | func ClockGettime(clockid int32, time *Timespec) (err error) { | ||
947 | _, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) | ||
648 | if e1 != 0 { | 948 | if e1 != 0 { |
649 | err = errnoErr(e1) | 949 | err = errnoErr(e1) |
650 | } | 950 | } |
651 | return | 951 | return |
652 | } | 952 | } |
653 | 953 | ||
954 | func libc_clock_gettime_trampoline() | ||
955 | |||
956 | //go:linkname libc_clock_gettime libc_clock_gettime | ||
957 | //go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib" | ||
958 | |||
654 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 959 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
655 | 960 | ||
656 | func Close(fd int) (err error) { | 961 | func Close(fd int) (err error) { |
657 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) | 962 | _, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0) |
658 | if e1 != 0 { | 963 | if e1 != 0 { |
659 | err = errnoErr(e1) | 964 | err = errnoErr(e1) |
660 | } | 965 | } |
661 | return | 966 | return |
662 | } | 967 | } |
663 | 968 | ||
969 | func libc_close_trampoline() | ||
970 | |||
971 | //go:linkname libc_close libc_close | ||
972 | //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib" | ||
973 | |||
664 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 974 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
665 | 975 | ||
666 | func Dup(fd int) (nfd int, err error) { | 976 | func Dup(fd int) (nfd int, err error) { |
667 | r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) | 977 | r0, _, e1 := syscall_syscall(funcPC(libc_dup_trampoline), uintptr(fd), 0, 0) |
668 | nfd = int(r0) | 978 | nfd = int(r0) |
669 | if e1 != 0 { | 979 | if e1 != 0 { |
670 | err = errnoErr(e1) | 980 | err = errnoErr(e1) |
@@ -672,16 +982,26 @@ func Dup(fd int) (nfd int, err error) { | |||
672 | return | 982 | return |
673 | } | 983 | } |
674 | 984 | ||
985 | func libc_dup_trampoline() | ||
986 | |||
987 | //go:linkname libc_dup libc_dup | ||
988 | //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib" | ||
989 | |||
675 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 990 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
676 | 991 | ||
677 | func Dup2(from int, to int) (err error) { | 992 | func Dup2(from int, to int) (err error) { |
678 | _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) | 993 | _, _, e1 := syscall_syscall(funcPC(libc_dup2_trampoline), uintptr(from), uintptr(to), 0) |
679 | if e1 != 0 { | 994 | if e1 != 0 { |
680 | err = errnoErr(e1) | 995 | err = errnoErr(e1) |
681 | } | 996 | } |
682 | return | 997 | return |
683 | } | 998 | } |
684 | 999 | ||
1000 | func libc_dup2_trampoline() | ||
1001 | |||
1002 | //go:linkname libc_dup2 libc_dup2 | ||
1003 | //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib" | ||
1004 | |||
685 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1005 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
686 | 1006 | ||
687 | func Exchangedata(path1 string, path2 string, options int) (err error) { | 1007 | func Exchangedata(path1 string, path2 string, options int) (err error) { |
@@ -695,20 +1015,30 @@ func Exchangedata(path1 string, path2 string, options int) (err error) { | |||
695 | if err != nil { | 1015 | if err != nil { |
696 | return | 1016 | return |
697 | } | 1017 | } |
698 | _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) | 1018 | _, _, e1 := syscall_syscall(funcPC(libc_exchangedata_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) |
699 | if e1 != 0 { | 1019 | if e1 != 0 { |
700 | err = errnoErr(e1) | 1020 | err = errnoErr(e1) |
701 | } | 1021 | } |
702 | return | 1022 | return |
703 | } | 1023 | } |
704 | 1024 | ||
1025 | func libc_exchangedata_trampoline() | ||
1026 | |||
1027 | //go:linkname libc_exchangedata libc_exchangedata | ||
1028 | //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib" | ||
1029 | |||
705 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1030 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
706 | 1031 | ||
707 | func Exit(code int) { | 1032 | func Exit(code int) { |
708 | Syscall(SYS_EXIT, uintptr(code), 0, 0) | 1033 | syscall_syscall(funcPC(libc_exit_trampoline), uintptr(code), 0, 0) |
709 | return | 1034 | return |
710 | } | 1035 | } |
711 | 1036 | ||
1037 | func libc_exit_trampoline() | ||
1038 | |||
1039 | //go:linkname libc_exit libc_exit | ||
1040 | //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib" | ||
1041 | |||
712 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1042 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
713 | 1043 | ||
714 | func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { | 1044 | func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { |
@@ -717,43 +1047,63 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { | |||
717 | if err != nil { | 1047 | if err != nil { |
718 | return | 1048 | return |
719 | } | 1049 | } |
720 | _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) | 1050 | _, _, e1 := syscall_syscall6(funcPC(libc_faccessat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) |
721 | if e1 != 0 { | 1051 | if e1 != 0 { |
722 | err = errnoErr(e1) | 1052 | err = errnoErr(e1) |
723 | } | 1053 | } |
724 | return | 1054 | return |
725 | } | 1055 | } |
726 | 1056 | ||
1057 | func libc_faccessat_trampoline() | ||
1058 | |||
1059 | //go:linkname libc_faccessat libc_faccessat | ||
1060 | //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib" | ||
1061 | |||
727 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1062 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
728 | 1063 | ||
729 | func Fchdir(fd int) (err error) { | 1064 | func Fchdir(fd int) (err error) { |
730 | _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) | 1065 | _, _, e1 := syscall_syscall(funcPC(libc_fchdir_trampoline), uintptr(fd), 0, 0) |
731 | if e1 != 0 { | 1066 | if e1 != 0 { |
732 | err = errnoErr(e1) | 1067 | err = errnoErr(e1) |
733 | } | 1068 | } |
734 | return | 1069 | return |
735 | } | 1070 | } |
736 | 1071 | ||
1072 | func libc_fchdir_trampoline() | ||
1073 | |||
1074 | //go:linkname libc_fchdir libc_fchdir | ||
1075 | //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib" | ||
1076 | |||
737 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1077 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
738 | 1078 | ||
739 | func Fchflags(fd int, flags int) (err error) { | 1079 | func Fchflags(fd int, flags int) (err error) { |
740 | _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) | 1080 | _, _, e1 := syscall_syscall(funcPC(libc_fchflags_trampoline), uintptr(fd), uintptr(flags), 0) |
741 | if e1 != 0 { | 1081 | if e1 != 0 { |
742 | err = errnoErr(e1) | 1082 | err = errnoErr(e1) |
743 | } | 1083 | } |
744 | return | 1084 | return |
745 | } | 1085 | } |
746 | 1086 | ||
1087 | func libc_fchflags_trampoline() | ||
1088 | |||
1089 | //go:linkname libc_fchflags libc_fchflags | ||
1090 | //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib" | ||
1091 | |||
747 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1092 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
748 | 1093 | ||
749 | func Fchmod(fd int, mode uint32) (err error) { | 1094 | func Fchmod(fd int, mode uint32) (err error) { |
750 | _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) | 1095 | _, _, e1 := syscall_syscall(funcPC(libc_fchmod_trampoline), uintptr(fd), uintptr(mode), 0) |
751 | if e1 != 0 { | 1096 | if e1 != 0 { |
752 | err = errnoErr(e1) | 1097 | err = errnoErr(e1) |
753 | } | 1098 | } |
754 | return | 1099 | return |
755 | } | 1100 | } |
756 | 1101 | ||
1102 | func libc_fchmod_trampoline() | ||
1103 | |||
1104 | //go:linkname libc_fchmod libc_fchmod | ||
1105 | //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib" | ||
1106 | |||
757 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1107 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
758 | 1108 | ||
759 | func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { | 1109 | func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { |
@@ -762,23 +1112,33 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { | |||
762 | if err != nil { | 1112 | if err != nil { |
763 | return | 1113 | return |
764 | } | 1114 | } |
765 | _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) | 1115 | _, _, e1 := syscall_syscall6(funcPC(libc_fchmodat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) |
766 | if e1 != 0 { | 1116 | if e1 != 0 { |
767 | err = errnoErr(e1) | 1117 | err = errnoErr(e1) |
768 | } | 1118 | } |
769 | return | 1119 | return |
770 | } | 1120 | } |
771 | 1121 | ||
1122 | func libc_fchmodat_trampoline() | ||
1123 | |||
1124 | //go:linkname libc_fchmodat libc_fchmodat | ||
1125 | //go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib" | ||
1126 | |||
772 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1127 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
773 | 1128 | ||
774 | func Fchown(fd int, uid int, gid int) (err error) { | 1129 | func Fchown(fd int, uid int, gid int) (err error) { |
775 | _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) | 1130 | _, _, e1 := syscall_syscall(funcPC(libc_fchown_trampoline), uintptr(fd), uintptr(uid), uintptr(gid)) |
776 | if e1 != 0 { | 1131 | if e1 != 0 { |
777 | err = errnoErr(e1) | 1132 | err = errnoErr(e1) |
778 | } | 1133 | } |
779 | return | 1134 | return |
780 | } | 1135 | } |
781 | 1136 | ||
1137 | func libc_fchown_trampoline() | ||
1138 | |||
1139 | //go:linkname libc_fchown libc_fchown | ||
1140 | //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib" | ||
1141 | |||
782 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1142 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
783 | 1143 | ||
784 | func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { | 1144 | func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { |
@@ -787,142 +1147,135 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { | |||
787 | if err != nil { | 1147 | if err != nil { |
788 | return | 1148 | return |
789 | } | 1149 | } |
790 | _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) | 1150 | _, _, e1 := syscall_syscall6(funcPC(libc_fchownat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) |
791 | if e1 != 0 { | 1151 | if e1 != 0 { |
792 | err = errnoErr(e1) | 1152 | err = errnoErr(e1) |
793 | } | 1153 | } |
794 | return | 1154 | return |
795 | } | 1155 | } |
796 | 1156 | ||
797 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1157 | func libc_fchownat_trampoline() |
798 | 1158 | ||
799 | func Flock(fd int, how int) (err error) { | 1159 | //go:linkname libc_fchownat libc_fchownat |
800 | _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) | 1160 | //go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib" |
801 | if e1 != 0 { | ||
802 | err = errnoErr(e1) | ||
803 | } | ||
804 | return | ||
805 | } | ||
806 | 1161 | ||
807 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1162 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
808 | 1163 | ||
809 | func Fpathconf(fd int, name int) (val int, err error) { | 1164 | func Flock(fd int, how int) (err error) { |
810 | r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) | 1165 | _, _, e1 := syscall_syscall(funcPC(libc_flock_trampoline), uintptr(fd), uintptr(how), 0) |
811 | val = int(r0) | ||
812 | if e1 != 0 { | 1166 | if e1 != 0 { |
813 | err = errnoErr(e1) | 1167 | err = errnoErr(e1) |
814 | } | 1168 | } |
815 | return | 1169 | return |
816 | } | 1170 | } |
817 | 1171 | ||
818 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1172 | func libc_flock_trampoline() |
819 | 1173 | ||
820 | func Fstat(fd int, stat *Stat_t) (err error) { | 1174 | //go:linkname libc_flock libc_flock |
821 | _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | 1175 | //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib" |
822 | if e1 != 0 { | ||
823 | err = errnoErr(e1) | ||
824 | } | ||
825 | return | ||
826 | } | ||
827 | 1176 | ||
828 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1177 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
829 | 1178 | ||
830 | func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { | 1179 | func Fpathconf(fd int, name int) (val int, err error) { |
831 | var _p0 *byte | 1180 | r0, _, e1 := syscall_syscall(funcPC(libc_fpathconf_trampoline), uintptr(fd), uintptr(name), 0) |
832 | _p0, err = BytePtrFromString(path) | 1181 | val = int(r0) |
833 | if err != nil { | ||
834 | return | ||
835 | } | ||
836 | _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) | ||
837 | if e1 != 0 { | 1182 | if e1 != 0 { |
838 | err = errnoErr(e1) | 1183 | err = errnoErr(e1) |
839 | } | 1184 | } |
840 | return | 1185 | return |
841 | } | 1186 | } |
842 | 1187 | ||
843 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1188 | func libc_fpathconf_trampoline() |
844 | 1189 | ||
845 | func Fstatfs(fd int, stat *Statfs_t) (err error) { | 1190 | //go:linkname libc_fpathconf libc_fpathconf |
846 | _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | 1191 | //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib" |
847 | if e1 != 0 { | ||
848 | err = errnoErr(e1) | ||
849 | } | ||
850 | return | ||
851 | } | ||
852 | 1192 | ||
853 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1193 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
854 | 1194 | ||
855 | func Fsync(fd int) (err error) { | 1195 | func Fsync(fd int) (err error) { |
856 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) | 1196 | _, _, e1 := syscall_syscall(funcPC(libc_fsync_trampoline), uintptr(fd), 0, 0) |
857 | if e1 != 0 { | 1197 | if e1 != 0 { |
858 | err = errnoErr(e1) | 1198 | err = errnoErr(e1) |
859 | } | 1199 | } |
860 | return | 1200 | return |
861 | } | 1201 | } |
862 | 1202 | ||
1203 | func libc_fsync_trampoline() | ||
1204 | |||
1205 | //go:linkname libc_fsync libc_fsync | ||
1206 | //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib" | ||
1207 | |||
863 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1208 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
864 | 1209 | ||
865 | func Ftruncate(fd int, length int64) (err error) { | 1210 | func Ftruncate(fd int, length int64) (err error) { |
866 | _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) | 1211 | _, _, e1 := syscall_syscall(funcPC(libc_ftruncate_trampoline), uintptr(fd), uintptr(length), 0) |
867 | if e1 != 0 { | 1212 | if e1 != 0 { |
868 | err = errnoErr(e1) | 1213 | err = errnoErr(e1) |
869 | } | 1214 | } |
870 | return | 1215 | return |
871 | } | 1216 | } |
872 | 1217 | ||
873 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1218 | func libc_ftruncate_trampoline() |
874 | 1219 | ||
875 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { | 1220 | //go:linkname libc_ftruncate libc_ftruncate |
876 | var _p0 unsafe.Pointer | 1221 | //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib" |
877 | if len(buf) > 0 { | ||
878 | _p0 = unsafe.Pointer(&buf[0]) | ||
879 | } else { | ||
880 | _p0 = unsafe.Pointer(&_zero) | ||
881 | } | ||
882 | r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) | ||
883 | n = int(r0) | ||
884 | if e1 != 0 { | ||
885 | err = errnoErr(e1) | ||
886 | } | ||
887 | return | ||
888 | } | ||
889 | 1222 | ||
890 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1223 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
891 | 1224 | ||
892 | func Getdtablesize() (size int) { | 1225 | func Getdtablesize() (size int) { |
893 | r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) | 1226 | r0, _, _ := syscall_syscall(funcPC(libc_getdtablesize_trampoline), 0, 0, 0) |
894 | size = int(r0) | 1227 | size = int(r0) |
895 | return | 1228 | return |
896 | } | 1229 | } |
897 | 1230 | ||
1231 | func libc_getdtablesize_trampoline() | ||
1232 | |||
1233 | //go:linkname libc_getdtablesize libc_getdtablesize | ||
1234 | //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib" | ||
1235 | |||
898 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1236 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
899 | 1237 | ||
900 | func Getegid() (egid int) { | 1238 | func Getegid() (egid int) { |
901 | r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) | 1239 | r0, _, _ := syscall_rawSyscall(funcPC(libc_getegid_trampoline), 0, 0, 0) |
902 | egid = int(r0) | 1240 | egid = int(r0) |
903 | return | 1241 | return |
904 | } | 1242 | } |
905 | 1243 | ||
1244 | func libc_getegid_trampoline() | ||
1245 | |||
1246 | //go:linkname libc_getegid libc_getegid | ||
1247 | //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib" | ||
1248 | |||
906 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1249 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
907 | 1250 | ||
908 | func Geteuid() (uid int) { | 1251 | func Geteuid() (uid int) { |
909 | r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) | 1252 | r0, _, _ := syscall_rawSyscall(funcPC(libc_geteuid_trampoline), 0, 0, 0) |
910 | uid = int(r0) | 1253 | uid = int(r0) |
911 | return | 1254 | return |
912 | } | 1255 | } |
913 | 1256 | ||
1257 | func libc_geteuid_trampoline() | ||
1258 | |||
1259 | //go:linkname libc_geteuid libc_geteuid | ||
1260 | //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib" | ||
1261 | |||
914 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1262 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
915 | 1263 | ||
916 | func Getgid() (gid int) { | 1264 | func Getgid() (gid int) { |
917 | r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) | 1265 | r0, _, _ := syscall_rawSyscall(funcPC(libc_getgid_trampoline), 0, 0, 0) |
918 | gid = int(r0) | 1266 | gid = int(r0) |
919 | return | 1267 | return |
920 | } | 1268 | } |
921 | 1269 | ||
1270 | func libc_getgid_trampoline() | ||
1271 | |||
1272 | //go:linkname libc_getgid libc_getgid | ||
1273 | //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib" | ||
1274 | |||
922 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1275 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
923 | 1276 | ||
924 | func Getpgid(pid int) (pgid int, err error) { | 1277 | func Getpgid(pid int) (pgid int, err error) { |
925 | r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) | 1278 | r0, _, e1 := syscall_rawSyscall(funcPC(libc_getpgid_trampoline), uintptr(pid), 0, 0) |
926 | pgid = int(r0) | 1279 | pgid = int(r0) |
927 | if e1 != 0 { | 1280 | if e1 != 0 { |
928 | err = errnoErr(e1) | 1281 | err = errnoErr(e1) |
@@ -930,34 +1283,54 @@ func Getpgid(pid int) (pgid int, err error) { | |||
930 | return | 1283 | return |
931 | } | 1284 | } |
932 | 1285 | ||
1286 | func libc_getpgid_trampoline() | ||
1287 | |||
1288 | //go:linkname libc_getpgid libc_getpgid | ||
1289 | //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib" | ||
1290 | |||
933 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1291 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
934 | 1292 | ||
935 | func Getpgrp() (pgrp int) { | 1293 | func Getpgrp() (pgrp int) { |
936 | r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) | 1294 | r0, _, _ := syscall_rawSyscall(funcPC(libc_getpgrp_trampoline), 0, 0, 0) |
937 | pgrp = int(r0) | 1295 | pgrp = int(r0) |
938 | return | 1296 | return |
939 | } | 1297 | } |
940 | 1298 | ||
1299 | func libc_getpgrp_trampoline() | ||
1300 | |||
1301 | //go:linkname libc_getpgrp libc_getpgrp | ||
1302 | //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib" | ||
1303 | |||
941 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1304 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
942 | 1305 | ||
943 | func Getpid() (pid int) { | 1306 | func Getpid() (pid int) { |
944 | r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) | 1307 | r0, _, _ := syscall_rawSyscall(funcPC(libc_getpid_trampoline), 0, 0, 0) |
945 | pid = int(r0) | 1308 | pid = int(r0) |
946 | return | 1309 | return |
947 | } | 1310 | } |
948 | 1311 | ||
1312 | func libc_getpid_trampoline() | ||
1313 | |||
1314 | //go:linkname libc_getpid libc_getpid | ||
1315 | //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib" | ||
1316 | |||
949 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1317 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
950 | 1318 | ||
951 | func Getppid() (ppid int) { | 1319 | func Getppid() (ppid int) { |
952 | r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) | 1320 | r0, _, _ := syscall_rawSyscall(funcPC(libc_getppid_trampoline), 0, 0, 0) |
953 | ppid = int(r0) | 1321 | ppid = int(r0) |
954 | return | 1322 | return |
955 | } | 1323 | } |
956 | 1324 | ||
1325 | func libc_getppid_trampoline() | ||
1326 | |||
1327 | //go:linkname libc_getppid libc_getppid | ||
1328 | //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib" | ||
1329 | |||
957 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1330 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
958 | 1331 | ||
959 | func Getpriority(which int, who int) (prio int, err error) { | 1332 | func Getpriority(which int, who int) (prio int, err error) { |
960 | r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) | 1333 | r0, _, e1 := syscall_syscall(funcPC(libc_getpriority_trampoline), uintptr(which), uintptr(who), 0) |
961 | prio = int(r0) | 1334 | prio = int(r0) |
962 | if e1 != 0 { | 1335 | if e1 != 0 { |
963 | err = errnoErr(e1) | 1336 | err = errnoErr(e1) |
@@ -965,30 +1338,45 @@ func Getpriority(which int, who int) (prio int, err error) { | |||
965 | return | 1338 | return |
966 | } | 1339 | } |
967 | 1340 | ||
1341 | func libc_getpriority_trampoline() | ||
1342 | |||
1343 | //go:linkname libc_getpriority libc_getpriority | ||
1344 | //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib" | ||
1345 | |||
968 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1346 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
969 | 1347 | ||
970 | func Getrlimit(which int, lim *Rlimit) (err error) { | 1348 | func Getrlimit(which int, lim *Rlimit) (err error) { |
971 | _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) | 1349 | _, _, e1 := syscall_rawSyscall(funcPC(libc_getrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0) |
972 | if e1 != 0 { | 1350 | if e1 != 0 { |
973 | err = errnoErr(e1) | 1351 | err = errnoErr(e1) |
974 | } | 1352 | } |
975 | return | 1353 | return |
976 | } | 1354 | } |
977 | 1355 | ||
1356 | func libc_getrlimit_trampoline() | ||
1357 | |||
1358 | //go:linkname libc_getrlimit libc_getrlimit | ||
1359 | //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib" | ||
1360 | |||
978 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1361 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
979 | 1362 | ||
980 | func Getrusage(who int, rusage *Rusage) (err error) { | 1363 | func Getrusage(who int, rusage *Rusage) (err error) { |
981 | _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) | 1364 | _, _, e1 := syscall_rawSyscall(funcPC(libc_getrusage_trampoline), uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) |
982 | if e1 != 0 { | 1365 | if e1 != 0 { |
983 | err = errnoErr(e1) | 1366 | err = errnoErr(e1) |
984 | } | 1367 | } |
985 | return | 1368 | return |
986 | } | 1369 | } |
987 | 1370 | ||
1371 | func libc_getrusage_trampoline() | ||
1372 | |||
1373 | //go:linkname libc_getrusage libc_getrusage | ||
1374 | //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib" | ||
1375 | |||
988 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1376 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
989 | 1377 | ||
990 | func Getsid(pid int) (sid int, err error) { | 1378 | func Getsid(pid int) (sid int, err error) { |
991 | r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) | 1379 | r0, _, e1 := syscall_rawSyscall(funcPC(libc_getsid_trampoline), uintptr(pid), 0, 0) |
992 | sid = int(r0) | 1380 | sid = int(r0) |
993 | if e1 != 0 { | 1381 | if e1 != 0 { |
994 | err = errnoErr(e1) | 1382 | err = errnoErr(e1) |
@@ -996,26 +1384,41 @@ func Getsid(pid int) (sid int, err error) { | |||
996 | return | 1384 | return |
997 | } | 1385 | } |
998 | 1386 | ||
1387 | func libc_getsid_trampoline() | ||
1388 | |||
1389 | //go:linkname libc_getsid libc_getsid | ||
1390 | //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib" | ||
1391 | |||
999 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1392 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1000 | 1393 | ||
1001 | func Getuid() (uid int) { | 1394 | func Getuid() (uid int) { |
1002 | r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) | 1395 | r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0) |
1003 | uid = int(r0) | 1396 | uid = int(r0) |
1004 | return | 1397 | return |
1005 | } | 1398 | } |
1006 | 1399 | ||
1400 | func libc_getuid_trampoline() | ||
1401 | |||
1402 | //go:linkname libc_getuid libc_getuid | ||
1403 | //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib" | ||
1404 | |||
1007 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1405 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1008 | 1406 | ||
1009 | func Issetugid() (tainted bool) { | 1407 | func Issetugid() (tainted bool) { |
1010 | r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0) | 1408 | r0, _, _ := syscall_rawSyscall(funcPC(libc_issetugid_trampoline), 0, 0, 0) |
1011 | tainted = bool(r0 != 0) | 1409 | tainted = bool(r0 != 0) |
1012 | return | 1410 | return |
1013 | } | 1411 | } |
1014 | 1412 | ||
1413 | func libc_issetugid_trampoline() | ||
1414 | |||
1415 | //go:linkname libc_issetugid libc_issetugid | ||
1416 | //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib" | ||
1417 | |||
1015 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1418 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1016 | 1419 | ||
1017 | func Kqueue() (fd int, err error) { | 1420 | func Kqueue() (fd int, err error) { |
1018 | r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) | 1421 | r0, _, e1 := syscall_syscall(funcPC(libc_kqueue_trampoline), 0, 0, 0) |
1019 | fd = int(r0) | 1422 | fd = int(r0) |
1020 | if e1 != 0 { | 1423 | if e1 != 0 { |
1021 | err = errnoErr(e1) | 1424 | err = errnoErr(e1) |
@@ -1023,6 +1426,11 @@ func Kqueue() (fd int, err error) { | |||
1023 | return | 1426 | return |
1024 | } | 1427 | } |
1025 | 1428 | ||
1429 | func libc_kqueue_trampoline() | ||
1430 | |||
1431 | //go:linkname libc_kqueue libc_kqueue | ||
1432 | //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib" | ||
1433 | |||
1026 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1434 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1027 | 1435 | ||
1028 | func Lchown(path string, uid int, gid int) (err error) { | 1436 | func Lchown(path string, uid int, gid int) (err error) { |
@@ -1031,13 +1439,18 @@ func Lchown(path string, uid int, gid int) (err error) { | |||
1031 | if err != nil { | 1439 | if err != nil { |
1032 | return | 1440 | return |
1033 | } | 1441 | } |
1034 | _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | 1442 | _, _, e1 := syscall_syscall(funcPC(libc_lchown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) |
1035 | if e1 != 0 { | 1443 | if e1 != 0 { |
1036 | err = errnoErr(e1) | 1444 | err = errnoErr(e1) |
1037 | } | 1445 | } |
1038 | return | 1446 | return |
1039 | } | 1447 | } |
1040 | 1448 | ||
1449 | func libc_lchown_trampoline() | ||
1450 | |||
1451 | //go:linkname libc_lchown libc_lchown | ||
1452 | //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib" | ||
1453 | |||
1041 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1454 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1042 | 1455 | ||
1043 | func Link(path string, link string) (err error) { | 1456 | func Link(path string, link string) (err error) { |
@@ -1051,13 +1464,18 @@ func Link(path string, link string) (err error) { | |||
1051 | if err != nil { | 1464 | if err != nil { |
1052 | return | 1465 | return |
1053 | } | 1466 | } |
1054 | _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | 1467 | _, _, e1 := syscall_syscall(funcPC(libc_link_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) |
1055 | if e1 != 0 { | 1468 | if e1 != 0 { |
1056 | err = errnoErr(e1) | 1469 | err = errnoErr(e1) |
1057 | } | 1470 | } |
1058 | return | 1471 | return |
1059 | } | 1472 | } |
1060 | 1473 | ||
1474 | func libc_link_trampoline() | ||
1475 | |||
1476 | //go:linkname libc_link libc_link | ||
1477 | //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib" | ||
1478 | |||
1061 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1479 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1062 | 1480 | ||
1063 | func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { | 1481 | func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { |
@@ -1071,37 +1489,32 @@ func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err er | |||
1071 | if err != nil { | 1489 | if err != nil { |
1072 | return | 1490 | return |
1073 | } | 1491 | } |
1074 | _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) | 1492 | _, _, e1 := syscall_syscall6(funcPC(libc_linkat_trampoline), uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) |
1075 | if e1 != 0 { | 1493 | if e1 != 0 { |
1076 | err = errnoErr(e1) | 1494 | err = errnoErr(e1) |
1077 | } | 1495 | } |
1078 | return | 1496 | return |
1079 | } | 1497 | } |
1080 | 1498 | ||
1499 | func libc_linkat_trampoline() | ||
1500 | |||
1501 | //go:linkname libc_linkat libc_linkat | ||
1502 | //go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib" | ||
1503 | |||
1081 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1504 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1082 | 1505 | ||
1083 | func Listen(s int, backlog int) (err error) { | 1506 | func Listen(s int, backlog int) (err error) { |
1084 | _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) | 1507 | _, _, e1 := syscall_syscall(funcPC(libc_listen_trampoline), uintptr(s), uintptr(backlog), 0) |
1085 | if e1 != 0 { | 1508 | if e1 != 0 { |
1086 | err = errnoErr(e1) | 1509 | err = errnoErr(e1) |
1087 | } | 1510 | } |
1088 | return | 1511 | return |
1089 | } | 1512 | } |
1090 | 1513 | ||
1091 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1514 | func libc_listen_trampoline() |
1092 | 1515 | ||
1093 | func Lstat(path string, stat *Stat_t) (err error) { | 1516 | //go:linkname libc_listen libc_listen |
1094 | var _p0 *byte | 1517 | //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib" |
1095 | _p0, err = BytePtrFromString(path) | ||
1096 | if err != nil { | ||
1097 | return | ||
1098 | } | ||
1099 | _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1100 | if e1 != 0 { | ||
1101 | err = errnoErr(e1) | ||
1102 | } | ||
1103 | return | ||
1104 | } | ||
1105 | 1518 | ||
1106 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1519 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1107 | 1520 | ||
@@ -1111,13 +1524,18 @@ func Mkdir(path string, mode uint32) (err error) { | |||
1111 | if err != nil { | 1524 | if err != nil { |
1112 | return | 1525 | return |
1113 | } | 1526 | } |
1114 | _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | 1527 | _, _, e1 := syscall_syscall(funcPC(libc_mkdir_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
1115 | if e1 != 0 { | 1528 | if e1 != 0 { |
1116 | err = errnoErr(e1) | 1529 | err = errnoErr(e1) |
1117 | } | 1530 | } |
1118 | return | 1531 | return |
1119 | } | 1532 | } |
1120 | 1533 | ||
1534 | func libc_mkdir_trampoline() | ||
1535 | |||
1536 | //go:linkname libc_mkdir libc_mkdir | ||
1537 | //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib" | ||
1538 | |||
1121 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1539 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1122 | 1540 | ||
1123 | func Mkdirat(dirfd int, path string, mode uint32) (err error) { | 1541 | func Mkdirat(dirfd int, path string, mode uint32) (err error) { |
@@ -1126,13 +1544,18 @@ func Mkdirat(dirfd int, path string, mode uint32) (err error) { | |||
1126 | if err != nil { | 1544 | if err != nil { |
1127 | return | 1545 | return |
1128 | } | 1546 | } |
1129 | _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) | 1547 | _, _, e1 := syscall_syscall(funcPC(libc_mkdirat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) |
1130 | if e1 != 0 { | 1548 | if e1 != 0 { |
1131 | err = errnoErr(e1) | 1549 | err = errnoErr(e1) |
1132 | } | 1550 | } |
1133 | return | 1551 | return |
1134 | } | 1552 | } |
1135 | 1553 | ||
1554 | func libc_mkdirat_trampoline() | ||
1555 | |||
1556 | //go:linkname libc_mkdirat libc_mkdirat | ||
1557 | //go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib" | ||
1558 | |||
1136 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1559 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1137 | 1560 | ||
1138 | func Mkfifo(path string, mode uint32) (err error) { | 1561 | func Mkfifo(path string, mode uint32) (err error) { |
@@ -1141,13 +1564,18 @@ func Mkfifo(path string, mode uint32) (err error) { | |||
1141 | if err != nil { | 1564 | if err != nil { |
1142 | return | 1565 | return |
1143 | } | 1566 | } |
1144 | _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) | 1567 | _, _, e1 := syscall_syscall(funcPC(libc_mkfifo_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
1145 | if e1 != 0 { | 1568 | if e1 != 0 { |
1146 | err = errnoErr(e1) | 1569 | err = errnoErr(e1) |
1147 | } | 1570 | } |
1148 | return | 1571 | return |
1149 | } | 1572 | } |
1150 | 1573 | ||
1574 | func libc_mkfifo_trampoline() | ||
1575 | |||
1576 | //go:linkname libc_mkfifo libc_mkfifo | ||
1577 | //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib" | ||
1578 | |||
1151 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1579 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1152 | 1580 | ||
1153 | func Mknod(path string, mode uint32, dev int) (err error) { | 1581 | func Mknod(path string, mode uint32, dev int) (err error) { |
@@ -1156,13 +1584,18 @@ func Mknod(path string, mode uint32, dev int) (err error) { | |||
1156 | if err != nil { | 1584 | if err != nil { |
1157 | return | 1585 | return |
1158 | } | 1586 | } |
1159 | _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) | 1587 | _, _, e1 := syscall_syscall(funcPC(libc_mknod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) |
1160 | if e1 != 0 { | 1588 | if e1 != 0 { |
1161 | err = errnoErr(e1) | 1589 | err = errnoErr(e1) |
1162 | } | 1590 | } |
1163 | return | 1591 | return |
1164 | } | 1592 | } |
1165 | 1593 | ||
1594 | func libc_mknod_trampoline() | ||
1595 | |||
1596 | //go:linkname libc_mknod libc_mknod | ||
1597 | //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib" | ||
1598 | |||
1166 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1599 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1167 | 1600 | ||
1168 | func Open(path string, mode int, perm uint32) (fd int, err error) { | 1601 | func Open(path string, mode int, perm uint32) (fd int, err error) { |
@@ -1171,7 +1604,7 @@ func Open(path string, mode int, perm uint32) (fd int, err error) { | |||
1171 | if err != nil { | 1604 | if err != nil { |
1172 | return | 1605 | return |
1173 | } | 1606 | } |
1174 | r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) | 1607 | r0, _, e1 := syscall_syscall(funcPC(libc_open_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) |
1175 | fd = int(r0) | 1608 | fd = int(r0) |
1176 | if e1 != 0 { | 1609 | if e1 != 0 { |
1177 | err = errnoErr(e1) | 1610 | err = errnoErr(e1) |
@@ -1179,6 +1612,11 @@ func Open(path string, mode int, perm uint32) (fd int, err error) { | |||
1179 | return | 1612 | return |
1180 | } | 1613 | } |
1181 | 1614 | ||
1615 | func libc_open_trampoline() | ||
1616 | |||
1617 | //go:linkname libc_open libc_open | ||
1618 | //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib" | ||
1619 | |||
1182 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1620 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1183 | 1621 | ||
1184 | func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { | 1622 | func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { |
@@ -1187,7 +1625,7 @@ func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { | |||
1187 | if err != nil { | 1625 | if err != nil { |
1188 | return | 1626 | return |
1189 | } | 1627 | } |
1190 | r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) | 1628 | r0, _, e1 := syscall_syscall6(funcPC(libc_openat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) |
1191 | fd = int(r0) | 1629 | fd = int(r0) |
1192 | if e1 != 0 { | 1630 | if e1 != 0 { |
1193 | err = errnoErr(e1) | 1631 | err = errnoErr(e1) |
@@ -1195,6 +1633,11 @@ func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { | |||
1195 | return | 1633 | return |
1196 | } | 1634 | } |
1197 | 1635 | ||
1636 | func libc_openat_trampoline() | ||
1637 | |||
1638 | //go:linkname libc_openat libc_openat | ||
1639 | //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib" | ||
1640 | |||
1198 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1641 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1199 | 1642 | ||
1200 | func Pathconf(path string, name int) (val int, err error) { | 1643 | func Pathconf(path string, name int) (val int, err error) { |
@@ -1203,7 +1646,7 @@ func Pathconf(path string, name int) (val int, err error) { | |||
1203 | if err != nil { | 1646 | if err != nil { |
1204 | return | 1647 | return |
1205 | } | 1648 | } |
1206 | r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) | 1649 | r0, _, e1 := syscall_syscall(funcPC(libc_pathconf_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) |
1207 | val = int(r0) | 1650 | val = int(r0) |
1208 | if e1 != 0 { | 1651 | if e1 != 0 { |
1209 | err = errnoErr(e1) | 1652 | err = errnoErr(e1) |
@@ -1211,6 +1654,11 @@ func Pathconf(path string, name int) (val int, err error) { | |||
1211 | return | 1654 | return |
1212 | } | 1655 | } |
1213 | 1656 | ||
1657 | func libc_pathconf_trampoline() | ||
1658 | |||
1659 | //go:linkname libc_pathconf libc_pathconf | ||
1660 | //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib" | ||
1661 | |||
1214 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1662 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1215 | 1663 | ||
1216 | func Pread(fd int, p []byte, offset int64) (n int, err error) { | 1664 | func Pread(fd int, p []byte, offset int64) (n int, err error) { |
@@ -1220,7 +1668,7 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) { | |||
1220 | } else { | 1668 | } else { |
1221 | _p0 = unsafe.Pointer(&_zero) | 1669 | _p0 = unsafe.Pointer(&_zero) |
1222 | } | 1670 | } |
1223 | r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) | 1671 | r0, _, e1 := syscall_syscall6(funcPC(libc_pread_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) |
1224 | n = int(r0) | 1672 | n = int(r0) |
1225 | if e1 != 0 { | 1673 | if e1 != 0 { |
1226 | err = errnoErr(e1) | 1674 | err = errnoErr(e1) |
@@ -1228,6 +1676,11 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) { | |||
1228 | return | 1676 | return |
1229 | } | 1677 | } |
1230 | 1678 | ||
1679 | func libc_pread_trampoline() | ||
1680 | |||
1681 | //go:linkname libc_pread libc_pread | ||
1682 | //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib" | ||
1683 | |||
1231 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1684 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1232 | 1685 | ||
1233 | func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | 1686 | func Pwrite(fd int, p []byte, offset int64) (n int, err error) { |
@@ -1237,7 +1690,7 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | |||
1237 | } else { | 1690 | } else { |
1238 | _p0 = unsafe.Pointer(&_zero) | 1691 | _p0 = unsafe.Pointer(&_zero) |
1239 | } | 1692 | } |
1240 | r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) | 1693 | r0, _, e1 := syscall_syscall6(funcPC(libc_pwrite_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) |
1241 | n = int(r0) | 1694 | n = int(r0) |
1242 | if e1 != 0 { | 1695 | if e1 != 0 { |
1243 | err = errnoErr(e1) | 1696 | err = errnoErr(e1) |
@@ -1245,6 +1698,11 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | |||
1245 | return | 1698 | return |
1246 | } | 1699 | } |
1247 | 1700 | ||
1701 | func libc_pwrite_trampoline() | ||
1702 | |||
1703 | //go:linkname libc_pwrite libc_pwrite | ||
1704 | //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib" | ||
1705 | |||
1248 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1706 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1249 | 1707 | ||
1250 | func read(fd int, p []byte) (n int, err error) { | 1708 | func read(fd int, p []byte) (n int, err error) { |
@@ -1254,7 +1712,7 @@ func read(fd int, p []byte) (n int, err error) { | |||
1254 | } else { | 1712 | } else { |
1255 | _p0 = unsafe.Pointer(&_zero) | 1713 | _p0 = unsafe.Pointer(&_zero) |
1256 | } | 1714 | } |
1257 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) | 1715 | r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p))) |
1258 | n = int(r0) | 1716 | n = int(r0) |
1259 | if e1 != 0 { | 1717 | if e1 != 0 { |
1260 | err = errnoErr(e1) | 1718 | err = errnoErr(e1) |
@@ -1262,6 +1720,11 @@ func read(fd int, p []byte) (n int, err error) { | |||
1262 | return | 1720 | return |
1263 | } | 1721 | } |
1264 | 1722 | ||
1723 | func libc_read_trampoline() | ||
1724 | |||
1725 | //go:linkname libc_read libc_read | ||
1726 | //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib" | ||
1727 | |||
1265 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1728 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1266 | 1729 | ||
1267 | func Readlink(path string, buf []byte) (n int, err error) { | 1730 | func Readlink(path string, buf []byte) (n int, err error) { |
@@ -1276,7 +1739,7 @@ func Readlink(path string, buf []byte) (n int, err error) { | |||
1276 | } else { | 1739 | } else { |
1277 | _p1 = unsafe.Pointer(&_zero) | 1740 | _p1 = unsafe.Pointer(&_zero) |
1278 | } | 1741 | } |
1279 | r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) | 1742 | r0, _, e1 := syscall_syscall(funcPC(libc_readlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) |
1280 | n = int(r0) | 1743 | n = int(r0) |
1281 | if e1 != 0 { | 1744 | if e1 != 0 { |
1282 | err = errnoErr(e1) | 1745 | err = errnoErr(e1) |
@@ -1284,6 +1747,11 @@ func Readlink(path string, buf []byte) (n int, err error) { | |||
1284 | return | 1747 | return |
1285 | } | 1748 | } |
1286 | 1749 | ||
1750 | func libc_readlink_trampoline() | ||
1751 | |||
1752 | //go:linkname libc_readlink libc_readlink | ||
1753 | //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib" | ||
1754 | |||
1287 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1755 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1288 | 1756 | ||
1289 | func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { | 1757 | func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { |
@@ -1298,7 +1766,7 @@ func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { | |||
1298 | } else { | 1766 | } else { |
1299 | _p1 = unsafe.Pointer(&_zero) | 1767 | _p1 = unsafe.Pointer(&_zero) |
1300 | } | 1768 | } |
1301 | r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) | 1769 | r0, _, e1 := syscall_syscall6(funcPC(libc_readlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) |
1302 | n = int(r0) | 1770 | n = int(r0) |
1303 | if e1 != 0 { | 1771 | if e1 != 0 { |
1304 | err = errnoErr(e1) | 1772 | err = errnoErr(e1) |
@@ -1306,6 +1774,11 @@ func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { | |||
1306 | return | 1774 | return |
1307 | } | 1775 | } |
1308 | 1776 | ||
1777 | func libc_readlinkat_trampoline() | ||
1778 | |||
1779 | //go:linkname libc_readlinkat libc_readlinkat | ||
1780 | //go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib" | ||
1781 | |||
1309 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1782 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1310 | 1783 | ||
1311 | func Rename(from string, to string) (err error) { | 1784 | func Rename(from string, to string) (err error) { |
@@ -1319,13 +1792,18 @@ func Rename(from string, to string) (err error) { | |||
1319 | if err != nil { | 1792 | if err != nil { |
1320 | return | 1793 | return |
1321 | } | 1794 | } |
1322 | _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | 1795 | _, _, e1 := syscall_syscall(funcPC(libc_rename_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) |
1323 | if e1 != 0 { | 1796 | if e1 != 0 { |
1324 | err = errnoErr(e1) | 1797 | err = errnoErr(e1) |
1325 | } | 1798 | } |
1326 | return | 1799 | return |
1327 | } | 1800 | } |
1328 | 1801 | ||
1802 | func libc_rename_trampoline() | ||
1803 | |||
1804 | //go:linkname libc_rename libc_rename | ||
1805 | //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib" | ||
1806 | |||
1329 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1807 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1330 | 1808 | ||
1331 | func Renameat(fromfd int, from string, tofd int, to string) (err error) { | 1809 | func Renameat(fromfd int, from string, tofd int, to string) (err error) { |
@@ -1339,13 +1817,18 @@ func Renameat(fromfd int, from string, tofd int, to string) (err error) { | |||
1339 | if err != nil { | 1817 | if err != nil { |
1340 | return | 1818 | return |
1341 | } | 1819 | } |
1342 | _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) | 1820 | _, _, e1 := syscall_syscall6(funcPC(libc_renameat_trampoline), uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) |
1343 | if e1 != 0 { | 1821 | if e1 != 0 { |
1344 | err = errnoErr(e1) | 1822 | err = errnoErr(e1) |
1345 | } | 1823 | } |
1346 | return | 1824 | return |
1347 | } | 1825 | } |
1348 | 1826 | ||
1827 | func libc_renameat_trampoline() | ||
1828 | |||
1829 | //go:linkname libc_renameat libc_renameat | ||
1830 | //go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib" | ||
1831 | |||
1349 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1832 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1350 | 1833 | ||
1351 | func Revoke(path string) (err error) { | 1834 | func Revoke(path string) (err error) { |
@@ -1354,13 +1837,18 @@ func Revoke(path string) (err error) { | |||
1354 | if err != nil { | 1837 | if err != nil { |
1355 | return | 1838 | return |
1356 | } | 1839 | } |
1357 | _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) | 1840 | _, _, e1 := syscall_syscall(funcPC(libc_revoke_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1358 | if e1 != 0 { | 1841 | if e1 != 0 { |
1359 | err = errnoErr(e1) | 1842 | err = errnoErr(e1) |
1360 | } | 1843 | } |
1361 | return | 1844 | return |
1362 | } | 1845 | } |
1363 | 1846 | ||
1847 | func libc_revoke_trampoline() | ||
1848 | |||
1849 | //go:linkname libc_revoke libc_revoke | ||
1850 | //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib" | ||
1851 | |||
1364 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1852 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1365 | 1853 | ||
1366 | func Rmdir(path string) (err error) { | 1854 | func Rmdir(path string) (err error) { |
@@ -1369,17 +1857,22 @@ func Rmdir(path string) (err error) { | |||
1369 | if err != nil { | 1857 | if err != nil { |
1370 | return | 1858 | return |
1371 | } | 1859 | } |
1372 | _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) | 1860 | _, _, e1 := syscall_syscall(funcPC(libc_rmdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1373 | if e1 != 0 { | 1861 | if e1 != 0 { |
1374 | err = errnoErr(e1) | 1862 | err = errnoErr(e1) |
1375 | } | 1863 | } |
1376 | return | 1864 | return |
1377 | } | 1865 | } |
1378 | 1866 | ||
1867 | func libc_rmdir_trampoline() | ||
1868 | |||
1869 | //go:linkname libc_rmdir libc_rmdir | ||
1870 | //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib" | ||
1871 | |||
1379 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1872 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1380 | 1873 | ||
1381 | func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { | 1874 | func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { |
1382 | r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) | 1875 | r0, _, e1 := syscall_syscall(funcPC(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(whence)) |
1383 | newoffset = int64(r0) | 1876 | newoffset = int64(r0) |
1384 | if e1 != 0 { | 1877 | if e1 != 0 { |
1385 | err = errnoErr(e1) | 1878 | err = errnoErr(e1) |
@@ -1387,46 +1880,71 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { | |||
1387 | return | 1880 | return |
1388 | } | 1881 | } |
1389 | 1882 | ||
1883 | func libc_lseek_trampoline() | ||
1884 | |||
1885 | //go:linkname libc_lseek libc_lseek | ||
1886 | //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib" | ||
1887 | |||
1390 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1888 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1391 | 1889 | ||
1392 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { | 1890 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { |
1393 | _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | 1891 | _, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) |
1394 | if e1 != 0 { | 1892 | if e1 != 0 { |
1395 | err = errnoErr(e1) | 1893 | err = errnoErr(e1) |
1396 | } | 1894 | } |
1397 | return | 1895 | return |
1398 | } | 1896 | } |
1399 | 1897 | ||
1898 | func libc_select_trampoline() | ||
1899 | |||
1900 | //go:linkname libc_select libc_select | ||
1901 | //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib" | ||
1902 | |||
1400 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1903 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1401 | 1904 | ||
1402 | func Setegid(egid int) (err error) { | 1905 | func Setegid(egid int) (err error) { |
1403 | _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0) | 1906 | _, _, e1 := syscall_syscall(funcPC(libc_setegid_trampoline), uintptr(egid), 0, 0) |
1404 | if e1 != 0 { | 1907 | if e1 != 0 { |
1405 | err = errnoErr(e1) | 1908 | err = errnoErr(e1) |
1406 | } | 1909 | } |
1407 | return | 1910 | return |
1408 | } | 1911 | } |
1409 | 1912 | ||
1913 | func libc_setegid_trampoline() | ||
1914 | |||
1915 | //go:linkname libc_setegid libc_setegid | ||
1916 | //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib" | ||
1917 | |||
1410 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1918 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1411 | 1919 | ||
1412 | func Seteuid(euid int) (err error) { | 1920 | func Seteuid(euid int) (err error) { |
1413 | _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) | 1921 | _, _, e1 := syscall_rawSyscall(funcPC(libc_seteuid_trampoline), uintptr(euid), 0, 0) |
1414 | if e1 != 0 { | 1922 | if e1 != 0 { |
1415 | err = errnoErr(e1) | 1923 | err = errnoErr(e1) |
1416 | } | 1924 | } |
1417 | return | 1925 | return |
1418 | } | 1926 | } |
1419 | 1927 | ||
1928 | func libc_seteuid_trampoline() | ||
1929 | |||
1930 | //go:linkname libc_seteuid libc_seteuid | ||
1931 | //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib" | ||
1932 | |||
1420 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1933 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1421 | 1934 | ||
1422 | func Setgid(gid int) (err error) { | 1935 | func Setgid(gid int) (err error) { |
1423 | _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) | 1936 | _, _, e1 := syscall_rawSyscall(funcPC(libc_setgid_trampoline), uintptr(gid), 0, 0) |
1424 | if e1 != 0 { | 1937 | if e1 != 0 { |
1425 | err = errnoErr(e1) | 1938 | err = errnoErr(e1) |
1426 | } | 1939 | } |
1427 | return | 1940 | return |
1428 | } | 1941 | } |
1429 | 1942 | ||
1943 | func libc_setgid_trampoline() | ||
1944 | |||
1945 | //go:linkname libc_setgid libc_setgid | ||
1946 | //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib" | ||
1947 | |||
1430 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1948 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1431 | 1949 | ||
1432 | func Setlogin(name string) (err error) { | 1950 | func Setlogin(name string) (err error) { |
@@ -1435,77 +1953,112 @@ func Setlogin(name string) (err error) { | |||
1435 | if err != nil { | 1953 | if err != nil { |
1436 | return | 1954 | return |
1437 | } | 1955 | } |
1438 | _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) | 1956 | _, _, e1 := syscall_syscall(funcPC(libc_setlogin_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1439 | if e1 != 0 { | 1957 | if e1 != 0 { |
1440 | err = errnoErr(e1) | 1958 | err = errnoErr(e1) |
1441 | } | 1959 | } |
1442 | return | 1960 | return |
1443 | } | 1961 | } |
1444 | 1962 | ||
1963 | func libc_setlogin_trampoline() | ||
1964 | |||
1965 | //go:linkname libc_setlogin libc_setlogin | ||
1966 | //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib" | ||
1967 | |||
1445 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1968 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1446 | 1969 | ||
1447 | func Setpgid(pid int, pgid int) (err error) { | 1970 | func Setpgid(pid int, pgid int) (err error) { |
1448 | _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) | 1971 | _, _, e1 := syscall_rawSyscall(funcPC(libc_setpgid_trampoline), uintptr(pid), uintptr(pgid), 0) |
1449 | if e1 != 0 { | 1972 | if e1 != 0 { |
1450 | err = errnoErr(e1) | 1973 | err = errnoErr(e1) |
1451 | } | 1974 | } |
1452 | return | 1975 | return |
1453 | } | 1976 | } |
1454 | 1977 | ||
1978 | func libc_setpgid_trampoline() | ||
1979 | |||
1980 | //go:linkname libc_setpgid libc_setpgid | ||
1981 | //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib" | ||
1982 | |||
1455 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1983 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1456 | 1984 | ||
1457 | func Setpriority(which int, who int, prio int) (err error) { | 1985 | func Setpriority(which int, who int, prio int) (err error) { |
1458 | _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) | 1986 | _, _, e1 := syscall_syscall(funcPC(libc_setpriority_trampoline), uintptr(which), uintptr(who), uintptr(prio)) |
1459 | if e1 != 0 { | 1987 | if e1 != 0 { |
1460 | err = errnoErr(e1) | 1988 | err = errnoErr(e1) |
1461 | } | 1989 | } |
1462 | return | 1990 | return |
1463 | } | 1991 | } |
1464 | 1992 | ||
1993 | func libc_setpriority_trampoline() | ||
1994 | |||
1995 | //go:linkname libc_setpriority libc_setpriority | ||
1996 | //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib" | ||
1997 | |||
1465 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1998 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1466 | 1999 | ||
1467 | func Setprivexec(flag int) (err error) { | 2000 | func Setprivexec(flag int) (err error) { |
1468 | _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0) | 2001 | _, _, e1 := syscall_syscall(funcPC(libc_setprivexec_trampoline), uintptr(flag), 0, 0) |
1469 | if e1 != 0 { | 2002 | if e1 != 0 { |
1470 | err = errnoErr(e1) | 2003 | err = errnoErr(e1) |
1471 | } | 2004 | } |
1472 | return | 2005 | return |
1473 | } | 2006 | } |
1474 | 2007 | ||
2008 | func libc_setprivexec_trampoline() | ||
2009 | |||
2010 | //go:linkname libc_setprivexec libc_setprivexec | ||
2011 | //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib" | ||
2012 | |||
1475 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2013 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1476 | 2014 | ||
1477 | func Setregid(rgid int, egid int) (err error) { | 2015 | func Setregid(rgid int, egid int) (err error) { |
1478 | _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) | 2016 | _, _, e1 := syscall_rawSyscall(funcPC(libc_setregid_trampoline), uintptr(rgid), uintptr(egid), 0) |
1479 | if e1 != 0 { | 2017 | if e1 != 0 { |
1480 | err = errnoErr(e1) | 2018 | err = errnoErr(e1) |
1481 | } | 2019 | } |
1482 | return | 2020 | return |
1483 | } | 2021 | } |
1484 | 2022 | ||
2023 | func libc_setregid_trampoline() | ||
2024 | |||
2025 | //go:linkname libc_setregid libc_setregid | ||
2026 | //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib" | ||
2027 | |||
1485 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2028 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1486 | 2029 | ||
1487 | func Setreuid(ruid int, euid int) (err error) { | 2030 | func Setreuid(ruid int, euid int) (err error) { |
1488 | _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) | 2031 | _, _, e1 := syscall_rawSyscall(funcPC(libc_setreuid_trampoline), uintptr(ruid), uintptr(euid), 0) |
1489 | if e1 != 0 { | 2032 | if e1 != 0 { |
1490 | err = errnoErr(e1) | 2033 | err = errnoErr(e1) |
1491 | } | 2034 | } |
1492 | return | 2035 | return |
1493 | } | 2036 | } |
1494 | 2037 | ||
2038 | func libc_setreuid_trampoline() | ||
2039 | |||
2040 | //go:linkname libc_setreuid libc_setreuid | ||
2041 | //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib" | ||
2042 | |||
1495 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2043 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1496 | 2044 | ||
1497 | func Setrlimit(which int, lim *Rlimit) (err error) { | 2045 | func Setrlimit(which int, lim *Rlimit) (err error) { |
1498 | _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) | 2046 | _, _, e1 := syscall_rawSyscall(funcPC(libc_setrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0) |
1499 | if e1 != 0 { | 2047 | if e1 != 0 { |
1500 | err = errnoErr(e1) | 2048 | err = errnoErr(e1) |
1501 | } | 2049 | } |
1502 | return | 2050 | return |
1503 | } | 2051 | } |
1504 | 2052 | ||
2053 | func libc_setrlimit_trampoline() | ||
2054 | |||
2055 | //go:linkname libc_setrlimit libc_setrlimit | ||
2056 | //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib" | ||
2057 | |||
1505 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2058 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1506 | 2059 | ||
1507 | func Setsid() (pid int, err error) { | 2060 | func Setsid() (pid int, err error) { |
1508 | r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) | 2061 | r0, _, e1 := syscall_rawSyscall(funcPC(libc_setsid_trampoline), 0, 0, 0) |
1509 | pid = int(r0) | 2062 | pid = int(r0) |
1510 | if e1 != 0 { | 2063 | if e1 != 0 { |
1511 | err = errnoErr(e1) | 2064 | err = errnoErr(e1) |
@@ -1513,55 +2066,40 @@ func Setsid() (pid int, err error) { | |||
1513 | return | 2066 | return |
1514 | } | 2067 | } |
1515 | 2068 | ||
2069 | func libc_setsid_trampoline() | ||
2070 | |||
2071 | //go:linkname libc_setsid libc_setsid | ||
2072 | //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib" | ||
2073 | |||
1516 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2074 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1517 | 2075 | ||
1518 | func Settimeofday(tp *Timeval) (err error) { | 2076 | func Settimeofday(tp *Timeval) (err error) { |
1519 | _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) | 2077 | _, _, e1 := syscall_rawSyscall(funcPC(libc_settimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) |
1520 | if e1 != 0 { | 2078 | if e1 != 0 { |
1521 | err = errnoErr(e1) | 2079 | err = errnoErr(e1) |
1522 | } | 2080 | } |
1523 | return | 2081 | return |
1524 | } | 2082 | } |
1525 | 2083 | ||
1526 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2084 | func libc_settimeofday_trampoline() |
1527 | 2085 | ||
1528 | func Setuid(uid int) (err error) { | 2086 | //go:linkname libc_settimeofday libc_settimeofday |
1529 | _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) | 2087 | //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib" |
1530 | if e1 != 0 { | ||
1531 | err = errnoErr(e1) | ||
1532 | } | ||
1533 | return | ||
1534 | } | ||
1535 | 2088 | ||
1536 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2089 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1537 | 2090 | ||
1538 | func Stat(path string, stat *Stat_t) (err error) { | 2091 | func Setuid(uid int) (err error) { |
1539 | var _p0 *byte | 2092 | _, _, e1 := syscall_rawSyscall(funcPC(libc_setuid_trampoline), uintptr(uid), 0, 0) |
1540 | _p0, err = BytePtrFromString(path) | ||
1541 | if err != nil { | ||
1542 | return | ||
1543 | } | ||
1544 | _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1545 | if e1 != 0 { | 2093 | if e1 != 0 { |
1546 | err = errnoErr(e1) | 2094 | err = errnoErr(e1) |
1547 | } | 2095 | } |
1548 | return | 2096 | return |
1549 | } | 2097 | } |
1550 | 2098 | ||
1551 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2099 | func libc_setuid_trampoline() |
1552 | 2100 | ||
1553 | func Statfs(path string, stat *Statfs_t) (err error) { | 2101 | //go:linkname libc_setuid libc_setuid |
1554 | var _p0 *byte | 2102 | //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib" |
1555 | _p0, err = BytePtrFromString(path) | ||
1556 | if err != nil { | ||
1557 | return | ||
1558 | } | ||
1559 | _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1560 | if e1 != 0 { | ||
1561 | err = errnoErr(e1) | ||
1562 | } | ||
1563 | return | ||
1564 | } | ||
1565 | 2103 | ||
1566 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2104 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1567 | 2105 | ||
@@ -1576,13 +2114,18 @@ func Symlink(path string, link string) (err error) { | |||
1576 | if err != nil { | 2114 | if err != nil { |
1577 | return | 2115 | return |
1578 | } | 2116 | } |
1579 | _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) | 2117 | _, _, e1 := syscall_syscall(funcPC(libc_symlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) |
1580 | if e1 != 0 { | 2118 | if e1 != 0 { |
1581 | err = errnoErr(e1) | 2119 | err = errnoErr(e1) |
1582 | } | 2120 | } |
1583 | return | 2121 | return |
1584 | } | 2122 | } |
1585 | 2123 | ||
2124 | func libc_symlink_trampoline() | ||
2125 | |||
2126 | //go:linkname libc_symlink libc_symlink | ||
2127 | //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib" | ||
2128 | |||
1586 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2129 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1587 | 2130 | ||
1588 | func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { | 2131 | func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { |
@@ -1596,23 +2139,33 @@ func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { | |||
1596 | if err != nil { | 2139 | if err != nil { |
1597 | return | 2140 | return |
1598 | } | 2141 | } |
1599 | _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) | 2142 | _, _, e1 := syscall_syscall(funcPC(libc_symlinkat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) |
1600 | if e1 != 0 { | 2143 | if e1 != 0 { |
1601 | err = errnoErr(e1) | 2144 | err = errnoErr(e1) |
1602 | } | 2145 | } |
1603 | return | 2146 | return |
1604 | } | 2147 | } |
1605 | 2148 | ||
2149 | func libc_symlinkat_trampoline() | ||
2150 | |||
2151 | //go:linkname libc_symlinkat libc_symlinkat | ||
2152 | //go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib" | ||
2153 | |||
1606 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2154 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1607 | 2155 | ||
1608 | func Sync() (err error) { | 2156 | func Sync() (err error) { |
1609 | _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) | 2157 | _, _, e1 := syscall_syscall(funcPC(libc_sync_trampoline), 0, 0, 0) |
1610 | if e1 != 0 { | 2158 | if e1 != 0 { |
1611 | err = errnoErr(e1) | 2159 | err = errnoErr(e1) |
1612 | } | 2160 | } |
1613 | return | 2161 | return |
1614 | } | 2162 | } |
1615 | 2163 | ||
2164 | func libc_sync_trampoline() | ||
2165 | |||
2166 | //go:linkname libc_sync libc_sync | ||
2167 | //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib" | ||
2168 | |||
1616 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2169 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1617 | 2170 | ||
1618 | func Truncate(path string, length int64) (err error) { | 2171 | func Truncate(path string, length int64) (err error) { |
@@ -1621,21 +2174,31 @@ func Truncate(path string, length int64) (err error) { | |||
1621 | if err != nil { | 2174 | if err != nil { |
1622 | return | 2175 | return |
1623 | } | 2176 | } |
1624 | _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) | 2177 | _, _, e1 := syscall_syscall(funcPC(libc_truncate_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) |
1625 | if e1 != 0 { | 2178 | if e1 != 0 { |
1626 | err = errnoErr(e1) | 2179 | err = errnoErr(e1) |
1627 | } | 2180 | } |
1628 | return | 2181 | return |
1629 | } | 2182 | } |
1630 | 2183 | ||
2184 | func libc_truncate_trampoline() | ||
2185 | |||
2186 | //go:linkname libc_truncate libc_truncate | ||
2187 | //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib" | ||
2188 | |||
1631 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2189 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1632 | 2190 | ||
1633 | func Umask(newmask int) (oldmask int) { | 2191 | func Umask(newmask int) (oldmask int) { |
1634 | r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) | 2192 | r0, _, _ := syscall_syscall(funcPC(libc_umask_trampoline), uintptr(newmask), 0, 0) |
1635 | oldmask = int(r0) | 2193 | oldmask = int(r0) |
1636 | return | 2194 | return |
1637 | } | 2195 | } |
1638 | 2196 | ||
2197 | func libc_umask_trampoline() | ||
2198 | |||
2199 | //go:linkname libc_umask libc_umask | ||
2200 | //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib" | ||
2201 | |||
1639 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2202 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1640 | 2203 | ||
1641 | func Undelete(path string) (err error) { | 2204 | func Undelete(path string) (err error) { |
@@ -1644,13 +2207,18 @@ func Undelete(path string) (err error) { | |||
1644 | if err != nil { | 2207 | if err != nil { |
1645 | return | 2208 | return |
1646 | } | 2209 | } |
1647 | _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) | 2210 | _, _, e1 := syscall_syscall(funcPC(libc_undelete_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1648 | if e1 != 0 { | 2211 | if e1 != 0 { |
1649 | err = errnoErr(e1) | 2212 | err = errnoErr(e1) |
1650 | } | 2213 | } |
1651 | return | 2214 | return |
1652 | } | 2215 | } |
1653 | 2216 | ||
2217 | func libc_undelete_trampoline() | ||
2218 | |||
2219 | //go:linkname libc_undelete libc_undelete | ||
2220 | //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib" | ||
2221 | |||
1654 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2222 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1655 | 2223 | ||
1656 | func Unlink(path string) (err error) { | 2224 | func Unlink(path string) (err error) { |
@@ -1659,13 +2227,18 @@ func Unlink(path string) (err error) { | |||
1659 | if err != nil { | 2227 | if err != nil { |
1660 | return | 2228 | return |
1661 | } | 2229 | } |
1662 | _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) | 2230 | _, _, e1 := syscall_syscall(funcPC(libc_unlink_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1663 | if e1 != 0 { | 2231 | if e1 != 0 { |
1664 | err = errnoErr(e1) | 2232 | err = errnoErr(e1) |
1665 | } | 2233 | } |
1666 | return | 2234 | return |
1667 | } | 2235 | } |
1668 | 2236 | ||
2237 | func libc_unlink_trampoline() | ||
2238 | |||
2239 | //go:linkname libc_unlink libc_unlink | ||
2240 | //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib" | ||
2241 | |||
1669 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2242 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1670 | 2243 | ||
1671 | func Unlinkat(dirfd int, path string, flags int) (err error) { | 2244 | func Unlinkat(dirfd int, path string, flags int) (err error) { |
@@ -1674,13 +2247,18 @@ func Unlinkat(dirfd int, path string, flags int) (err error) { | |||
1674 | if err != nil { | 2247 | if err != nil { |
1675 | return | 2248 | return |
1676 | } | 2249 | } |
1677 | _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) | 2250 | _, _, e1 := syscall_syscall(funcPC(libc_unlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) |
1678 | if e1 != 0 { | 2251 | if e1 != 0 { |
1679 | err = errnoErr(e1) | 2252 | err = errnoErr(e1) |
1680 | } | 2253 | } |
1681 | return | 2254 | return |
1682 | } | 2255 | } |
1683 | 2256 | ||
2257 | func libc_unlinkat_trampoline() | ||
2258 | |||
2259 | //go:linkname libc_unlinkat libc_unlinkat | ||
2260 | //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib" | ||
2261 | |||
1684 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2262 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1685 | 2263 | ||
1686 | func Unmount(path string, flags int) (err error) { | 2264 | func Unmount(path string, flags int) (err error) { |
@@ -1689,13 +2267,18 @@ func Unmount(path string, flags int) (err error) { | |||
1689 | if err != nil { | 2267 | if err != nil { |
1690 | return | 2268 | return |
1691 | } | 2269 | } |
1692 | _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | 2270 | _, _, e1 := syscall_syscall(funcPC(libc_unmount_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) |
1693 | if e1 != 0 { | 2271 | if e1 != 0 { |
1694 | err = errnoErr(e1) | 2272 | err = errnoErr(e1) |
1695 | } | 2273 | } |
1696 | return | 2274 | return |
1697 | } | 2275 | } |
1698 | 2276 | ||
2277 | func libc_unmount_trampoline() | ||
2278 | |||
2279 | //go:linkname libc_unmount libc_unmount | ||
2280 | //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib" | ||
2281 | |||
1699 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2282 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1700 | 2283 | ||
1701 | func write(fd int, p []byte) (n int, err error) { | 2284 | func write(fd int, p []byte) (n int, err error) { |
@@ -1705,7 +2288,7 @@ func write(fd int, p []byte) (n int, err error) { | |||
1705 | } else { | 2288 | } else { |
1706 | _p0 = unsafe.Pointer(&_zero) | 2289 | _p0 = unsafe.Pointer(&_zero) |
1707 | } | 2290 | } |
1708 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) | 2291 | r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p))) |
1709 | n = int(r0) | 2292 | n = int(r0) |
1710 | if e1 != 0 { | 2293 | if e1 != 0 { |
1711 | err = errnoErr(e1) | 2294 | err = errnoErr(e1) |
@@ -1713,10 +2296,15 @@ func write(fd int, p []byte) (n int, err error) { | |||
1713 | return | 2296 | return |
1714 | } | 2297 | } |
1715 | 2298 | ||
2299 | func libc_write_trampoline() | ||
2300 | |||
2301 | //go:linkname libc_write libc_write | ||
2302 | //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib" | ||
2303 | |||
1716 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2304 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1717 | 2305 | ||
1718 | func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { | 2306 | func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { |
1719 | r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) | 2307 | r0, _, e1 := syscall_syscall6(funcPC(libc_mmap_trampoline), uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) |
1720 | ret = uintptr(r0) | 2308 | ret = uintptr(r0) |
1721 | if e1 != 0 { | 2309 | if e1 != 0 { |
1722 | err = errnoErr(e1) | 2310 | err = errnoErr(e1) |
@@ -1724,20 +2312,30 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) ( | |||
1724 | return | 2312 | return |
1725 | } | 2313 | } |
1726 | 2314 | ||
2315 | func libc_mmap_trampoline() | ||
2316 | |||
2317 | //go:linkname libc_mmap libc_mmap | ||
2318 | //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib" | ||
2319 | |||
1727 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2320 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1728 | 2321 | ||
1729 | func munmap(addr uintptr, length uintptr) (err error) { | 2322 | func munmap(addr uintptr, length uintptr) (err error) { |
1730 | _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) | 2323 | _, _, e1 := syscall_syscall(funcPC(libc_munmap_trampoline), uintptr(addr), uintptr(length), 0) |
1731 | if e1 != 0 { | 2324 | if e1 != 0 { |
1732 | err = errnoErr(e1) | 2325 | err = errnoErr(e1) |
1733 | } | 2326 | } |
1734 | return | 2327 | return |
1735 | } | 2328 | } |
1736 | 2329 | ||
2330 | func libc_munmap_trampoline() | ||
2331 | |||
2332 | //go:linkname libc_munmap libc_munmap | ||
2333 | //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib" | ||
2334 | |||
1737 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2335 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1738 | 2336 | ||
1739 | func readlen(fd int, buf *byte, nbuf int) (n int, err error) { | 2337 | func readlen(fd int, buf *byte, nbuf int) (n int, err error) { |
1740 | r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) | 2338 | r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) |
1741 | n = int(r0) | 2339 | n = int(r0) |
1742 | if e1 != 0 { | 2340 | if e1 != 0 { |
1743 | err = errnoErr(e1) | 2341 | err = errnoErr(e1) |
@@ -1748,7 +2346,7 @@ func readlen(fd int, buf *byte, nbuf int) (n int, err error) { | |||
1748 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2346 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1749 | 2347 | ||
1750 | func writelen(fd int, buf *byte, nbuf int) (n int, err error) { | 2348 | func writelen(fd int, buf *byte, nbuf int) (n int, err error) { |
1751 | r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) | 2349 | r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) |
1752 | n = int(r0) | 2350 | n = int(r0) |
1753 | if e1 != 0 { | 2351 | if e1 != 0 { |
1754 | err = errnoErr(e1) | 2352 | err = errnoErr(e1) |
@@ -1759,7 +2357,7 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { | |||
1759 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 2357 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1760 | 2358 | ||
1761 | func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { | 2359 | func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { |
1762 | r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) | 2360 | r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) |
1763 | sec = int64(r0) | 2361 | sec = int64(r0) |
1764 | usec = int32(r1) | 2362 | usec = int32(r1) |
1765 | if e1 != 0 { | 2363 | if e1 != 0 { |
@@ -1767,3 +2365,156 @@ func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { | |||
1767 | } | 2365 | } |
1768 | return | 2366 | return |
1769 | } | 2367 | } |
2368 | |||
2369 | func libc_gettimeofday_trampoline() | ||
2370 | |||
2371 | //go:linkname libc_gettimeofday libc_gettimeofday | ||
2372 | //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" | ||
2373 | |||
2374 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2375 | |||
2376 | func Fstat(fd int, stat *Stat_t) (err error) { | ||
2377 | _, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | ||
2378 | if e1 != 0 { | ||
2379 | err = errnoErr(e1) | ||
2380 | } | ||
2381 | return | ||
2382 | } | ||
2383 | |||
2384 | func libc_fstat64_trampoline() | ||
2385 | |||
2386 | //go:linkname libc_fstat64 libc_fstat64 | ||
2387 | //go:cgo_import_dynamic libc_fstat64 fstat64 "/usr/lib/libSystem.B.dylib" | ||
2388 | |||
2389 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2390 | |||
2391 | func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { | ||
2392 | var _p0 *byte | ||
2393 | _p0, err = BytePtrFromString(path) | ||
2394 | if err != nil { | ||
2395 | return | ||
2396 | } | ||
2397 | _, _, e1 := syscall_syscall6(funcPC(libc_fstatat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) | ||
2398 | if e1 != 0 { | ||
2399 | err = errnoErr(e1) | ||
2400 | } | ||
2401 | return | ||
2402 | } | ||
2403 | |||
2404 | func libc_fstatat64_trampoline() | ||
2405 | |||
2406 | //go:linkname libc_fstatat64 libc_fstatat64 | ||
2407 | //go:cgo_import_dynamic libc_fstatat64 fstatat64 "/usr/lib/libSystem.B.dylib" | ||
2408 | |||
2409 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2410 | |||
2411 | func Fstatfs(fd int, stat *Statfs_t) (err error) { | ||
2412 | _, _, e1 := syscall_syscall(funcPC(libc_fstatfs64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | ||
2413 | if e1 != 0 { | ||
2414 | err = errnoErr(e1) | ||
2415 | } | ||
2416 | return | ||
2417 | } | ||
2418 | |||
2419 | func libc_fstatfs64_trampoline() | ||
2420 | |||
2421 | //go:linkname libc_fstatfs64 libc_fstatfs64 | ||
2422 | //go:cgo_import_dynamic libc_fstatfs64 fstatfs64 "/usr/lib/libSystem.B.dylib" | ||
2423 | |||
2424 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2425 | |||
2426 | func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { | ||
2427 | var _p0 unsafe.Pointer | ||
2428 | if len(buf) > 0 { | ||
2429 | _p0 = unsafe.Pointer(&buf[0]) | ||
2430 | } else { | ||
2431 | _p0 = unsafe.Pointer(&_zero) | ||
2432 | } | ||
2433 | r0, _, e1 := syscall_syscall6(funcPC(libc___getdirentries64_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) | ||
2434 | n = int(r0) | ||
2435 | if e1 != 0 { | ||
2436 | err = errnoErr(e1) | ||
2437 | } | ||
2438 | return | ||
2439 | } | ||
2440 | |||
2441 | func libc___getdirentries64_trampoline() | ||
2442 | |||
2443 | //go:linkname libc___getdirentries64 libc___getdirentries64 | ||
2444 | //go:cgo_import_dynamic libc___getdirentries64 __getdirentries64 "/usr/lib/libSystem.B.dylib" | ||
2445 | |||
2446 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2447 | |||
2448 | func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) { | ||
2449 | r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat64_trampoline), uintptr(buf), uintptr(size), uintptr(flags)) | ||
2450 | n = int(r0) | ||
2451 | if e1 != 0 { | ||
2452 | err = errnoErr(e1) | ||
2453 | } | ||
2454 | return | ||
2455 | } | ||
2456 | |||
2457 | func libc_getfsstat64_trampoline() | ||
2458 | |||
2459 | //go:linkname libc_getfsstat64 libc_getfsstat64 | ||
2460 | //go:cgo_import_dynamic libc_getfsstat64 getfsstat64 "/usr/lib/libSystem.B.dylib" | ||
2461 | |||
2462 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2463 | |||
2464 | func Lstat(path string, stat *Stat_t) (err error) { | ||
2465 | var _p0 *byte | ||
2466 | _p0, err = BytePtrFromString(path) | ||
2467 | if err != nil { | ||
2468 | return | ||
2469 | } | ||
2470 | _, _, e1 := syscall_syscall(funcPC(libc_lstat64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
2471 | if e1 != 0 { | ||
2472 | err = errnoErr(e1) | ||
2473 | } | ||
2474 | return | ||
2475 | } | ||
2476 | |||
2477 | func libc_lstat64_trampoline() | ||
2478 | |||
2479 | //go:linkname libc_lstat64 libc_lstat64 | ||
2480 | //go:cgo_import_dynamic libc_lstat64 lstat64 "/usr/lib/libSystem.B.dylib" | ||
2481 | |||
2482 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2483 | |||
2484 | func Stat(path string, stat *Stat_t) (err error) { | ||
2485 | var _p0 *byte | ||
2486 | _p0, err = BytePtrFromString(path) | ||
2487 | if err != nil { | ||
2488 | return | ||
2489 | } | ||
2490 | _, _, e1 := syscall_syscall(funcPC(libc_stat64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
2491 | if e1 != 0 { | ||
2492 | err = errnoErr(e1) | ||
2493 | } | ||
2494 | return | ||
2495 | } | ||
2496 | |||
2497 | func libc_stat64_trampoline() | ||
2498 | |||
2499 | //go:linkname libc_stat64 libc_stat64 | ||
2500 | //go:cgo_import_dynamic libc_stat64 stat64 "/usr/lib/libSystem.B.dylib" | ||
2501 | |||
2502 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
2503 | |||
2504 | func Statfs(path string, stat *Statfs_t) (err error) { | ||
2505 | var _p0 *byte | ||
2506 | _p0, err = BytePtrFromString(path) | ||
2507 | if err != nil { | ||
2508 | return | ||
2509 | } | ||
2510 | _, _, e1 := syscall_syscall(funcPC(libc_statfs64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
2511 | if e1 != 0 { | ||
2512 | err = errnoErr(e1) | ||
2513 | } | ||
2514 | return | ||
2515 | } | ||
2516 | |||
2517 | func libc_statfs64_trampoline() | ||
2518 | |||
2519 | //go:linkname libc_statfs64 libc_statfs64 | ||
2520 | //go:cgo_import_dynamic libc_statfs64 statfs64 "/usr/lib/libSystem.B.dylib" | ||