|
|
@@ -1,5 +1,5 @@
|
|
|
// mksyscall.pl -tags linux,sparc64 syscall_linux.go syscall_linux_sparc64.go
|
|
|
-// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
|
+// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
|
|
|
|
// +build linux,sparc64
|
|
|
|
|
|
@@ -312,6 +312,17 @@ func Close(fd int) (err error) {
|
|
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
|
+func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
|
|
|
+ r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
|
|
|
+ n = int(r0)
|
|
|
+ if e1 != 0 {
|
|
|
+ err = errnoErr(e1)
|
|
|
+ }
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
+
|
|
|
func Dup(oldfd int) (fd int, err error) {
|
|
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
|
|
fd = int(r0)
|