github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/proto_vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go (about)

     1  // go run mksyscall.go -l32 -netbsd -arm -tags netbsd,arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  // +build netbsd,arm
     5  
     6  package unix
     7  
     8  import (
     9  	"syscall"
    10  	"unsafe"
    11  )
    12  
    13  var _ syscall.Errno
    14  
    15  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16  
    17  func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
    18  	r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
    19  	n = 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 setgroups(ngid int, gid *_Gid_t) (err error) {
    29  	_, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 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  
    38  func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    39  	r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    40  	wpid = int(r0)
    41  	if e1 != 0 {
    42  		err = errnoErr(e1)
    43  	}
    44  	return
    45  }
    46  
    47  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    48  
    49  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
    50  	r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
    51  	fd = int(r0)
    52  	if e1 != 0 {
    53  		err = errnoErr(e1)
    54  	}
    55  	return
    56  }
    57  
    58  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    59  
    60  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    61  	_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
    62  	if e1 != 0 {
    63  		err = errnoErr(e1)
    64  	}
    65  	return
    66  }
    67  
    68  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    69  
    70  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    71  	_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
    72  	if e1 != 0 {
    73  		err = errnoErr(e1)
    74  	}
    75  	return
    76  }
    77  
    78  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    79  
    80  func socket(domain int, typ int, proto int) (fd int, err error) {
    81  	r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
    82  	fd = int(r0)
    83  	if e1 != 0 {
    84  		err = errnoErr(e1)
    85  	}
    86  	return
    87  }
    88  
    89  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    90  
    91  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
    92  	_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
    93  	if e1 != 0 {
    94  		err = errnoErr(e1)
    95  	}
    96  	return
    97  }
    98  
    99  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   100  
   101  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
   102  	_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
   103  	if e1 != 0 {
   104  		err = errnoErr(e1)
   105  	}
   106  	return
   107  }
   108  
   109  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   110  
   111  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   112  	_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   113  	if e1 != 0 {
   114  		err = errnoErr(e1)
   115  	}
   116  	return
   117  }
   118  
   119  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   120  
   121  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   122  	_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   123  	if e1 != 0 {
   124  		err = errnoErr(e1)
   125  	}
   126  	return
   127  }
   128  
   129  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   130  
   131  func Shutdown(s int, how int) (err error) {
   132  	_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
   133  	if e1 != 0 {
   134  		err = errnoErr(e1)
   135  	}
   136  	return
   137  }
   138  
   139  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   140  
   141  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
   142  	_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
   143  	if e1 != 0 {
   144  		err = errnoErr(e1)
   145  	}
   146  	return
   147  }
   148  
   149  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   150  
   151  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
   152  	var _p0 unsafe.Pointer
   153  	if len(p) > 0 {
   154  		_p0 = unsafe.Pointer(&p[0])
   155  	} else {
   156  		_p0 = unsafe.Pointer(&_zero)
   157  	}
   158  	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
   159  	n = int(r0)
   160  	if e1 != 0 {
   161  		err = errnoErr(e1)
   162  	}
   163  	return
   164  }
   165  
   166  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   167  
   168  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
   169  	var _p0 unsafe.Pointer
   170  	if len(buf) > 0 {
   171  		_p0 = unsafe.Pointer(&buf[0])
   172  	} else {
   173  		_p0 = unsafe.Pointer(&_zero)
   174  	}
   175  	_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
   176  	if e1 != 0 {
   177  		err = errnoErr(e1)
   178  	}
   179  	return
   180  }
   181  
   182  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   183  
   184  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   185  	r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   186  	n = int(r0)
   187  	if e1 != 0 {
   188  		err = errnoErr(e1)
   189  	}
   190  	return
   191  }
   192  
   193  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   194  
   195  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   196  	r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   197  	n = int(r0)
   198  	if e1 != 0 {
   199  		err = errnoErr(e1)
   200  	}
   201  	return
   202  }
   203  
   204  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   205  
   206  func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
   207  	r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
   208  	n = int(r0)
   209  	if e1 != 0 {
   210  		err = errnoErr(e1)
   211  	}
   212  	return
   213  }
   214  
   215  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   216  
   217  func utimes(path string, timeval *[2]Timeval) (err error) {
   218  	var _p0 *byte
   219  	_p0, err = BytePtrFromString(path)
   220  	if err != nil {
   221  		return
   222  	}
   223  	_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
   224  	if e1 != 0 {
   225  		err = errnoErr(e1)
   226  	}
   227  	return
   228  }
   229  
   230  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   231  
   232  func futimes(fd int, timeval *[2]Timeval) (err error) {
   233  	_, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
   234  	if e1 != 0 {
   235  		err = errnoErr(e1)
   236  	}
   237  	return
   238  }
   239  
   240  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   241  
   242  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   243  	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
   244  	val = int(r0)
   245  	if e1 != 0 {
   246  		err = errnoErr(e1)
   247  	}
   248  	return
   249  }
   250  
   251  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   252  
   253  func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
   254  	r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
   255  	n = int(r0)
   256  	if e1 != 0 {
   257  		err = errnoErr(e1)
   258  	}
   259  	return
   260  }
   261  
   262  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   263  
   264  func Madvise(b []byte, behav int) (err error) {
   265  	var _p0 unsafe.Pointer
   266  	if len(b) > 0 {
   267  		_p0 = unsafe.Pointer(&b[0])
   268  	} else {
   269  		_p0 = unsafe.Pointer(&_zero)
   270  	}
   271  	_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
   272  	if e1 != 0 {
   273  		err = errnoErr(e1)
   274  	}
   275  	return
   276  }
   277  
   278  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   279  
   280  func Mlock(b []byte) (err error) {
   281  	var _p0 unsafe.Pointer
   282  	if len(b) > 0 {
   283  		_p0 = unsafe.Pointer(&b[0])
   284  	} else {
   285  		_p0 = unsafe.Pointer(&_zero)
   286  	}
   287  	_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
   288  	if e1 != 0 {
   289  		err = errnoErr(e1)
   290  	}
   291  	return
   292  }
   293  
   294  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   295  
   296  func Mlockall(flags int) (err error) {
   297  	_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
   298  	if e1 != 0 {
   299  		err = errnoErr(e1)
   300  	}
   301  	return
   302  }
   303  
   304  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   305  
   306  func Mprotect(b []byte, prot int) (err error) {
   307  	var _p0 unsafe.Pointer
   308  	if len(b) > 0 {
   309  		_p0 = unsafe.Pointer(&b[0])
   310  	} else {
   311  		_p0 = unsafe.Pointer(&_zero)
   312  	}
   313  	_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
   314  	if e1 != 0 {
   315  		err = errnoErr(e1)
   316  	}
   317  	return
   318  }
   319  
   320  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   321  
   322  func Msync(b []byte, flags int) (err error) {
   323  	var _p0 unsafe.Pointer
   324  	if len(b) > 0 {
   325  		_p0 = unsafe.Pointer(&b[0])
   326  	} else {
   327  		_p0 = unsafe.Pointer(&_zero)
   328  	}
   329  	_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
   330  	if e1 != 0 {
   331  		err = errnoErr(e1)
   332  	}
   333  	return
   334  }
   335  
   336  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   337  
   338  func Munlock(b []byte) (err error) {
   339  	var _p0 unsafe.Pointer
   340  	if len(b) > 0 {
   341  		_p0 = unsafe.Pointer(&b[0])
   342  	} else {
   343  		_p0 = unsafe.Pointer(&_zero)
   344  	}
   345  	_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
   346  	if e1 != 0 {
   347  		err = errnoErr(e1)
   348  	}
   349  	return
   350  }
   351  
   352  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   353  
   354  func Munlockall() (err error) {
   355  	_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
   356  	if e1 != 0 {
   357  		err = errnoErr(e1)
   358  	}
   359  	return
   360  }
   361  
   362  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   363  
   364  func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
   365  	var _p0 unsafe.Pointer
   366  	if len(mib) > 0 {
   367  		_p0 = unsafe.Pointer(&mib[0])
   368  	} else {
   369  		_p0 = unsafe.Pointer(&_zero)
   370  	}
   371  	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
   372  	if e1 != 0 {
   373  		err = errnoErr(e1)
   374  	}
   375  	return
   376  }
   377  
   378  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   379  
   380  func pipe() (fd1 int, fd2 int, err error) {
   381  	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
   382  	fd1 = int(r0)
   383  	fd2 = int(r1)
   384  	if e1 != 0 {
   385  		err = errnoErr(e1)
   386  	}
   387  	return
   388  }
   389  
   390  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   391  
   392  func Getdents(fd int, buf []byte) (n int, err error) {
   393  	var _p0 unsafe.Pointer
   394  	if len(buf) > 0 {
   395  		_p0 = unsafe.Pointer(&buf[0])
   396  	} else {
   397  		_p0 = unsafe.Pointer(&_zero)
   398  	}
   399  	r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   400  	n = int(r0)
   401  	if e1 != 0 {
   402  		err = errnoErr(e1)
   403  	}
   404  	return
   405  }
   406  
   407  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   408  
   409  func Getcwd(buf []byte) (n int, err error) {
   410  	var _p0 unsafe.Pointer
   411  	if len(buf) > 0 {
   412  		_p0 = unsafe.Pointer(&buf[0])
   413  	} else {
   414  		_p0 = unsafe.Pointer(&_zero)
   415  	}
   416  	r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
   417  	n = int(r0)
   418  	if e1 != 0 {
   419  		err = errnoErr(e1)
   420  	}
   421  	return
   422  }
   423  
   424  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   425  
   426  func ioctl(fd int, req uint, arg uintptr) (err error) {
   427  	_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
   428  	if e1 != 0 {
   429  		err = errnoErr(e1)
   430  	}
   431  	return
   432  }
   433  
   434  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   435  
   436  func Access(path string, mode uint32) (err error) {
   437  	var _p0 *byte
   438  	_p0, err = BytePtrFromString(path)
   439  	if err != nil {
   440  		return
   441  	}
   442  	_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 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  
   451  func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
   452  	_, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
   453  	if e1 != 0 {
   454  		err = errnoErr(e1)
   455  	}
   456  	return
   457  }
   458  
   459  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   460  
   461  func Chdir(path string) (err error) {
   462  	var _p0 *byte
   463  	_p0, err = BytePtrFromString(path)
   464  	if err != nil {
   465  		return
   466  	}
   467  	_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
   468  	if e1 != 0 {
   469  		err = errnoErr(e1)
   470  	}
   471  	return
   472  }
   473  
   474  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   475  
   476  func Chflags(path string, flags int) (err error) {
   477  	var _p0 *byte
   478  	_p0, err = BytePtrFromString(path)
   479  	if err != nil {
   480  		return
   481  	}
   482  	_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   483  	if e1 != 0 {
   484  		err = errnoErr(e1)
   485  	}
   486  	return
   487  }
   488  
   489  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   490  
   491  func Chmod(path string, mode uint32) (err error) {
   492  	var _p0 *byte
   493  	_p0, err = BytePtrFromString(path)
   494  	if err != nil {
   495  		return
   496  	}
   497  	_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   498  	if e1 != 0 {
   499  		err = errnoErr(e1)
   500  	}
   501  	return
   502  }
   503  
   504  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   505  
   506  func Chown(path string, uid int, gid int) (err error) {
   507  	var _p0 *byte
   508  	_p0, err = BytePtrFromString(path)
   509  	if err != nil {
   510  		return
   511  	}
   512  	_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
   513  	if e1 != 0 {
   514  		err = errnoErr(e1)
   515  	}
   516  	return
   517  }
   518  
   519  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   520  
   521  func Chroot(path string) (err error) {
   522  	var _p0 *byte
   523  	_p0, err = BytePtrFromString(path)
   524  	if err != nil {
   525  		return
   526  	}
   527  	_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   528  	if e1 != 0 {
   529  		err = errnoErr(e1)
   530  	}
   531  	return
   532  }
   533  
   534  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   535  
   536  func Close(fd int) (err error) {
   537  	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
   538  	if e1 != 0 {
   539  		err = errnoErr(e1)
   540  	}
   541  	return
   542  }
   543  
   544  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   545  
   546  func Dup(fd int) (nfd int, err error) {
   547  	r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
   548  	nfd = int(r0)
   549  	if e1 != 0 {
   550  		err = errnoErr(e1)
   551  	}
   552  	return
   553  }
   554  
   555  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   556  
   557  func Dup2(from int, to int) (err error) {
   558  	_, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
   559  	if e1 != 0 {
   560  		err = errnoErr(e1)
   561  	}
   562  	return
   563  }
   564  
   565  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   566  
   567  func Exit(code int) {
   568  	Syscall(SYS_EXIT, uintptr(code), 0, 0)
   569  	return
   570  }
   571  
   572  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   573  
   574  func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
   575  	var _p0 *byte
   576  	_p0, err = BytePtrFromString(attrname)
   577  	if err != nil {
   578  		return
   579  	}
   580  	r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
   581  	ret = int(r0)
   582  	if e1 != 0 {
   583  		err = errnoErr(e1)
   584  	}
   585  	return
   586  }
   587  
   588  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   589  
   590  func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
   591  	var _p0 *byte
   592  	_p0, err = BytePtrFromString(attrname)
   593  	if err != nil {
   594  		return
   595  	}
   596  	r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
   597  	ret = int(r0)
   598  	if e1 != 0 {
   599  		err = errnoErr(e1)
   600  	}
   601  	return
   602  }
   603  
   604  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   605  
   606  func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
   607  	var _p0 *byte
   608  	_p0, err = BytePtrFromString(attrname)
   609  	if err != nil {
   610  		return
   611  	}
   612  	_, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
   613  	if e1 != 0 {
   614  		err = errnoErr(e1)
   615  	}
   616  	return
   617  }
   618  
   619  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   620  
   621  func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
   622  	r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
   623  	ret = int(r0)
   624  	if e1 != 0 {
   625  		err = errnoErr(e1)
   626  	}
   627  	return
   628  }
   629  
   630  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   631  
   632  func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
   633  	var _p0 *byte
   634  	_p0, err = BytePtrFromString(file)
   635  	if err != nil {
   636  		return
   637  	}
   638  	var _p1 *byte
   639  	_p1, err = BytePtrFromString(attrname)
   640  	if err != nil {
   641  		return
   642  	}
   643  	r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
   644  	ret = int(r0)
   645  	if e1 != 0 {
   646  		err = errnoErr(e1)
   647  	}
   648  	return
   649  }
   650  
   651  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   652  
   653  func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
   654  	var _p0 *byte
   655  	_p0, err = BytePtrFromString(file)
   656  	if err != nil {
   657  		return
   658  	}
   659  	var _p1 *byte
   660  	_p1, err = BytePtrFromString(attrname)
   661  	if err != nil {
   662  		return
   663  	}
   664  	r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
   665  	ret = int(r0)
   666  	if e1 != 0 {
   667  		err = errnoErr(e1)
   668  	}
   669  	return
   670  }
   671  
   672  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   673  
   674  func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
   675  	var _p0 *byte
   676  	_p0, err = BytePtrFromString(file)
   677  	if err != nil {
   678  		return
   679  	}
   680  	var _p1 *byte
   681  	_p1, err = BytePtrFromString(attrname)
   682  	if err != nil {
   683  		return
   684  	}
   685  	_, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
   686  	if e1 != 0 {
   687  		err = errnoErr(e1)
   688  	}
   689  	return
   690  }
   691  
   692  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   693  
   694  func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
   695  	var _p0 *byte
   696  	_p0, err = BytePtrFromString(file)
   697  	if err != nil {
   698  		return
   699  	}
   700  	r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
   701  	ret = int(r0)
   702  	if e1 != 0 {
   703  		err = errnoErr(e1)
   704  	}
   705  	return
   706  }
   707  
   708  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   709  
   710  func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
   711  	var _p0 *byte
   712  	_p0, err = BytePtrFromString(link)
   713  	if err != nil {
   714  		return
   715  	}
   716  	var _p1 *byte
   717  	_p1, err = BytePtrFromString(attrname)
   718  	if err != nil {
   719  		return
   720  	}
   721  	r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
   722  	ret = int(r0)
   723  	if e1 != 0 {
   724  		err = errnoErr(e1)
   725  	}
   726  	return
   727  }
   728  
   729  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   730  
   731  func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
   732  	var _p0 *byte
   733  	_p0, err = BytePtrFromString(link)
   734  	if err != nil {
   735  		return
   736  	}
   737  	var _p1 *byte
   738  	_p1, err = BytePtrFromString(attrname)
   739  	if err != nil {
   740  		return
   741  	}
   742  	r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
   743  	ret = int(r0)
   744  	if e1 != 0 {
   745  		err = errnoErr(e1)
   746  	}
   747  	return
   748  }
   749  
   750  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   751  
   752  func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
   753  	var _p0 *byte
   754  	_p0, err = BytePtrFromString(link)
   755  	if err != nil {
   756  		return
   757  	}
   758  	var _p1 *byte
   759  	_p1, err = BytePtrFromString(attrname)
   760  	if err != nil {
   761  		return
   762  	}
   763  	_, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
   764  	if e1 != 0 {
   765  		err = errnoErr(e1)
   766  	}
   767  	return
   768  }
   769  
   770  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   771  
   772  func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
   773  	var _p0 *byte
   774  	_p0, err = BytePtrFromString(link)
   775  	if err != nil {
   776  		return
   777  	}
   778  	r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
   779  	ret = int(r0)
   780  	if e1 != 0 {
   781  		err = errnoErr(e1)
   782  	}
   783  	return
   784  }
   785  
   786  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   787  
   788  func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
   789  	var _p0 *byte
   790  	_p0, err = BytePtrFromString(path)
   791  	if err != nil {
   792  		return
   793  	}
   794  	_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   795  	if e1 != 0 {
   796  		err = errnoErr(e1)
   797  	}
   798  	return
   799  }
   800  
   801  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   802  
   803  func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
   804  	_, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0)
   805  	if e1 != 0 {
   806  		err = errnoErr(e1)
   807  	}
   808  	return
   809  }
   810  
   811  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   812  
   813  func Fchdir(fd int) (err error) {
   814  	_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
   815  	if e1 != 0 {
   816  		err = errnoErr(e1)
   817  	}
   818  	return
   819  }
   820  
   821  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   822  
   823  func Fchflags(fd int, flags int) (err error) {
   824  	_, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
   825  	if e1 != 0 {
   826  		err = errnoErr(e1)
   827  	}
   828  	return
   829  }
   830  
   831  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   832  
   833  func Fchmod(fd int, mode uint32) (err error) {
   834  	_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
   835  	if e1 != 0 {
   836  		err = errnoErr(e1)
   837  	}
   838  	return
   839  }
   840  
   841  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   842  
   843  func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
   844  	var _p0 *byte
   845  	_p0, err = BytePtrFromString(path)
   846  	if err != nil {
   847  		return
   848  	}
   849  	_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   850  	if e1 != 0 {
   851  		err = errnoErr(e1)
   852  	}
   853  	return
   854  }
   855  
   856  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   857  
   858  func Fchown(fd int, uid int, gid int) (err error) {
   859  	_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
   860  	if e1 != 0 {
   861  		err = errnoErr(e1)
   862  	}
   863  	return
   864  }
   865  
   866  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   867  
   868  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   869  	var _p0 *byte
   870  	_p0, err = BytePtrFromString(path)
   871  	if err != nil {
   872  		return
   873  	}
   874  	_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   875  	if e1 != 0 {
   876  		err = errnoErr(e1)
   877  	}
   878  	return
   879  }
   880  
   881  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   882  
   883  func Flock(fd int, how int) (err error) {
   884  	_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
   885  	if e1 != 0 {
   886  		err = errnoErr(e1)
   887  	}
   888  	return
   889  }
   890  
   891  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   892  
   893  func Fpathconf(fd int, name int) (val int, err error) {
   894  	r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
   895  	val = int(r0)
   896  	if e1 != 0 {
   897  		err = errnoErr(e1)
   898  	}
   899  	return
   900  }
   901  
   902  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   903  
   904  func Fstat(fd int, stat *Stat_t) (err error) {
   905  	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
   906  	if e1 != 0 {
   907  		err = errnoErr(e1)
   908  	}
   909  	return
   910  }
   911  
   912  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   913  
   914  func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
   915  	var _p0 *byte
   916  	_p0, err = BytePtrFromString(path)
   917  	if err != nil {
   918  		return
   919  	}
   920  	_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
   921  	if e1 != 0 {
   922  		err = errnoErr(e1)
   923  	}
   924  	return
   925  }
   926  
   927  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   928  
   929  func Fsync(fd int) (err error) {
   930  	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
   931  	if e1 != 0 {
   932  		err = errnoErr(e1)
   933  	}
   934  	return
   935  }
   936  
   937  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   938  
   939  func Ftruncate(fd int, length int64) (err error) {
   940  	_, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
   941  	if e1 != 0 {
   942  		err = errnoErr(e1)
   943  	}
   944  	return
   945  }
   946  
   947  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   948  
   949  func Getegid() (egid int) {
   950  	r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
   951  	egid = int(r0)
   952  	return
   953  }
   954  
   955  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   956  
   957  func Geteuid() (uid int) {
   958  	r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
   959  	uid = int(r0)
   960  	return
   961  }
   962  
   963  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   964  
   965  func Getgid() (gid int) {
   966  	r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
   967  	gid = int(r0)
   968  	return
   969  }
   970  
   971  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   972  
   973  func Getpgid(pid int) (pgid int, err error) {
   974  	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   975  	pgid = int(r0)
   976  	if e1 != 0 {
   977  		err = errnoErr(e1)
   978  	}
   979  	return
   980  }
   981  
   982  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   983  
   984  func Getpgrp() (pgrp int) {
   985  	r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
   986  	pgrp = int(r0)
   987  	return
   988  }
   989  
   990  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   991  
   992  func Getpid() (pid int) {
   993  	r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
   994  	pid = int(r0)
   995  	return
   996  }
   997  
   998  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   999  
  1000  func Getppid() (ppid int) {
  1001  	r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
  1002  	ppid = int(r0)
  1003  	return
  1004  }
  1005  
  1006  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1007  
  1008  func Getpriority(which int, who int) (prio int, err error) {
  1009  	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
  1010  	prio = int(r0)
  1011  	if e1 != 0 {
  1012  		err = errnoErr(e1)
  1013  	}
  1014  	return
  1015  }
  1016  
  1017  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1018  
  1019  func Getrlimit(which int, lim *Rlimit) (err error) {
  1020  	_, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
  1021  	if e1 != 0 {
  1022  		err = errnoErr(e1)
  1023  	}
  1024  	return
  1025  }
  1026  
  1027  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1028  
  1029  func Getrusage(who int, rusage *Rusage) (err error) {
  1030  	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
  1031  	if e1 != 0 {
  1032  		err = errnoErr(e1)
  1033  	}
  1034  	return
  1035  }
  1036  
  1037  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1038  
  1039  func Getsid(pid int) (sid int, err error) {
  1040  	r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
  1041  	sid = int(r0)
  1042  	if e1 != 0 {
  1043  		err = errnoErr(e1)
  1044  	}
  1045  	return
  1046  }
  1047  
  1048  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1049  
  1050  func Gettimeofday(tv *Timeval) (err error) {
  1051  	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  1052  	if e1 != 0 {
  1053  		err = errnoErr(e1)
  1054  	}
  1055  	return
  1056  }
  1057  
  1058  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1059  
  1060  func Getuid() (uid int) {
  1061  	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
  1062  	uid = int(r0)
  1063  	return
  1064  }
  1065  
  1066  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1067  
  1068  func Issetugid() (tainted bool) {
  1069  	r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
  1070  	tainted = bool(r0 != 0)
  1071  	return
  1072  }
  1073  
  1074  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1075  
  1076  func Kill(pid int, signum syscall.Signal) (err error) {
  1077  	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
  1078  	if e1 != 0 {
  1079  		err = errnoErr(e1)
  1080  	}
  1081  	return
  1082  }
  1083  
  1084  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1085  
  1086  func Kqueue() (fd int, err error) {
  1087  	r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
  1088  	fd = int(r0)
  1089  	if e1 != 0 {
  1090  		err = errnoErr(e1)
  1091  	}
  1092  	return
  1093  }
  1094  
  1095  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1096  
  1097  func Lchown(path string, uid int, gid int) (err error) {
  1098  	var _p0 *byte
  1099  	_p0, err = BytePtrFromString(path)
  1100  	if err != nil {
  1101  		return
  1102  	}
  1103  	_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  1104  	if e1 != 0 {
  1105  		err = errnoErr(e1)
  1106  	}
  1107  	return
  1108  }
  1109  
  1110  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1111  
  1112  func Link(path string, link string) (err error) {
  1113  	var _p0 *byte
  1114  	_p0, err = BytePtrFromString(path)
  1115  	if err != nil {
  1116  		return
  1117  	}
  1118  	var _p1 *byte
  1119  	_p1, err = BytePtrFromString(link)
  1120  	if err != nil {
  1121  		return
  1122  	}
  1123  	_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1124  	if e1 != 0 {
  1125  		err = errnoErr(e1)
  1126  	}
  1127  	return
  1128  }
  1129  
  1130  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1131  
  1132  func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
  1133  	var _p0 *byte
  1134  	_p0, err = BytePtrFromString(path)
  1135  	if err != nil {
  1136  		return
  1137  	}
  1138  	var _p1 *byte
  1139  	_p1, err = BytePtrFromString(link)
  1140  	if err != nil {
  1141  		return
  1142  	}
  1143  	_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
  1144  	if e1 != 0 {
  1145  		err = errnoErr(e1)
  1146  	}
  1147  	return
  1148  }
  1149  
  1150  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1151  
  1152  func Listen(s int, backlog int) (err error) {
  1153  	_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
  1154  	if e1 != 0 {
  1155  		err = errnoErr(e1)
  1156  	}
  1157  	return
  1158  }
  1159  
  1160  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1161  
  1162  func Lstat(path string, stat *Stat_t) (err error) {
  1163  	var _p0 *byte
  1164  	_p0, err = BytePtrFromString(path)
  1165  	if err != nil {
  1166  		return
  1167  	}
  1168  	_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1169  	if e1 != 0 {
  1170  		err = errnoErr(e1)
  1171  	}
  1172  	return
  1173  }
  1174  
  1175  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1176  
  1177  func Mkdir(path string, mode uint32) (err error) {
  1178  	var _p0 *byte
  1179  	_p0, err = BytePtrFromString(path)
  1180  	if err != nil {
  1181  		return
  1182  	}
  1183  	_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  1184  	if e1 != 0 {
  1185  		err = errnoErr(e1)
  1186  	}
  1187  	return
  1188  }
  1189  
  1190  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1191  
  1192  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1193  	var _p0 *byte
  1194  	_p0, err = BytePtrFromString(path)
  1195  	if err != nil {
  1196  		return
  1197  	}
  1198  	_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1199  	if e1 != 0 {
  1200  		err = errnoErr(e1)
  1201  	}
  1202  	return
  1203  }
  1204  
  1205  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1206  
  1207  func Mkfifo(path string, mode uint32) (err error) {
  1208  	var _p0 *byte
  1209  	_p0, err = BytePtrFromString(path)
  1210  	if err != nil {
  1211  		return
  1212  	}
  1213  	_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  1214  	if e1 != 0 {
  1215  		err = errnoErr(e1)
  1216  	}
  1217  	return
  1218  }
  1219  
  1220  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1221  
  1222  func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
  1223  	var _p0 *byte
  1224  	_p0, err = BytePtrFromString(path)
  1225  	if err != nil {
  1226  		return
  1227  	}
  1228  	_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1229  	if e1 != 0 {
  1230  		err = errnoErr(e1)
  1231  	}
  1232  	return
  1233  }
  1234  
  1235  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1236  
  1237  func Mknod(path string, mode uint32, dev int) (err error) {
  1238  	var _p0 *byte
  1239  	_p0, err = BytePtrFromString(path)
  1240  	if err != nil {
  1241  		return
  1242  	}
  1243  	_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
  1244  	if e1 != 0 {
  1245  		err = errnoErr(e1)
  1246  	}
  1247  	return
  1248  }
  1249  
  1250  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1251  
  1252  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1253  	var _p0 *byte
  1254  	_p0, err = BytePtrFromString(path)
  1255  	if err != nil {
  1256  		return
  1257  	}
  1258  	_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1259  	if e1 != 0 {
  1260  		err = errnoErr(e1)
  1261  	}
  1262  	return
  1263  }
  1264  
  1265  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1266  
  1267  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1268  	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
  1269  	if e1 != 0 {
  1270  		err = errnoErr(e1)
  1271  	}
  1272  	return
  1273  }
  1274  
  1275  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1276  
  1277  func Open(path string, mode int, perm uint32) (fd int, err error) {
  1278  	var _p0 *byte
  1279  	_p0, err = BytePtrFromString(path)
  1280  	if err != nil {
  1281  		return
  1282  	}
  1283  	r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
  1284  	fd = int(r0)
  1285  	if e1 != 0 {
  1286  		err = errnoErr(e1)
  1287  	}
  1288  	return
  1289  }
  1290  
  1291  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1292  
  1293  func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
  1294  	var _p0 *byte
  1295  	_p0, err = BytePtrFromString(path)
  1296  	if err != nil {
  1297  		return
  1298  	}
  1299  	r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
  1300  	fd = int(r0)
  1301  	if e1 != 0 {
  1302  		err = errnoErr(e1)
  1303  	}
  1304  	return
  1305  }
  1306  
  1307  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1308  
  1309  func Pathconf(path string, name int) (val int, err error) {
  1310  	var _p0 *byte
  1311  	_p0, err = BytePtrFromString(path)
  1312  	if err != nil {
  1313  		return
  1314  	}
  1315  	r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
  1316  	val = int(r0)
  1317  	if e1 != 0 {
  1318  		err = errnoErr(e1)
  1319  	}
  1320  	return
  1321  }
  1322  
  1323  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1324  
  1325  func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1326  	var _p0 unsafe.Pointer
  1327  	if len(p) > 0 {
  1328  		_p0 = unsafe.Pointer(&p[0])
  1329  	} else {
  1330  		_p0 = unsafe.Pointer(&_zero)
  1331  	}
  1332  	r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
  1333  	n = int(r0)
  1334  	if e1 != 0 {
  1335  		err = errnoErr(e1)
  1336  	}
  1337  	return
  1338  }
  1339  
  1340  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1341  
  1342  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1343  	var _p0 unsafe.Pointer
  1344  	if len(p) > 0 {
  1345  		_p0 = unsafe.Pointer(&p[0])
  1346  	} else {
  1347  		_p0 = unsafe.Pointer(&_zero)
  1348  	}
  1349  	r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
  1350  	n = int(r0)
  1351  	if e1 != 0 {
  1352  		err = errnoErr(e1)
  1353  	}
  1354  	return
  1355  }
  1356  
  1357  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1358  
  1359  func read(fd int, p []byte) (n int, err error) {
  1360  	var _p0 unsafe.Pointer
  1361  	if len(p) > 0 {
  1362  		_p0 = unsafe.Pointer(&p[0])
  1363  	} else {
  1364  		_p0 = unsafe.Pointer(&_zero)
  1365  	}
  1366  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1367  	n = int(r0)
  1368  	if e1 != 0 {
  1369  		err = errnoErr(e1)
  1370  	}
  1371  	return
  1372  }
  1373  
  1374  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1375  
  1376  func Readlink(path string, buf []byte) (n int, err error) {
  1377  	var _p0 *byte
  1378  	_p0, err = BytePtrFromString(path)
  1379  	if err != nil {
  1380  		return
  1381  	}
  1382  	var _p1 unsafe.Pointer
  1383  	if len(buf) > 0 {
  1384  		_p1 = unsafe.Pointer(&buf[0])
  1385  	} else {
  1386  		_p1 = unsafe.Pointer(&_zero)
  1387  	}
  1388  	r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
  1389  	n = int(r0)
  1390  	if e1 != 0 {
  1391  		err = errnoErr(e1)
  1392  	}
  1393  	return
  1394  }
  1395  
  1396  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1397  
  1398  func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
  1399  	var _p0 *byte
  1400  	_p0, err = BytePtrFromString(path)
  1401  	if err != nil {
  1402  		return
  1403  	}
  1404  	var _p1 unsafe.Pointer
  1405  	if len(buf) > 0 {
  1406  		_p1 = unsafe.Pointer(&buf[0])
  1407  	} else {
  1408  		_p1 = unsafe.Pointer(&_zero)
  1409  	}
  1410  	r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
  1411  	n = int(r0)
  1412  	if e1 != 0 {
  1413  		err = errnoErr(e1)
  1414  	}
  1415  	return
  1416  }
  1417  
  1418  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1419  
  1420  func Rename(from string, to string) (err error) {
  1421  	var _p0 *byte
  1422  	_p0, err = BytePtrFromString(from)
  1423  	if err != nil {
  1424  		return
  1425  	}
  1426  	var _p1 *byte
  1427  	_p1, err = BytePtrFromString(to)
  1428  	if err != nil {
  1429  		return
  1430  	}
  1431  	_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1432  	if e1 != 0 {
  1433  		err = errnoErr(e1)
  1434  	}
  1435  	return
  1436  }
  1437  
  1438  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1439  
  1440  func Renameat(fromfd int, from string, tofd int, to string) (err error) {
  1441  	var _p0 *byte
  1442  	_p0, err = BytePtrFromString(from)
  1443  	if err != nil {
  1444  		return
  1445  	}
  1446  	var _p1 *byte
  1447  	_p1, err = BytePtrFromString(to)
  1448  	if err != nil {
  1449  		return
  1450  	}
  1451  	_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1452  	if e1 != 0 {
  1453  		err = errnoErr(e1)
  1454  	}
  1455  	return
  1456  }
  1457  
  1458  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1459  
  1460  func Revoke(path string) (err error) {
  1461  	var _p0 *byte
  1462  	_p0, err = BytePtrFromString(path)
  1463  	if err != nil {
  1464  		return
  1465  	}
  1466  	_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
  1467  	if e1 != 0 {
  1468  		err = errnoErr(e1)
  1469  	}
  1470  	return
  1471  }
  1472  
  1473  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1474  
  1475  func Rmdir(path string) (err error) {
  1476  	var _p0 *byte
  1477  	_p0, err = BytePtrFromString(path)
  1478  	if err != nil {
  1479  		return
  1480  	}
  1481  	_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
  1482  	if e1 != 0 {
  1483  		err = errnoErr(e1)
  1484  	}
  1485  	return
  1486  }
  1487  
  1488  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1489  
  1490  func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
  1491  	r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
  1492  	newoffset = int64(int64(r1)<<32 | int64(r0))
  1493  	if e1 != 0 {
  1494  		err = errnoErr(e1)
  1495  	}
  1496  	return
  1497  }
  1498  
  1499  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1500  
  1501  func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  1502  	r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1503  	n = int(r0)
  1504  	if e1 != 0 {
  1505  		err = errnoErr(e1)
  1506  	}
  1507  	return
  1508  }
  1509  
  1510  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1511  
  1512  func Setegid(egid int) (err error) {
  1513  	_, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
  1514  	if e1 != 0 {
  1515  		err = errnoErr(e1)
  1516  	}
  1517  	return
  1518  }
  1519  
  1520  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1521  
  1522  func Seteuid(euid int) (err error) {
  1523  	_, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
  1524  	if e1 != 0 {
  1525  		err = errnoErr(e1)
  1526  	}
  1527  	return
  1528  }
  1529  
  1530  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1531  
  1532  func Setgid(gid int) (err error) {
  1533  	_, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
  1534  	if e1 != 0 {
  1535  		err = errnoErr(e1)
  1536  	}
  1537  	return
  1538  }
  1539  
  1540  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1541  
  1542  func Setpgid(pid int, pgid int) (err error) {
  1543  	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
  1544  	if e1 != 0 {
  1545  		err = errnoErr(e1)
  1546  	}
  1547  	return
  1548  }
  1549  
  1550  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1551  
  1552  func Setpriority(which int, who int, prio int) (err error) {
  1553  	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
  1554  	if e1 != 0 {
  1555  		err = errnoErr(e1)
  1556  	}
  1557  	return
  1558  }
  1559  
  1560  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1561  
  1562  func Setregid(rgid int, egid int) (err error) {
  1563  	_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
  1564  	if e1 != 0 {
  1565  		err = errnoErr(e1)
  1566  	}
  1567  	return
  1568  }
  1569  
  1570  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1571  
  1572  func Setreuid(ruid int, euid int) (err error) {
  1573  	_, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
  1574  	if e1 != 0 {
  1575  		err = errnoErr(e1)
  1576  	}
  1577  	return
  1578  }
  1579  
  1580  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1581  
  1582  func Setrlimit(which int, lim *Rlimit) (err error) {
  1583  	_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
  1584  	if e1 != 0 {
  1585  		err = errnoErr(e1)
  1586  	}
  1587  	return
  1588  }
  1589  
  1590  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1591  
  1592  func Setsid() (pid int, err error) {
  1593  	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
  1594  	pid = int(r0)
  1595  	if e1 != 0 {
  1596  		err = errnoErr(e1)
  1597  	}
  1598  	return
  1599  }
  1600  
  1601  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1602  
  1603  func Settimeofday(tp *Timeval) (err error) {
  1604  	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
  1605  	if e1 != 0 {
  1606  		err = errnoErr(e1)
  1607  	}
  1608  	return
  1609  }
  1610  
  1611  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1612  
  1613  func Setuid(uid int) (err error) {
  1614  	_, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
  1615  	if e1 != 0 {
  1616  		err = errnoErr(e1)
  1617  	}
  1618  	return
  1619  }
  1620  
  1621  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1622  
  1623  func Stat(path string, stat *Stat_t) (err error) {
  1624  	var _p0 *byte
  1625  	_p0, err = BytePtrFromString(path)
  1626  	if err != nil {
  1627  		return
  1628  	}
  1629  	_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1630  	if e1 != 0 {
  1631  		err = errnoErr(e1)
  1632  	}
  1633  	return
  1634  }
  1635  
  1636  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1637  
  1638  func Symlink(path string, link string) (err error) {
  1639  	var _p0 *byte
  1640  	_p0, err = BytePtrFromString(path)
  1641  	if err != nil {
  1642  		return
  1643  	}
  1644  	var _p1 *byte
  1645  	_p1, err = BytePtrFromString(link)
  1646  	if err != nil {
  1647  		return
  1648  	}
  1649  	_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1650  	if e1 != 0 {
  1651  		err = errnoErr(e1)
  1652  	}
  1653  	return
  1654  }
  1655  
  1656  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1657  
  1658  func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
  1659  	var _p0 *byte
  1660  	_p0, err = BytePtrFromString(oldpath)
  1661  	if err != nil {
  1662  		return
  1663  	}
  1664  	var _p1 *byte
  1665  	_p1, err = BytePtrFromString(newpath)
  1666  	if err != nil {
  1667  		return
  1668  	}
  1669  	_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
  1670  	if e1 != 0 {
  1671  		err = errnoErr(e1)
  1672  	}
  1673  	return
  1674  }
  1675  
  1676  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1677  
  1678  func Sync() (err error) {
  1679  	_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
  1680  	if e1 != 0 {
  1681  		err = errnoErr(e1)
  1682  	}
  1683  	return
  1684  }
  1685  
  1686  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1687  
  1688  func Truncate(path string, length int64) (err error) {
  1689  	var _p0 *byte
  1690  	_p0, err = BytePtrFromString(path)
  1691  	if err != nil {
  1692  		return
  1693  	}
  1694  	_, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
  1695  	if e1 != 0 {
  1696  		err = errnoErr(e1)
  1697  	}
  1698  	return
  1699  }
  1700  
  1701  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1702  
  1703  func Umask(newmask int) (oldmask int) {
  1704  	r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
  1705  	oldmask = int(r0)
  1706  	return
  1707  }
  1708  
  1709  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1710  
  1711  func Unlink(path string) (err error) {
  1712  	var _p0 *byte
  1713  	_p0, err = BytePtrFromString(path)
  1714  	if err != nil {
  1715  		return
  1716  	}
  1717  	_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
  1718  	if e1 != 0 {
  1719  		err = errnoErr(e1)
  1720  	}
  1721  	return
  1722  }
  1723  
  1724  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1725  
  1726  func Unlinkat(dirfd int, path string, flags int) (err error) {
  1727  	var _p0 *byte
  1728  	_p0, err = BytePtrFromString(path)
  1729  	if err != nil {
  1730  		return
  1731  	}
  1732  	_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
  1733  	if e1 != 0 {
  1734  		err = errnoErr(e1)
  1735  	}
  1736  	return
  1737  }
  1738  
  1739  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1740  
  1741  func Unmount(path string, flags int) (err error) {
  1742  	var _p0 *byte
  1743  	_p0, err = BytePtrFromString(path)
  1744  	if err != nil {
  1745  		return
  1746  	}
  1747  	_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1748  	if e1 != 0 {
  1749  		err = errnoErr(e1)
  1750  	}
  1751  	return
  1752  }
  1753  
  1754  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1755  
  1756  func write(fd int, p []byte) (n int, err error) {
  1757  	var _p0 unsafe.Pointer
  1758  	if len(p) > 0 {
  1759  		_p0 = unsafe.Pointer(&p[0])
  1760  	} else {
  1761  		_p0 = unsafe.Pointer(&_zero)
  1762  	}
  1763  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1764  	n = int(r0)
  1765  	if e1 != 0 {
  1766  		err = errnoErr(e1)
  1767  	}
  1768  	return
  1769  }
  1770  
  1771  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1772  
  1773  func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1774  	r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
  1775  	ret = uintptr(r0)
  1776  	if e1 != 0 {
  1777  		err = errnoErr(e1)
  1778  	}
  1779  	return
  1780  }
  1781  
  1782  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1783  
  1784  func munmap(addr uintptr, length uintptr) (err error) {
  1785  	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
  1786  	if e1 != 0 {
  1787  		err = errnoErr(e1)
  1788  	}
  1789  	return
  1790  }
  1791  
  1792  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1793  
  1794  func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
  1795  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  1796  	n = int(r0)
  1797  	if e1 != 0 {
  1798  		err = errnoErr(e1)
  1799  	}
  1800  	return
  1801  }
  1802  
  1803  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1804  
  1805  func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
  1806  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  1807  	n = int(r0)
  1808  	if e1 != 0 {
  1809  		err = errnoErr(e1)
  1810  	}
  1811  	return
  1812  }
  1813  
  1814  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1815  
  1816  func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
  1817  	var _p0 *byte
  1818  	_p0, err = BytePtrFromString(path)
  1819  	if err != nil {
  1820  		return
  1821  	}
  1822  	_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
  1823  	if e1 != 0 {
  1824  		err = errnoErr(e1)
  1825  	}
  1826  	return
  1827  }