github.com/dorkamotorka/go/src@v0.0.0-20230614113921-187095f0e316/syscall/zsyscall_openbsd_arm64.go (about)

     1  // mksyscall.pl -openbsd -libc -tags openbsd,arm64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_libc.go syscall_openbsd_arm64.go
     2  // Code generated by the command above; DO NOT EDIT.
     3  
     4  //go:build openbsd && arm64
     5  
     6  package syscall
     7  
     8  import "unsafe"
     9  import "internal/abi"
    10  
    11  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    12  
    13  func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
    14  	r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
    15  	n = int(r0)
    16  	if e1 != 0 {
    17  		err = errnoErr(e1)
    18  	}
    19  	return
    20  }
    21  
    22  func libc_getgroups_trampoline()
    23  
    24  //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
    25  
    26  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    27  
    28  func setgroups(ngid int, gid *_Gid_t) (err error) {
    29  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
    30  	if e1 != 0 {
    31  		err = errnoErr(e1)
    32  	}
    33  	return
    34  }
    35  
    36  func libc_setgroups_trampoline()
    37  
    38  //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    39  
    40  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    41  
    42  func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    43  	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    44  	wpid = int(r0)
    45  	if e1 != 0 {
    46  		err = errnoErr(e1)
    47  	}
    48  	return
    49  }
    50  
    51  func libc_wait4_trampoline()
    52  
    53  //go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
    54  
    55  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    56  
    57  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
    58  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_accept_trampoline), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
    59  	fd = int(r0)
    60  	if e1 != 0 {
    61  		err = errnoErr(e1)
    62  	}
    63  	return
    64  }
    65  
    66  func libc_accept_trampoline()
    67  
    68  //go:cgo_import_dynamic libc_accept accept "libc.so"
    69  
    70  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    71  
    72  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    73  	_, _, e1 := syscall(abi.FuncPCABI0(libc_bind_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
    74  	if e1 != 0 {
    75  		err = errnoErr(e1)
    76  	}
    77  	return
    78  }
    79  
    80  func libc_bind_trampoline()
    81  
    82  //go:cgo_import_dynamic libc_bind bind "libc.so"
    83  
    84  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    85  
    86  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    87  	_, _, e1 := syscall(abi.FuncPCABI0(libc_connect_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
    88  	if e1 != 0 {
    89  		err = errnoErr(e1)
    90  	}
    91  	return
    92  }
    93  
    94  func libc_connect_trampoline()
    95  
    96  //go:cgo_import_dynamic libc_connect connect "libc.so"
    97  
    98  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    99  
   100  func socket(domain int, typ int, proto int) (fd int, err error) {
   101  	r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_socket_trampoline), uintptr(domain), uintptr(typ), uintptr(proto))
   102  	fd = int(r0)
   103  	if e1 != 0 {
   104  		err = errnoErr(e1)
   105  	}
   106  	return
   107  }
   108  
   109  func libc_socket_trampoline()
   110  
   111  //go:cgo_import_dynamic libc_socket socket "libc.so"
   112  
   113  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   114  
   115  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
   116  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_getsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
   117  	if e1 != 0 {
   118  		err = errnoErr(e1)
   119  	}
   120  	return
   121  }
   122  
   123  func libc_getsockopt_trampoline()
   124  
   125  //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
   126  
   127  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   128  
   129  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
   130  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_setsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
   131  	if e1 != 0 {
   132  		err = errnoErr(e1)
   133  	}
   134  	return
   135  }
   136  
   137  func libc_setsockopt_trampoline()
   138  
   139  //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
   140  
   141  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   142  
   143  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   144  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getpeername_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   145  	if e1 != 0 {
   146  		err = errnoErr(e1)
   147  	}
   148  	return
   149  }
   150  
   151  func libc_getpeername_trampoline()
   152  
   153  //go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
   154  
   155  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   156  
   157  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   158  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getsockname_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   159  	if e1 != 0 {
   160  		err = errnoErr(e1)
   161  	}
   162  	return
   163  }
   164  
   165  func libc_getsockname_trampoline()
   166  
   167  //go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
   168  
   169  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   170  
   171  func Shutdown(s int, how int) (err error) {
   172  	_, _, e1 := syscall(abi.FuncPCABI0(libc_shutdown_trampoline), uintptr(s), uintptr(how), 0)
   173  	if e1 != 0 {
   174  		err = errnoErr(e1)
   175  	}
   176  	return
   177  }
   178  
   179  func libc_shutdown_trampoline()
   180  
   181  //go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
   182  
   183  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   184  
   185  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
   186  	_, _, e1 := rawSyscall6(abi.FuncPCABI0(libc_socketpair_trampoline), uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
   187  	if e1 != 0 {
   188  		err = errnoErr(e1)
   189  	}
   190  	return
   191  }
   192  
   193  func libc_socketpair_trampoline()
   194  
   195  //go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
   196  
   197  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   198  
   199  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
   200  	var _p0 unsafe.Pointer
   201  	if len(p) > 0 {
   202  		_p0 = unsafe.Pointer(&p[0])
   203  	} else {
   204  		_p0 = unsafe.Pointer(&_zero)
   205  	}
   206  	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_recvfrom_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
   207  	n = int(r0)
   208  	if e1 != 0 {
   209  		err = errnoErr(e1)
   210  	}
   211  	return
   212  }
   213  
   214  func libc_recvfrom_trampoline()
   215  
   216  //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
   217  
   218  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   219  
   220  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
   221  	var _p0 unsafe.Pointer
   222  	if len(buf) > 0 {
   223  		_p0 = unsafe.Pointer(&buf[0])
   224  	} else {
   225  		_p0 = unsafe.Pointer(&_zero)
   226  	}
   227  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_sendto_trampoline), uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
   228  	if e1 != 0 {
   229  		err = errnoErr(e1)
   230  	}
   231  	return
   232  }
   233  
   234  func libc_sendto_trampoline()
   235  
   236  //go:cgo_import_dynamic libc_sendto sendto "libc.so"
   237  
   238  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   239  
   240  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   241  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_recvmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   242  	n = int(r0)
   243  	if e1 != 0 {
   244  		err = errnoErr(e1)
   245  	}
   246  	return
   247  }
   248  
   249  func libc_recvmsg_trampoline()
   250  
   251  //go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
   252  
   253  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   254  
   255  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   256  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_sendmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   257  	n = int(r0)
   258  	if e1 != 0 {
   259  		err = errnoErr(e1)
   260  	}
   261  	return
   262  }
   263  
   264  func libc_sendmsg_trampoline()
   265  
   266  //go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
   267  
   268  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   269  
   270  func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
   271  	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_kevent_trampoline), uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
   272  	n = int(r0)
   273  	if e1 != 0 {
   274  		err = errnoErr(e1)
   275  	}
   276  	return
   277  }
   278  
   279  func libc_kevent_trampoline()
   280  
   281  //go:cgo_import_dynamic libc_kevent kevent "libc.so"
   282  
   283  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   284  
   285  func utimes(path string, timeval *[2]Timeval) (err error) {
   286  	var _p0 *byte
   287  	_p0, err = BytePtrFromString(path)
   288  	if err != nil {
   289  		return
   290  	}
   291  	_, _, e1 := syscall(abi.FuncPCABI0(libc_utimes_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
   292  	if e1 != 0 {
   293  		err = errnoErr(e1)
   294  	}
   295  	return
   296  }
   297  
   298  func libc_utimes_trampoline()
   299  
   300  //go:cgo_import_dynamic libc_utimes utimes "libc.so"
   301  
   302  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   303  
   304  func futimes(fd int, timeval *[2]Timeval) (err error) {
   305  	_, _, e1 := syscall(abi.FuncPCABI0(libc_futimes_trampoline), uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
   306  	if e1 != 0 {
   307  		err = errnoErr(e1)
   308  	}
   309  	return
   310  }
   311  
   312  func libc_futimes_trampoline()
   313  
   314  //go:cgo_import_dynamic libc_futimes futimes "libc.so"
   315  
   316  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   317  
   318  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   319  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
   320  	val = int(r0)
   321  	if e1 != 0 {
   322  		err = errnoErr(e1)
   323  	}
   324  	return
   325  }
   326  
   327  func libc_fcntl_trampoline()
   328  
   329  //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
   330  
   331  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   332  
   333  func pipe2(p *[2]_C_int, flags int) (err error) {
   334  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_pipe2_trampoline), uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
   335  	if e1 != 0 {
   336  		err = errnoErr(e1)
   337  	}
   338  	return
   339  }
   340  
   341  func libc_pipe2_trampoline()
   342  
   343  //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
   344  
   345  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   346  
   347  func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) {
   348  	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_accept4_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
   349  	nfd = int(r0)
   350  	if e1 != 0 {
   351  		err = errnoErr(e1)
   352  	}
   353  	return
   354  }
   355  
   356  func libc_accept4_trampoline()
   357  
   358  //go:cgo_import_dynamic libc_accept4 accept4 "libc.so"
   359  
   360  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   361  
   362  func getdents(fd int, buf []byte) (n int, err error) {
   363  	var _p0 unsafe.Pointer
   364  	if len(buf) > 0 {
   365  		_p0 = unsafe.Pointer(&buf[0])
   366  	} else {
   367  		_p0 = unsafe.Pointer(&_zero)
   368  	}
   369  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_getdents_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   370  	n = int(r0)
   371  	if e1 != 0 {
   372  		err = errnoErr(e1)
   373  	}
   374  	return
   375  }
   376  
   377  func libc_getdents_trampoline()
   378  
   379  //go:cgo_import_dynamic libc_getdents getdents "libc.so"
   380  
   381  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   382  
   383  func Access(path string, mode uint32) (err error) {
   384  	var _p0 *byte
   385  	_p0, err = BytePtrFromString(path)
   386  	if err != nil {
   387  		return
   388  	}
   389  	_, _, e1 := syscall(abi.FuncPCABI0(libc_access_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   390  	if e1 != 0 {
   391  		err = errnoErr(e1)
   392  	}
   393  	return
   394  }
   395  
   396  func libc_access_trampoline()
   397  
   398  //go:cgo_import_dynamic libc_access access "libc.so"
   399  
   400  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   401  
   402  func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
   403  	_, _, e1 := syscall(abi.FuncPCABI0(libc_adjtime_trampoline), uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
   404  	if e1 != 0 {
   405  		err = errnoErr(e1)
   406  	}
   407  	return
   408  }
   409  
   410  func libc_adjtime_trampoline()
   411  
   412  //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
   413  
   414  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   415  
   416  func Chdir(path string) (err error) {
   417  	var _p0 *byte
   418  	_p0, err = BytePtrFromString(path)
   419  	if err != nil {
   420  		return
   421  	}
   422  	_, _, e1 := syscall(abi.FuncPCABI0(libc_chdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
   423  	if e1 != 0 {
   424  		err = errnoErr(e1)
   425  	}
   426  	return
   427  }
   428  
   429  func libc_chdir_trampoline()
   430  
   431  //go:cgo_import_dynamic libc_chdir chdir "libc.so"
   432  
   433  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   434  
   435  func Chflags(path string, flags int) (err error) {
   436  	var _p0 *byte
   437  	_p0, err = BytePtrFromString(path)
   438  	if err != nil {
   439  		return
   440  	}
   441  	_, _, e1 := syscall(abi.FuncPCABI0(libc_chflags_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   442  	if e1 != 0 {
   443  		err = errnoErr(e1)
   444  	}
   445  	return
   446  }
   447  
   448  func libc_chflags_trampoline()
   449  
   450  //go:cgo_import_dynamic libc_chflags chflags "libc.so"
   451  
   452  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   453  
   454  func Chmod(path string, mode uint32) (err error) {
   455  	var _p0 *byte
   456  	_p0, err = BytePtrFromString(path)
   457  	if err != nil {
   458  		return
   459  	}
   460  	_, _, e1 := syscall(abi.FuncPCABI0(libc_chmod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   461  	if e1 != 0 {
   462  		err = errnoErr(e1)
   463  	}
   464  	return
   465  }
   466  
   467  func libc_chmod_trampoline()
   468  
   469  //go:cgo_import_dynamic libc_chmod chmod "libc.so"
   470  
   471  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   472  
   473  func Chown(path string, uid int, gid int) (err error) {
   474  	var _p0 *byte
   475  	_p0, err = BytePtrFromString(path)
   476  	if err != nil {
   477  		return
   478  	}
   479  	_, _, e1 := syscall(abi.FuncPCABI0(libc_chown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
   480  	if e1 != 0 {
   481  		err = errnoErr(e1)
   482  	}
   483  	return
   484  }
   485  
   486  func libc_chown_trampoline()
   487  
   488  //go:cgo_import_dynamic libc_chown chown "libc.so"
   489  
   490  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   491  
   492  func Chroot(path string) (err error) {
   493  	var _p0 *byte
   494  	_p0, err = BytePtrFromString(path)
   495  	if err != nil {
   496  		return
   497  	}
   498  	_, _, e1 := syscall(abi.FuncPCABI0(libc_chroot_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
   499  	if e1 != 0 {
   500  		err = errnoErr(e1)
   501  	}
   502  	return
   503  }
   504  
   505  func libc_chroot_trampoline()
   506  
   507  //go:cgo_import_dynamic libc_chroot chroot "libc.so"
   508  
   509  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   510  
   511  func Close(fd int) (err error) {
   512  	_, _, e1 := syscall(abi.FuncPCABI0(libc_close_trampoline), uintptr(fd), 0, 0)
   513  	if e1 != 0 {
   514  		err = errnoErr(e1)
   515  	}
   516  	return
   517  }
   518  
   519  func libc_close_trampoline()
   520  
   521  //go:cgo_import_dynamic libc_close close "libc.so"
   522  
   523  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   524  
   525  func Dup(fd int) (nfd int, err error) {
   526  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_dup_trampoline), uintptr(fd), 0, 0)
   527  	nfd = int(r0)
   528  	if e1 != 0 {
   529  		err = errnoErr(e1)
   530  	}
   531  	return
   532  }
   533  
   534  func libc_dup_trampoline()
   535  
   536  //go:cgo_import_dynamic libc_dup dup "libc.so"
   537  
   538  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   539  
   540  func Dup2(from int, to int) (err error) {
   541  	_, _, e1 := syscall(abi.FuncPCABI0(libc_dup2_trampoline), uintptr(from), uintptr(to), 0)
   542  	if e1 != 0 {
   543  		err = errnoErr(e1)
   544  	}
   545  	return
   546  }
   547  
   548  func libc_dup2_trampoline()
   549  
   550  //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
   551  
   552  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   553  
   554  func dup3(from int, to int, flags int) (err error) {
   555  	_, _, e1 := syscall(abi.FuncPCABI0(libc_dup3_trampoline), uintptr(from), uintptr(to), uintptr(flags))
   556  	if e1 != 0 {
   557  		err = errnoErr(e1)
   558  	}
   559  	return
   560  }
   561  
   562  func libc_dup3_trampoline()
   563  
   564  //go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
   565  
   566  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   567  
   568  func Fchdir(fd int) (err error) {
   569  	_, _, e1 := syscall(abi.FuncPCABI0(libc_fchdir_trampoline), uintptr(fd), 0, 0)
   570  	if e1 != 0 {
   571  		err = errnoErr(e1)
   572  	}
   573  	return
   574  }
   575  
   576  func libc_fchdir_trampoline()
   577  
   578  //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
   579  
   580  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   581  
   582  func Fchflags(fd int, flags int) (err error) {
   583  	_, _, e1 := syscall(abi.FuncPCABI0(libc_fchflags_trampoline), uintptr(fd), uintptr(flags), 0)
   584  	if e1 != 0 {
   585  		err = errnoErr(e1)
   586  	}
   587  	return
   588  }
   589  
   590  func libc_fchflags_trampoline()
   591  
   592  //go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
   593  
   594  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   595  
   596  func Fchmod(fd int, mode uint32) (err error) {
   597  	_, _, e1 := syscall(abi.FuncPCABI0(libc_fchmod_trampoline), uintptr(fd), uintptr(mode), 0)
   598  	if e1 != 0 {
   599  		err = errnoErr(e1)
   600  	}
   601  	return
   602  }
   603  
   604  func libc_fchmod_trampoline()
   605  
   606  //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
   607  
   608  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   609  
   610  func Fchown(fd int, uid int, gid int) (err error) {
   611  	_, _, e1 := syscall(abi.FuncPCABI0(libc_fchown_trampoline), uintptr(fd), uintptr(uid), uintptr(gid))
   612  	if e1 != 0 {
   613  		err = errnoErr(e1)
   614  	}
   615  	return
   616  }
   617  
   618  func libc_fchown_trampoline()
   619  
   620  //go:cgo_import_dynamic libc_fchown fchown "libc.so"
   621  
   622  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   623  
   624  func Flock(fd int, how int) (err error) {
   625  	_, _, e1 := syscall(abi.FuncPCABI0(libc_flock_trampoline), uintptr(fd), uintptr(how), 0)
   626  	if e1 != 0 {
   627  		err = errnoErr(e1)
   628  	}
   629  	return
   630  }
   631  
   632  func libc_flock_trampoline()
   633  
   634  //go:cgo_import_dynamic libc_flock flock "libc.so"
   635  
   636  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   637  
   638  func Fpathconf(fd int, name int) (val int, err error) {
   639  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_fpathconf_trampoline), uintptr(fd), uintptr(name), 0)
   640  	val = int(r0)
   641  	if e1 != 0 {
   642  		err = errnoErr(e1)
   643  	}
   644  	return
   645  }
   646  
   647  func libc_fpathconf_trampoline()
   648  
   649  //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
   650  
   651  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   652  
   653  func Fstat(fd int, stat *Stat_t) (err error) {
   654  	_, _, e1 := syscall(abi.FuncPCABI0(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
   655  	if e1 != 0 {
   656  		err = errnoErr(e1)
   657  	}
   658  	return
   659  }
   660  
   661  func libc_fstat_trampoline()
   662  
   663  //go:cgo_import_dynamic libc_fstat fstat "libc.so"
   664  
   665  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   666  
   667  func Fstatfs(fd int, stat *Statfs_t) (err error) {
   668  	_, _, e1 := syscall(abi.FuncPCABI0(libc_fstatfs_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
   669  	if e1 != 0 {
   670  		err = errnoErr(e1)
   671  	}
   672  	return
   673  }
   674  
   675  func libc_fstatfs_trampoline()
   676  
   677  //go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
   678  
   679  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   680  
   681  func Fsync(fd int) (err error) {
   682  	_, _, e1 := syscall(abi.FuncPCABI0(libc_fsync_trampoline), uintptr(fd), 0, 0)
   683  	if e1 != 0 {
   684  		err = errnoErr(e1)
   685  	}
   686  	return
   687  }
   688  
   689  func libc_fsync_trampoline()
   690  
   691  //go:cgo_import_dynamic libc_fsync fsync "libc.so"
   692  
   693  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   694  
   695  func Ftruncate(fd int, length int64) (err error) {
   696  	_, _, e1 := syscall(abi.FuncPCABI0(libc_ftruncate_trampoline), uintptr(fd), uintptr(length), 0)
   697  	if e1 != 0 {
   698  		err = errnoErr(e1)
   699  	}
   700  	return
   701  }
   702  
   703  func libc_ftruncate_trampoline()
   704  
   705  //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
   706  
   707  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   708  
   709  func Getegid() (egid int) {
   710  	r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getegid_trampoline), 0, 0, 0)
   711  	egid = int(r0)
   712  	return
   713  }
   714  
   715  func libc_getegid_trampoline()
   716  
   717  //go:cgo_import_dynamic libc_getegid getegid "libc.so"
   718  
   719  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   720  
   721  func Geteuid() (uid int) {
   722  	r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_geteuid_trampoline), 0, 0, 0)
   723  	uid = int(r0)
   724  	return
   725  }
   726  
   727  func libc_geteuid_trampoline()
   728  
   729  //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
   730  
   731  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   732  
   733  func Getgid() (gid int) {
   734  	r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getgid_trampoline), 0, 0, 0)
   735  	gid = int(r0)
   736  	return
   737  }
   738  
   739  func libc_getgid_trampoline()
   740  
   741  //go:cgo_import_dynamic libc_getgid getgid "libc.so"
   742  
   743  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   744  
   745  func Getpgid(pid int) (pgid int, err error) {
   746  	r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getpgid_trampoline), uintptr(pid), 0, 0)
   747  	pgid = int(r0)
   748  	if e1 != 0 {
   749  		err = errnoErr(e1)
   750  	}
   751  	return
   752  }
   753  
   754  func libc_getpgid_trampoline()
   755  
   756  //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
   757  
   758  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   759  
   760  func Getpgrp() (pgrp int) {
   761  	r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getpgrp_trampoline), 0, 0, 0)
   762  	pgrp = int(r0)
   763  	return
   764  }
   765  
   766  func libc_getpgrp_trampoline()
   767  
   768  //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
   769  
   770  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   771  
   772  func Getpid() (pid int) {
   773  	r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getpid_trampoline), 0, 0, 0)
   774  	pid = int(r0)
   775  	return
   776  }
   777  
   778  func libc_getpid_trampoline()
   779  
   780  //go:cgo_import_dynamic libc_getpid getpid "libc.so"
   781  
   782  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   783  
   784  func Getppid() (ppid int) {
   785  	r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getppid_trampoline), 0, 0, 0)
   786  	ppid = int(r0)
   787  	return
   788  }
   789  
   790  func libc_getppid_trampoline()
   791  
   792  //go:cgo_import_dynamic libc_getppid getppid "libc.so"
   793  
   794  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   795  
   796  func Getpriority(which int, who int) (prio int, err error) {
   797  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_getpriority_trampoline), uintptr(which), uintptr(who), 0)
   798  	prio = int(r0)
   799  	if e1 != 0 {
   800  		err = errnoErr(e1)
   801  	}
   802  	return
   803  }
   804  
   805  func libc_getpriority_trampoline()
   806  
   807  //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
   808  
   809  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   810  
   811  func Getrlimit(which int, lim *Rlimit) (err error) {
   812  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
   813  	if e1 != 0 {
   814  		err = errnoErr(e1)
   815  	}
   816  	return
   817  }
   818  
   819  func libc_getrlimit_trampoline()
   820  
   821  //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
   822  
   823  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   824  
   825  func Getrusage(who int, rusage *Rusage) (err error) {
   826  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getrusage_trampoline), uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
   827  	if e1 != 0 {
   828  		err = errnoErr(e1)
   829  	}
   830  	return
   831  }
   832  
   833  func libc_getrusage_trampoline()
   834  
   835  //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
   836  
   837  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   838  
   839  func Getsid(pid int) (sid int, err error) {
   840  	r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getsid_trampoline), uintptr(pid), 0, 0)
   841  	sid = int(r0)
   842  	if e1 != 0 {
   843  		err = errnoErr(e1)
   844  	}
   845  	return
   846  }
   847  
   848  func libc_getsid_trampoline()
   849  
   850  //go:cgo_import_dynamic libc_getsid getsid "libc.so"
   851  
   852  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   853  
   854  func Gettimeofday(tv *Timeval) (err error) {
   855  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tv)), 0, 0)
   856  	if e1 != 0 {
   857  		err = errnoErr(e1)
   858  	}
   859  	return
   860  }
   861  
   862  func libc_gettimeofday_trampoline()
   863  
   864  //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
   865  
   866  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   867  
   868  func Getuid() (uid int) {
   869  	r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getuid_trampoline), 0, 0, 0)
   870  	uid = int(r0)
   871  	return
   872  }
   873  
   874  func libc_getuid_trampoline()
   875  
   876  //go:cgo_import_dynamic libc_getuid getuid "libc.so"
   877  
   878  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   879  
   880  func Issetugid() (tainted bool) {
   881  	r0, _, _ := syscall(abi.FuncPCABI0(libc_issetugid_trampoline), 0, 0, 0)
   882  	tainted = bool(r0 != 0)
   883  	return
   884  }
   885  
   886  func libc_issetugid_trampoline()
   887  
   888  //go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
   889  
   890  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   891  
   892  func Kill(pid int, signum Signal) (err error) {
   893  	_, _, e1 := syscall(abi.FuncPCABI0(libc_kill_trampoline), uintptr(pid), uintptr(signum), 0)
   894  	if e1 != 0 {
   895  		err = errnoErr(e1)
   896  	}
   897  	return
   898  }
   899  
   900  func libc_kill_trampoline()
   901  
   902  //go:cgo_import_dynamic libc_kill kill "libc.so"
   903  
   904  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   905  
   906  func Kqueue() (fd int, err error) {
   907  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_kqueue_trampoline), 0, 0, 0)
   908  	fd = int(r0)
   909  	if e1 != 0 {
   910  		err = errnoErr(e1)
   911  	}
   912  	return
   913  }
   914  
   915  func libc_kqueue_trampoline()
   916  
   917  //go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
   918  
   919  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   920  
   921  func Lchown(path string, uid int, gid int) (err error) {
   922  	var _p0 *byte
   923  	_p0, err = BytePtrFromString(path)
   924  	if err != nil {
   925  		return
   926  	}
   927  	_, _, e1 := syscall(abi.FuncPCABI0(libc_lchown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
   928  	if e1 != 0 {
   929  		err = errnoErr(e1)
   930  	}
   931  	return
   932  }
   933  
   934  func libc_lchown_trampoline()
   935  
   936  //go:cgo_import_dynamic libc_lchown lchown "libc.so"
   937  
   938  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   939  
   940  func Link(path string, link string) (err error) {
   941  	var _p0 *byte
   942  	_p0, err = BytePtrFromString(path)
   943  	if err != nil {
   944  		return
   945  	}
   946  	var _p1 *byte
   947  	_p1, err = BytePtrFromString(link)
   948  	if err != nil {
   949  		return
   950  	}
   951  	_, _, e1 := syscall(abi.FuncPCABI0(libc_link_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   952  	if e1 != 0 {
   953  		err = errnoErr(e1)
   954  	}
   955  	return
   956  }
   957  
   958  func libc_link_trampoline()
   959  
   960  //go:cgo_import_dynamic libc_link link "libc.so"
   961  
   962  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   963  
   964  func Listen(s int, backlog int) (err error) {
   965  	_, _, e1 := syscall(abi.FuncPCABI0(libc_listen_trampoline), uintptr(s), uintptr(backlog), 0)
   966  	if e1 != 0 {
   967  		err = errnoErr(e1)
   968  	}
   969  	return
   970  }
   971  
   972  func libc_listen_trampoline()
   973  
   974  //go:cgo_import_dynamic libc_listen listen "libc.so"
   975  
   976  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   977  
   978  func Lstat(path string, stat *Stat_t) (err error) {
   979  	var _p0 *byte
   980  	_p0, err = BytePtrFromString(path)
   981  	if err != nil {
   982  		return
   983  	}
   984  	_, _, e1 := syscall(abi.FuncPCABI0(libc_lstat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
   985  	if e1 != 0 {
   986  		err = errnoErr(e1)
   987  	}
   988  	return
   989  }
   990  
   991  func libc_lstat_trampoline()
   992  
   993  //go:cgo_import_dynamic libc_lstat lstat "libc.so"
   994  
   995  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   996  
   997  func Mkdir(path string, mode uint32) (err error) {
   998  	var _p0 *byte
   999  	_p0, err = BytePtrFromString(path)
  1000  	if err != nil {
  1001  		return
  1002  	}
  1003  	_, _, e1 := syscall(abi.FuncPCABI0(libc_mkdir_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  1004  	if e1 != 0 {
  1005  		err = errnoErr(e1)
  1006  	}
  1007  	return
  1008  }
  1009  
  1010  func libc_mkdir_trampoline()
  1011  
  1012  //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
  1013  
  1014  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1015  
  1016  func Mkfifo(path string, mode uint32) (err error) {
  1017  	var _p0 *byte
  1018  	_p0, err = BytePtrFromString(path)
  1019  	if err != nil {
  1020  		return
  1021  	}
  1022  	_, _, e1 := syscall(abi.FuncPCABI0(libc_mkfifo_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  1023  	if e1 != 0 {
  1024  		err = errnoErr(e1)
  1025  	}
  1026  	return
  1027  }
  1028  
  1029  func libc_mkfifo_trampoline()
  1030  
  1031  //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
  1032  
  1033  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1034  
  1035  func Mknod(path string, mode uint32, dev int) (err error) {
  1036  	var _p0 *byte
  1037  	_p0, err = BytePtrFromString(path)
  1038  	if err != nil {
  1039  		return
  1040  	}
  1041  	_, _, e1 := syscall(abi.FuncPCABI0(libc_mknod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
  1042  	if e1 != 0 {
  1043  		err = errnoErr(e1)
  1044  	}
  1045  	return
  1046  }
  1047  
  1048  func libc_mknod_trampoline()
  1049  
  1050  //go:cgo_import_dynamic libc_mknod mknod "libc.so"
  1051  
  1052  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1053  
  1054  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1055  	_, _, e1 := syscall(abi.FuncPCABI0(libc_nanosleep_trampoline), uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
  1056  	if e1 != 0 {
  1057  		err = errnoErr(e1)
  1058  	}
  1059  	return
  1060  }
  1061  
  1062  func libc_nanosleep_trampoline()
  1063  
  1064  //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
  1065  
  1066  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1067  
  1068  func Open(path string, mode int, perm uint32) (fd int, err error) {
  1069  	var _p0 *byte
  1070  	_p0, err = BytePtrFromString(path)
  1071  	if err != nil {
  1072  		return
  1073  	}
  1074  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_open_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
  1075  	fd = int(r0)
  1076  	if e1 != 0 {
  1077  		err = errnoErr(e1)
  1078  	}
  1079  	return
  1080  }
  1081  
  1082  func libc_open_trampoline()
  1083  
  1084  //go:cgo_import_dynamic libc_open open "libc.so"
  1085  
  1086  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1087  
  1088  func Pathconf(path string, name int) (val int, err error) {
  1089  	var _p0 *byte
  1090  	_p0, err = BytePtrFromString(path)
  1091  	if err != nil {
  1092  		return
  1093  	}
  1094  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_pathconf_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
  1095  	val = int(r0)
  1096  	if e1 != 0 {
  1097  		err = errnoErr(e1)
  1098  	}
  1099  	return
  1100  }
  1101  
  1102  func libc_pathconf_trampoline()
  1103  
  1104  //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
  1105  
  1106  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1107  
  1108  func pread(fd int, p []byte, offset int64) (n int, err error) {
  1109  	var _p0 unsafe.Pointer
  1110  	if len(p) > 0 {
  1111  		_p0 = unsafe.Pointer(&p[0])
  1112  	} else {
  1113  		_p0 = unsafe.Pointer(&_zero)
  1114  	}
  1115  	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_pread_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1116  	n = int(r0)
  1117  	if e1 != 0 {
  1118  		err = errnoErr(e1)
  1119  	}
  1120  	return
  1121  }
  1122  
  1123  func libc_pread_trampoline()
  1124  
  1125  //go:cgo_import_dynamic libc_pread pread "libc.so"
  1126  
  1127  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1128  
  1129  func pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1130  	var _p0 unsafe.Pointer
  1131  	if len(p) > 0 {
  1132  		_p0 = unsafe.Pointer(&p[0])
  1133  	} else {
  1134  		_p0 = unsafe.Pointer(&_zero)
  1135  	}
  1136  	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_pwrite_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1137  	n = int(r0)
  1138  	if e1 != 0 {
  1139  		err = errnoErr(e1)
  1140  	}
  1141  	return
  1142  }
  1143  
  1144  func libc_pwrite_trampoline()
  1145  
  1146  //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
  1147  
  1148  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1149  
  1150  func read(fd int, p []byte) (n int, err error) {
  1151  	var _p0 unsafe.Pointer
  1152  	if len(p) > 0 {
  1153  		_p0 = unsafe.Pointer(&p[0])
  1154  	} else {
  1155  		_p0 = unsafe.Pointer(&_zero)
  1156  	}
  1157  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_read_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1158  	n = int(r0)
  1159  	if e1 != 0 {
  1160  		err = errnoErr(e1)
  1161  	}
  1162  	return
  1163  }
  1164  
  1165  func libc_read_trampoline()
  1166  
  1167  //go:cgo_import_dynamic libc_read read "libc.so"
  1168  
  1169  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1170  
  1171  func Readlink(path string, buf []byte) (n int, err error) {
  1172  	var _p0 *byte
  1173  	_p0, err = BytePtrFromString(path)
  1174  	if err != nil {
  1175  		return
  1176  	}
  1177  	var _p1 unsafe.Pointer
  1178  	if len(buf) > 0 {
  1179  		_p1 = unsafe.Pointer(&buf[0])
  1180  	} else {
  1181  		_p1 = unsafe.Pointer(&_zero)
  1182  	}
  1183  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_readlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
  1184  	n = int(r0)
  1185  	if e1 != 0 {
  1186  		err = errnoErr(e1)
  1187  	}
  1188  	return
  1189  }
  1190  
  1191  func libc_readlink_trampoline()
  1192  
  1193  //go:cgo_import_dynamic libc_readlink readlink "libc.so"
  1194  
  1195  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1196  
  1197  func Rename(from string, to string) (err error) {
  1198  	var _p0 *byte
  1199  	_p0, err = BytePtrFromString(from)
  1200  	if err != nil {
  1201  		return
  1202  	}
  1203  	var _p1 *byte
  1204  	_p1, err = BytePtrFromString(to)
  1205  	if err != nil {
  1206  		return
  1207  	}
  1208  	_, _, e1 := syscall(abi.FuncPCABI0(libc_rename_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1209  	if e1 != 0 {
  1210  		err = errnoErr(e1)
  1211  	}
  1212  	return
  1213  }
  1214  
  1215  func libc_rename_trampoline()
  1216  
  1217  //go:cgo_import_dynamic libc_rename rename "libc.so"
  1218  
  1219  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1220  
  1221  func Revoke(path string) (err error) {
  1222  	var _p0 *byte
  1223  	_p0, err = BytePtrFromString(path)
  1224  	if err != nil {
  1225  		return
  1226  	}
  1227  	_, _, e1 := syscall(abi.FuncPCABI0(libc_revoke_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  1228  	if e1 != 0 {
  1229  		err = errnoErr(e1)
  1230  	}
  1231  	return
  1232  }
  1233  
  1234  func libc_revoke_trampoline()
  1235  
  1236  //go:cgo_import_dynamic libc_revoke revoke "libc.so"
  1237  
  1238  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1239  
  1240  func Rmdir(path string) (err error) {
  1241  	var _p0 *byte
  1242  	_p0, err = BytePtrFromString(path)
  1243  	if err != nil {
  1244  		return
  1245  	}
  1246  	_, _, e1 := syscall(abi.FuncPCABI0(libc_rmdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  1247  	if e1 != 0 {
  1248  		err = errnoErr(e1)
  1249  	}
  1250  	return
  1251  }
  1252  
  1253  func libc_rmdir_trampoline()
  1254  
  1255  //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
  1256  
  1257  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1258  
  1259  func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
  1260  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1261  	if e1 != 0 {
  1262  		err = errnoErr(e1)
  1263  	}
  1264  	return
  1265  }
  1266  
  1267  func libc_select_trampoline()
  1268  
  1269  //go:cgo_import_dynamic libc_select select "libc.so"
  1270  
  1271  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1272  
  1273  func Setegid(egid int) (err error) {
  1274  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setegid_trampoline), uintptr(egid), 0, 0)
  1275  	if e1 != 0 {
  1276  		err = errnoErr(e1)
  1277  	}
  1278  	return
  1279  }
  1280  
  1281  func libc_setegid_trampoline()
  1282  
  1283  //go:cgo_import_dynamic libc_setegid setegid "libc.so"
  1284  
  1285  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1286  
  1287  func Seteuid(euid int) (err error) {
  1288  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_seteuid_trampoline), uintptr(euid), 0, 0)
  1289  	if e1 != 0 {
  1290  		err = errnoErr(e1)
  1291  	}
  1292  	return
  1293  }
  1294  
  1295  func libc_seteuid_trampoline()
  1296  
  1297  //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
  1298  
  1299  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1300  
  1301  func Setgid(gid int) (err error) {
  1302  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setgid_trampoline), uintptr(gid), 0, 0)
  1303  	if e1 != 0 {
  1304  		err = errnoErr(e1)
  1305  	}
  1306  	return
  1307  }
  1308  
  1309  func libc_setgid_trampoline()
  1310  
  1311  //go:cgo_import_dynamic libc_setgid setgid "libc.so"
  1312  
  1313  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1314  
  1315  func Setlogin(name string) (err error) {
  1316  	var _p0 *byte
  1317  	_p0, err = BytePtrFromString(name)
  1318  	if err != nil {
  1319  		return
  1320  	}
  1321  	_, _, e1 := syscall(abi.FuncPCABI0(libc_setlogin_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  1322  	if e1 != 0 {
  1323  		err = errnoErr(e1)
  1324  	}
  1325  	return
  1326  }
  1327  
  1328  func libc_setlogin_trampoline()
  1329  
  1330  //go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
  1331  
  1332  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1333  
  1334  func Setpgid(pid int, pgid int) (err error) {
  1335  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setpgid_trampoline), uintptr(pid), uintptr(pgid), 0)
  1336  	if e1 != 0 {
  1337  		err = errnoErr(e1)
  1338  	}
  1339  	return
  1340  }
  1341  
  1342  func libc_setpgid_trampoline()
  1343  
  1344  //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
  1345  
  1346  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1347  
  1348  func Setpriority(which int, who int, prio int) (err error) {
  1349  	_, _, e1 := syscall(abi.FuncPCABI0(libc_setpriority_trampoline), uintptr(which), uintptr(who), uintptr(prio))
  1350  	if e1 != 0 {
  1351  		err = errnoErr(e1)
  1352  	}
  1353  	return
  1354  }
  1355  
  1356  func libc_setpriority_trampoline()
  1357  
  1358  //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
  1359  
  1360  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1361  
  1362  func Setregid(rgid int, egid int) (err error) {
  1363  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setregid_trampoline), uintptr(rgid), uintptr(egid), 0)
  1364  	if e1 != 0 {
  1365  		err = errnoErr(e1)
  1366  	}
  1367  	return
  1368  }
  1369  
  1370  func libc_setregid_trampoline()
  1371  
  1372  //go:cgo_import_dynamic libc_setregid setregid "libc.so"
  1373  
  1374  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1375  
  1376  func Setreuid(ruid int, euid int) (err error) {
  1377  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setreuid_trampoline), uintptr(ruid), uintptr(euid), 0)
  1378  	if e1 != 0 {
  1379  		err = errnoErr(e1)
  1380  	}
  1381  	return
  1382  }
  1383  
  1384  func libc_setreuid_trampoline()
  1385  
  1386  //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
  1387  
  1388  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1389  
  1390  func setrlimit(which int, lim *Rlimit) (err error) {
  1391  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
  1392  	if e1 != 0 {
  1393  		err = errnoErr(e1)
  1394  	}
  1395  	return
  1396  }
  1397  
  1398  func libc_setrlimit_trampoline()
  1399  
  1400  //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
  1401  
  1402  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1403  
  1404  func Setsid() (pid int, err error) {
  1405  	r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setsid_trampoline), 0, 0, 0)
  1406  	pid = int(r0)
  1407  	if e1 != 0 {
  1408  		err = errnoErr(e1)
  1409  	}
  1410  	return
  1411  }
  1412  
  1413  func libc_setsid_trampoline()
  1414  
  1415  //go:cgo_import_dynamic libc_setsid setsid "libc.so"
  1416  
  1417  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1418  
  1419  func Settimeofday(tp *Timeval) (err error) {
  1420  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_settimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
  1421  	if e1 != 0 {
  1422  		err = errnoErr(e1)
  1423  	}
  1424  	return
  1425  }
  1426  
  1427  func libc_settimeofday_trampoline()
  1428  
  1429  //go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
  1430  
  1431  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1432  
  1433  func Setuid(uid int) (err error) {
  1434  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setuid_trampoline), uintptr(uid), 0, 0)
  1435  	if e1 != 0 {
  1436  		err = errnoErr(e1)
  1437  	}
  1438  	return
  1439  }
  1440  
  1441  func libc_setuid_trampoline()
  1442  
  1443  //go:cgo_import_dynamic libc_setuid setuid "libc.so"
  1444  
  1445  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1446  
  1447  func Stat(path string, stat *Stat_t) (err error) {
  1448  	var _p0 *byte
  1449  	_p0, err = BytePtrFromString(path)
  1450  	if err != nil {
  1451  		return
  1452  	}
  1453  	_, _, e1 := syscall(abi.FuncPCABI0(libc_stat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1454  	if e1 != 0 {
  1455  		err = errnoErr(e1)
  1456  	}
  1457  	return
  1458  }
  1459  
  1460  func libc_stat_trampoline()
  1461  
  1462  //go:cgo_import_dynamic libc_stat stat "libc.so"
  1463  
  1464  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1465  
  1466  func Statfs(path string, stat *Statfs_t) (err error) {
  1467  	var _p0 *byte
  1468  	_p0, err = BytePtrFromString(path)
  1469  	if err != nil {
  1470  		return
  1471  	}
  1472  	_, _, e1 := syscall(abi.FuncPCABI0(libc_statfs_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1473  	if e1 != 0 {
  1474  		err = errnoErr(e1)
  1475  	}
  1476  	return
  1477  }
  1478  
  1479  func libc_statfs_trampoline()
  1480  
  1481  //go:cgo_import_dynamic libc_statfs statfs "libc.so"
  1482  
  1483  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1484  
  1485  func Symlink(path string, link string) (err error) {
  1486  	var _p0 *byte
  1487  	_p0, err = BytePtrFromString(path)
  1488  	if err != nil {
  1489  		return
  1490  	}
  1491  	var _p1 *byte
  1492  	_p1, err = BytePtrFromString(link)
  1493  	if err != nil {
  1494  		return
  1495  	}
  1496  	_, _, e1 := syscall(abi.FuncPCABI0(libc_symlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1497  	if e1 != 0 {
  1498  		err = errnoErr(e1)
  1499  	}
  1500  	return
  1501  }
  1502  
  1503  func libc_symlink_trampoline()
  1504  
  1505  //go:cgo_import_dynamic libc_symlink symlink "libc.so"
  1506  
  1507  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1508  
  1509  func Sync() (err error) {
  1510  	_, _, e1 := syscall(abi.FuncPCABI0(libc_sync_trampoline), 0, 0, 0)
  1511  	if e1 != 0 {
  1512  		err = errnoErr(e1)
  1513  	}
  1514  	return
  1515  }
  1516  
  1517  func libc_sync_trampoline()
  1518  
  1519  //go:cgo_import_dynamic libc_sync sync "libc.so"
  1520  
  1521  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1522  
  1523  func Truncate(path string, length int64) (err error) {
  1524  	var _p0 *byte
  1525  	_p0, err = BytePtrFromString(path)
  1526  	if err != nil {
  1527  		return
  1528  	}
  1529  	_, _, e1 := syscall(abi.FuncPCABI0(libc_truncate_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
  1530  	if e1 != 0 {
  1531  		err = errnoErr(e1)
  1532  	}
  1533  	return
  1534  }
  1535  
  1536  func libc_truncate_trampoline()
  1537  
  1538  //go:cgo_import_dynamic libc_truncate truncate "libc.so"
  1539  
  1540  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1541  
  1542  func Umask(newmask int) (oldmask int) {
  1543  	r0, _, _ := syscall(abi.FuncPCABI0(libc_umask_trampoline), uintptr(newmask), 0, 0)
  1544  	oldmask = int(r0)
  1545  	return
  1546  }
  1547  
  1548  func libc_umask_trampoline()
  1549  
  1550  //go:cgo_import_dynamic libc_umask umask "libc.so"
  1551  
  1552  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1553  
  1554  func Unlink(path string) (err error) {
  1555  	var _p0 *byte
  1556  	_p0, err = BytePtrFromString(path)
  1557  	if err != nil {
  1558  		return
  1559  	}
  1560  	_, _, e1 := syscall(abi.FuncPCABI0(libc_unlink_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  1561  	if e1 != 0 {
  1562  		err = errnoErr(e1)
  1563  	}
  1564  	return
  1565  }
  1566  
  1567  func libc_unlink_trampoline()
  1568  
  1569  //go:cgo_import_dynamic libc_unlink unlink "libc.so"
  1570  
  1571  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1572  
  1573  func Unmount(path string, flags int) (err error) {
  1574  	var _p0 *byte
  1575  	_p0, err = BytePtrFromString(path)
  1576  	if err != nil {
  1577  		return
  1578  	}
  1579  	_, _, e1 := syscall(abi.FuncPCABI0(libc_unmount_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1580  	if e1 != 0 {
  1581  		err = errnoErr(e1)
  1582  	}
  1583  	return
  1584  }
  1585  
  1586  func libc_unmount_trampoline()
  1587  
  1588  //go:cgo_import_dynamic libc_unmount unmount "libc.so"
  1589  
  1590  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1591  
  1592  func write(fd int, p []byte) (n int, err error) {
  1593  	var _p0 unsafe.Pointer
  1594  	if len(p) > 0 {
  1595  		_p0 = unsafe.Pointer(&p[0])
  1596  	} else {
  1597  		_p0 = unsafe.Pointer(&_zero)
  1598  	}
  1599  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_write_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1600  	n = int(r0)
  1601  	if e1 != 0 {
  1602  		err = errnoErr(e1)
  1603  	}
  1604  	return
  1605  }
  1606  
  1607  func libc_write_trampoline()
  1608  
  1609  //go:cgo_import_dynamic libc_write write "libc.so"
  1610  
  1611  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1612  
  1613  func writev(fd int, iovecs []Iovec) (n uintptr, err error) {
  1614  	var _p0 unsafe.Pointer
  1615  	if len(iovecs) > 0 {
  1616  		_p0 = unsafe.Pointer(&iovecs[0])
  1617  	} else {
  1618  		_p0 = unsafe.Pointer(&_zero)
  1619  	}
  1620  	r0, _, e1 := syscallX(abi.FuncPCABI0(libc_writev_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(iovecs)))
  1621  	n = uintptr(r0)
  1622  	if e1 != 0 {
  1623  		err = errnoErr(e1)
  1624  	}
  1625  	return
  1626  }
  1627  
  1628  func libc_writev_trampoline()
  1629  
  1630  //go:cgo_import_dynamic libc_writev writev "libc.so"
  1631  
  1632  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1633  
  1634  func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1635  	r0, _, e1 := syscall6X(abi.FuncPCABI0(libc_mmap_trampoline), uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
  1636  	ret = uintptr(r0)
  1637  	if e1 != 0 {
  1638  		err = errnoErr(e1)
  1639  	}
  1640  	return
  1641  }
  1642  
  1643  func libc_mmap_trampoline()
  1644  
  1645  //go:cgo_import_dynamic libc_mmap mmap "libc.so"
  1646  
  1647  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1648  
  1649  func munmap(addr uintptr, length uintptr) (err error) {
  1650  	_, _, e1 := syscall(abi.FuncPCABI0(libc_munmap_trampoline), uintptr(addr), uintptr(length), 0)
  1651  	if e1 != 0 {
  1652  		err = errnoErr(e1)
  1653  	}
  1654  	return
  1655  }
  1656  
  1657  func libc_munmap_trampoline()
  1658  
  1659  //go:cgo_import_dynamic libc_munmap munmap "libc.so"
  1660  
  1661  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1662  
  1663  func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
  1664  	var _p0 *byte
  1665  	_p0, err = BytePtrFromString(path)
  1666  	if err != nil {
  1667  		return
  1668  	}
  1669  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_utimensat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
  1670  	if e1 != 0 {
  1671  		err = errnoErr(e1)
  1672  	}
  1673  	return
  1674  }
  1675  
  1676  func libc_utimensat_trampoline()
  1677  
  1678  //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
  1679  
  1680  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1681  
  1682  func directSyscall(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr) (ret uintptr, err error) {
  1683  	r0, _, e1 := syscall6X(abi.FuncPCABI0(libc_syscall_trampoline), uintptr(trap), uintptr(a1), uintptr(a2), uintptr(a3), uintptr(a4), uintptr(a5))
  1684  	ret = uintptr(r0)
  1685  	if e1 != 0 {
  1686  		err = errnoErr(e1)
  1687  	}
  1688  	return
  1689  }
  1690  
  1691  func libc_syscall_trampoline()
  1692  
  1693  //go:cgo_import_dynamic libc_syscall syscall "libc.so"
  1694  
  1695  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1696  
  1697  func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
  1698  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_read_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  1699  	n = int(r0)
  1700  	if e1 != 0 {
  1701  		err = errnoErr(e1)
  1702  	}
  1703  	return
  1704  }
  1705  
  1706  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1707  
  1708  func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
  1709  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_write_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  1710  	n = int(r0)
  1711  	if e1 != 0 {
  1712  		err = errnoErr(e1)
  1713  	}
  1714  	return
  1715  }
  1716  
  1717  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1718  
  1719  func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
  1720  	r0, _, e1 := syscallX(abi.FuncPCABI0(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(whence))
  1721  	newoffset = int64(r0)
  1722  	if e1 != 0 {
  1723  		err = errnoErr(e1)
  1724  	}
  1725  	return
  1726  }
  1727  
  1728  func libc_lseek_trampoline()
  1729  
  1730  //go:cgo_import_dynamic libc_lseek lseek "libc.so"
  1731  
  1732  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1733  
  1734  func getcwd(buf []byte) (n int, err error) {
  1735  	var _p0 unsafe.Pointer
  1736  	if len(buf) > 0 {
  1737  		_p0 = unsafe.Pointer(&buf[0])
  1738  	} else {
  1739  		_p0 = unsafe.Pointer(&_zero)
  1740  	}
  1741  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_getcwd_trampoline), uintptr(_p0), uintptr(len(buf)), 0)
  1742  	n = int(r0)
  1743  	if e1 != 0 {
  1744  		err = errnoErr(e1)
  1745  	}
  1746  	return
  1747  }
  1748  
  1749  func libc_getcwd_trampoline()
  1750  
  1751  //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
  1752  
  1753  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1754  
  1755  func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
  1756  	var _p0 unsafe.Pointer
  1757  	if len(mib) > 0 {
  1758  		_p0 = unsafe.Pointer(&mib[0])
  1759  	} else {
  1760  		_p0 = unsafe.Pointer(&_zero)
  1761  	}
  1762  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
  1763  	if e1 != 0 {
  1764  		err = errnoErr(e1)
  1765  	}
  1766  	return
  1767  }
  1768  
  1769  func libc_sysctl_trampoline()
  1770  
  1771  //go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
  1772  
  1773  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1774  
  1775  func fork() (pid int, err error) {
  1776  	r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_fork_trampoline), 0, 0, 0)
  1777  	pid = int(r0)
  1778  	if e1 != 0 {
  1779  		err = errnoErr(e1)
  1780  	}
  1781  	return
  1782  }
  1783  
  1784  func libc_fork_trampoline()
  1785  
  1786  //go:cgo_import_dynamic libc_fork fork "libc.so"
  1787  
  1788  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1789  
  1790  func ioctl(fd int, req int, arg int) (err error) {
  1791  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg))
  1792  	if e1 != 0 {
  1793  		err = errnoErr(e1)
  1794  	}
  1795  	return
  1796  }
  1797  
  1798  func libc_ioctl_trampoline()
  1799  
  1800  //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
  1801  
  1802  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1803  
  1804  func execve(path *byte, argv **byte, envp **byte) (err error) {
  1805  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_execve_trampoline), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(argv)), uintptr(unsafe.Pointer(envp)))
  1806  	if e1 != 0 {
  1807  		err = errnoErr(e1)
  1808  	}
  1809  	return
  1810  }
  1811  
  1812  func libc_execve_trampoline()
  1813  
  1814  //go:cgo_import_dynamic libc_execve execve "libc.so"
  1815  
  1816  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1817  
  1818  func exit(res int) (err error) {
  1819  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_exit_trampoline), uintptr(res), 0, 0)
  1820  	if e1 != 0 {
  1821  		err = errnoErr(e1)
  1822  	}
  1823  	return
  1824  }
  1825  
  1826  func libc_exit_trampoline()
  1827  
  1828  //go:cgo_import_dynamic libc_exit exit "libc.so"
  1829  
  1830  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1831  
  1832  //go:nosplit
  1833  func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
  1834  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
  1835  	if e1 != 0 {
  1836  		err = errnoErr(e1)
  1837  	}
  1838  	return
  1839  }
  1840  
  1841  func libc_ptrace_trampoline()
  1842  
  1843  //go:cgo_import_dynamic libc_ptrace ptrace "libc.so"
  1844  
  1845  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1846  
  1847  //go:nosplit
  1848  func ptracePtr(request int, pid int, addr unsafe.Pointer, data uintptr) (err error) {
  1849  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
  1850  	if e1 != 0 {
  1851  		err = errnoErr(e1)
  1852  	}
  1853  	return
  1854  }
  1855  
  1856  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1857  
  1858  func getentropy(p []byte) (err error) {
  1859  	var _p0 unsafe.Pointer
  1860  	if len(p) > 0 {
  1861  		_p0 = unsafe.Pointer(&p[0])
  1862  	} else {
  1863  		_p0 = unsafe.Pointer(&_zero)
  1864  	}
  1865  	_, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getentropy_trampoline), uintptr(_p0), uintptr(len(p)), 0)
  1866  	if e1 != 0 {
  1867  		err = errnoErr(e1)
  1868  	}
  1869  	return
  1870  }
  1871  
  1872  func libc_getentropy_trampoline()
  1873  
  1874  //go:cgo_import_dynamic libc_getentropy getentropy "libc.so"
  1875  
  1876  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1877  
  1878  func fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
  1879  	var _p0 *byte
  1880  	_p0, err = BytePtrFromString(path)
  1881  	if err != nil {
  1882  		return
  1883  	}
  1884  	_, _, e1 := syscall6(abi.FuncPCABI0(libc_fstatat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  1885  	if e1 != 0 {
  1886  		err = errnoErr(e1)
  1887  	}
  1888  	return
  1889  }
  1890  
  1891  func libc_fstatat_trampoline()
  1892  
  1893  //go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
  1894  
  1895  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1896  
  1897  func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (val int, err error) {
  1898  	r0, _, e1 := syscall(abi.FuncPCABI0(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
  1899  	val = int(r0)
  1900  	if e1 != 0 {
  1901  		err = errnoErr(e1)
  1902  	}
  1903  	return
  1904  }
  1905  
  1906  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1907  
  1908  func unlinkat(fd int, path string, flags int) (err error) {
  1909  	var _p0 *byte
  1910  	_p0, err = BytePtrFromString(path)
  1911  	if err != nil {
  1912  		return
  1913  	}
  1914  	_, _, e1 := syscall(abi.FuncPCABI0(libc_unlinkat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
  1915  	if e1 != 0 {
  1916  		err = errnoErr(e1)
  1917  	}
  1918  	return
  1919  }
  1920  
  1921  func libc_unlinkat_trampoline()
  1922  
  1923  //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
  1924  
  1925  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1926  
  1927  func openat(fd int, path string, flags int, perm uint32) (fdret int, err error) {
  1928  	var _p0 *byte
  1929  	_p0, err = BytePtrFromString(path)
  1930  	if err != nil {
  1931  		return
  1932  	}
  1933  	r0, _, e1 := syscall6(abi.FuncPCABI0(libc_openat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(perm), 0, 0)
  1934  	fdret = int(r0)
  1935  	if e1 != 0 {
  1936  		err = errnoErr(e1)
  1937  	}
  1938  	return
  1939  }
  1940  
  1941  func libc_openat_trampoline()
  1942  
  1943  //go:cgo_import_dynamic libc_openat openat "libc.so"