github.com/likebike/go--@v0.0.0-20190911215757-0bd925d16e96/go/src/syscall/zsyscall_netbsd_arm.go (about)

     1  // mksyscall.pl -l32 -netbsd -arm -tags netbsd,arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go
     2  // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
     3  
     4  // +build netbsd,arm
     5  
     6  package syscall
     7  
     8  import "unsafe"
     9  
    10  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    11  
    12  func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
    13  	r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
    14  	n = int(r0)
    15  	if e1 != 0 {
    16  		err = errnoErr(e1)
    17  	}
    18  	return
    19  }
    20  
    21  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    22  
    23  func setgroups(ngid int, gid *_Gid_t) (err error) {
    24  	_, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
    25  	if e1 != 0 {
    26  		err = errnoErr(e1)
    27  	}
    28  	return
    29  }
    30  
    31  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    32  
    33  func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    34  	r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    35  	wpid = int(r0)
    36  	if e1 != 0 {
    37  		err = errnoErr(e1)
    38  	}
    39  	return
    40  }
    41  
    42  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    43  
    44  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
    45  	r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
    46  	fd = int(r0)
    47  	if e1 != 0 {
    48  		err = errnoErr(e1)
    49  	}
    50  	return
    51  }
    52  
    53  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    54  
    55  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    56  	_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
    57  	if e1 != 0 {
    58  		err = errnoErr(e1)
    59  	}
    60  	return
    61  }
    62  
    63  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    64  
    65  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    66  	_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
    67  	if e1 != 0 {
    68  		err = errnoErr(e1)
    69  	}
    70  	return
    71  }
    72  
    73  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    74  
    75  func socket(domain int, typ int, proto int) (fd int, err error) {
    76  	r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
    77  	fd = int(r0)
    78  	if e1 != 0 {
    79  		err = errnoErr(e1)
    80  	}
    81  	return
    82  }
    83  
    84  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    85  
    86  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
    87  	_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
    88  	if e1 != 0 {
    89  		err = errnoErr(e1)
    90  	}
    91  	return
    92  }
    93  
    94  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    95  
    96  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
    97  	_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
    98  	if e1 != 0 {
    99  		err = errnoErr(e1)
   100  	}
   101  	return
   102  }
   103  
   104  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   105  
   106  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   107  	_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   108  	if e1 != 0 {
   109  		err = errnoErr(e1)
   110  	}
   111  	return
   112  }
   113  
   114  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   115  
   116  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   117  	_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   118  	if e1 != 0 {
   119  		err = errnoErr(e1)
   120  	}
   121  	return
   122  }
   123  
   124  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   125  
   126  func Shutdown(s int, how int) (err error) {
   127  	_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0)
   128  	if e1 != 0 {
   129  		err = errnoErr(e1)
   130  	}
   131  	return
   132  }
   133  
   134  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   135  
   136  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
   137  	_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
   138  	if e1 != 0 {
   139  		err = errnoErr(e1)
   140  	}
   141  	return
   142  }
   143  
   144  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   145  
   146  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
   147  	var _p0 unsafe.Pointer
   148  	if len(p) > 0 {
   149  		_p0 = unsafe.Pointer(&p[0])
   150  	} else {
   151  		_p0 = unsafe.Pointer(&_zero)
   152  	}
   153  	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
   154  	n = int(r0)
   155  	if e1 != 0 {
   156  		err = errnoErr(e1)
   157  	}
   158  	return
   159  }
   160  
   161  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   162  
   163  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
   164  	var _p0 unsafe.Pointer
   165  	if len(buf) > 0 {
   166  		_p0 = unsafe.Pointer(&buf[0])
   167  	} else {
   168  		_p0 = unsafe.Pointer(&_zero)
   169  	}
   170  	_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
   171  	if e1 != 0 {
   172  		err = errnoErr(e1)
   173  	}
   174  	return
   175  }
   176  
   177  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   178  
   179  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   180  	r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   181  	n = int(r0)
   182  	if e1 != 0 {
   183  		err = errnoErr(e1)
   184  	}
   185  	return
   186  }
   187  
   188  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   189  
   190  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   191  	r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   192  	n = int(r0)
   193  	if e1 != 0 {
   194  		err = errnoErr(e1)
   195  	}
   196  	return
   197  }
   198  
   199  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   200  
   201  func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
   202  	r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
   203  	n = int(r0)
   204  	if e1 != 0 {
   205  		err = errnoErr(e1)
   206  	}
   207  	return
   208  }
   209  
   210  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   211  
   212  func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
   213  	var _p0 unsafe.Pointer
   214  	if len(mib) > 0 {
   215  		_p0 = unsafe.Pointer(&mib[0])
   216  	} else {
   217  		_p0 = unsafe.Pointer(&_zero)
   218  	}
   219  	_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
   220  	if e1 != 0 {
   221  		err = errnoErr(e1)
   222  	}
   223  	return
   224  }
   225  
   226  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   227  
   228  func utimes(path string, timeval *[2]Timeval) (err error) {
   229  	var _p0 *byte
   230  	_p0, err = BytePtrFromString(path)
   231  	if err != nil {
   232  		return
   233  	}
   234  	_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
   235  	if e1 != 0 {
   236  		err = errnoErr(e1)
   237  	}
   238  	return
   239  }
   240  
   241  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   242  
   243  func futimes(fd int, timeval *[2]Timeval) (err error) {
   244  	_, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
   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 fcntl(fd int, cmd int, arg int) (val int, err error) {
   254  	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
   255  	val = 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 pipe() (fd1 int, fd2 int, err error) {
   265  	r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
   266  	fd1 = int(r0)
   267  	fd2 = int(r1)
   268  	if e1 != 0 {
   269  		err = errnoErr(e1)
   270  	}
   271  	return
   272  }
   273  
   274  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   275  
   276  func getdents(fd int, buf []byte) (n int, err error) {
   277  	var _p0 unsafe.Pointer
   278  	if len(buf) > 0 {
   279  		_p0 = unsafe.Pointer(&buf[0])
   280  	} else {
   281  		_p0 = unsafe.Pointer(&_zero)
   282  	}
   283  	r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   284  	n = int(r0)
   285  	if e1 != 0 {
   286  		err = errnoErr(e1)
   287  	}
   288  	return
   289  }
   290  
   291  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   292  
   293  func Access(path string, mode uint32) (err error) {
   294  	var _p0 *byte
   295  	_p0, err = BytePtrFromString(path)
   296  	if err != nil {
   297  		return
   298  	}
   299  	_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   300  	if e1 != 0 {
   301  		err = errnoErr(e1)
   302  	}
   303  	return
   304  }
   305  
   306  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   307  
   308  func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
   309  	_, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
   310  	if e1 != 0 {
   311  		err = errnoErr(e1)
   312  	}
   313  	return
   314  }
   315  
   316  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   317  
   318  func Chdir(path string) (err error) {
   319  	var _p0 *byte
   320  	_p0, err = BytePtrFromString(path)
   321  	if err != nil {
   322  		return
   323  	}
   324  	_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
   325  	if e1 != 0 {
   326  		err = errnoErr(e1)
   327  	}
   328  	return
   329  }
   330  
   331  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   332  
   333  func Chflags(path string, flags int) (err error) {
   334  	var _p0 *byte
   335  	_p0, err = BytePtrFromString(path)
   336  	if err != nil {
   337  		return
   338  	}
   339  	_, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   340  	if e1 != 0 {
   341  		err = errnoErr(e1)
   342  	}
   343  	return
   344  }
   345  
   346  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   347  
   348  func Chmod(path string, mode uint32) (err error) {
   349  	var _p0 *byte
   350  	_p0, err = BytePtrFromString(path)
   351  	if err != nil {
   352  		return
   353  	}
   354  	_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   355  	if e1 != 0 {
   356  		err = errnoErr(e1)
   357  	}
   358  	return
   359  }
   360  
   361  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   362  
   363  func Chown(path string, uid int, gid int) (err error) {
   364  	var _p0 *byte
   365  	_p0, err = BytePtrFromString(path)
   366  	if err != nil {
   367  		return
   368  	}
   369  	_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
   370  	if e1 != 0 {
   371  		err = errnoErr(e1)
   372  	}
   373  	return
   374  }
   375  
   376  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   377  
   378  func Chroot(path string) (err error) {
   379  	var _p0 *byte
   380  	_p0, err = BytePtrFromString(path)
   381  	if err != nil {
   382  		return
   383  	}
   384  	_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   385  	if e1 != 0 {
   386  		err = errnoErr(e1)
   387  	}
   388  	return
   389  }
   390  
   391  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   392  
   393  func Close(fd int) (err error) {
   394  	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
   395  	if e1 != 0 {
   396  		err = errnoErr(e1)
   397  	}
   398  	return
   399  }
   400  
   401  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   402  
   403  func Dup(fd int) (nfd int, err error) {
   404  	r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)
   405  	nfd = int(r0)
   406  	if e1 != 0 {
   407  		err = errnoErr(e1)
   408  	}
   409  	return
   410  }
   411  
   412  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   413  
   414  func Dup2(from int, to int) (err error) {
   415  	_, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0)
   416  	if e1 != 0 {
   417  		err = errnoErr(e1)
   418  	}
   419  	return
   420  }
   421  
   422  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   423  
   424  func Fchdir(fd int) (err error) {
   425  	_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
   426  	if e1 != 0 {
   427  		err = errnoErr(e1)
   428  	}
   429  	return
   430  }
   431  
   432  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   433  
   434  func Fchflags(fd int, flags int) (err error) {
   435  	_, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
   436  	if e1 != 0 {
   437  		err = errnoErr(e1)
   438  	}
   439  	return
   440  }
   441  
   442  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   443  
   444  func Fchmod(fd int, mode uint32) (err error) {
   445  	_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
   446  	if e1 != 0 {
   447  		err = errnoErr(e1)
   448  	}
   449  	return
   450  }
   451  
   452  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   453  
   454  func Fchown(fd int, uid int, gid int) (err error) {
   455  	_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
   456  	if e1 != 0 {
   457  		err = errnoErr(e1)
   458  	}
   459  	return
   460  }
   461  
   462  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   463  
   464  func Flock(fd int, how int) (err error) {
   465  	_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
   466  	if e1 != 0 {
   467  		err = errnoErr(e1)
   468  	}
   469  	return
   470  }
   471  
   472  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   473  
   474  func Fpathconf(fd int, name int) (val int, err error) {
   475  	r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)
   476  	val = int(r0)
   477  	if e1 != 0 {
   478  		err = errnoErr(e1)
   479  	}
   480  	return
   481  }
   482  
   483  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   484  
   485  func Fstat(fd int, stat *Stat_t) (err error) {
   486  	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
   487  	if e1 != 0 {
   488  		err = errnoErr(e1)
   489  	}
   490  	return
   491  }
   492  
   493  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   494  
   495  func Fsync(fd int) (err error) {
   496  	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
   497  	if e1 != 0 {
   498  		err = errnoErr(e1)
   499  	}
   500  	return
   501  }
   502  
   503  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   504  
   505  func Ftruncate(fd int, length int64) (err error) {
   506  	_, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
   507  	if e1 != 0 {
   508  		err = errnoErr(e1)
   509  	}
   510  	return
   511  }
   512  
   513  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   514  
   515  func Getegid() (egid int) {
   516  	r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
   517  	egid = int(r0)
   518  	return
   519  }
   520  
   521  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   522  
   523  func Geteuid() (uid int) {
   524  	r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
   525  	uid = int(r0)
   526  	return
   527  }
   528  
   529  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   530  
   531  func Getgid() (gid int) {
   532  	r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
   533  	gid = int(r0)
   534  	return
   535  }
   536  
   537  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   538  
   539  func Getpgid(pid int) (pgid int, err error) {
   540  	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   541  	pgid = int(r0)
   542  	if e1 != 0 {
   543  		err = errnoErr(e1)
   544  	}
   545  	return
   546  }
   547  
   548  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   549  
   550  func Getpgrp() (pgrp int) {
   551  	r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
   552  	pgrp = int(r0)
   553  	return
   554  }
   555  
   556  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   557  
   558  func Getpid() (pid int) {
   559  	r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
   560  	pid = int(r0)
   561  	return
   562  }
   563  
   564  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   565  
   566  func Getppid() (ppid int) {
   567  	r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
   568  	ppid = int(r0)
   569  	return
   570  }
   571  
   572  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   573  
   574  func Getpriority(which int, who int) (prio int, err error) {
   575  	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
   576  	prio = int(r0)
   577  	if e1 != 0 {
   578  		err = errnoErr(e1)
   579  	}
   580  	return
   581  }
   582  
   583  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   584  
   585  func Getrlimit(which int, lim *Rlimit) (err error) {
   586  	_, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
   587  	if e1 != 0 {
   588  		err = errnoErr(e1)
   589  	}
   590  	return
   591  }
   592  
   593  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   594  
   595  func Getrusage(who int, rusage *Rusage) (err error) {
   596  	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
   597  	if e1 != 0 {
   598  		err = errnoErr(e1)
   599  	}
   600  	return
   601  }
   602  
   603  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   604  
   605  func Getsid(pid int) (sid int, err error) {
   606  	r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
   607  	sid = int(r0)
   608  	if e1 != 0 {
   609  		err = errnoErr(e1)
   610  	}
   611  	return
   612  }
   613  
   614  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   615  
   616  func Gettimeofday(tv *Timeval) (err error) {
   617  	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
   618  	if e1 != 0 {
   619  		err = errnoErr(e1)
   620  	}
   621  	return
   622  }
   623  
   624  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   625  
   626  func Getuid() (uid int) {
   627  	r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
   628  	uid = int(r0)
   629  	return
   630  }
   631  
   632  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   633  
   634  func Issetugid() (tainted bool) {
   635  	r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
   636  	tainted = bool(r0 != 0)
   637  	return
   638  }
   639  
   640  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   641  
   642  func Kill(pid int, signum Signal) (err error) {
   643  	_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
   644  	if e1 != 0 {
   645  		err = errnoErr(e1)
   646  	}
   647  	return
   648  }
   649  
   650  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   651  
   652  func Kqueue() (fd int, err error) {
   653  	r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
   654  	fd = int(r0)
   655  	if e1 != 0 {
   656  		err = errnoErr(e1)
   657  	}
   658  	return
   659  }
   660  
   661  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   662  
   663  func Lchown(path string, uid int, gid int) (err error) {
   664  	var _p0 *byte
   665  	_p0, err = BytePtrFromString(path)
   666  	if err != nil {
   667  		return
   668  	}
   669  	_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
   670  	if e1 != 0 {
   671  		err = errnoErr(e1)
   672  	}
   673  	return
   674  }
   675  
   676  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   677  
   678  func Link(path string, link string) (err error) {
   679  	var _p0 *byte
   680  	_p0, err = BytePtrFromString(path)
   681  	if err != nil {
   682  		return
   683  	}
   684  	var _p1 *byte
   685  	_p1, err = BytePtrFromString(link)
   686  	if err != nil {
   687  		return
   688  	}
   689  	_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   690  	if e1 != 0 {
   691  		err = errnoErr(e1)
   692  	}
   693  	return
   694  }
   695  
   696  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   697  
   698  func Listen(s int, backlog int) (err error) {
   699  	_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
   700  	if e1 != 0 {
   701  		err = errnoErr(e1)
   702  	}
   703  	return
   704  }
   705  
   706  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   707  
   708  func Lstat(path string, stat *Stat_t) (err error) {
   709  	var _p0 *byte
   710  	_p0, err = BytePtrFromString(path)
   711  	if err != nil {
   712  		return
   713  	}
   714  	_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
   715  	if e1 != 0 {
   716  		err = errnoErr(e1)
   717  	}
   718  	return
   719  }
   720  
   721  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   722  
   723  func Mkdir(path string, mode uint32) (err error) {
   724  	var _p0 *byte
   725  	_p0, err = BytePtrFromString(path)
   726  	if err != nil {
   727  		return
   728  	}
   729  	_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   730  	if e1 != 0 {
   731  		err = errnoErr(e1)
   732  	}
   733  	return
   734  }
   735  
   736  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   737  
   738  func Mkfifo(path string, mode uint32) (err error) {
   739  	var _p0 *byte
   740  	_p0, err = BytePtrFromString(path)
   741  	if err != nil {
   742  		return
   743  	}
   744  	_, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   745  	if e1 != 0 {
   746  		err = errnoErr(e1)
   747  	}
   748  	return
   749  }
   750  
   751  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   752  
   753  func Mknod(path string, mode uint32, dev int) (err error) {
   754  	var _p0 *byte
   755  	_p0, err = BytePtrFromString(path)
   756  	if err != nil {
   757  		return
   758  	}
   759  	_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
   760  	if e1 != 0 {
   761  		err = errnoErr(e1)
   762  	}
   763  	return
   764  }
   765  
   766  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   767  
   768  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
   769  	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
   770  	if e1 != 0 {
   771  		err = errnoErr(e1)
   772  	}
   773  	return
   774  }
   775  
   776  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   777  
   778  func Open(path string, mode int, perm uint32) (fd int, err error) {
   779  	var _p0 *byte
   780  	_p0, err = BytePtrFromString(path)
   781  	if err != nil {
   782  		return
   783  	}
   784  	r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
   785  	fd = int(r0)
   786  	if e1 != 0 {
   787  		err = errnoErr(e1)
   788  	}
   789  	return
   790  }
   791  
   792  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   793  
   794  func Pathconf(path string, name int) (val int, err error) {
   795  	var _p0 *byte
   796  	_p0, err = BytePtrFromString(path)
   797  	if err != nil {
   798  		return
   799  	}
   800  	r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
   801  	val = int(r0)
   802  	if e1 != 0 {
   803  		err = errnoErr(e1)
   804  	}
   805  	return
   806  }
   807  
   808  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   809  
   810  func Pread(fd int, p []byte, offset int64) (n int, err error) {
   811  	var _p0 unsafe.Pointer
   812  	if len(p) > 0 {
   813  		_p0 = unsafe.Pointer(&p[0])
   814  	} else {
   815  		_p0 = unsafe.Pointer(&_zero)
   816  	}
   817  	r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
   818  	n = int(r0)
   819  	if e1 != 0 {
   820  		err = errnoErr(e1)
   821  	}
   822  	return
   823  }
   824  
   825  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   826  
   827  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
   828  	var _p0 unsafe.Pointer
   829  	if len(p) > 0 {
   830  		_p0 = unsafe.Pointer(&p[0])
   831  	} else {
   832  		_p0 = unsafe.Pointer(&_zero)
   833  	}
   834  	r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
   835  	n = int(r0)
   836  	if e1 != 0 {
   837  		err = errnoErr(e1)
   838  	}
   839  	return
   840  }
   841  
   842  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   843  
   844  func read(fd int, p []byte) (n int, err error) {
   845  	var _p0 unsafe.Pointer
   846  	if len(p) > 0 {
   847  		_p0 = unsafe.Pointer(&p[0])
   848  	} else {
   849  		_p0 = unsafe.Pointer(&_zero)
   850  	}
   851  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
   852  	n = int(r0)
   853  	if e1 != 0 {
   854  		err = errnoErr(e1)
   855  	}
   856  	return
   857  }
   858  
   859  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   860  
   861  func Readlink(path string, buf []byte) (n int, err error) {
   862  	var _p0 *byte
   863  	_p0, err = BytePtrFromString(path)
   864  	if err != nil {
   865  		return
   866  	}
   867  	var _p1 unsafe.Pointer
   868  	if len(buf) > 0 {
   869  		_p1 = unsafe.Pointer(&buf[0])
   870  	} else {
   871  		_p1 = unsafe.Pointer(&_zero)
   872  	}
   873  	r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
   874  	n = int(r0)
   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 Rename(from string, to string) (err error) {
   884  	var _p0 *byte
   885  	_p0, err = BytePtrFromString(from)
   886  	if err != nil {
   887  		return
   888  	}
   889  	var _p1 *byte
   890  	_p1, err = BytePtrFromString(to)
   891  	if err != nil {
   892  		return
   893  	}
   894  	_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   895  	if e1 != 0 {
   896  		err = errnoErr(e1)
   897  	}
   898  	return
   899  }
   900  
   901  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   902  
   903  func Revoke(path string) (err error) {
   904  	var _p0 *byte
   905  	_p0, err = BytePtrFromString(path)
   906  	if err != nil {
   907  		return
   908  	}
   909  	_, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0)
   910  	if e1 != 0 {
   911  		err = errnoErr(e1)
   912  	}
   913  	return
   914  }
   915  
   916  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   917  
   918  func Rmdir(path string) (err error) {
   919  	var _p0 *byte
   920  	_p0, err = BytePtrFromString(path)
   921  	if err != nil {
   922  		return
   923  	}
   924  	_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
   925  	if e1 != 0 {
   926  		err = errnoErr(e1)
   927  	}
   928  	return
   929  }
   930  
   931  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   932  
   933  func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
   934  	r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
   935  	newoffset = int64(int64(r1)<<32 | int64(r0))
   936  	if e1 != 0 {
   937  		err = errnoErr(e1)
   938  	}
   939  	return
   940  }
   941  
   942  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   943  
   944  func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
   945  	_, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
   946  	if e1 != 0 {
   947  		err = errnoErr(e1)
   948  	}
   949  	return
   950  }
   951  
   952  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   953  
   954  func Setegid(egid int) (err error) {
   955  	_, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
   956  	if e1 != 0 {
   957  		err = errnoErr(e1)
   958  	}
   959  	return
   960  }
   961  
   962  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   963  
   964  func Seteuid(euid int) (err error) {
   965  	_, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0)
   966  	if e1 != 0 {
   967  		err = errnoErr(e1)
   968  	}
   969  	return
   970  }
   971  
   972  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   973  
   974  func Setgid(gid int) (err error) {
   975  	_, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0)
   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 Setpgid(pid int, pgid int) (err error) {
   985  	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
   986  	if e1 != 0 {
   987  		err = errnoErr(e1)
   988  	}
   989  	return
   990  }
   991  
   992  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   993  
   994  func Setpriority(which int, who int, prio int) (err error) {
   995  	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
   996  	if e1 != 0 {
   997  		err = errnoErr(e1)
   998  	}
   999  	return
  1000  }
  1001  
  1002  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1003  
  1004  func Setregid(rgid int, egid int) (err error) {
  1005  	_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
  1006  	if e1 != 0 {
  1007  		err = errnoErr(e1)
  1008  	}
  1009  	return
  1010  }
  1011  
  1012  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1013  
  1014  func Setreuid(ruid int, euid int) (err error) {
  1015  	_, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
  1016  	if e1 != 0 {
  1017  		err = errnoErr(e1)
  1018  	}
  1019  	return
  1020  }
  1021  
  1022  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1023  
  1024  func Setrlimit(which int, lim *Rlimit) (err error) {
  1025  	_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
  1026  	if e1 != 0 {
  1027  		err = errnoErr(e1)
  1028  	}
  1029  	return
  1030  }
  1031  
  1032  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1033  
  1034  func Setsid() (pid int, err error) {
  1035  	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
  1036  	pid = int(r0)
  1037  	if e1 != 0 {
  1038  		err = errnoErr(e1)
  1039  	}
  1040  	return
  1041  }
  1042  
  1043  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1044  
  1045  func Settimeofday(tp *Timeval) (err error) {
  1046  	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
  1047  	if e1 != 0 {
  1048  		err = errnoErr(e1)
  1049  	}
  1050  	return
  1051  }
  1052  
  1053  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1054  
  1055  func Setuid(uid int) (err error) {
  1056  	_, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0)
  1057  	if e1 != 0 {
  1058  		err = errnoErr(e1)
  1059  	}
  1060  	return
  1061  }
  1062  
  1063  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1064  
  1065  func Stat(path string, stat *Stat_t) (err error) {
  1066  	var _p0 *byte
  1067  	_p0, err = BytePtrFromString(path)
  1068  	if err != nil {
  1069  		return
  1070  	}
  1071  	_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1072  	if e1 != 0 {
  1073  		err = errnoErr(e1)
  1074  	}
  1075  	return
  1076  }
  1077  
  1078  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1079  
  1080  func Symlink(path string, link string) (err error) {
  1081  	var _p0 *byte
  1082  	_p0, err = BytePtrFromString(path)
  1083  	if err != nil {
  1084  		return
  1085  	}
  1086  	var _p1 *byte
  1087  	_p1, err = BytePtrFromString(link)
  1088  	if err != nil {
  1089  		return
  1090  	}
  1091  	_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1092  	if e1 != 0 {
  1093  		err = errnoErr(e1)
  1094  	}
  1095  	return
  1096  }
  1097  
  1098  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1099  
  1100  func Sync() (err error) {
  1101  	_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
  1102  	if e1 != 0 {
  1103  		err = errnoErr(e1)
  1104  	}
  1105  	return
  1106  }
  1107  
  1108  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1109  
  1110  func Truncate(path string, length int64) (err error) {
  1111  	var _p0 *byte
  1112  	_p0, err = BytePtrFromString(path)
  1113  	if err != nil {
  1114  		return
  1115  	}
  1116  	_, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
  1117  	if e1 != 0 {
  1118  		err = errnoErr(e1)
  1119  	}
  1120  	return
  1121  }
  1122  
  1123  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1124  
  1125  func Umask(newmask int) (oldmask int) {
  1126  	r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)
  1127  	oldmask = int(r0)
  1128  	return
  1129  }
  1130  
  1131  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1132  
  1133  func Unlink(path string) (err error) {
  1134  	var _p0 *byte
  1135  	_p0, err = BytePtrFromString(path)
  1136  	if err != nil {
  1137  		return
  1138  	}
  1139  	_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
  1140  	if e1 != 0 {
  1141  		err = errnoErr(e1)
  1142  	}
  1143  	return
  1144  }
  1145  
  1146  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1147  
  1148  func Unmount(path string, flags int) (err error) {
  1149  	var _p0 *byte
  1150  	_p0, err = BytePtrFromString(path)
  1151  	if err != nil {
  1152  		return
  1153  	}
  1154  	_, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1155  	if e1 != 0 {
  1156  		err = errnoErr(e1)
  1157  	}
  1158  	return
  1159  }
  1160  
  1161  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1162  
  1163  func write(fd int, p []byte) (n int, err error) {
  1164  	var _p0 unsafe.Pointer
  1165  	if len(p) > 0 {
  1166  		_p0 = unsafe.Pointer(&p[0])
  1167  	} else {
  1168  		_p0 = unsafe.Pointer(&_zero)
  1169  	}
  1170  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1171  	n = int(r0)
  1172  	if e1 != 0 {
  1173  		err = errnoErr(e1)
  1174  	}
  1175  	return
  1176  }
  1177  
  1178  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1179  
  1180  func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1181  	r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
  1182  	ret = uintptr(r0)
  1183  	if e1 != 0 {
  1184  		err = errnoErr(e1)
  1185  	}
  1186  	return
  1187  }
  1188  
  1189  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1190  
  1191  func munmap(addr uintptr, length uintptr) (err error) {
  1192  	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
  1193  	if e1 != 0 {
  1194  		err = errnoErr(e1)
  1195  	}
  1196  	return
  1197  }
  1198  
  1199  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1200  
  1201  func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
  1202  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  1203  	n = int(r0)
  1204  	if e1 != 0 {
  1205  		err = errnoErr(e1)
  1206  	}
  1207  	return
  1208  }
  1209  
  1210  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1211  
  1212  func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
  1213  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  1214  	n = int(r0)
  1215  	if e1 != 0 {
  1216  		err = errnoErr(e1)
  1217  	}
  1218  	return
  1219  }
  1220  
  1221  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1222  
  1223  func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
  1224  	var _p0 *byte
  1225  	_p0, err = BytePtrFromString(path)
  1226  	if err != nil {
  1227  		return
  1228  	}
  1229  	_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
  1230  	if e1 != 0 {
  1231  		err = errnoErr(e1)
  1232  	}
  1233  	return
  1234  }