diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/golang.org/x/sys/unix/syscall_netbsd.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_netbsd.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/syscall_netbsd.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go index 871fe65..5240e16 100644 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go | |||
@@ -13,6 +13,7 @@ | |||
13 | package unix | 13 | package unix |
14 | 14 | ||
15 | import ( | 15 | import ( |
16 | "runtime" | ||
16 | "syscall" | 17 | "syscall" |
17 | "unsafe" | 18 | "unsafe" |
18 | ) | 19 | ) |
@@ -190,6 +191,13 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) { | |||
190 | return &value, err | 191 | return &value, err |
191 | } | 192 | } |
192 | 193 | ||
194 | func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) { | ||
195 | var value Ptmget | ||
196 | err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) | ||
197 | runtime.KeepAlive(value) | ||
198 | return &value, err | ||
199 | } | ||
200 | |||
193 | func Uname(uname *Utsname) error { | 201 | func Uname(uname *Utsname) error { |
194 | mib := []_C_int{CTL_KERN, KERN_OSTYPE} | 202 | mib := []_C_int{CTL_KERN, KERN_OSTYPE} |
195 | n := unsafe.Sizeof(uname.Sysname) | 203 | n := unsafe.Sizeof(uname.Sysname) |
@@ -236,6 +244,13 @@ func Uname(uname *Utsname) error { | |||
236 | return nil | 244 | return nil |
237 | } | 245 | } |
238 | 246 | ||
247 | func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { | ||
248 | if raceenabled { | ||
249 | raceReleaseMerge(unsafe.Pointer(&ioSync)) | ||
250 | } | ||
251 | return sendfile(outfd, infd, offset, count) | ||
252 | } | ||
253 | |||
239 | /* | 254 | /* |
240 | * Exposed directly | 255 | * Exposed directly |
241 | */ | 256 | */ |
@@ -269,6 +284,7 @@ func Uname(uname *Utsname) error { | |||
269 | //sys Fchmod(fd int, mode uint32) (err error) | 284 | //sys Fchmod(fd int, mode uint32) (err error) |
270 | //sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) | 285 | //sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) |
271 | //sys Fchown(fd int, uid int, gid int) (err error) | 286 | //sys Fchown(fd int, uid int, gid int) (err error) |
287 | //sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) | ||
272 | //sys Flock(fd int, how int) (err error) | 288 | //sys Flock(fd int, how int) (err error) |
273 | //sys Fpathconf(fd int, name int) (val int, err error) | 289 | //sys Fpathconf(fd int, name int) (val int, err error) |
274 | //sys Fstat(fd int, stat *Stat_t) (err error) | 290 | //sys Fstat(fd int, stat *Stat_t) (err error) |
@@ -293,11 +309,15 @@ func Uname(uname *Utsname) error { | |||
293 | //sys Kqueue() (fd int, err error) | 309 | //sys Kqueue() (fd int, err error) |
294 | //sys Lchown(path string, uid int, gid int) (err error) | 310 | //sys Lchown(path string, uid int, gid int) (err error) |
295 | //sys Link(path string, link string) (err error) | 311 | //sys Link(path string, link string) (err error) |
312 | //sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) | ||
296 | //sys Listen(s int, backlog int) (err error) | 313 | //sys Listen(s int, backlog int) (err error) |
297 | //sys Lstat(path string, stat *Stat_t) (err error) | 314 | //sys Lstat(path string, stat *Stat_t) (err error) |
298 | //sys Mkdir(path string, mode uint32) (err error) | 315 | //sys Mkdir(path string, mode uint32) (err error) |
316 | //sys Mkdirat(dirfd int, path string, mode uint32) (err error) | ||
299 | //sys Mkfifo(path string, mode uint32) (err error) | 317 | //sys Mkfifo(path string, mode uint32) (err error) |
318 | //sys Mkfifoat(dirfd int, path string, mode uint32) (err error) | ||
300 | //sys Mknod(path string, mode uint32, dev int) (err error) | 319 | //sys Mknod(path string, mode uint32, dev int) (err error) |
320 | //sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) | ||
301 | //sys Nanosleep(time *Timespec, leftover *Timespec) (err error) | 321 | //sys Nanosleep(time *Timespec, leftover *Timespec) (err error) |
302 | //sys Open(path string, mode int, perm uint32) (fd int, err error) | 322 | //sys Open(path string, mode int, perm uint32) (fd int, err error) |
303 | //sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) | 323 | //sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) |
@@ -306,7 +326,9 @@ func Uname(uname *Utsname) error { | |||
306 | //sys Pwrite(fd int, p []byte, offset int64) (n int, err error) | 326 | //sys Pwrite(fd int, p []byte, offset int64) (n int, err error) |
307 | //sys read(fd int, p []byte) (n int, err error) | 327 | //sys read(fd int, p []byte) (n int, err error) |
308 | //sys Readlink(path string, buf []byte) (n int, err error) | 328 | //sys Readlink(path string, buf []byte) (n int, err error) |
329 | //sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) | ||
309 | //sys Rename(from string, to string) (err error) | 330 | //sys Rename(from string, to string) (err error) |
331 | //sys Renameat(fromfd int, from string, tofd int, to string) (err error) | ||
310 | //sys Revoke(path string) (err error) | 332 | //sys Revoke(path string) (err error) |
311 | //sys Rmdir(path string) (err error) | 333 | //sys Rmdir(path string) (err error) |
312 | //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK | 334 | //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK |
@@ -324,10 +346,12 @@ func Uname(uname *Utsname) error { | |||
324 | //sysnb Setuid(uid int) (err error) | 346 | //sysnb Setuid(uid int) (err error) |
325 | //sys Stat(path string, stat *Stat_t) (err error) | 347 | //sys Stat(path string, stat *Stat_t) (err error) |
326 | //sys Symlink(path string, link string) (err error) | 348 | //sys Symlink(path string, link string) (err error) |
349 | //sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) | ||
327 | //sys Sync() (err error) | 350 | //sys Sync() (err error) |
328 | //sys Truncate(path string, length int64) (err error) | 351 | //sys Truncate(path string, length int64) (err error) |
329 | //sys Umask(newmask int) (oldmask int) | 352 | //sys Umask(newmask int) (oldmask int) |
330 | //sys Unlink(path string) (err error) | 353 | //sys Unlink(path string) (err error) |
354 | //sys Unlinkat(dirfd int, path string, flags int) (err error) | ||
331 | //sys Unmount(path string, flags int) (err error) | 355 | //sys Unmount(path string, flags int) (err error) |
332 | //sys write(fd int, p []byte) (n int, err error) | 356 | //sys write(fd int, p []byte) (n int, err error) |
333 | //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) | 357 | //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) |