diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go | 272 |
1 files changed, 254 insertions, 18 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go index b26aee9..369a04b 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go | |||
@@ -1,4 +1,4 @@ | |||
1 | // mksyscall.pl -tags linux,sparc64 syscall_linux.go syscall_linux_sparc64.go | 1 | // go run mksyscall.go -tags linux,sparc64 syscall_linux.go syscall_linux_sparc64.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,sparc64 | 4 | // +build linux,sparc64 |
@@ -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) |
@@ -417,6 +438,16 @@ func Chroot(path string) (err error) { | |||
417 | 438 | ||
418 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 439 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
419 | 440 | ||
441 | func ClockGetres(clockid int32, res *Timespec) (err error) { | ||
442 | _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) | ||
443 | if e1 != 0 { | ||
444 | err = errnoErr(e1) | ||
445 | } | ||
446 | return | ||
447 | } | ||
448 | |||
449 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
450 | |||
420 | func ClockGettime(clockid int32, time *Timespec) (err error) { | 451 | func ClockGettime(clockid int32, time *Timespec) (err error) { |
421 | _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) | 452 | _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) |
422 | if e1 != 0 { | 453 | if e1 != 0 { |
@@ -427,6 +458,16 @@ func ClockGettime(clockid int32, time *Timespec) (err error) { | |||
427 | 458 | ||
428 | // 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 |
429 | 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 | |||
430 | func Close(fd int) (err error) { | 471 | func Close(fd int) (err error) { |
431 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) | 472 | _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) |
432 | if e1 != 0 { | 473 | if e1 != 0 { |
@@ -448,6 +489,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in | |||
448 | 489 | ||
449 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 490 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
450 | 491 | ||
492 | func DeleteModule(name string, flags int) (err error) { | ||
493 | var _p0 *byte | ||
494 | _p0, err = BytePtrFromString(name) | ||
495 | if err != nil { | ||
496 | return | ||
497 | } | ||
498 | _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
499 | if e1 != 0 { | ||
500 | err = errnoErr(e1) | ||
501 | } | ||
502 | return | ||
503 | } | ||
504 | |||
505 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
506 | |||
451 | func Dup(oldfd int) (fd int, err error) { | 507 | func Dup(oldfd int) (fd int, err error) { |
452 | r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) | 508 | r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) |
453 | fd = int(r0) | 509 | fd = int(r0) |
@@ -508,21 +564,6 @@ func Exit(code int) { | |||
508 | 564 | ||
509 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 565 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
510 | 566 | ||
511 | func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { | ||
512 | var _p0 *byte | ||
513 | _p0, err = BytePtrFromString(path) | ||
514 | if err != nil { | ||
515 | return | ||
516 | } | ||
517 | _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) | ||
518 | if e1 != 0 { | ||
519 | err = errnoErr(e1) | ||
520 | } | ||
521 | return | ||
522 | } | ||
523 | |||
524 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
525 | |||
526 | func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { | 567 | func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { |
527 | _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) | 568 | _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) |
528 | if e1 != 0 { | 569 | if e1 != 0 { |
@@ -589,6 +630,60 @@ func Fdatasync(fd int) (err error) { | |||
589 | 630 | ||
590 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 631 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
591 | 632 | ||
633 | func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { | ||
634 | var _p0 *byte | ||
635 | _p0, err = BytePtrFromString(attr) | ||
636 | if err != nil { | ||
637 | return | ||
638 | } | ||
639 | var _p1 unsafe.Pointer | ||
640 | if len(dest) > 0 { | ||
641 | _p1 = unsafe.Pointer(&dest[0]) | ||
642 | } else { | ||
643 | _p1 = unsafe.Pointer(&_zero) | ||
644 | } | ||
645 | r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) | ||
646 | sz = int(r0) | ||
647 | if e1 != 0 { | ||
648 | err = errnoErr(e1) | ||
649 | } | ||
650 | return | ||
651 | } | ||
652 | |||
653 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
654 | |||
655 | func FinitModule(fd int, params string, flags int) (err error) { | ||
656 | var _p0 *byte | ||
657 | _p0, err = BytePtrFromString(params) | ||
658 | if err != nil { | ||
659 | return | ||
660 | } | ||
661 | _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) | ||
662 | if e1 != 0 { | ||
663 | err = errnoErr(e1) | ||
664 | } | ||
665 | return | ||
666 | } | ||
667 | |||
668 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
669 | |||
670 | func Flistxattr(fd int, dest []byte) (sz int, err error) { | ||
671 | var _p0 unsafe.Pointer | ||
672 | if len(dest) > 0 { | ||
673 | _p0 = unsafe.Pointer(&dest[0]) | ||
674 | } else { | ||
675 | _p0 = unsafe.Pointer(&_zero) | ||
676 | } | ||
677 | r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) | ||
678 | sz = int(r0) | ||
679 | if e1 != 0 { | ||
680 | err = errnoErr(e1) | ||
681 | } | ||
682 | return | ||
683 | } | ||
684 | |||
685 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
686 | |||
592 | func Flock(fd int, how int) (err error) { | 687 | func Flock(fd int, how int) (err error) { |
593 | _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) | 688 | _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) |
594 | if e1 != 0 { | 689 | if e1 != 0 { |
@@ -599,6 +694,42 @@ func Flock(fd int, how int) (err error) { | |||
599 | 694 | ||
600 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 695 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
601 | 696 | ||
697 | func Fremovexattr(fd int, attr string) (err error) { | ||
698 | var _p0 *byte | ||
699 | _p0, err = BytePtrFromString(attr) | ||
700 | if err != nil { | ||
701 | return | ||
702 | } | ||
703 | _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) | ||
704 | if e1 != 0 { | ||
705 | err = errnoErr(e1) | ||
706 | } | ||
707 | return | ||
708 | } | ||
709 | |||
710 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
711 | |||
712 | func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { | ||
713 | var _p0 *byte | ||
714 | _p0, err = BytePtrFromString(attr) | ||
715 | if err != nil { | ||
716 | return | ||
717 | } | ||
718 | var _p1 unsafe.Pointer | ||
719 | if len(dest) > 0 { | ||
720 | _p1 = unsafe.Pointer(&dest[0]) | ||
721 | } else { | ||
722 | _p1 = unsafe.Pointer(&_zero) | ||
723 | } | ||
724 | _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) | ||
725 | if e1 != 0 { | ||
726 | err = errnoErr(e1) | ||
727 | } | ||
728 | return | ||
729 | } | ||
730 | |||
731 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
732 | |||
602 | func Fsync(fd int) (err error) { | 733 | func Fsync(fd int) (err error) { |
603 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) | 734 | _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) |
604 | if e1 != 0 { | 735 | if e1 != 0 { |
@@ -737,6 +868,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) { | |||
737 | 868 | ||
738 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 869 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
739 | 870 | ||
871 | func InitModule(moduleImage []byte, params string) (err error) { | ||
872 | var _p0 unsafe.Pointer | ||
873 | if len(moduleImage) > 0 { | ||
874 | _p0 = unsafe.Pointer(&moduleImage[0]) | ||
875 | } else { | ||
876 | _p0 = unsafe.Pointer(&_zero) | ||
877 | } | ||
878 | var _p1 *byte | ||
879 | _p1, err = BytePtrFromString(params) | ||
880 | if err != nil { | ||
881 | return | ||
882 | } | ||
883 | _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) | ||
884 | if e1 != 0 { | ||
885 | err = errnoErr(e1) | ||
886 | } | ||
887 | return | ||
888 | } | ||
889 | |||
890 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
891 | |||
740 | func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { | 892 | func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { |
741 | var _p0 *byte | 893 | var _p0 *byte |
742 | _p0, err = BytePtrFromString(pathname) | 894 | _p0, err = BytePtrFromString(pathname) |
@@ -919,6 +1071,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { | |||
919 | 1071 | ||
920 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1072 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
921 | 1073 | ||
1074 | func MemfdCreate(name string, flags int) (fd int, err error) { | ||
1075 | var _p0 *byte | ||
1076 | _p0, err = BytePtrFromString(name) | ||
1077 | if err != nil { | ||
1078 | return | ||
1079 | } | ||
1080 | r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | ||
1081 | fd = int(r0) | ||
1082 | if e1 != 0 { | ||
1083 | err = errnoErr(e1) | ||
1084 | } | ||
1085 | return | ||
1086 | } | ||
1087 | |||
1088 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1089 | |||
922 | func Mkdirat(dirfd int, path string, mode uint32) (err error) { | 1090 | func Mkdirat(dirfd int, path string, mode uint32) (err error) { |
923 | var _p0 *byte | 1091 | var _p0 *byte |
924 | _p0, err = BytePtrFromString(path) | 1092 | _p0, err = BytePtrFromString(path) |
@@ -1058,7 +1226,7 @@ func Removexattr(path string, attr string) (err error) { | |||
1058 | 1226 | ||
1059 | // 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 |
1060 | 1228 | ||
1061 | func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { | 1229 | func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { |
1062 | var _p0 *byte | 1230 | var _p0 *byte |
1063 | _p0, err = BytePtrFromString(oldpath) | 1231 | _p0, err = BytePtrFromString(oldpath) |
1064 | if err != nil { | 1232 | if err != nil { |
@@ -1069,7 +1237,7 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e | |||
1069 | if err != nil { | 1237 | if err != nil { |
1070 | return | 1238 | return |
1071 | } | 1239 | } |
1072 | _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) | 1240 | _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) |
1073 | if e1 != 0 { | 1241 | if e1 != 0 { |
1074 | err = errnoErr(e1) | 1242 | err = errnoErr(e1) |
1075 | } | 1243 | } |
@@ -1213,6 +1381,13 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) { | |||
1213 | 1381 | ||
1214 | // 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 |
1215 | 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 | |||
1216 | 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) { |
1217 | var _p0 *byte | 1392 | var _p0 *byte |
1218 | _p0, err = BytePtrFromString(path) | 1393 | _p0, err = BytePtrFromString(path) |
@@ -1489,6 +1664,47 @@ func Munlockall() (err error) { | |||
1489 | 1664 | ||
1490 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1665 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1491 | 1666 | ||
1667 | func faccessat(dirfd int, path string, mode uint32) (err error) { | ||
1668 | var _p0 *byte | ||
1669 | _p0, err = BytePtrFromString(path) | ||
1670 | if err != nil { | ||
1671 | return | ||
1672 | } | ||
1673 | _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) | ||
1674 | if e1 != 0 { | ||
1675 | err = errnoErr(e1) | ||
1676 | } | ||
1677 | return | ||
1678 | } | ||
1679 | |||
1680 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
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 | |||
1492 | func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { | 1708 | func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { |
1493 | var _p0 unsafe.Pointer | 1709 | var _p0 unsafe.Pointer |
1494 | if len(events) > 0 { | 1710 | if len(events) > 0 { |
@@ -1718,6 +1934,26 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | |||
1718 | 1934 | ||
1719 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1935 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1720 | 1936 | ||
1937 | func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { | ||
1938 | var _p0 *byte | ||
1939 | _p0, err = BytePtrFromString(oldpath) | ||
1940 | if err != nil { | ||
1941 | return | ||
1942 | } | ||
1943 | var _p1 *byte | ||
1944 | _p1, err = BytePtrFromString(newpath) | ||
1945 | if err != nil { | ||
1946 | return | ||
1947 | } | ||
1948 | _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) | ||
1949 | if e1 != 0 { | ||
1950 | err = errnoErr(e1) | ||
1951 | } | ||
1952 | return | ||
1953 | } | ||
1954 | |||
1955 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
1956 | |||
1721 | func Seek(fd int, offset int64, whence int) (off int64, err error) { | 1957 | func Seek(fd int, offset int64, whence int) (off int64, err error) { |
1722 | r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) | 1958 | r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) |
1723 | off = int64(r0) | 1959 | off = int64(r0) |