Source file src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go

     1  // go run mksyscall.go -l32 -openbsd -arm -libc -tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  //go:build openbsd && 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 := syscall_rawSyscall(libc_getgroups_trampoline_addr, 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  var libc_getgroups_trampoline_addr uintptr
    27  
    28  //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
    29  
    30  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    31  
    32  func setgroups(ngid int, gid *_Gid_t) (err error) {
    33  	_, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
    34  	if e1 != 0 {
    35  		err = errnoErr(e1)
    36  	}
    37  	return
    38  }
    39  
    40  var libc_setgroups_trampoline_addr uintptr
    41  
    42  //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    43  
    44  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    45  
    46  func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    47  	r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    48  	wpid = int(r0)
    49  	if e1 != 0 {
    50  		err = errnoErr(e1)
    51  	}
    52  	return
    53  }
    54  
    55  var libc_wait4_trampoline_addr uintptr
    56  
    57  //go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
    58  
    59  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    60  
    61  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
    62  	r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
    63  	fd = int(r0)
    64  	if e1 != 0 {
    65  		err = errnoErr(e1)
    66  	}
    67  	return
    68  }
    69  
    70  var libc_accept_trampoline_addr uintptr
    71  
    72  //go:cgo_import_dynamic libc_accept accept "libc.so"
    73  
    74  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    75  
    76  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    77  	_, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen))
    78  	if e1 != 0 {
    79  		err = errnoErr(e1)
    80  	}
    81  	return
    82  }
    83  
    84  var libc_bind_trampoline_addr uintptr
    85  
    86  //go:cgo_import_dynamic libc_bind bind "libc.so"
    87  
    88  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    89  
    90  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    91  	_, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen))
    92  	if e1 != 0 {
    93  		err = errnoErr(e1)
    94  	}
    95  	return
    96  }
    97  
    98  var libc_connect_trampoline_addr uintptr
    99  
   100  //go:cgo_import_dynamic libc_connect connect "libc.so"
   101  
   102  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   103  
   104  func socket(domain int, typ int, proto int) (fd int, err error) {
   105  	r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto))
   106  	fd = int(r0)
   107  	if e1 != 0 {
   108  		err = errnoErr(e1)
   109  	}
   110  	return
   111  }
   112  
   113  var libc_socket_trampoline_addr uintptr
   114  
   115  //go:cgo_import_dynamic libc_socket socket "libc.so"
   116  
   117  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   118  
   119  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
   120  	_, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
   121  	if e1 != 0 {
   122  		err = errnoErr(e1)
   123  	}
   124  	return
   125  }
   126  
   127  var libc_getsockopt_trampoline_addr uintptr
   128  
   129  //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
   130  
   131  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   132  
   133  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
   134  	_, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
   135  	if e1 != 0 {
   136  		err = errnoErr(e1)
   137  	}
   138  	return
   139  }
   140  
   141  var libc_setsockopt_trampoline_addr uintptr
   142  
   143  //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
   144  
   145  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   146  
   147  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   148  	_, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   149  	if e1 != 0 {
   150  		err = errnoErr(e1)
   151  	}
   152  	return
   153  }
   154  
   155  var libc_getpeername_trampoline_addr uintptr
   156  
   157  //go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
   158  
   159  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   160  
   161  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   162  	_, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   163  	if e1 != 0 {
   164  		err = errnoErr(e1)
   165  	}
   166  	return
   167  }
   168  
   169  var libc_getsockname_trampoline_addr uintptr
   170  
   171  //go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
   172  
   173  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   174  
   175  func Shutdown(s int, how int) (err error) {
   176  	_, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0)
   177  	if e1 != 0 {
   178  		err = errnoErr(e1)
   179  	}
   180  	return
   181  }
   182  
   183  var libc_shutdown_trampoline_addr uintptr
   184  
   185  //go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
   186  
   187  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   188  
   189  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
   190  	_, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
   191  	if e1 != 0 {
   192  		err = errnoErr(e1)
   193  	}
   194  	return
   195  }
   196  
   197  var libc_socketpair_trampoline_addr uintptr
   198  
   199  //go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
   200  
   201  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   202  
   203  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
   204  	var _p0 unsafe.Pointer
   205  	if len(p) > 0 {
   206  		_p0 = unsafe.Pointer(&p[0])
   207  	} else {
   208  		_p0 = unsafe.Pointer(&_zero)
   209  	}
   210  	r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
   211  	n = int(r0)
   212  	if e1 != 0 {
   213  		err = errnoErr(e1)
   214  	}
   215  	return
   216  }
   217  
   218  var libc_recvfrom_trampoline_addr uintptr
   219  
   220  //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
   221  
   222  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   223  
   224  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
   225  	var _p0 unsafe.Pointer
   226  	if len(buf) > 0 {
   227  		_p0 = unsafe.Pointer(&buf[0])
   228  	} else {
   229  		_p0 = unsafe.Pointer(&_zero)
   230  	}
   231  	_, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
   232  	if e1 != 0 {
   233  		err = errnoErr(e1)
   234  	}
   235  	return
   236  }
   237  
   238  var libc_sendto_trampoline_addr uintptr
   239  
   240  //go:cgo_import_dynamic libc_sendto sendto "libc.so"
   241  
   242  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   243  
   244  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   245  	r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   246  	n = int(r0)
   247  	if e1 != 0 {
   248  		err = errnoErr(e1)
   249  	}
   250  	return
   251  }
   252  
   253  var libc_recvmsg_trampoline_addr uintptr
   254  
   255  //go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
   256  
   257  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   258  
   259  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   260  	r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   261  	n = int(r0)
   262  	if e1 != 0 {
   263  		err = errnoErr(e1)
   264  	}
   265  	return
   266  }
   267  
   268  var libc_sendmsg_trampoline_addr uintptr
   269  
   270  //go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
   271  
   272  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   273  
   274  func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
   275  	r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
   276  	n = int(r0)
   277  	if e1 != 0 {
   278  		err = errnoErr(e1)
   279  	}
   280  	return
   281  }
   282  
   283  var libc_kevent_trampoline_addr uintptr
   284  
   285  //go:cgo_import_dynamic libc_kevent kevent "libc.so"
   286  
   287  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   288  
   289  func utimes(path string, timeval *[2]Timeval) (err error) {
   290  	var _p0 *byte
   291  	_p0, err = BytePtrFromString(path)
   292  	if err != nil {
   293  		return
   294  	}
   295  	_, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
   296  	if e1 != 0 {
   297  		err = errnoErr(e1)
   298  	}
   299  	return
   300  }
   301  
   302  var libc_utimes_trampoline_addr uintptr
   303  
   304  //go:cgo_import_dynamic libc_utimes utimes "libc.so"
   305  
   306  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   307  
   308  func futimes(fd int, timeval *[2]Timeval) (err error) {
   309  	_, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
   310  	if e1 != 0 {
   311  		err = errnoErr(e1)
   312  	}
   313  	return
   314  }
   315  
   316  var libc_futimes_trampoline_addr uintptr
   317  
   318  //go:cgo_import_dynamic libc_futimes futimes "libc.so"
   319  
   320  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   321  
   322  func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
   323  	r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
   324  	n = int(r0)
   325  	if e1 != 0 {
   326  		err = errnoErr(e1)
   327  	}
   328  	return
   329  }
   330  
   331  var libc_poll_trampoline_addr uintptr
   332  
   333  //go:cgo_import_dynamic libc_poll poll "libc.so"
   334  
   335  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   336  
   337  func Madvise(b []byte, behav int) (err error) {
   338  	var _p0 unsafe.Pointer
   339  	if len(b) > 0 {
   340  		_p0 = unsafe.Pointer(&b[0])
   341  	} else {
   342  		_p0 = unsafe.Pointer(&_zero)
   343  	}
   344  	_, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav))
   345  	if e1 != 0 {
   346  		err = errnoErr(e1)
   347  	}
   348  	return
   349  }
   350  
   351  var libc_madvise_trampoline_addr uintptr
   352  
   353  //go:cgo_import_dynamic libc_madvise madvise "libc.so"
   354  
   355  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   356  
   357  func Mlock(b []byte) (err error) {
   358  	var _p0 unsafe.Pointer
   359  	if len(b) > 0 {
   360  		_p0 = unsafe.Pointer(&b[0])
   361  	} else {
   362  		_p0 = unsafe.Pointer(&_zero)
   363  	}
   364  	_, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0)
   365  	if e1 != 0 {
   366  		err = errnoErr(e1)
   367  	}
   368  	return
   369  }
   370  
   371  var libc_mlock_trampoline_addr uintptr
   372  
   373  //go:cgo_import_dynamic libc_mlock mlock "libc.so"
   374  
   375  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   376  
   377  func Mlockall(flags int) (err error) {
   378  	_, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0)
   379  	if e1 != 0 {
   380  		err = errnoErr(e1)
   381  	}
   382  	return
   383  }
   384  
   385  var libc_mlockall_trampoline_addr uintptr
   386  
   387  //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
   388  
   389  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   390  
   391  func Mprotect(b []byte, prot int) (err error) {
   392  	var _p0 unsafe.Pointer
   393  	if len(b) > 0 {
   394  		_p0 = unsafe.Pointer(&b[0])
   395  	} else {
   396  		_p0 = unsafe.Pointer(&_zero)
   397  	}
   398  	_, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot))
   399  	if e1 != 0 {
   400  		err = errnoErr(e1)
   401  	}
   402  	return
   403  }
   404  
   405  var libc_mprotect_trampoline_addr uintptr
   406  
   407  //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
   408  
   409  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   410  
   411  func Msync(b []byte, flags int) (err error) {
   412  	var _p0 unsafe.Pointer
   413  	if len(b) > 0 {
   414  		_p0 = unsafe.Pointer(&b[0])
   415  	} else {
   416  		_p0 = unsafe.Pointer(&_zero)
   417  	}
   418  	_, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags))
   419  	if e1 != 0 {
   420  		err = errnoErr(e1)
   421  	}
   422  	return
   423  }
   424  
   425  var libc_msync_trampoline_addr uintptr
   426  
   427  //go:cgo_import_dynamic libc_msync msync "libc.so"
   428  
   429  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   430  
   431  func Munlock(b []byte) (err error) {
   432  	var _p0 unsafe.Pointer
   433  	if len(b) > 0 {
   434  		_p0 = unsafe.Pointer(&b[0])
   435  	} else {
   436  		_p0 = unsafe.Pointer(&_zero)
   437  	}
   438  	_, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0)
   439  	if e1 != 0 {
   440  		err = errnoErr(e1)
   441  	}
   442  	return
   443  }
   444  
   445  var libc_munlock_trampoline_addr uintptr
   446  
   447  //go:cgo_import_dynamic libc_munlock munlock "libc.so"
   448  
   449  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   450  
   451  func Munlockall() (err error) {
   452  	_, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0)
   453  	if e1 != 0 {
   454  		err = errnoErr(e1)
   455  	}
   456  	return
   457  }
   458  
   459  var libc_munlockall_trampoline_addr uintptr
   460  
   461  //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
   462  
   463  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   464  
   465  func pipe2(p *[2]_C_int, flags int) (err error) {
   466  	_, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
   467  	if e1 != 0 {
   468  		err = errnoErr(e1)
   469  	}
   470  	return
   471  }
   472  
   473  var libc_pipe2_trampoline_addr uintptr
   474  
   475  //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
   476  
   477  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   478  
   479  func Getdents(fd int, buf []byte) (n int, err error) {
   480  	var _p0 unsafe.Pointer
   481  	if len(buf) > 0 {
   482  		_p0 = unsafe.Pointer(&buf[0])
   483  	} else {
   484  		_p0 = unsafe.Pointer(&_zero)
   485  	}
   486  	r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   487  	n = int(r0)
   488  	if e1 != 0 {
   489  		err = errnoErr(e1)
   490  	}
   491  	return
   492  }
   493  
   494  var libc_getdents_trampoline_addr uintptr
   495  
   496  //go:cgo_import_dynamic libc_getdents getdents "libc.so"
   497  
   498  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   499  
   500  func Getcwd(buf []byte) (n int, err error) {
   501  	var _p0 unsafe.Pointer
   502  	if len(buf) > 0 {
   503  		_p0 = unsafe.Pointer(&buf[0])
   504  	} else {
   505  		_p0 = unsafe.Pointer(&_zero)
   506  	}
   507  	r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0)
   508  	n = int(r0)
   509  	if e1 != 0 {
   510  		err = errnoErr(e1)
   511  	}
   512  	return
   513  }
   514  
   515  var libc_getcwd_trampoline_addr uintptr
   516  
   517  //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
   518  
   519  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   520  
   521  func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
   522  	syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
   523  	return
   524  }
   525  
   526  var libc_getresuid_trampoline_addr uintptr
   527  
   528  //go:cgo_import_dynamic libc_getresuid getresuid "libc.so"
   529  
   530  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   531  
   532  func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
   533  	syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
   534  	return
   535  }
   536  
   537  var libc_getresgid_trampoline_addr uintptr
   538  
   539  //go:cgo_import_dynamic libc_getresgid getresgid "libc.so"
   540  
   541  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   542  
   543  func ioctl(fd int, req uint, arg uintptr) (err error) {
   544  	_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
   545  	if e1 != 0 {
   546  		err = errnoErr(e1)
   547  	}
   548  	return
   549  }
   550  
   551  var libc_ioctl_trampoline_addr uintptr
   552  
   553  //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
   554  
   555  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   556  
   557  func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
   558  	_, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
   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 sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
   568  	var _p0 unsafe.Pointer
   569  	if len(mib) > 0 {
   570  		_p0 = unsafe.Pointer(&mib[0])
   571  	} else {
   572  		_p0 = unsafe.Pointer(&_zero)
   573  	}
   574  	_, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
   575  	if e1 != 0 {
   576  		err = errnoErr(e1)
   577  	}
   578  	return
   579  }
   580  
   581  var libc_sysctl_trampoline_addr uintptr
   582  
   583  //go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
   584  
   585  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   586  
   587  func fcntl(fd int, cmd int, arg int) (n int, err error) {
   588  	r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg))
   589  	n = int(r0)
   590  	if e1 != 0 {
   591  		err = errnoErr(e1)
   592  	}
   593  	return
   594  }
   595  
   596  var libc_fcntl_trampoline_addr uintptr
   597  
   598  //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
   599  
   600  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   601  
   602  func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) {
   603  	r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg))
   604  	n = int(r0)
   605  	if e1 != 0 {
   606  		err = errnoErr(e1)
   607  	}
   608  	return
   609  }
   610  
   611  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   612  
   613  func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
   614  	r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
   615  	n = int(r0)
   616  	if e1 != 0 {
   617  		err = errnoErr(e1)
   618  	}
   619  	return
   620  }
   621  
   622  var libc_ppoll_trampoline_addr uintptr
   623  
   624  //go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
   625  
   626  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   627  
   628  func Access(path string, mode uint32) (err error) {
   629  	var _p0 *byte
   630  	_p0, err = BytePtrFromString(path)
   631  	if err != nil {
   632  		return
   633  	}
   634  	_, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   635  	if e1 != 0 {
   636  		err = errnoErr(e1)
   637  	}
   638  	return
   639  }
   640  
   641  var libc_access_trampoline_addr uintptr
   642  
   643  //go:cgo_import_dynamic libc_access access "libc.so"
   644  
   645  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   646  
   647  func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
   648  	_, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
   649  	if e1 != 0 {
   650  		err = errnoErr(e1)
   651  	}
   652  	return
   653  }
   654  
   655  var libc_adjtime_trampoline_addr uintptr
   656  
   657  //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
   658  
   659  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   660  
   661  func Chdir(path string) (err error) {
   662  	var _p0 *byte
   663  	_p0, err = BytePtrFromString(path)
   664  	if err != nil {
   665  		return
   666  	}
   667  	_, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
   668  	if e1 != 0 {
   669  		err = errnoErr(e1)
   670  	}
   671  	return
   672  }
   673  
   674  var libc_chdir_trampoline_addr uintptr
   675  
   676  //go:cgo_import_dynamic libc_chdir chdir "libc.so"
   677  
   678  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   679  
   680  func Chflags(path string, flags int) (err error) {
   681  	var _p0 *byte
   682  	_p0, err = BytePtrFromString(path)
   683  	if err != nil {
   684  		return
   685  	}
   686  	_, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   687  	if e1 != 0 {
   688  		err = errnoErr(e1)
   689  	}
   690  	return
   691  }
   692  
   693  var libc_chflags_trampoline_addr uintptr
   694  
   695  //go:cgo_import_dynamic libc_chflags chflags "libc.so"
   696  
   697  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   698  
   699  func Chmod(path string, mode uint32) (err error) {
   700  	var _p0 *byte
   701  	_p0, err = BytePtrFromString(path)
   702  	if err != nil {
   703  		return
   704  	}
   705  	_, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   706  	if e1 != 0 {
   707  		err = errnoErr(e1)
   708  	}
   709  	return
   710  }
   711  
   712  var libc_chmod_trampoline_addr uintptr
   713  
   714  //go:cgo_import_dynamic libc_chmod chmod "libc.so"
   715  
   716  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   717  
   718  func Chown(path string, uid int, gid int) (err error) {
   719  	var _p0 *byte
   720  	_p0, err = BytePtrFromString(path)
   721  	if err != nil {
   722  		return
   723  	}
   724  	_, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
   725  	if e1 != 0 {
   726  		err = errnoErr(e1)
   727  	}
   728  	return
   729  }
   730  
   731  var libc_chown_trampoline_addr uintptr
   732  
   733  //go:cgo_import_dynamic libc_chown chown "libc.so"
   734  
   735  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   736  
   737  func Chroot(path string) (err error) {
   738  	var _p0 *byte
   739  	_p0, err = BytePtrFromString(path)
   740  	if err != nil {
   741  		return
   742  	}
   743  	_, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
   744  	if e1 != 0 {
   745  		err = errnoErr(e1)
   746  	}
   747  	return
   748  }
   749  
   750  var libc_chroot_trampoline_addr uintptr
   751  
   752  //go:cgo_import_dynamic libc_chroot chroot "libc.so"
   753  
   754  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   755  
   756  func ClockGettime(clockid int32, time *Timespec) (err error) {
   757  	_, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
   758  	if e1 != 0 {
   759  		err = errnoErr(e1)
   760  	}
   761  	return
   762  }
   763  
   764  var libc_clock_gettime_trampoline_addr uintptr
   765  
   766  //go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so"
   767  
   768  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   769  
   770  func Close(fd int) (err error) {
   771  	_, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0)
   772  	if e1 != 0 {
   773  		err = errnoErr(e1)
   774  	}
   775  	return
   776  }
   777  
   778  var libc_close_trampoline_addr uintptr
   779  
   780  //go:cgo_import_dynamic libc_close close "libc.so"
   781  
   782  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   783  
   784  func Dup(fd int) (nfd int, err error) {
   785  	r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0)
   786  	nfd = int(r0)
   787  	if e1 != 0 {
   788  		err = errnoErr(e1)
   789  	}
   790  	return
   791  }
   792  
   793  var libc_dup_trampoline_addr uintptr
   794  
   795  //go:cgo_import_dynamic libc_dup dup "libc.so"
   796  
   797  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   798  
   799  func Dup2(from int, to int) (err error) {
   800  	_, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0)
   801  	if e1 != 0 {
   802  		err = errnoErr(e1)
   803  	}
   804  	return
   805  }
   806  
   807  var libc_dup2_trampoline_addr uintptr
   808  
   809  //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
   810  
   811  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   812  
   813  func Dup3(from int, to int, flags int) (err error) {
   814  	_, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags))
   815  	if e1 != 0 {
   816  		err = errnoErr(e1)
   817  	}
   818  	return
   819  }
   820  
   821  var libc_dup3_trampoline_addr uintptr
   822  
   823  //go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
   824  
   825  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   826  
   827  func Exit(code int) {
   828  	syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0)
   829  	return
   830  }
   831  
   832  var libc_exit_trampoline_addr uintptr
   833  
   834  //go:cgo_import_dynamic libc_exit exit "libc.so"
   835  
   836  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   837  
   838  func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
   839  	var _p0 *byte
   840  	_p0, err = BytePtrFromString(path)
   841  	if err != nil {
   842  		return
   843  	}
   844  	_, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   845  	if e1 != 0 {
   846  		err = errnoErr(e1)
   847  	}
   848  	return
   849  }
   850  
   851  var libc_faccessat_trampoline_addr uintptr
   852  
   853  //go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
   854  
   855  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   856  
   857  func Fchdir(fd int) (err error) {
   858  	_, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0)
   859  	if e1 != 0 {
   860  		err = errnoErr(e1)
   861  	}
   862  	return
   863  }
   864  
   865  var libc_fchdir_trampoline_addr uintptr
   866  
   867  //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
   868  
   869  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   870  
   871  func Fchflags(fd int, flags int) (err error) {
   872  	_, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0)
   873  	if e1 != 0 {
   874  		err = errnoErr(e1)
   875  	}
   876  	return
   877  }
   878  
   879  var libc_fchflags_trampoline_addr uintptr
   880  
   881  //go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
   882  
   883  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   884  
   885  func Fchmod(fd int, mode uint32) (err error) {
   886  	_, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0)
   887  	if e1 != 0 {
   888  		err = errnoErr(e1)
   889  	}
   890  	return
   891  }
   892  
   893  var libc_fchmod_trampoline_addr uintptr
   894  
   895  //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
   896  
   897  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   898  
   899  func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
   900  	var _p0 *byte
   901  	_p0, err = BytePtrFromString(path)
   902  	if err != nil {
   903  		return
   904  	}
   905  	_, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   906  	if e1 != 0 {
   907  		err = errnoErr(e1)
   908  	}
   909  	return
   910  }
   911  
   912  var libc_fchmodat_trampoline_addr uintptr
   913  
   914  //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
   915  
   916  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   917  
   918  func Fchown(fd int, uid int, gid int) (err error) {
   919  	_, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid))
   920  	if e1 != 0 {
   921  		err = errnoErr(e1)
   922  	}
   923  	return
   924  }
   925  
   926  var libc_fchown_trampoline_addr uintptr
   927  
   928  //go:cgo_import_dynamic libc_fchown fchown "libc.so"
   929  
   930  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   931  
   932  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   933  	var _p0 *byte
   934  	_p0, err = BytePtrFromString(path)
   935  	if err != nil {
   936  		return
   937  	}
   938  	_, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   939  	if e1 != 0 {
   940  		err = errnoErr(e1)
   941  	}
   942  	return
   943  }
   944  
   945  var libc_fchownat_trampoline_addr uintptr
   946  
   947  //go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
   948  
   949  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   950  
   951  func Flock(fd int, how int) (err error) {
   952  	_, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0)
   953  	if e1 != 0 {
   954  		err = errnoErr(e1)
   955  	}
   956  	return
   957  }
   958  
   959  var libc_flock_trampoline_addr uintptr
   960  
   961  //go:cgo_import_dynamic libc_flock flock "libc.so"
   962  
   963  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   964  
   965  func Fpathconf(fd int, name int) (val int, err error) {
   966  	r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0)
   967  	val = int(r0)
   968  	if e1 != 0 {
   969  		err = errnoErr(e1)
   970  	}
   971  	return
   972  }
   973  
   974  var libc_fpathconf_trampoline_addr uintptr
   975  
   976  //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
   977  
   978  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   979  
   980  func Fstat(fd int, stat *Stat_t) (err error) {
   981  	_, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
   982  	if e1 != 0 {
   983  		err = errnoErr(e1)
   984  	}
   985  	return
   986  }
   987  
   988  var libc_fstat_trampoline_addr uintptr
   989  
   990  //go:cgo_import_dynamic libc_fstat fstat "libc.so"
   991  
   992  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   993  
   994  func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
   995  	var _p0 *byte
   996  	_p0, err = BytePtrFromString(path)
   997  	if err != nil {
   998  		return
   999  	}
  1000  	_, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  1001  	if e1 != 0 {
  1002  		err = errnoErr(e1)
  1003  	}
  1004  	return
  1005  }
  1006  
  1007  var libc_fstatat_trampoline_addr uintptr
  1008  
  1009  //go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
  1010  
  1011  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1012  
  1013  func Fstatfs(fd int, stat *Statfs_t) (err error) {
  1014  	_, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  1015  	if e1 != 0 {
  1016  		err = errnoErr(e1)
  1017  	}
  1018  	return
  1019  }
  1020  
  1021  var libc_fstatfs_trampoline_addr uintptr
  1022  
  1023  //go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
  1024  
  1025  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1026  
  1027  func Fsync(fd int) (err error) {
  1028  	_, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0)
  1029  	if e1 != 0 {
  1030  		err = errnoErr(e1)
  1031  	}
  1032  	return
  1033  }
  1034  
  1035  var libc_fsync_trampoline_addr uintptr
  1036  
  1037  //go:cgo_import_dynamic libc_fsync fsync "libc.so"
  1038  
  1039  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1040  
  1041  func Ftruncate(fd int, length int64) (err error) {
  1042  	_, _, e1 := syscall_syscall6(libc_ftruncate_trampoline_addr, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
  1043  	if e1 != 0 {
  1044  		err = errnoErr(e1)
  1045  	}
  1046  	return
  1047  }
  1048  
  1049  var libc_ftruncate_trampoline_addr uintptr
  1050  
  1051  //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
  1052  
  1053  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1054  
  1055  func Getegid() (egid int) {
  1056  	r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0)
  1057  	egid = int(r0)
  1058  	return
  1059  }
  1060  
  1061  var libc_getegid_trampoline_addr uintptr
  1062  
  1063  //go:cgo_import_dynamic libc_getegid getegid "libc.so"
  1064  
  1065  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1066  
  1067  func Geteuid() (uid int) {
  1068  	r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0)
  1069  	uid = int(r0)
  1070  	return
  1071  }
  1072  
  1073  var libc_geteuid_trampoline_addr uintptr
  1074  
  1075  //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
  1076  
  1077  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1078  
  1079  func Getgid() (gid int) {
  1080  	r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0)
  1081  	gid = int(r0)
  1082  	return
  1083  }
  1084  
  1085  var libc_getgid_trampoline_addr uintptr
  1086  
  1087  //go:cgo_import_dynamic libc_getgid getgid "libc.so"
  1088  
  1089  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1090  
  1091  func Getpgid(pid int) (pgid int, err error) {
  1092  	r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0)
  1093  	pgid = int(r0)
  1094  	if e1 != 0 {
  1095  		err = errnoErr(e1)
  1096  	}
  1097  	return
  1098  }
  1099  
  1100  var libc_getpgid_trampoline_addr uintptr
  1101  
  1102  //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
  1103  
  1104  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1105  
  1106  func Getpgrp() (pgrp int) {
  1107  	r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0)
  1108  	pgrp = int(r0)
  1109  	return
  1110  }
  1111  
  1112  var libc_getpgrp_trampoline_addr uintptr
  1113  
  1114  //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
  1115  
  1116  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1117  
  1118  func Getpid() (pid int) {
  1119  	r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0)
  1120  	pid = int(r0)
  1121  	return
  1122  }
  1123  
  1124  var libc_getpid_trampoline_addr uintptr
  1125  
  1126  //go:cgo_import_dynamic libc_getpid getpid "libc.so"
  1127  
  1128  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1129  
  1130  func Getppid() (ppid int) {
  1131  	r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0)
  1132  	ppid = int(r0)
  1133  	return
  1134  }
  1135  
  1136  var libc_getppid_trampoline_addr uintptr
  1137  
  1138  //go:cgo_import_dynamic libc_getppid getppid "libc.so"
  1139  
  1140  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1141  
  1142  func Getpriority(which int, who int) (prio int, err error) {
  1143  	r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0)
  1144  	prio = int(r0)
  1145  	if e1 != 0 {
  1146  		err = errnoErr(e1)
  1147  	}
  1148  	return
  1149  }
  1150  
  1151  var libc_getpriority_trampoline_addr uintptr
  1152  
  1153  //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
  1154  
  1155  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1156  
  1157  func Getrlimit(which int, lim *Rlimit) (err error) {
  1158  	_, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
  1159  	if e1 != 0 {
  1160  		err = errnoErr(e1)
  1161  	}
  1162  	return
  1163  }
  1164  
  1165  var libc_getrlimit_trampoline_addr uintptr
  1166  
  1167  //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
  1168  
  1169  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1170  
  1171  func Getrtable() (rtable int, err error) {
  1172  	r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0)
  1173  	rtable = int(r0)
  1174  	if e1 != 0 {
  1175  		err = errnoErr(e1)
  1176  	}
  1177  	return
  1178  }
  1179  
  1180  var libc_getrtable_trampoline_addr uintptr
  1181  
  1182  //go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
  1183  
  1184  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1185  
  1186  func Getrusage(who int, rusage *Rusage) (err error) {
  1187  	_, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
  1188  	if e1 != 0 {
  1189  		err = errnoErr(e1)
  1190  	}
  1191  	return
  1192  }
  1193  
  1194  var libc_getrusage_trampoline_addr uintptr
  1195  
  1196  //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
  1197  
  1198  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1199  
  1200  func Getsid(pid int) (sid int, err error) {
  1201  	r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0)
  1202  	sid = int(r0)
  1203  	if e1 != 0 {
  1204  		err = errnoErr(e1)
  1205  	}
  1206  	return
  1207  }
  1208  
  1209  var libc_getsid_trampoline_addr uintptr
  1210  
  1211  //go:cgo_import_dynamic libc_getsid getsid "libc.so"
  1212  
  1213  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1214  
  1215  func Gettimeofday(tv *Timeval) (err error) {
  1216  	_, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0)
  1217  	if e1 != 0 {
  1218  		err = errnoErr(e1)
  1219  	}
  1220  	return
  1221  }
  1222  
  1223  var libc_gettimeofday_trampoline_addr uintptr
  1224  
  1225  //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
  1226  
  1227  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1228  
  1229  func Getuid() (uid int) {
  1230  	r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0)
  1231  	uid = int(r0)
  1232  	return
  1233  }
  1234  
  1235  var libc_getuid_trampoline_addr uintptr
  1236  
  1237  //go:cgo_import_dynamic libc_getuid getuid "libc.so"
  1238  
  1239  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1240  
  1241  func Issetugid() (tainted bool) {
  1242  	r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0)
  1243  	tainted = bool(r0 != 0)
  1244  	return
  1245  }
  1246  
  1247  var libc_issetugid_trampoline_addr uintptr
  1248  
  1249  //go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
  1250  
  1251  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1252  
  1253  func Kill(pid int, signum syscall.Signal) (err error) {
  1254  	_, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0)
  1255  	if e1 != 0 {
  1256  		err = errnoErr(e1)
  1257  	}
  1258  	return
  1259  }
  1260  
  1261  var libc_kill_trampoline_addr uintptr
  1262  
  1263  //go:cgo_import_dynamic libc_kill kill "libc.so"
  1264  
  1265  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1266  
  1267  func Kqueue() (fd int, err error) {
  1268  	r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0)
  1269  	fd = int(r0)
  1270  	if e1 != 0 {
  1271  		err = errnoErr(e1)
  1272  	}
  1273  	return
  1274  }
  1275  
  1276  var libc_kqueue_trampoline_addr uintptr
  1277  
  1278  //go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
  1279  
  1280  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1281  
  1282  func Lchown(path string, uid int, gid int) (err error) {
  1283  	var _p0 *byte
  1284  	_p0, err = BytePtrFromString(path)
  1285  	if err != nil {
  1286  		return
  1287  	}
  1288  	_, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  1289  	if e1 != 0 {
  1290  		err = errnoErr(e1)
  1291  	}
  1292  	return
  1293  }
  1294  
  1295  var libc_lchown_trampoline_addr uintptr
  1296  
  1297  //go:cgo_import_dynamic libc_lchown lchown "libc.so"
  1298  
  1299  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1300  
  1301  func Link(path string, link string) (err error) {
  1302  	var _p0 *byte
  1303  	_p0, err = BytePtrFromString(path)
  1304  	if err != nil {
  1305  		return
  1306  	}
  1307  	var _p1 *byte
  1308  	_p1, err = BytePtrFromString(link)
  1309  	if err != nil {
  1310  		return
  1311  	}
  1312  	_, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1313  	if e1 != 0 {
  1314  		err = errnoErr(e1)
  1315  	}
  1316  	return
  1317  }
  1318  
  1319  var libc_link_trampoline_addr uintptr
  1320  
  1321  //go:cgo_import_dynamic libc_link link "libc.so"
  1322  
  1323  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1324  
  1325  func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
  1326  	var _p0 *byte
  1327  	_p0, err = BytePtrFromString(path)
  1328  	if err != nil {
  1329  		return
  1330  	}
  1331  	var _p1 *byte
  1332  	_p1, err = BytePtrFromString(link)
  1333  	if err != nil {
  1334  		return
  1335  	}
  1336  	_, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
  1337  	if e1 != 0 {
  1338  		err = errnoErr(e1)
  1339  	}
  1340  	return
  1341  }
  1342  
  1343  var libc_linkat_trampoline_addr uintptr
  1344  
  1345  //go:cgo_import_dynamic libc_linkat linkat "libc.so"
  1346  
  1347  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1348  
  1349  func Listen(s int, backlog int) (err error) {
  1350  	_, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0)
  1351  	if e1 != 0 {
  1352  		err = errnoErr(e1)
  1353  	}
  1354  	return
  1355  }
  1356  
  1357  var libc_listen_trampoline_addr uintptr
  1358  
  1359  //go:cgo_import_dynamic libc_listen listen "libc.so"
  1360  
  1361  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1362  
  1363  func Lstat(path string, stat *Stat_t) (err error) {
  1364  	var _p0 *byte
  1365  	_p0, err = BytePtrFromString(path)
  1366  	if err != nil {
  1367  		return
  1368  	}
  1369  	_, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1370  	if e1 != 0 {
  1371  		err = errnoErr(e1)
  1372  	}
  1373  	return
  1374  }
  1375  
  1376  var libc_lstat_trampoline_addr uintptr
  1377  
  1378  //go:cgo_import_dynamic libc_lstat lstat "libc.so"
  1379  
  1380  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1381  
  1382  func Mkdir(path string, mode uint32) (err error) {
  1383  	var _p0 *byte
  1384  	_p0, err = BytePtrFromString(path)
  1385  	if err != nil {
  1386  		return
  1387  	}
  1388  	_, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  1389  	if e1 != 0 {
  1390  		err = errnoErr(e1)
  1391  	}
  1392  	return
  1393  }
  1394  
  1395  var libc_mkdir_trampoline_addr uintptr
  1396  
  1397  //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
  1398  
  1399  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1400  
  1401  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1402  	var _p0 *byte
  1403  	_p0, err = BytePtrFromString(path)
  1404  	if err != nil {
  1405  		return
  1406  	}
  1407  	_, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1408  	if e1 != 0 {
  1409  		err = errnoErr(e1)
  1410  	}
  1411  	return
  1412  }
  1413  
  1414  var libc_mkdirat_trampoline_addr uintptr
  1415  
  1416  //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
  1417  
  1418  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1419  
  1420  func Mkfifo(path string, mode uint32) (err error) {
  1421  	var _p0 *byte
  1422  	_p0, err = BytePtrFromString(path)
  1423  	if err != nil {
  1424  		return
  1425  	}
  1426  	_, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  1427  	if e1 != 0 {
  1428  		err = errnoErr(e1)
  1429  	}
  1430  	return
  1431  }
  1432  
  1433  var libc_mkfifo_trampoline_addr uintptr
  1434  
  1435  //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
  1436  
  1437  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1438  
  1439  func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
  1440  	var _p0 *byte
  1441  	_p0, err = BytePtrFromString(path)
  1442  	if err != nil {
  1443  		return
  1444  	}
  1445  	_, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1446  	if e1 != 0 {
  1447  		err = errnoErr(e1)
  1448  	}
  1449  	return
  1450  }
  1451  
  1452  var libc_mkfifoat_trampoline_addr uintptr
  1453  
  1454  //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
  1455  
  1456  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1457  
  1458  func Mknod(path string, mode uint32, dev int) (err error) {
  1459  	var _p0 *byte
  1460  	_p0, err = BytePtrFromString(path)
  1461  	if err != nil {
  1462  		return
  1463  	}
  1464  	_, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
  1465  	if e1 != 0 {
  1466  		err = errnoErr(e1)
  1467  	}
  1468  	return
  1469  }
  1470  
  1471  var libc_mknod_trampoline_addr uintptr
  1472  
  1473  //go:cgo_import_dynamic libc_mknod mknod "libc.so"
  1474  
  1475  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1476  
  1477  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1478  	var _p0 *byte
  1479  	_p0, err = BytePtrFromString(path)
  1480  	if err != nil {
  1481  		return
  1482  	}
  1483  	_, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1484  	if e1 != 0 {
  1485  		err = errnoErr(e1)
  1486  	}
  1487  	return
  1488  }
  1489  
  1490  var libc_mknodat_trampoline_addr uintptr
  1491  
  1492  //go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
  1493  
  1494  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1495  
  1496  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1497  	_, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
  1498  	if e1 != 0 {
  1499  		err = errnoErr(e1)
  1500  	}
  1501  	return
  1502  }
  1503  
  1504  var libc_nanosleep_trampoline_addr uintptr
  1505  
  1506  //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
  1507  
  1508  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1509  
  1510  func Open(path string, mode int, perm uint32) (fd int, err error) {
  1511  	var _p0 *byte
  1512  	_p0, err = BytePtrFromString(path)
  1513  	if err != nil {
  1514  		return
  1515  	}
  1516  	r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
  1517  	fd = int(r0)
  1518  	if e1 != 0 {
  1519  		err = errnoErr(e1)
  1520  	}
  1521  	return
  1522  }
  1523  
  1524  var libc_open_trampoline_addr uintptr
  1525  
  1526  //go:cgo_import_dynamic libc_open open "libc.so"
  1527  
  1528  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1529  
  1530  func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
  1531  	var _p0 *byte
  1532  	_p0, err = BytePtrFromString(path)
  1533  	if err != nil {
  1534  		return
  1535  	}
  1536  	r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
  1537  	fd = int(r0)
  1538  	if e1 != 0 {
  1539  		err = errnoErr(e1)
  1540  	}
  1541  	return
  1542  }
  1543  
  1544  var libc_openat_trampoline_addr uintptr
  1545  
  1546  //go:cgo_import_dynamic libc_openat openat "libc.so"
  1547  
  1548  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1549  
  1550  func Pathconf(path string, name int) (val int, err error) {
  1551  	var _p0 *byte
  1552  	_p0, err = BytePtrFromString(path)
  1553  	if err != nil {
  1554  		return
  1555  	}
  1556  	r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
  1557  	val = int(r0)
  1558  	if e1 != 0 {
  1559  		err = errnoErr(e1)
  1560  	}
  1561  	return
  1562  }
  1563  
  1564  var libc_pathconf_trampoline_addr uintptr
  1565  
  1566  //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
  1567  
  1568  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1569  
  1570  func pread(fd int, p []byte, offset int64) (n int, err error) {
  1571  	var _p0 unsafe.Pointer
  1572  	if len(p) > 0 {
  1573  		_p0 = unsafe.Pointer(&p[0])
  1574  	} else {
  1575  		_p0 = unsafe.Pointer(&_zero)
  1576  	}
  1577  	r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
  1578  	n = int(r0)
  1579  	if e1 != 0 {
  1580  		err = errnoErr(e1)
  1581  	}
  1582  	return
  1583  }
  1584  
  1585  var libc_pread_trampoline_addr uintptr
  1586  
  1587  //go:cgo_import_dynamic libc_pread pread "libc.so"
  1588  
  1589  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1590  
  1591  func pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1592  	var _p0 unsafe.Pointer
  1593  	if len(p) > 0 {
  1594  		_p0 = unsafe.Pointer(&p[0])
  1595  	} else {
  1596  		_p0 = unsafe.Pointer(&_zero)
  1597  	}
  1598  	r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
  1599  	n = int(r0)
  1600  	if e1 != 0 {
  1601  		err = errnoErr(e1)
  1602  	}
  1603  	return
  1604  }
  1605  
  1606  var libc_pwrite_trampoline_addr uintptr
  1607  
  1608  //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
  1609  
  1610  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1611  
  1612  func read(fd int, p []byte) (n int, err error) {
  1613  	var _p0 unsafe.Pointer
  1614  	if len(p) > 0 {
  1615  		_p0 = unsafe.Pointer(&p[0])
  1616  	} else {
  1617  		_p0 = unsafe.Pointer(&_zero)
  1618  	}
  1619  	r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1620  	n = int(r0)
  1621  	if e1 != 0 {
  1622  		err = errnoErr(e1)
  1623  	}
  1624  	return
  1625  }
  1626  
  1627  var libc_read_trampoline_addr uintptr
  1628  
  1629  //go:cgo_import_dynamic libc_read read "libc.so"
  1630  
  1631  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1632  
  1633  func Readlink(path string, buf []byte) (n int, err error) {
  1634  	var _p0 *byte
  1635  	_p0, err = BytePtrFromString(path)
  1636  	if err != nil {
  1637  		return
  1638  	}
  1639  	var _p1 unsafe.Pointer
  1640  	if len(buf) > 0 {
  1641  		_p1 = unsafe.Pointer(&buf[0])
  1642  	} else {
  1643  		_p1 = unsafe.Pointer(&_zero)
  1644  	}
  1645  	r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
  1646  	n = int(r0)
  1647  	if e1 != 0 {
  1648  		err = errnoErr(e1)
  1649  	}
  1650  	return
  1651  }
  1652  
  1653  var libc_readlink_trampoline_addr uintptr
  1654  
  1655  //go:cgo_import_dynamic libc_readlink readlink "libc.so"
  1656  
  1657  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1658  
  1659  func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
  1660  	var _p0 *byte
  1661  	_p0, err = BytePtrFromString(path)
  1662  	if err != nil {
  1663  		return
  1664  	}
  1665  	var _p1 unsafe.Pointer
  1666  	if len(buf) > 0 {
  1667  		_p1 = unsafe.Pointer(&buf[0])
  1668  	} else {
  1669  		_p1 = unsafe.Pointer(&_zero)
  1670  	}
  1671  	r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
  1672  	n = int(r0)
  1673  	if e1 != 0 {
  1674  		err = errnoErr(e1)
  1675  	}
  1676  	return
  1677  }
  1678  
  1679  var libc_readlinkat_trampoline_addr uintptr
  1680  
  1681  //go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
  1682  
  1683  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1684  
  1685  func Rename(from string, to string) (err error) {
  1686  	var _p0 *byte
  1687  	_p0, err = BytePtrFromString(from)
  1688  	if err != nil {
  1689  		return
  1690  	}
  1691  	var _p1 *byte
  1692  	_p1, err = BytePtrFromString(to)
  1693  	if err != nil {
  1694  		return
  1695  	}
  1696  	_, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1697  	if e1 != 0 {
  1698  		err = errnoErr(e1)
  1699  	}
  1700  	return
  1701  }
  1702  
  1703  var libc_rename_trampoline_addr uintptr
  1704  
  1705  //go:cgo_import_dynamic libc_rename rename "libc.so"
  1706  
  1707  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1708  
  1709  func Renameat(fromfd int, from string, tofd int, to string) (err error) {
  1710  	var _p0 *byte
  1711  	_p0, err = BytePtrFromString(from)
  1712  	if err != nil {
  1713  		return
  1714  	}
  1715  	var _p1 *byte
  1716  	_p1, err = BytePtrFromString(to)
  1717  	if err != nil {
  1718  		return
  1719  	}
  1720  	_, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1721  	if e1 != 0 {
  1722  		err = errnoErr(e1)
  1723  	}
  1724  	return
  1725  }
  1726  
  1727  var libc_renameat_trampoline_addr uintptr
  1728  
  1729  //go:cgo_import_dynamic libc_renameat renameat "libc.so"
  1730  
  1731  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1732  
  1733  func Revoke(path string) (err error) {
  1734  	var _p0 *byte
  1735  	_p0, err = BytePtrFromString(path)
  1736  	if err != nil {
  1737  		return
  1738  	}
  1739  	_, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
  1740  	if e1 != 0 {
  1741  		err = errnoErr(e1)
  1742  	}
  1743  	return
  1744  }
  1745  
  1746  var libc_revoke_trampoline_addr uintptr
  1747  
  1748  //go:cgo_import_dynamic libc_revoke revoke "libc.so"
  1749  
  1750  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1751  
  1752  func Rmdir(path string) (err error) {
  1753  	var _p0 *byte
  1754  	_p0, err = BytePtrFromString(path)
  1755  	if err != nil {
  1756  		return
  1757  	}
  1758  	_, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
  1759  	if e1 != 0 {
  1760  		err = errnoErr(e1)
  1761  	}
  1762  	return
  1763  }
  1764  
  1765  var libc_rmdir_trampoline_addr uintptr
  1766  
  1767  //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
  1768  
  1769  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1770  
  1771  func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
  1772  	r0, r1, e1 := syscall_syscall6(libc_lseek_trampoline_addr, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
  1773  	newoffset = int64(int64(r1)<<32 | int64(r0))
  1774  	if e1 != 0 {
  1775  		err = errnoErr(e1)
  1776  	}
  1777  	return
  1778  }
  1779  
  1780  var libc_lseek_trampoline_addr uintptr
  1781  
  1782  //go:cgo_import_dynamic libc_lseek lseek "libc.so"
  1783  
  1784  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1785  
  1786  func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  1787  	r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1788  	n = int(r0)
  1789  	if e1 != 0 {
  1790  		err = errnoErr(e1)
  1791  	}
  1792  	return
  1793  }
  1794  
  1795  var libc_select_trampoline_addr uintptr
  1796  
  1797  //go:cgo_import_dynamic libc_select select "libc.so"
  1798  
  1799  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1800  
  1801  func Setegid(egid int) (err error) {
  1802  	_, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0)
  1803  	if e1 != 0 {
  1804  		err = errnoErr(e1)
  1805  	}
  1806  	return
  1807  }
  1808  
  1809  var libc_setegid_trampoline_addr uintptr
  1810  
  1811  //go:cgo_import_dynamic libc_setegid setegid "libc.so"
  1812  
  1813  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1814  
  1815  func Seteuid(euid int) (err error) {
  1816  	_, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0)
  1817  	if e1 != 0 {
  1818  		err = errnoErr(e1)
  1819  	}
  1820  	return
  1821  }
  1822  
  1823  var libc_seteuid_trampoline_addr uintptr
  1824  
  1825  //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
  1826  
  1827  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1828  
  1829  func Setgid(gid int) (err error) {
  1830  	_, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0)
  1831  	if e1 != 0 {
  1832  		err = errnoErr(e1)
  1833  	}
  1834  	return
  1835  }
  1836  
  1837  var libc_setgid_trampoline_addr uintptr
  1838  
  1839  //go:cgo_import_dynamic libc_setgid setgid "libc.so"
  1840  
  1841  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1842  
  1843  func Setlogin(name string) (err error) {
  1844  	var _p0 *byte
  1845  	_p0, err = BytePtrFromString(name)
  1846  	if err != nil {
  1847  		return
  1848  	}
  1849  	_, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
  1850  	if e1 != 0 {
  1851  		err = errnoErr(e1)
  1852  	}
  1853  	return
  1854  }
  1855  
  1856  var libc_setlogin_trampoline_addr uintptr
  1857  
  1858  //go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
  1859  
  1860  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1861  
  1862  func Setpgid(pid int, pgid int) (err error) {
  1863  	_, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0)
  1864  	if e1 != 0 {
  1865  		err = errnoErr(e1)
  1866  	}
  1867  	return
  1868  }
  1869  
  1870  var libc_setpgid_trampoline_addr uintptr
  1871  
  1872  //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
  1873  
  1874  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1875  
  1876  func Setpriority(which int, who int, prio int) (err error) {
  1877  	_, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio))
  1878  	if e1 != 0 {
  1879  		err = errnoErr(e1)
  1880  	}
  1881  	return
  1882  }
  1883  
  1884  var libc_setpriority_trampoline_addr uintptr
  1885  
  1886  //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
  1887  
  1888  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1889  
  1890  func Setregid(rgid int, egid int) (err error) {
  1891  	_, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0)
  1892  	if e1 != 0 {
  1893  		err = errnoErr(e1)
  1894  	}
  1895  	return
  1896  }
  1897  
  1898  var libc_setregid_trampoline_addr uintptr
  1899  
  1900  //go:cgo_import_dynamic libc_setregid setregid "libc.so"
  1901  
  1902  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1903  
  1904  func Setreuid(ruid int, euid int) (err error) {
  1905  	_, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0)
  1906  	if e1 != 0 {
  1907  		err = errnoErr(e1)
  1908  	}
  1909  	return
  1910  }
  1911  
  1912  var libc_setreuid_trampoline_addr uintptr
  1913  
  1914  //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
  1915  
  1916  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1917  
  1918  func Setresgid(rgid int, egid int, sgid int) (err error) {
  1919  	_, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid))
  1920  	if e1 != 0 {
  1921  		err = errnoErr(e1)
  1922  	}
  1923  	return
  1924  }
  1925  
  1926  var libc_setresgid_trampoline_addr uintptr
  1927  
  1928  //go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
  1929  
  1930  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1931  
  1932  func Setresuid(ruid int, euid int, suid int) (err error) {
  1933  	_, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid))
  1934  	if e1 != 0 {
  1935  		err = errnoErr(e1)
  1936  	}
  1937  	return
  1938  }
  1939  
  1940  var libc_setresuid_trampoline_addr uintptr
  1941  
  1942  //go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
  1943  
  1944  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1945  
  1946  func Setrtable(rtable int) (err error) {
  1947  	_, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0)
  1948  	if e1 != 0 {
  1949  		err = errnoErr(e1)
  1950  	}
  1951  	return
  1952  }
  1953  
  1954  var libc_setrtable_trampoline_addr uintptr
  1955  
  1956  //go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
  1957  
  1958  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1959  
  1960  func Setsid() (pid int, err error) {
  1961  	r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0)
  1962  	pid = int(r0)
  1963  	if e1 != 0 {
  1964  		err = errnoErr(e1)
  1965  	}
  1966  	return
  1967  }
  1968  
  1969  var libc_setsid_trampoline_addr uintptr
  1970  
  1971  //go:cgo_import_dynamic libc_setsid setsid "libc.so"
  1972  
  1973  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1974  
  1975  func Settimeofday(tp *Timeval) (err error) {
  1976  	_, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0)
  1977  	if e1 != 0 {
  1978  		err = errnoErr(e1)
  1979  	}
  1980  	return
  1981  }
  1982  
  1983  var libc_settimeofday_trampoline_addr uintptr
  1984  
  1985  //go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
  1986  
  1987  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1988  
  1989  func Setuid(uid int) (err error) {
  1990  	_, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0)
  1991  	if e1 != 0 {
  1992  		err = errnoErr(e1)
  1993  	}
  1994  	return
  1995  }
  1996  
  1997  var libc_setuid_trampoline_addr uintptr
  1998  
  1999  //go:cgo_import_dynamic libc_setuid setuid "libc.so"
  2000  
  2001  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2002  
  2003  func Stat(path string, stat *Stat_t) (err error) {
  2004  	var _p0 *byte
  2005  	_p0, err = BytePtrFromString(path)
  2006  	if err != nil {
  2007  		return
  2008  	}
  2009  	_, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  2010  	if e1 != 0 {
  2011  		err = errnoErr(e1)
  2012  	}
  2013  	return
  2014  }
  2015  
  2016  var libc_stat_trampoline_addr uintptr
  2017  
  2018  //go:cgo_import_dynamic libc_stat stat "libc.so"
  2019  
  2020  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2021  
  2022  func Statfs(path string, stat *Statfs_t) (err error) {
  2023  	var _p0 *byte
  2024  	_p0, err = BytePtrFromString(path)
  2025  	if err != nil {
  2026  		return
  2027  	}
  2028  	_, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  2029  	if e1 != 0 {
  2030  		err = errnoErr(e1)
  2031  	}
  2032  	return
  2033  }
  2034  
  2035  var libc_statfs_trampoline_addr uintptr
  2036  
  2037  //go:cgo_import_dynamic libc_statfs statfs "libc.so"
  2038  
  2039  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2040  
  2041  func Symlink(path string, link string) (err error) {
  2042  	var _p0 *byte
  2043  	_p0, err = BytePtrFromString(path)
  2044  	if err != nil {
  2045  		return
  2046  	}
  2047  	var _p1 *byte
  2048  	_p1, err = BytePtrFromString(link)
  2049  	if err != nil {
  2050  		return
  2051  	}
  2052  	_, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  2053  	if e1 != 0 {
  2054  		err = errnoErr(e1)
  2055  	}
  2056  	return
  2057  }
  2058  
  2059  var libc_symlink_trampoline_addr uintptr
  2060  
  2061  //go:cgo_import_dynamic libc_symlink symlink "libc.so"
  2062  
  2063  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2064  
  2065  func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
  2066  	var _p0 *byte
  2067  	_p0, err = BytePtrFromString(oldpath)
  2068  	if err != nil {
  2069  		return
  2070  	}
  2071  	var _p1 *byte
  2072  	_p1, err = BytePtrFromString(newpath)
  2073  	if err != nil {
  2074  		return
  2075  	}
  2076  	_, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
  2077  	if e1 != 0 {
  2078  		err = errnoErr(e1)
  2079  	}
  2080  	return
  2081  }
  2082  
  2083  var libc_symlinkat_trampoline_addr uintptr
  2084  
  2085  //go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
  2086  
  2087  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2088  
  2089  func Sync() (err error) {
  2090  	_, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0)
  2091  	if e1 != 0 {
  2092  		err = errnoErr(e1)
  2093  	}
  2094  	return
  2095  }
  2096  
  2097  var libc_sync_trampoline_addr uintptr
  2098  
  2099  //go:cgo_import_dynamic libc_sync sync "libc.so"
  2100  
  2101  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2102  
  2103  func Truncate(path string, length int64) (err error) {
  2104  	var _p0 *byte
  2105  	_p0, err = BytePtrFromString(path)
  2106  	if err != nil {
  2107  		return
  2108  	}
  2109  	_, _, e1 := syscall_syscall6(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
  2110  	if e1 != 0 {
  2111  		err = errnoErr(e1)
  2112  	}
  2113  	return
  2114  }
  2115  
  2116  var libc_truncate_trampoline_addr uintptr
  2117  
  2118  //go:cgo_import_dynamic libc_truncate truncate "libc.so"
  2119  
  2120  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2121  
  2122  func Umask(newmask int) (oldmask int) {
  2123  	r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0)
  2124  	oldmask = int(r0)
  2125  	return
  2126  }
  2127  
  2128  var libc_umask_trampoline_addr uintptr
  2129  
  2130  //go:cgo_import_dynamic libc_umask umask "libc.so"
  2131  
  2132  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2133  
  2134  func Unlink(path string) (err error) {
  2135  	var _p0 *byte
  2136  	_p0, err = BytePtrFromString(path)
  2137  	if err != nil {
  2138  		return
  2139  	}
  2140  	_, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
  2141  	if e1 != 0 {
  2142  		err = errnoErr(e1)
  2143  	}
  2144  	return
  2145  }
  2146  
  2147  var libc_unlink_trampoline_addr uintptr
  2148  
  2149  //go:cgo_import_dynamic libc_unlink unlink "libc.so"
  2150  
  2151  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2152  
  2153  func Unlinkat(dirfd int, path string, flags int) (err error) {
  2154  	var _p0 *byte
  2155  	_p0, err = BytePtrFromString(path)
  2156  	if err != nil {
  2157  		return
  2158  	}
  2159  	_, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
  2160  	if e1 != 0 {
  2161  		err = errnoErr(e1)
  2162  	}
  2163  	return
  2164  }
  2165  
  2166  var libc_unlinkat_trampoline_addr uintptr
  2167  
  2168  //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
  2169  
  2170  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2171  
  2172  func Unmount(path string, flags int) (err error) {
  2173  	var _p0 *byte
  2174  	_p0, err = BytePtrFromString(path)
  2175  	if err != nil {
  2176  		return
  2177  	}
  2178  	_, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  2179  	if e1 != 0 {
  2180  		err = errnoErr(e1)
  2181  	}
  2182  	return
  2183  }
  2184  
  2185  var libc_unmount_trampoline_addr uintptr
  2186  
  2187  //go:cgo_import_dynamic libc_unmount unmount "libc.so"
  2188  
  2189  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2190  
  2191  func write(fd int, p []byte) (n int, err error) {
  2192  	var _p0 unsafe.Pointer
  2193  	if len(p) > 0 {
  2194  		_p0 = unsafe.Pointer(&p[0])
  2195  	} else {
  2196  		_p0 = unsafe.Pointer(&_zero)
  2197  	}
  2198  	r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  2199  	n = int(r0)
  2200  	if e1 != 0 {
  2201  		err = errnoErr(e1)
  2202  	}
  2203  	return
  2204  }
  2205  
  2206  var libc_write_trampoline_addr uintptr
  2207  
  2208  //go:cgo_import_dynamic libc_write write "libc.so"
  2209  
  2210  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2211  
  2212  func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  2213  	r0, _, e1 := syscall_syscall9(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
  2214  	ret = uintptr(r0)
  2215  	if e1 != 0 {
  2216  		err = errnoErr(e1)
  2217  	}
  2218  	return
  2219  }
  2220  
  2221  var libc_mmap_trampoline_addr uintptr
  2222  
  2223  //go:cgo_import_dynamic libc_mmap mmap "libc.so"
  2224  
  2225  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2226  
  2227  func munmap(addr uintptr, length uintptr) (err error) {
  2228  	_, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0)
  2229  	if e1 != 0 {
  2230  		err = errnoErr(e1)
  2231  	}
  2232  	return
  2233  }
  2234  
  2235  var libc_munmap_trampoline_addr uintptr
  2236  
  2237  //go:cgo_import_dynamic libc_munmap munmap "libc.so"
  2238  
  2239  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2240  
  2241  func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) {
  2242  	r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags))
  2243  	n = int(r0)
  2244  	if e1 != 0 {
  2245  		err = errnoErr(e1)
  2246  	}
  2247  	return
  2248  }
  2249  
  2250  var libc_getfsstat_trampoline_addr uintptr
  2251  
  2252  //go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so"
  2253  
  2254  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2255  
  2256  func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
  2257  	var _p0 *byte
  2258  	_p0, err = BytePtrFromString(path)
  2259  	if err != nil {
  2260  		return
  2261  	}
  2262  	_, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
  2263  	if e1 != 0 {
  2264  		err = errnoErr(e1)
  2265  	}
  2266  	return
  2267  }
  2268  
  2269  var libc_utimensat_trampoline_addr uintptr
  2270  
  2271  //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
  2272  
  2273  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2274  
  2275  func pledge(promises *byte, execpromises *byte) (err error) {
  2276  	_, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0)
  2277  	if e1 != 0 {
  2278  		err = errnoErr(e1)
  2279  	}
  2280  	return
  2281  }
  2282  
  2283  var libc_pledge_trampoline_addr uintptr
  2284  
  2285  //go:cgo_import_dynamic libc_pledge pledge "libc.so"
  2286  
  2287  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2288  
  2289  func unveil(path *byte, flags *byte) (err error) {
  2290  	_, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0)
  2291  	if e1 != 0 {
  2292  		err = errnoErr(e1)
  2293  	}
  2294  	return
  2295  }
  2296  
  2297  var libc_unveil_trampoline_addr uintptr
  2298  
  2299  //go:cgo_import_dynamic libc_unveil unveil "libc.so"
  2300  

View as plain text