diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go | 123 |
1 files changed, 86 insertions, 37 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go index 96e9df7..fa0cb25 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go | |||
@@ -1,4 +1,4 @@ | |||
1 | // mksyscall.pl -tags linux,amd64 syscall_linux.go syscall_linux_amd64.go | 1 | // go run mksyscall.go -tags linux,amd64 syscall_linux.go syscall_linux_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 linux,amd64 | 4 | // +build linux,amd64 |
@@ -14,6 +14,27 @@ var _ syscall.Errno | |||
14 | 14 | ||
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 FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { | ||
18 | r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) | ||
19 | fd = int(r0) | ||
20 | if e1 != 0 { | ||
21 | err = errnoErr(e1) | ||
22 | } | ||
23 | return | ||
24 | } | ||
25 | |||
26 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
27 | |||
28 | func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { | ||
29 | _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) | ||
30 | if e1 != 0 { | ||
31 | err = errnoErr(e1) | ||
32 | } | ||
33 | return | ||
34 | } | ||
35 | |||
36 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
37 | |||
17 | func fchmodat(dirfd int, path string, mode uint32) (err error) { | 38 | func fchmodat(dirfd int, path string, mode uint32) (err error) { |
18 | var _p0 *byte | 39 | var _p0 *byte |
19 | _p0, err = BytePtrFromString(path) | 40 | _p0, err = BytePtrFromString(path) |
@@ -437,6 +458,16 @@ func ClockGettime(clockid int32, time *Timespec) (err error) { | |||
437 | 458 | ||
438 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 459 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
439 | 460 | ||
461 | func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { | ||
462 | _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) | ||
463 | if e1 != 0 { | ||
464 | err = errnoErr(e1) | ||
465 | } | ||
466 | return | ||
467 | } | ||
468 | |||
469 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
470 | |||
440 | func Close(fd int) (err error) { | 471 | func Close(fd int) (err error) { |
441 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) | 472 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) |
442 | if e1 != 0 { | 473 | if e1 != 0 { |
@@ -1195,26 +1226,6 @@ func Removexattr(path string, attr string) (err error) { | |||
1195 | 1226 | ||
1196 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1227 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1197 | 1228 | ||
1198 | func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { | ||
1199 | var _p0 *byte | ||
1200 | _p0, err = BytePtrFromString(oldpath) | ||
1201 | if err != nil { | ||
1202 | return | ||
1203 | } | ||
1204 | var _p1 *byte | ||
1205 | _p1, err = BytePtrFromString(newpath) | ||
1206 | if err != nil { | ||
1207 | return | ||
1208 | } | ||
1209 | _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) | ||
1210 | if e1 != 0 { | ||
1211 | err = errnoErr(e1) | ||
1212 | } | ||
1213 | return | ||
1214 | } | ||
1215 | |||
1216 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1217 | |||
1218 | func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { | 1229 | func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { |
1219 | var _p0 *byte | 1230 | var _p0 *byte |
1220 | _p0, err = BytePtrFromString(oldpath) | 1231 | _p0, err = BytePtrFromString(oldpath) |
@@ -1370,6 +1381,13 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) { | |||
1370 | 1381 | ||
1371 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1382 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1372 | 1383 | ||
1384 | func Signalfd(fd int, mask *Sigset_t, flags int) { | ||
1385 | SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags)) | ||
1386 | return | ||
1387 | } | ||
1388 | |||
1389 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1390 | |||
1373 | func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { | 1391 | func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { |
1374 | var _p0 *byte | 1392 | var _p0 *byte |
1375 | _p0, err = BytePtrFromString(path) | 1393 | _p0, err = BytePtrFromString(path) |
@@ -1661,6 +1679,32 @@ func faccessat(dirfd int, path string, mode uint32) (err error) { | |||
1661 | 1679 | ||
1662 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1680 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1663 | 1681 | ||
1682 | func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { | ||
1683 | var _p0 *byte | ||
1684 | _p0, err = BytePtrFromString(pathname) | ||
1685 | if err != nil { | ||
1686 | return | ||
1687 | } | ||
1688 | _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) | ||
1689 | if e1 != 0 { | ||
1690 | err = errnoErr(e1) | ||
1691 | } | ||
1692 | return | ||
1693 | } | ||
1694 | |||
1695 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1696 | |||
1697 | func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { | ||
1698 | r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) | ||
1699 | fd = int(r0) | ||
1700 | if e1 != 0 { | ||
1701 | err = errnoErr(e1) | ||
1702 | } | ||
1703 | return | ||
1704 | } | ||
1705 | |||
1706 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1707 | |||
1664 | func Dup2(oldfd int, newfd int) (err error) { | 1708 | func Dup2(oldfd int, newfd int) (err error) { |
1665 | _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) | 1709 | _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) |
1666 | if e1 != 0 { | 1710 | if e1 != 0 { |
@@ -1806,7 +1850,7 @@ func Getuid() (uid int) { | |||
1806 | 1850 | ||
1807 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1851 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1808 | 1852 | ||
1809 | func InotifyInit() (fd int, err error) { | 1853 | func inotifyInit() (fd int, err error) { |
1810 | r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) | 1854 | r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) |
1811 | fd = int(r0) | 1855 | fd = int(r0) |
1812 | if e1 != 0 { | 1856 | if e1 != 0 { |
@@ -1862,21 +1906,6 @@ func Listen(s int, n int) (err error) { | |||
1862 | 1906 | ||
1863 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1907 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1864 | 1908 | ||
1865 | func Lstat(path string, stat *Stat_t) (err error) { | ||
1866 | var _p0 *byte | ||
1867 | _p0, err = BytePtrFromString(path) | ||
1868 | if err != nil { | ||
1869 | return | ||
1870 | } | ||
1871 | _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | ||
1872 | if e1 != 0 { | ||
1873 | err = errnoErr(e1) | ||
1874 | } | ||
1875 | return | ||
1876 | } | ||
1877 | |||
1878 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1879 | |||
1880 | func Pause() (err error) { | 1909 | func Pause() (err error) { |
1881 | _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) | 1910 | _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) |
1882 | if e1 != 0 { | 1911 | if e1 != 0 { |
@@ -1921,6 +1950,26 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | |||
1921 | 1950 | ||
1922 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1951 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1923 | 1952 | ||
1953 | func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { | ||
1954 | var _p0 *byte | ||
1955 | _p0, err = BytePtrFromString(oldpath) | ||
1956 | if err != nil { | ||
1957 | return | ||
1958 | } | ||
1959 | var _p1 *byte | ||
1960 | _p1, err = BytePtrFromString(newpath) | ||
1961 | if err != nil { | ||
1962 | return | ||
1963 | } | ||
1964 | _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) | ||
1965 | if e1 != 0 { | ||
1966 | err = errnoErr(e1) | ||
1967 | } | ||
1968 | return | ||
1969 | } | ||
1970 | |||
1971 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1972 | |||
1924 | func Seek(fd int, offset int64, whence int) (off int64, err error) { | 1973 | func Seek(fd int, offset int64, whence int) (off int64, err error) { |
1925 | r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) | 1974 | r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) |
1926 | off = int64(r0) | 1975 | off = int64(r0) |