...

Source file src/syscall/zsyscall_openbsd_amd64.go

Documentation: syscall

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

View as plain text