|
@@ -574,6 +574,45 @@ func Fdatasync(fd int) (err error) {
|
|
|
|
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
|
|
|
|
|
+func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
|
|
|
|
+ var _p0 *byte
|
|
|
|
|
+ _p0, err = BytePtrFromString(attr)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ var _p1 unsafe.Pointer
|
|
|
|
|
+ if len(dest) > 0 {
|
|
|
|
|
+ _p1 = unsafe.Pointer(&dest[0])
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _p1 = unsafe.Pointer(&_zero)
|
|
|
|
|
+ }
|
|
|
|
|
+ r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
|
|
|
|
|
+ sz = int(r0)
|
|
|
|
|
+ if e1 != 0 {
|
|
|
|
|
+ err = errnoErr(e1)
|
|
|
|
|
+ }
|
|
|
|
|
+ return
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
+
|
|
|
|
|
+func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
|
|
|
|
+ var _p0 unsafe.Pointer
|
|
|
|
|
+ if len(dest) > 0 {
|
|
|
|
|
+ _p0 = unsafe.Pointer(&dest[0])
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _p0 = unsafe.Pointer(&_zero)
|
|
|
|
|
+ }
|
|
|
|
|
+ r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
|
|
|
|
|
+ sz = int(r0)
|
|
|
|
|
+ if e1 != 0 {
|
|
|
|
|
+ err = errnoErr(e1)
|
|
|
|
|
+ }
|
|
|
|
|
+ return
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
+
|
|
|
func Flock(fd int, how int) (err error) {
|
|
func Flock(fd int, how int) (err error) {
|
|
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
|
|
if e1 != 0 {
|
|
if e1 != 0 {
|
|
@@ -584,6 +623,43 @@ func Flock(fd int, how int) (err error) {
|
|
|
|
|
|
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
|
|
|
|
|
+func Fremovexattr(fd int, attr string) (err error) {
|
|
|
|
|
+ var _p0 *byte
|
|
|
|
|
+ _p0, err = BytePtrFromString(attr)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
|
|
|
|
|
+ if e1 != 0 {
|
|
|
|
|
+ err = errnoErr(e1)
|
|
|
|
|
+ }
|
|
|
|
|
+ return
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
+
|
|
|
|
|
+func Fsetxattr(fd int, attr string, dest []byte, flags int) (sz int, err error) {
|
|
|
|
|
+ var _p0 *byte
|
|
|
|
|
+ _p0, err = BytePtrFromString(attr)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ var _p1 unsafe.Pointer
|
|
|
|
|
+ if len(dest) > 0 {
|
|
|
|
|
+ _p1 = unsafe.Pointer(&dest[0])
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _p1 = unsafe.Pointer(&_zero)
|
|
|
|
|
+ }
|
|
|
|
|
+ r0, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
|
|
|
|
|
+ sz = int(r0)
|
|
|
|
|
+ if e1 != 0 {
|
|
|
|
|
+ err = errnoErr(e1)
|
|
|
|
|
+ }
|
|
|
|
|
+ return
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
|
|
|
+
|
|
|
func Fsync(fd int) (err error) {
|
|
func Fsync(fd int) (err error) {
|
|
|
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
|
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
|
|
if e1 != 0 {
|
|
if e1 != 0 {
|