github.com/Andyfoo/golang/x/sys@v0.0.0-20190901054642-57c1bf301704/unix/zsyscall_darwin_386.go (about)

     1  // go run mksyscall.go -l32 -tags darwin,386,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  // +build darwin,386,go1.12
     5  
     6  package unix
     7  
     8  import (
     9  	"syscall"
    10  	"unsafe"
    11  )
    12  
    13  var _ syscall.Errno
    14  
    15  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16  
    17  func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
    18  	r0, _, e1 := syscall_rawSyscall(funcPC(libc_getgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
    19  	n = int(r0)
    20  	if e1 != 0 {
    21  		err = errnoErr(e1)
    22  	}
    23  	return
    24  }
    25  
    26  func libc_getgroups_trampoline()
    27  
    28  //go:linkname libc_getgroups libc_getgroups
    29  //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
    30  
    31  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    32  
    33  func setgroups(ngid int, gid *_Gid_t) (err error) {
    34  	_, _, e1 := syscall_rawSyscall(funcPC(libc_setgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
    35  	if e1 != 0 {
    36  		err = errnoErr(e1)
    37  	}
    38  	return
    39  }
    40  
    41  func libc_setgroups_trampoline()
    42  
    43  //go:linkname libc_setgroups libc_setgroups
    44  //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
    45  
    46  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    47  
    48  func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    49  	r0, _, e1 := syscall_syscall6(funcPC(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    50  	wpid = int(r0)
    51  	if e1 != 0 {
    52  		err = errnoErr(e1)
    53  	}
    54  	return
    55  }
    56  
    57  func libc_wait4_trampoline()
    58  
    59  //go:linkname libc_wait4 libc_wait4
    60  //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
    61  
    62  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    63  
    64  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
    65  	r0, _, e1 := syscall_syscall(funcPC(libc_accept_trampoline), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
    66  	fd = int(r0)
    67  	if e1 != 0 {
    68  		err = errnoErr(e1)
    69  	}
    70  	return
    71  }
    72  
    73  func libc_accept_trampoline()
    74  
    75  //go:linkname libc_accept libc_accept
    76  //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
    77  
    78  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    79  
    80  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    81  	_, _, e1 := syscall_syscall(funcPC(libc_bind_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
    82  	if e1 != 0 {
    83  		err = errnoErr(e1)
    84  	}
    85  	return
    86  }
    87  
    88  func libc_bind_trampoline()
    89  
    90  //go:linkname libc_bind libc_bind
    91  //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
    92  
    93  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    94  
    95  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
    96  	_, _, e1 := syscall_syscall(funcPC(libc_connect_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
    97  	if e1 != 0 {
    98  		err = errnoErr(e1)
    99  	}
   100  	return
   101  }
   102  
   103  func libc_connect_trampoline()
   104  
   105  //go:linkname libc_connect libc_connect
   106  //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
   107  
   108  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   109  
   110  func socket(domain int, typ int, proto int) (fd int, err error) {
   111  	r0, _, e1 := syscall_rawSyscall(funcPC(libc_socket_trampoline), uintptr(domain), uintptr(typ), uintptr(proto))
   112  	fd = int(r0)
   113  	if e1 != 0 {
   114  		err = errnoErr(e1)
   115  	}
   116  	return
   117  }
   118  
   119  func libc_socket_trampoline()
   120  
   121  //go:linkname libc_socket libc_socket
   122  //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
   123  
   124  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   125  
   126  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
   127  	_, _, e1 := syscall_syscall6(funcPC(libc_getsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
   128  	if e1 != 0 {
   129  		err = errnoErr(e1)
   130  	}
   131  	return
   132  }
   133  
   134  func libc_getsockopt_trampoline()
   135  
   136  //go:linkname libc_getsockopt libc_getsockopt
   137  //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
   138  
   139  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   140  
   141  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
   142  	_, _, e1 := syscall_syscall6(funcPC(libc_setsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
   143  	if e1 != 0 {
   144  		err = errnoErr(e1)
   145  	}
   146  	return
   147  }
   148  
   149  func libc_setsockopt_trampoline()
   150  
   151  //go:linkname libc_setsockopt libc_setsockopt
   152  //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
   153  
   154  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   155  
   156  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   157  	_, _, e1 := syscall_rawSyscall(funcPC(libc_getpeername_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   158  	if e1 != 0 {
   159  		err = errnoErr(e1)
   160  	}
   161  	return
   162  }
   163  
   164  func libc_getpeername_trampoline()
   165  
   166  //go:linkname libc_getpeername libc_getpeername
   167  //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
   168  
   169  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   170  
   171  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   172  	_, _, e1 := syscall_rawSyscall(funcPC(libc_getsockname_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   173  	if e1 != 0 {
   174  		err = errnoErr(e1)
   175  	}
   176  	return
   177  }
   178  
   179  func libc_getsockname_trampoline()
   180  
   181  //go:linkname libc_getsockname libc_getsockname
   182  //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
   183  
   184  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   185  
   186  func Shutdown(s int, how int) (err error) {
   187  	_, _, e1 := syscall_syscall(funcPC(libc_shutdown_trampoline), uintptr(s), uintptr(how), 0)
   188  	if e1 != 0 {
   189  		err = errnoErr(e1)
   190  	}
   191  	return
   192  }
   193  
   194  func libc_shutdown_trampoline()
   195  
   196  //go:linkname libc_shutdown libc_shutdown
   197  //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
   198  
   199  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   200  
   201  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
   202  	_, _, e1 := syscall_rawSyscall6(funcPC(libc_socketpair_trampoline), uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
   203  	if e1 != 0 {
   204  		err = errnoErr(e1)
   205  	}
   206  	return
   207  }
   208  
   209  func libc_socketpair_trampoline()
   210  
   211  //go:linkname libc_socketpair libc_socketpair
   212  //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
   213  
   214  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   215  
   216  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
   217  	var _p0 unsafe.Pointer
   218  	if len(p) > 0 {
   219  		_p0 = unsafe.Pointer(&p[0])
   220  	} else {
   221  		_p0 = unsafe.Pointer(&_zero)
   222  	}
   223  	r0, _, e1 := syscall_syscall6(funcPC(libc_recvfrom_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
   224  	n = int(r0)
   225  	if e1 != 0 {
   226  		err = errnoErr(e1)
   227  	}
   228  	return
   229  }
   230  
   231  func libc_recvfrom_trampoline()
   232  
   233  //go:linkname libc_recvfrom libc_recvfrom
   234  //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
   235  
   236  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   237  
   238  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
   239  	var _p0 unsafe.Pointer
   240  	if len(buf) > 0 {
   241  		_p0 = unsafe.Pointer(&buf[0])
   242  	} else {
   243  		_p0 = unsafe.Pointer(&_zero)
   244  	}
   245  	_, _, e1 := syscall_syscall6(funcPC(libc_sendto_trampoline), uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
   246  	if e1 != 0 {
   247  		err = errnoErr(e1)
   248  	}
   249  	return
   250  }
   251  
   252  func libc_sendto_trampoline()
   253  
   254  //go:linkname libc_sendto libc_sendto
   255  //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
   256  
   257  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   258  
   259  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   260  	r0, _, e1 := syscall_syscall(funcPC(libc_recvmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   261  	n = int(r0)
   262  	if e1 != 0 {
   263  		err = errnoErr(e1)
   264  	}
   265  	return
   266  }
   267  
   268  func libc_recvmsg_trampoline()
   269  
   270  //go:linkname libc_recvmsg libc_recvmsg
   271  //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
   272  
   273  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   274  
   275  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   276  	r0, _, e1 := syscall_syscall(funcPC(libc_sendmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   277  	n = int(r0)
   278  	if e1 != 0 {
   279  		err = errnoErr(e1)
   280  	}
   281  	return
   282  }
   283  
   284  func libc_sendmsg_trampoline()
   285  
   286  //go:linkname libc_sendmsg libc_sendmsg
   287  //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
   288  
   289  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   290  
   291  func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
   292  	r0, _, e1 := syscall_syscall6(funcPC(libc_kevent_trampoline), uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
   293  	n = int(r0)
   294  	if e1 != 0 {
   295  		err = errnoErr(e1)
   296  	}
   297  	return
   298  }
   299  
   300  func libc_kevent_trampoline()
   301  
   302  //go:linkname libc_kevent libc_kevent
   303  //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
   304  
   305  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   306  
   307  func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
   308  	var _p0 unsafe.Pointer
   309  	if len(mib) > 0 {
   310  		_p0 = unsafe.Pointer(&mib[0])
   311  	} else {
   312  		_p0 = unsafe.Pointer(&_zero)
   313  	}
   314  	_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
   315  	if e1 != 0 {
   316  		err = errnoErr(e1)
   317  	}
   318  	return
   319  }
   320  
   321  func libc___sysctl_trampoline()
   322  
   323  //go:linkname libc___sysctl libc___sysctl
   324  //go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
   325  
   326  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   327  
   328  func utimes(path string, timeval *[2]Timeval) (err error) {
   329  	var _p0 *byte
   330  	_p0, err = BytePtrFromString(path)
   331  	if err != nil {
   332  		return
   333  	}
   334  	_, _, e1 := syscall_syscall(funcPC(libc_utimes_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
   335  	if e1 != 0 {
   336  		err = errnoErr(e1)
   337  	}
   338  	return
   339  }
   340  
   341  func libc_utimes_trampoline()
   342  
   343  //go:linkname libc_utimes libc_utimes
   344  //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
   345  
   346  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   347  
   348  func futimes(fd int, timeval *[2]Timeval) (err error) {
   349  	_, _, e1 := syscall_syscall(funcPC(libc_futimes_trampoline), uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
   350  	if e1 != 0 {
   351  		err = errnoErr(e1)
   352  	}
   353  	return
   354  }
   355  
   356  func libc_futimes_trampoline()
   357  
   358  //go:linkname libc_futimes libc_futimes
   359  //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
   360  
   361  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   362  
   363  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   364  	r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
   365  	val = int(r0)
   366  	if e1 != 0 {
   367  		err = errnoErr(e1)
   368  	}
   369  	return
   370  }
   371  
   372  func libc_fcntl_trampoline()
   373  
   374  //go:linkname libc_fcntl libc_fcntl
   375  //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
   376  
   377  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   378  
   379  func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
   380  	r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
   381  	n = int(r0)
   382  	if e1 != 0 {
   383  		err = errnoErr(e1)
   384  	}
   385  	return
   386  }
   387  
   388  func libc_poll_trampoline()
   389  
   390  //go:linkname libc_poll libc_poll
   391  //go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib"
   392  
   393  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   394  
   395  func Madvise(b []byte, behav int) (err error) {
   396  	var _p0 unsafe.Pointer
   397  	if len(b) > 0 {
   398  		_p0 = unsafe.Pointer(&b[0])
   399  	} else {
   400  		_p0 = unsafe.Pointer(&_zero)
   401  	}
   402  	_, _, e1 := syscall_syscall(funcPC(libc_madvise_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(behav))
   403  	if e1 != 0 {
   404  		err = errnoErr(e1)
   405  	}
   406  	return
   407  }
   408  
   409  func libc_madvise_trampoline()
   410  
   411  //go:linkname libc_madvise libc_madvise
   412  //go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib"
   413  
   414  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   415  
   416  func Mlock(b []byte) (err error) {
   417  	var _p0 unsafe.Pointer
   418  	if len(b) > 0 {
   419  		_p0 = unsafe.Pointer(&b[0])
   420  	} else {
   421  		_p0 = unsafe.Pointer(&_zero)
   422  	}
   423  	_, _, e1 := syscall_syscall(funcPC(libc_mlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
   424  	if e1 != 0 {
   425  		err = errnoErr(e1)
   426  	}
   427  	return
   428  }
   429  
   430  func libc_mlock_trampoline()
   431  
   432  //go:linkname libc_mlock libc_mlock
   433  //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
   434  
   435  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   436  
   437  func Mlockall(flags int) (err error) {
   438  	_, _, e1 := syscall_syscall(funcPC(libc_mlockall_trampoline), uintptr(flags), 0, 0)
   439  	if e1 != 0 {
   440  		err = errnoErr(e1)
   441  	}
   442  	return
   443  }
   444  
   445  func libc_mlockall_trampoline()
   446  
   447  //go:linkname libc_mlockall libc_mlockall
   448  //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
   449  
   450  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   451  
   452  func Mprotect(b []byte, prot int) (err error) {
   453  	var _p0 unsafe.Pointer
   454  	if len(b) > 0 {
   455  		_p0 = unsafe.Pointer(&b[0])
   456  	} else {
   457  		_p0 = unsafe.Pointer(&_zero)
   458  	}
   459  	_, _, e1 := syscall_syscall(funcPC(libc_mprotect_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(prot))
   460  	if e1 != 0 {
   461  		err = errnoErr(e1)
   462  	}
   463  	return
   464  }
   465  
   466  func libc_mprotect_trampoline()
   467  
   468  //go:linkname libc_mprotect libc_mprotect
   469  //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
   470  
   471  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   472  
   473  func Msync(b []byte, flags int) (err error) {
   474  	var _p0 unsafe.Pointer
   475  	if len(b) > 0 {
   476  		_p0 = unsafe.Pointer(&b[0])
   477  	} else {
   478  		_p0 = unsafe.Pointer(&_zero)
   479  	}
   480  	_, _, e1 := syscall_syscall(funcPC(libc_msync_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(flags))
   481  	if e1 != 0 {
   482  		err = errnoErr(e1)
   483  	}
   484  	return
   485  }
   486  
   487  func libc_msync_trampoline()
   488  
   489  //go:linkname libc_msync libc_msync
   490  //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
   491  
   492  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   493  
   494  func Munlock(b []byte) (err error) {
   495  	var _p0 unsafe.Pointer
   496  	if len(b) > 0 {
   497  		_p0 = unsafe.Pointer(&b[0])
   498  	} else {
   499  		_p0 = unsafe.Pointer(&_zero)
   500  	}
   501  	_, _, e1 := syscall_syscall(funcPC(libc_munlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
   502  	if e1 != 0 {
   503  		err = errnoErr(e1)
   504  	}
   505  	return
   506  }
   507  
   508  func libc_munlock_trampoline()
   509  
   510  //go:linkname libc_munlock libc_munlock
   511  //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
   512  
   513  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   514  
   515  func Munlockall() (err error) {
   516  	_, _, e1 := syscall_syscall(funcPC(libc_munlockall_trampoline), 0, 0, 0)
   517  	if e1 != 0 {
   518  		err = errnoErr(e1)
   519  	}
   520  	return
   521  }
   522  
   523  func libc_munlockall_trampoline()
   524  
   525  //go:linkname libc_munlockall libc_munlockall
   526  //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
   527  
   528  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   529  
   530  func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
   531  	_, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
   532  	if e1 != 0 {
   533  		err = errnoErr(e1)
   534  	}
   535  	return
   536  }
   537  
   538  func libc_getattrlist_trampoline()
   539  
   540  //go:linkname libc_getattrlist libc_getattrlist
   541  //go:cgo_import_dynamic libc_getattrlist getattrlist "/usr/lib/libSystem.B.dylib"
   542  
   543  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   544  
   545  func pipe() (r int, w int, err error) {
   546  	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0)
   547  	r = int(r0)
   548  	w = int(r1)
   549  	if e1 != 0 {
   550  		err = errnoErr(e1)
   551  	}
   552  	return
   553  }
   554  
   555  func libc_pipe_trampoline()
   556  
   557  //go:linkname libc_pipe libc_pipe
   558  //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
   559  
   560  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   561  
   562  func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
   563  	var _p0 *byte
   564  	_p0, err = BytePtrFromString(path)
   565  	if err != nil {
   566  		return
   567  	}
   568  	var _p1 *byte
   569  	_p1, err = BytePtrFromString(attr)
   570  	if err != nil {
   571  		return
   572  	}
   573  	r0, _, e1 := syscall_syscall6(funcPC(libc_getxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
   574  	sz = int(r0)
   575  	if e1 != 0 {
   576  		err = errnoErr(e1)
   577  	}
   578  	return
   579  }
   580  
   581  func libc_getxattr_trampoline()
   582  
   583  //go:linkname libc_getxattr libc_getxattr
   584  //go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib"
   585  
   586  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   587  
   588  func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
   589  	var _p0 *byte
   590  	_p0, err = BytePtrFromString(attr)
   591  	if err != nil {
   592  		return
   593  	}
   594  	r0, _, e1 := syscall_syscall6(funcPC(libc_fgetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
   595  	sz = int(r0)
   596  	if e1 != 0 {
   597  		err = errnoErr(e1)
   598  	}
   599  	return
   600  }
   601  
   602  func libc_fgetxattr_trampoline()
   603  
   604  //go:linkname libc_fgetxattr libc_fgetxattr
   605  //go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib"
   606  
   607  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   608  
   609  func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
   610  	var _p0 *byte
   611  	_p0, err = BytePtrFromString(path)
   612  	if err != nil {
   613  		return
   614  	}
   615  	var _p1 *byte
   616  	_p1, err = BytePtrFromString(attr)
   617  	if err != nil {
   618  		return
   619  	}
   620  	_, _, e1 := syscall_syscall6(funcPC(libc_setxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
   621  	if e1 != 0 {
   622  		err = errnoErr(e1)
   623  	}
   624  	return
   625  }
   626  
   627  func libc_setxattr_trampoline()
   628  
   629  //go:linkname libc_setxattr libc_setxattr
   630  //go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib"
   631  
   632  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   633  
   634  func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) {
   635  	var _p0 *byte
   636  	_p0, err = BytePtrFromString(attr)
   637  	if err != nil {
   638  		return
   639  	}
   640  	_, _, e1 := syscall_syscall6(funcPC(libc_fsetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
   641  	if e1 != 0 {
   642  		err = errnoErr(e1)
   643  	}
   644  	return
   645  }
   646  
   647  func libc_fsetxattr_trampoline()
   648  
   649  //go:linkname libc_fsetxattr libc_fsetxattr
   650  //go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib"
   651  
   652  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   653  
   654  func removexattr(path string, attr string, options int) (err error) {
   655  	var _p0 *byte
   656  	_p0, err = BytePtrFromString(path)
   657  	if err != nil {
   658  		return
   659  	}
   660  	var _p1 *byte
   661  	_p1, err = BytePtrFromString(attr)
   662  	if err != nil {
   663  		return
   664  	}
   665  	_, _, e1 := syscall_syscall(funcPC(libc_removexattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
   666  	if e1 != 0 {
   667  		err = errnoErr(e1)
   668  	}
   669  	return
   670  }
   671  
   672  func libc_removexattr_trampoline()
   673  
   674  //go:linkname libc_removexattr libc_removexattr
   675  //go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib"
   676  
   677  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   678  
   679  func fremovexattr(fd int, attr string, options int) (err error) {
   680  	var _p0 *byte
   681  	_p0, err = BytePtrFromString(attr)
   682  	if err != nil {
   683  		return
   684  	}
   685  	_, _, e1 := syscall_syscall(funcPC(libc_fremovexattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options))
   686  	if e1 != 0 {
   687  		err = errnoErr(e1)
   688  	}
   689  	return
   690  }
   691  
   692  func libc_fremovexattr_trampoline()
   693  
   694  //go:linkname libc_fremovexattr libc_fremovexattr
   695  //go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib"
   696  
   697  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   698  
   699  func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
   700  	var _p0 *byte
   701  	_p0, err = BytePtrFromString(path)
   702  	if err != nil {
   703  		return
   704  	}
   705  	r0, _, e1 := syscall_syscall6(funcPC(libc_listxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
   706  	sz = int(r0)
   707  	if e1 != 0 {
   708  		err = errnoErr(e1)
   709  	}
   710  	return
   711  }
   712  
   713  func libc_listxattr_trampoline()
   714  
   715  //go:linkname libc_listxattr libc_listxattr
   716  //go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib"
   717  
   718  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   719  
   720  func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
   721  	r0, _, e1 := syscall_syscall6(funcPC(libc_flistxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
   722  	sz = int(r0)
   723  	if e1 != 0 {
   724  		err = errnoErr(e1)
   725  	}
   726  	return
   727  }
   728  
   729  func libc_flistxattr_trampoline()
   730  
   731  //go:linkname libc_flistxattr libc_flistxattr
   732  //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib"
   733  
   734  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   735  
   736  func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
   737  	_, _, e1 := syscall_syscall6(funcPC(libc_setattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
   738  	if e1 != 0 {
   739  		err = errnoErr(e1)
   740  	}
   741  	return
   742  }
   743  
   744  func libc_setattrlist_trampoline()
   745  
   746  //go:linkname libc_setattrlist libc_setattrlist
   747  //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
   748  
   749  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   750  
   751  func kill(pid int, signum int, posix int) (err error) {
   752  	_, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
   753  	if e1 != 0 {
   754  		err = errnoErr(e1)
   755  	}
   756  	return
   757  }
   758  
   759  func libc_kill_trampoline()
   760  
   761  //go:linkname libc_kill libc_kill
   762  //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
   763  
   764  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   765  
   766  func ioctl(fd int, req uint, arg uintptr) (err error) {
   767  	_, _, e1 := syscall_syscall(funcPC(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg))
   768  	if e1 != 0 {
   769  		err = errnoErr(e1)
   770  	}
   771  	return
   772  }
   773  
   774  func libc_ioctl_trampoline()
   775  
   776  //go:linkname libc_ioctl libc_ioctl
   777  //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
   778  
   779  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   780  
   781  func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
   782  	_, _, e1 := syscall_syscall9(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0)
   783  	if e1 != 0 {
   784  		err = errnoErr(e1)
   785  	}
   786  	return
   787  }
   788  
   789  func libc_sendfile_trampoline()
   790  
   791  //go:linkname libc_sendfile libc_sendfile
   792  //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
   793  
   794  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   795  
   796  func Access(path string, mode uint32) (err error) {
   797  	var _p0 *byte
   798  	_p0, err = BytePtrFromString(path)
   799  	if err != nil {
   800  		return
   801  	}
   802  	_, _, e1 := syscall_syscall(funcPC(libc_access_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   803  	if e1 != 0 {
   804  		err = errnoErr(e1)
   805  	}
   806  	return
   807  }
   808  
   809  func libc_access_trampoline()
   810  
   811  //go:linkname libc_access libc_access
   812  //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
   813  
   814  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   815  
   816  func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
   817  	_, _, e1 := syscall_syscall(funcPC(libc_adjtime_trampoline), uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
   818  	if e1 != 0 {
   819  		err = errnoErr(e1)
   820  	}
   821  	return
   822  }
   823  
   824  func libc_adjtime_trampoline()
   825  
   826  //go:linkname libc_adjtime libc_adjtime
   827  //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
   828  
   829  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   830  
   831  func Chdir(path string) (err error) {
   832  	var _p0 *byte
   833  	_p0, err = BytePtrFromString(path)
   834  	if err != nil {
   835  		return
   836  	}
   837  	_, _, e1 := syscall_syscall(funcPC(libc_chdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
   838  	if e1 != 0 {
   839  		err = errnoErr(e1)
   840  	}
   841  	return
   842  }
   843  
   844  func libc_chdir_trampoline()
   845  
   846  //go:linkname libc_chdir libc_chdir
   847  //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
   848  
   849  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   850  
   851  func Chflags(path string, flags int) (err error) {
   852  	var _p0 *byte
   853  	_p0, err = BytePtrFromString(path)
   854  	if err != nil {
   855  		return
   856  	}
   857  	_, _, e1 := syscall_syscall(funcPC(libc_chflags_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   858  	if e1 != 0 {
   859  		err = errnoErr(e1)
   860  	}
   861  	return
   862  }
   863  
   864  func libc_chflags_trampoline()
   865  
   866  //go:linkname libc_chflags libc_chflags
   867  //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
   868  
   869  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   870  
   871  func Chmod(path string, mode uint32) (err error) {
   872  	var _p0 *byte
   873  	_p0, err = BytePtrFromString(path)
   874  	if err != nil {
   875  		return
   876  	}
   877  	_, _, e1 := syscall_syscall(funcPC(libc_chmod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   878  	if e1 != 0 {
   879  		err = errnoErr(e1)
   880  	}
   881  	return
   882  }
   883  
   884  func libc_chmod_trampoline()
   885  
   886  //go:linkname libc_chmod libc_chmod
   887  //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
   888  
   889  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   890  
   891  func Chown(path string, uid int, gid int) (err error) {
   892  	var _p0 *byte
   893  	_p0, err = BytePtrFromString(path)
   894  	if err != nil {
   895  		return
   896  	}
   897  	_, _, e1 := syscall_syscall(funcPC(libc_chown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
   898  	if e1 != 0 {
   899  		err = errnoErr(e1)
   900  	}
   901  	return
   902  }
   903  
   904  func libc_chown_trampoline()
   905  
   906  //go:linkname libc_chown libc_chown
   907  //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
   908  
   909  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   910  
   911  func Chroot(path string) (err error) {
   912  	var _p0 *byte
   913  	_p0, err = BytePtrFromString(path)
   914  	if err != nil {
   915  		return
   916  	}
   917  	_, _, e1 := syscall_syscall(funcPC(libc_chroot_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
   918  	if e1 != 0 {
   919  		err = errnoErr(e1)
   920  	}
   921  	return
   922  }
   923  
   924  func libc_chroot_trampoline()
   925  
   926  //go:linkname libc_chroot libc_chroot
   927  //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
   928  
   929  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   930  
   931  func Close(fd int) (err error) {
   932  	_, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0)
   933  	if e1 != 0 {
   934  		err = errnoErr(e1)
   935  	}
   936  	return
   937  }
   938  
   939  func libc_close_trampoline()
   940  
   941  //go:linkname libc_close libc_close
   942  //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
   943  
   944  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   945  
   946  func Dup(fd int) (nfd int, err error) {
   947  	r0, _, e1 := syscall_syscall(funcPC(libc_dup_trampoline), uintptr(fd), 0, 0)
   948  	nfd = int(r0)
   949  	if e1 != 0 {
   950  		err = errnoErr(e1)
   951  	}
   952  	return
   953  }
   954  
   955  func libc_dup_trampoline()
   956  
   957  //go:linkname libc_dup libc_dup
   958  //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
   959  
   960  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   961  
   962  func Dup2(from int, to int) (err error) {
   963  	_, _, e1 := syscall_syscall(funcPC(libc_dup2_trampoline), uintptr(from), uintptr(to), 0)
   964  	if e1 != 0 {
   965  		err = errnoErr(e1)
   966  	}
   967  	return
   968  }
   969  
   970  func libc_dup2_trampoline()
   971  
   972  //go:linkname libc_dup2 libc_dup2
   973  //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
   974  
   975  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   976  
   977  func Exchangedata(path1 string, path2 string, options int) (err error) {
   978  	var _p0 *byte
   979  	_p0, err = BytePtrFromString(path1)
   980  	if err != nil {
   981  		return
   982  	}
   983  	var _p1 *byte
   984  	_p1, err = BytePtrFromString(path2)
   985  	if err != nil {
   986  		return
   987  	}
   988  	_, _, e1 := syscall_syscall(funcPC(libc_exchangedata_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
   989  	if e1 != 0 {
   990  		err = errnoErr(e1)
   991  	}
   992  	return
   993  }
   994  
   995  func libc_exchangedata_trampoline()
   996  
   997  //go:linkname libc_exchangedata libc_exchangedata
   998  //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
   999  
  1000  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1001  
  1002  func Exit(code int) {
  1003  	syscall_syscall(funcPC(libc_exit_trampoline), uintptr(code), 0, 0)
  1004  	return
  1005  }
  1006  
  1007  func libc_exit_trampoline()
  1008  
  1009  //go:linkname libc_exit libc_exit
  1010  //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
  1011  
  1012  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1013  
  1014  func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
  1015  	var _p0 *byte
  1016  	_p0, err = BytePtrFromString(path)
  1017  	if err != nil {
  1018  		return
  1019  	}
  1020  	_, _, e1 := syscall_syscall6(funcPC(libc_faccessat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
  1021  	if e1 != 0 {
  1022  		err = errnoErr(e1)
  1023  	}
  1024  	return
  1025  }
  1026  
  1027  func libc_faccessat_trampoline()
  1028  
  1029  //go:linkname libc_faccessat libc_faccessat
  1030  //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib"
  1031  
  1032  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1033  
  1034  func Fchdir(fd int) (err error) {
  1035  	_, _, e1 := syscall_syscall(funcPC(libc_fchdir_trampoline), uintptr(fd), 0, 0)
  1036  	if e1 != 0 {
  1037  		err = errnoErr(e1)
  1038  	}
  1039  	return
  1040  }
  1041  
  1042  func libc_fchdir_trampoline()
  1043  
  1044  //go:linkname libc_fchdir libc_fchdir
  1045  //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
  1046  
  1047  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1048  
  1049  func Fchflags(fd int, flags int) (err error) {
  1050  	_, _, e1 := syscall_syscall(funcPC(libc_fchflags_trampoline), uintptr(fd), uintptr(flags), 0)
  1051  	if e1 != 0 {
  1052  		err = errnoErr(e1)
  1053  	}
  1054  	return
  1055  }
  1056  
  1057  func libc_fchflags_trampoline()
  1058  
  1059  //go:linkname libc_fchflags libc_fchflags
  1060  //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
  1061  
  1062  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1063  
  1064  func Fchmod(fd int, mode uint32) (err error) {
  1065  	_, _, e1 := syscall_syscall(funcPC(libc_fchmod_trampoline), uintptr(fd), uintptr(mode), 0)
  1066  	if e1 != 0 {
  1067  		err = errnoErr(e1)
  1068  	}
  1069  	return
  1070  }
  1071  
  1072  func libc_fchmod_trampoline()
  1073  
  1074  //go:linkname libc_fchmod libc_fchmod
  1075  //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
  1076  
  1077  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1078  
  1079  func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
  1080  	var _p0 *byte
  1081  	_p0, err = BytePtrFromString(path)
  1082  	if err != nil {
  1083  		return
  1084  	}
  1085  	_, _, e1 := syscall_syscall6(funcPC(libc_fchmodat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
  1086  	if e1 != 0 {
  1087  		err = errnoErr(e1)
  1088  	}
  1089  	return
  1090  }
  1091  
  1092  func libc_fchmodat_trampoline()
  1093  
  1094  //go:linkname libc_fchmodat libc_fchmodat
  1095  //go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib"
  1096  
  1097  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1098  
  1099  func Fchown(fd int, uid int, gid int) (err error) {
  1100  	_, _, e1 := syscall_syscall(funcPC(libc_fchown_trampoline), uintptr(fd), uintptr(uid), uintptr(gid))
  1101  	if e1 != 0 {
  1102  		err = errnoErr(e1)
  1103  	}
  1104  	return
  1105  }
  1106  
  1107  func libc_fchown_trampoline()
  1108  
  1109  //go:linkname libc_fchown libc_fchown
  1110  //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
  1111  
  1112  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1113  
  1114  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
  1115  	var _p0 *byte
  1116  	_p0, err = BytePtrFromString(path)
  1117  	if err != nil {
  1118  		return
  1119  	}
  1120  	_, _, e1 := syscall_syscall6(funcPC(libc_fchownat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
  1121  	if e1 != 0 {
  1122  		err = errnoErr(e1)
  1123  	}
  1124  	return
  1125  }
  1126  
  1127  func libc_fchownat_trampoline()
  1128  
  1129  //go:linkname libc_fchownat libc_fchownat
  1130  //go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib"
  1131  
  1132  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1133  
  1134  func Flock(fd int, how int) (err error) {
  1135  	_, _, e1 := syscall_syscall(funcPC(libc_flock_trampoline), uintptr(fd), uintptr(how), 0)
  1136  	if e1 != 0 {
  1137  		err = errnoErr(e1)
  1138  	}
  1139  	return
  1140  }
  1141  
  1142  func libc_flock_trampoline()
  1143  
  1144  //go:linkname libc_flock libc_flock
  1145  //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
  1146  
  1147  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1148  
  1149  func Fpathconf(fd int, name int) (val int, err error) {
  1150  	r0, _, e1 := syscall_syscall(funcPC(libc_fpathconf_trampoline), uintptr(fd), uintptr(name), 0)
  1151  	val = int(r0)
  1152  	if e1 != 0 {
  1153  		err = errnoErr(e1)
  1154  	}
  1155  	return
  1156  }
  1157  
  1158  func libc_fpathconf_trampoline()
  1159  
  1160  //go:linkname libc_fpathconf libc_fpathconf
  1161  //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
  1162  
  1163  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1164  
  1165  func Fsync(fd int) (err error) {
  1166  	_, _, e1 := syscall_syscall(funcPC(libc_fsync_trampoline), uintptr(fd), 0, 0)
  1167  	if e1 != 0 {
  1168  		err = errnoErr(e1)
  1169  	}
  1170  	return
  1171  }
  1172  
  1173  func libc_fsync_trampoline()
  1174  
  1175  //go:linkname libc_fsync libc_fsync
  1176  //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
  1177  
  1178  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1179  
  1180  func Ftruncate(fd int, length int64) (err error) {
  1181  	_, _, e1 := syscall_syscall(funcPC(libc_ftruncate_trampoline), uintptr(fd), uintptr(length), uintptr(length>>32))
  1182  	if e1 != 0 {
  1183  		err = errnoErr(e1)
  1184  	}
  1185  	return
  1186  }
  1187  
  1188  func libc_ftruncate_trampoline()
  1189  
  1190  //go:linkname libc_ftruncate libc_ftruncate
  1191  //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
  1192  
  1193  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1194  
  1195  func Getdtablesize() (size int) {
  1196  	r0, _, _ := syscall_syscall(funcPC(libc_getdtablesize_trampoline), 0, 0, 0)
  1197  	size = int(r0)
  1198  	return
  1199  }
  1200  
  1201  func libc_getdtablesize_trampoline()
  1202  
  1203  //go:linkname libc_getdtablesize libc_getdtablesize
  1204  //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
  1205  
  1206  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1207  
  1208  func Getegid() (egid int) {
  1209  	r0, _, _ := syscall_rawSyscall(funcPC(libc_getegid_trampoline), 0, 0, 0)
  1210  	egid = int(r0)
  1211  	return
  1212  }
  1213  
  1214  func libc_getegid_trampoline()
  1215  
  1216  //go:linkname libc_getegid libc_getegid
  1217  //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
  1218  
  1219  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1220  
  1221  func Geteuid() (uid int) {
  1222  	r0, _, _ := syscall_rawSyscall(funcPC(libc_geteuid_trampoline), 0, 0, 0)
  1223  	uid = int(r0)
  1224  	return
  1225  }
  1226  
  1227  func libc_geteuid_trampoline()
  1228  
  1229  //go:linkname libc_geteuid libc_geteuid
  1230  //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
  1231  
  1232  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1233  
  1234  func Getgid() (gid int) {
  1235  	r0, _, _ := syscall_rawSyscall(funcPC(libc_getgid_trampoline), 0, 0, 0)
  1236  	gid = int(r0)
  1237  	return
  1238  }
  1239  
  1240  func libc_getgid_trampoline()
  1241  
  1242  //go:linkname libc_getgid libc_getgid
  1243  //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
  1244  
  1245  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1246  
  1247  func Getpgid(pid int) (pgid int, err error) {
  1248  	r0, _, e1 := syscall_rawSyscall(funcPC(libc_getpgid_trampoline), uintptr(pid), 0, 0)
  1249  	pgid = int(r0)
  1250  	if e1 != 0 {
  1251  		err = errnoErr(e1)
  1252  	}
  1253  	return
  1254  }
  1255  
  1256  func libc_getpgid_trampoline()
  1257  
  1258  //go:linkname libc_getpgid libc_getpgid
  1259  //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
  1260  
  1261  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1262  
  1263  func Getpgrp() (pgrp int) {
  1264  	r0, _, _ := syscall_rawSyscall(funcPC(libc_getpgrp_trampoline), 0, 0, 0)
  1265  	pgrp = int(r0)
  1266  	return
  1267  }
  1268  
  1269  func libc_getpgrp_trampoline()
  1270  
  1271  //go:linkname libc_getpgrp libc_getpgrp
  1272  //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
  1273  
  1274  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1275  
  1276  func Getpid() (pid int) {
  1277  	r0, _, _ := syscall_rawSyscall(funcPC(libc_getpid_trampoline), 0, 0, 0)
  1278  	pid = int(r0)
  1279  	return
  1280  }
  1281  
  1282  func libc_getpid_trampoline()
  1283  
  1284  //go:linkname libc_getpid libc_getpid
  1285  //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
  1286  
  1287  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1288  
  1289  func Getppid() (ppid int) {
  1290  	r0, _, _ := syscall_rawSyscall(funcPC(libc_getppid_trampoline), 0, 0, 0)
  1291  	ppid = int(r0)
  1292  	return
  1293  }
  1294  
  1295  func libc_getppid_trampoline()
  1296  
  1297  //go:linkname libc_getppid libc_getppid
  1298  //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
  1299  
  1300  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1301  
  1302  func Getpriority(which int, who int) (prio int, err error) {
  1303  	r0, _, e1 := syscall_syscall(funcPC(libc_getpriority_trampoline), uintptr(which), uintptr(who), 0)
  1304  	prio = int(r0)
  1305  	if e1 != 0 {
  1306  		err = errnoErr(e1)
  1307  	}
  1308  	return
  1309  }
  1310  
  1311  func libc_getpriority_trampoline()
  1312  
  1313  //go:linkname libc_getpriority libc_getpriority
  1314  //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
  1315  
  1316  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1317  
  1318  func Getrlimit(which int, lim *Rlimit) (err error) {
  1319  	_, _, e1 := syscall_rawSyscall(funcPC(libc_getrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
  1320  	if e1 != 0 {
  1321  		err = errnoErr(e1)
  1322  	}
  1323  	return
  1324  }
  1325  
  1326  func libc_getrlimit_trampoline()
  1327  
  1328  //go:linkname libc_getrlimit libc_getrlimit
  1329  //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
  1330  
  1331  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1332  
  1333  func Getrusage(who int, rusage *Rusage) (err error) {
  1334  	_, _, e1 := syscall_rawSyscall(funcPC(libc_getrusage_trampoline), uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
  1335  	if e1 != 0 {
  1336  		err = errnoErr(e1)
  1337  	}
  1338  	return
  1339  }
  1340  
  1341  func libc_getrusage_trampoline()
  1342  
  1343  //go:linkname libc_getrusage libc_getrusage
  1344  //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
  1345  
  1346  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1347  
  1348  func Getsid(pid int) (sid int, err error) {
  1349  	r0, _, e1 := syscall_rawSyscall(funcPC(libc_getsid_trampoline), uintptr(pid), 0, 0)
  1350  	sid = int(r0)
  1351  	if e1 != 0 {
  1352  		err = errnoErr(e1)
  1353  	}
  1354  	return
  1355  }
  1356  
  1357  func libc_getsid_trampoline()
  1358  
  1359  //go:linkname libc_getsid libc_getsid
  1360  //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
  1361  
  1362  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1363  
  1364  func Getuid() (uid int) {
  1365  	r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
  1366  	uid = int(r0)
  1367  	return
  1368  }
  1369  
  1370  func libc_getuid_trampoline()
  1371  
  1372  //go:linkname libc_getuid libc_getuid
  1373  //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
  1374  
  1375  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1376  
  1377  func Issetugid() (tainted bool) {
  1378  	r0, _, _ := syscall_rawSyscall(funcPC(libc_issetugid_trampoline), 0, 0, 0)
  1379  	tainted = bool(r0 != 0)
  1380  	return
  1381  }
  1382  
  1383  func libc_issetugid_trampoline()
  1384  
  1385  //go:linkname libc_issetugid libc_issetugid
  1386  //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
  1387  
  1388  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1389  
  1390  func Kqueue() (fd int, err error) {
  1391  	r0, _, e1 := syscall_syscall(funcPC(libc_kqueue_trampoline), 0, 0, 0)
  1392  	fd = int(r0)
  1393  	if e1 != 0 {
  1394  		err = errnoErr(e1)
  1395  	}
  1396  	return
  1397  }
  1398  
  1399  func libc_kqueue_trampoline()
  1400  
  1401  //go:linkname libc_kqueue libc_kqueue
  1402  //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
  1403  
  1404  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1405  
  1406  func Lchown(path string, uid int, gid int) (err error) {
  1407  	var _p0 *byte
  1408  	_p0, err = BytePtrFromString(path)
  1409  	if err != nil {
  1410  		return
  1411  	}
  1412  	_, _, e1 := syscall_syscall(funcPC(libc_lchown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  1413  	if e1 != 0 {
  1414  		err = errnoErr(e1)
  1415  	}
  1416  	return
  1417  }
  1418  
  1419  func libc_lchown_trampoline()
  1420  
  1421  //go:linkname libc_lchown libc_lchown
  1422  //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
  1423  
  1424  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1425  
  1426  func Link(path string, link string) (err error) {
  1427  	var _p0 *byte
  1428  	_p0, err = BytePtrFromString(path)
  1429  	if err != nil {
  1430  		return
  1431  	}
  1432  	var _p1 *byte
  1433  	_p1, err = BytePtrFromString(link)
  1434  	if err != nil {
  1435  		return
  1436  	}
  1437  	_, _, e1 := syscall_syscall(funcPC(libc_link_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1438  	if e1 != 0 {
  1439  		err = errnoErr(e1)
  1440  	}
  1441  	return
  1442  }
  1443  
  1444  func libc_link_trampoline()
  1445  
  1446  //go:linkname libc_link libc_link
  1447  //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
  1448  
  1449  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1450  
  1451  func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
  1452  	var _p0 *byte
  1453  	_p0, err = BytePtrFromString(path)
  1454  	if err != nil {
  1455  		return
  1456  	}
  1457  	var _p1 *byte
  1458  	_p1, err = BytePtrFromString(link)
  1459  	if err != nil {
  1460  		return
  1461  	}
  1462  	_, _, e1 := syscall_syscall6(funcPC(libc_linkat_trampoline), uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
  1463  	if e1 != 0 {
  1464  		err = errnoErr(e1)
  1465  	}
  1466  	return
  1467  }
  1468  
  1469  func libc_linkat_trampoline()
  1470  
  1471  //go:linkname libc_linkat libc_linkat
  1472  //go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib"
  1473  
  1474  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1475  
  1476  func Listen(s int, backlog int) (err error) {
  1477  	_, _, e1 := syscall_syscall(funcPC(libc_listen_trampoline), uintptr(s), uintptr(backlog), 0)
  1478  	if e1 != 0 {
  1479  		err = errnoErr(e1)
  1480  	}
  1481  	return
  1482  }
  1483  
  1484  func libc_listen_trampoline()
  1485  
  1486  //go:linkname libc_listen libc_listen
  1487  //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
  1488  
  1489  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1490  
  1491  func Mkdir(path string, mode uint32) (err error) {
  1492  	var _p0 *byte
  1493  	_p0, err = BytePtrFromString(path)
  1494  	if err != nil {
  1495  		return
  1496  	}
  1497  	_, _, e1 := syscall_syscall(funcPC(libc_mkdir_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  1498  	if e1 != 0 {
  1499  		err = errnoErr(e1)
  1500  	}
  1501  	return
  1502  }
  1503  
  1504  func libc_mkdir_trampoline()
  1505  
  1506  //go:linkname libc_mkdir libc_mkdir
  1507  //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
  1508  
  1509  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1510  
  1511  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1512  	var _p0 *byte
  1513  	_p0, err = BytePtrFromString(path)
  1514  	if err != nil {
  1515  		return
  1516  	}
  1517  	_, _, e1 := syscall_syscall(funcPC(libc_mkdirat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1518  	if e1 != 0 {
  1519  		err = errnoErr(e1)
  1520  	}
  1521  	return
  1522  }
  1523  
  1524  func libc_mkdirat_trampoline()
  1525  
  1526  //go:linkname libc_mkdirat libc_mkdirat
  1527  //go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib"
  1528  
  1529  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1530  
  1531  func Mkfifo(path string, mode uint32) (err error) {
  1532  	var _p0 *byte
  1533  	_p0, err = BytePtrFromString(path)
  1534  	if err != nil {
  1535  		return
  1536  	}
  1537  	_, _, e1 := syscall_syscall(funcPC(libc_mkfifo_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  1538  	if e1 != 0 {
  1539  		err = errnoErr(e1)
  1540  	}
  1541  	return
  1542  }
  1543  
  1544  func libc_mkfifo_trampoline()
  1545  
  1546  //go:linkname libc_mkfifo libc_mkfifo
  1547  //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
  1548  
  1549  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1550  
  1551  func Mknod(path string, mode uint32, dev int) (err error) {
  1552  	var _p0 *byte
  1553  	_p0, err = BytePtrFromString(path)
  1554  	if err != nil {
  1555  		return
  1556  	}
  1557  	_, _, e1 := syscall_syscall(funcPC(libc_mknod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
  1558  	if e1 != 0 {
  1559  		err = errnoErr(e1)
  1560  	}
  1561  	return
  1562  }
  1563  
  1564  func libc_mknod_trampoline()
  1565  
  1566  //go:linkname libc_mknod libc_mknod
  1567  //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
  1568  
  1569  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1570  
  1571  func Open(path string, mode int, perm uint32) (fd int, err error) {
  1572  	var _p0 *byte
  1573  	_p0, err = BytePtrFromString(path)
  1574  	if err != nil {
  1575  		return
  1576  	}
  1577  	r0, _, e1 := syscall_syscall(funcPC(libc_open_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
  1578  	fd = int(r0)
  1579  	if e1 != 0 {
  1580  		err = errnoErr(e1)
  1581  	}
  1582  	return
  1583  }
  1584  
  1585  func libc_open_trampoline()
  1586  
  1587  //go:linkname libc_open libc_open
  1588  //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
  1589  
  1590  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1591  
  1592  func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
  1593  	var _p0 *byte
  1594  	_p0, err = BytePtrFromString(path)
  1595  	if err != nil {
  1596  		return
  1597  	}
  1598  	r0, _, e1 := syscall_syscall6(funcPC(libc_openat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
  1599  	fd = int(r0)
  1600  	if e1 != 0 {
  1601  		err = errnoErr(e1)
  1602  	}
  1603  	return
  1604  }
  1605  
  1606  func libc_openat_trampoline()
  1607  
  1608  //go:linkname libc_openat libc_openat
  1609  //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
  1610  
  1611  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1612  
  1613  func Pathconf(path string, name int) (val int, err error) {
  1614  	var _p0 *byte
  1615  	_p0, err = BytePtrFromString(path)
  1616  	if err != nil {
  1617  		return
  1618  	}
  1619  	r0, _, e1 := syscall_syscall(funcPC(libc_pathconf_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
  1620  	val = int(r0)
  1621  	if e1 != 0 {
  1622  		err = errnoErr(e1)
  1623  	}
  1624  	return
  1625  }
  1626  
  1627  func libc_pathconf_trampoline()
  1628  
  1629  //go:linkname libc_pathconf libc_pathconf
  1630  //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
  1631  
  1632  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1633  
  1634  func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1635  	var _p0 unsafe.Pointer
  1636  	if len(p) > 0 {
  1637  		_p0 = unsafe.Pointer(&p[0])
  1638  	} else {
  1639  		_p0 = unsafe.Pointer(&_zero)
  1640  	}
  1641  	r0, _, e1 := syscall_syscall6(funcPC(libc_pread_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
  1642  	n = int(r0)
  1643  	if e1 != 0 {
  1644  		err = errnoErr(e1)
  1645  	}
  1646  	return
  1647  }
  1648  
  1649  func libc_pread_trampoline()
  1650  
  1651  //go:linkname libc_pread libc_pread
  1652  //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
  1653  
  1654  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1655  
  1656  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1657  	var _p0 unsafe.Pointer
  1658  	if len(p) > 0 {
  1659  		_p0 = unsafe.Pointer(&p[0])
  1660  	} else {
  1661  		_p0 = unsafe.Pointer(&_zero)
  1662  	}
  1663  	r0, _, e1 := syscall_syscall6(funcPC(libc_pwrite_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
  1664  	n = int(r0)
  1665  	if e1 != 0 {
  1666  		err = errnoErr(e1)
  1667  	}
  1668  	return
  1669  }
  1670  
  1671  func libc_pwrite_trampoline()
  1672  
  1673  //go:linkname libc_pwrite libc_pwrite
  1674  //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
  1675  
  1676  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1677  
  1678  func read(fd int, p []byte) (n int, err error) {
  1679  	var _p0 unsafe.Pointer
  1680  	if len(p) > 0 {
  1681  		_p0 = unsafe.Pointer(&p[0])
  1682  	} else {
  1683  		_p0 = unsafe.Pointer(&_zero)
  1684  	}
  1685  	r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1686  	n = int(r0)
  1687  	if e1 != 0 {
  1688  		err = errnoErr(e1)
  1689  	}
  1690  	return
  1691  }
  1692  
  1693  func libc_read_trampoline()
  1694  
  1695  //go:linkname libc_read libc_read
  1696  //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
  1697  
  1698  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1699  
  1700  func Readlink(path string, buf []byte) (n int, err error) {
  1701  	var _p0 *byte
  1702  	_p0, err = BytePtrFromString(path)
  1703  	if err != nil {
  1704  		return
  1705  	}
  1706  	var _p1 unsafe.Pointer
  1707  	if len(buf) > 0 {
  1708  		_p1 = unsafe.Pointer(&buf[0])
  1709  	} else {
  1710  		_p1 = unsafe.Pointer(&_zero)
  1711  	}
  1712  	r0, _, e1 := syscall_syscall(funcPC(libc_readlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
  1713  	n = int(r0)
  1714  	if e1 != 0 {
  1715  		err = errnoErr(e1)
  1716  	}
  1717  	return
  1718  }
  1719  
  1720  func libc_readlink_trampoline()
  1721  
  1722  //go:linkname libc_readlink libc_readlink
  1723  //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
  1724  
  1725  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1726  
  1727  func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
  1728  	var _p0 *byte
  1729  	_p0, err = BytePtrFromString(path)
  1730  	if err != nil {
  1731  		return
  1732  	}
  1733  	var _p1 unsafe.Pointer
  1734  	if len(buf) > 0 {
  1735  		_p1 = unsafe.Pointer(&buf[0])
  1736  	} else {
  1737  		_p1 = unsafe.Pointer(&_zero)
  1738  	}
  1739  	r0, _, e1 := syscall_syscall6(funcPC(libc_readlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
  1740  	n = int(r0)
  1741  	if e1 != 0 {
  1742  		err = errnoErr(e1)
  1743  	}
  1744  	return
  1745  }
  1746  
  1747  func libc_readlinkat_trampoline()
  1748  
  1749  //go:linkname libc_readlinkat libc_readlinkat
  1750  //go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib"
  1751  
  1752  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1753  
  1754  func Rename(from string, to string) (err error) {
  1755  	var _p0 *byte
  1756  	_p0, err = BytePtrFromString(from)
  1757  	if err != nil {
  1758  		return
  1759  	}
  1760  	var _p1 *byte
  1761  	_p1, err = BytePtrFromString(to)
  1762  	if err != nil {
  1763  		return
  1764  	}
  1765  	_, _, e1 := syscall_syscall(funcPC(libc_rename_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1766  	if e1 != 0 {
  1767  		err = errnoErr(e1)
  1768  	}
  1769  	return
  1770  }
  1771  
  1772  func libc_rename_trampoline()
  1773  
  1774  //go:linkname libc_rename libc_rename
  1775  //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
  1776  
  1777  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1778  
  1779  func Renameat(fromfd int, from string, tofd int, to string) (err error) {
  1780  	var _p0 *byte
  1781  	_p0, err = BytePtrFromString(from)
  1782  	if err != nil {
  1783  		return
  1784  	}
  1785  	var _p1 *byte
  1786  	_p1, err = BytePtrFromString(to)
  1787  	if err != nil {
  1788  		return
  1789  	}
  1790  	_, _, e1 := syscall_syscall6(funcPC(libc_renameat_trampoline), uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1791  	if e1 != 0 {
  1792  		err = errnoErr(e1)
  1793  	}
  1794  	return
  1795  }
  1796  
  1797  func libc_renameat_trampoline()
  1798  
  1799  //go:linkname libc_renameat libc_renameat
  1800  //go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib"
  1801  
  1802  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1803  
  1804  func Revoke(path string) (err error) {
  1805  	var _p0 *byte
  1806  	_p0, err = BytePtrFromString(path)
  1807  	if err != nil {
  1808  		return
  1809  	}
  1810  	_, _, e1 := syscall_syscall(funcPC(libc_revoke_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  1811  	if e1 != 0 {
  1812  		err = errnoErr(e1)
  1813  	}
  1814  	return
  1815  }
  1816  
  1817  func libc_revoke_trampoline()
  1818  
  1819  //go:linkname libc_revoke libc_revoke
  1820  //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
  1821  
  1822  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1823  
  1824  func Rmdir(path string) (err error) {
  1825  	var _p0 *byte
  1826  	_p0, err = BytePtrFromString(path)
  1827  	if err != nil {
  1828  		return
  1829  	}
  1830  	_, _, e1 := syscall_syscall(funcPC(libc_rmdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  1831  	if e1 != 0 {
  1832  		err = errnoErr(e1)
  1833  	}
  1834  	return
  1835  }
  1836  
  1837  func libc_rmdir_trampoline()
  1838  
  1839  //go:linkname libc_rmdir libc_rmdir
  1840  //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
  1841  
  1842  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1843  
  1844  func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
  1845  	r0, r1, e1 := syscall_syscall6(funcPC(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0)
  1846  	newoffset = int64(int64(r1)<<32 | int64(r0))
  1847  	if e1 != 0 {
  1848  		err = errnoErr(e1)
  1849  	}
  1850  	return
  1851  }
  1852  
  1853  func libc_lseek_trampoline()
  1854  
  1855  //go:linkname libc_lseek libc_lseek
  1856  //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
  1857  
  1858  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1859  
  1860  func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
  1861  	_, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1862  	if e1 != 0 {
  1863  		err = errnoErr(e1)
  1864  	}
  1865  	return
  1866  }
  1867  
  1868  func libc_select_trampoline()
  1869  
  1870  //go:linkname libc_select libc_select
  1871  //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
  1872  
  1873  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1874  
  1875  func Setegid(egid int) (err error) {
  1876  	_, _, e1 := syscall_syscall(funcPC(libc_setegid_trampoline), uintptr(egid), 0, 0)
  1877  	if e1 != 0 {
  1878  		err = errnoErr(e1)
  1879  	}
  1880  	return
  1881  }
  1882  
  1883  func libc_setegid_trampoline()
  1884  
  1885  //go:linkname libc_setegid libc_setegid
  1886  //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
  1887  
  1888  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1889  
  1890  func Seteuid(euid int) (err error) {
  1891  	_, _, e1 := syscall_rawSyscall(funcPC(libc_seteuid_trampoline), uintptr(euid), 0, 0)
  1892  	if e1 != 0 {
  1893  		err = errnoErr(e1)
  1894  	}
  1895  	return
  1896  }
  1897  
  1898  func libc_seteuid_trampoline()
  1899  
  1900  //go:linkname libc_seteuid libc_seteuid
  1901  //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
  1902  
  1903  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1904  
  1905  func Setgid(gid int) (err error) {
  1906  	_, _, e1 := syscall_rawSyscall(funcPC(libc_setgid_trampoline), uintptr(gid), 0, 0)
  1907  	if e1 != 0 {
  1908  		err = errnoErr(e1)
  1909  	}
  1910  	return
  1911  }
  1912  
  1913  func libc_setgid_trampoline()
  1914  
  1915  //go:linkname libc_setgid libc_setgid
  1916  //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
  1917  
  1918  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1919  
  1920  func Setlogin(name string) (err error) {
  1921  	var _p0 *byte
  1922  	_p0, err = BytePtrFromString(name)
  1923  	if err != nil {
  1924  		return
  1925  	}
  1926  	_, _, e1 := syscall_syscall(funcPC(libc_setlogin_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  1927  	if e1 != 0 {
  1928  		err = errnoErr(e1)
  1929  	}
  1930  	return
  1931  }
  1932  
  1933  func libc_setlogin_trampoline()
  1934  
  1935  //go:linkname libc_setlogin libc_setlogin
  1936  //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
  1937  
  1938  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1939  
  1940  func Setpgid(pid int, pgid int) (err error) {
  1941  	_, _, e1 := syscall_rawSyscall(funcPC(libc_setpgid_trampoline), uintptr(pid), uintptr(pgid), 0)
  1942  	if e1 != 0 {
  1943  		err = errnoErr(e1)
  1944  	}
  1945  	return
  1946  }
  1947  
  1948  func libc_setpgid_trampoline()
  1949  
  1950  //go:linkname libc_setpgid libc_setpgid
  1951  //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
  1952  
  1953  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1954  
  1955  func Setpriority(which int, who int, prio int) (err error) {
  1956  	_, _, e1 := syscall_syscall(funcPC(libc_setpriority_trampoline), uintptr(which), uintptr(who), uintptr(prio))
  1957  	if e1 != 0 {
  1958  		err = errnoErr(e1)
  1959  	}
  1960  	return
  1961  }
  1962  
  1963  func libc_setpriority_trampoline()
  1964  
  1965  //go:linkname libc_setpriority libc_setpriority
  1966  //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
  1967  
  1968  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1969  
  1970  func Setprivexec(flag int) (err error) {
  1971  	_, _, e1 := syscall_syscall(funcPC(libc_setprivexec_trampoline), uintptr(flag), 0, 0)
  1972  	if e1 != 0 {
  1973  		err = errnoErr(e1)
  1974  	}
  1975  	return
  1976  }
  1977  
  1978  func libc_setprivexec_trampoline()
  1979  
  1980  //go:linkname libc_setprivexec libc_setprivexec
  1981  //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
  1982  
  1983  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1984  
  1985  func Setregid(rgid int, egid int) (err error) {
  1986  	_, _, e1 := syscall_rawSyscall(funcPC(libc_setregid_trampoline), uintptr(rgid), uintptr(egid), 0)
  1987  	if e1 != 0 {
  1988  		err = errnoErr(e1)
  1989  	}
  1990  	return
  1991  }
  1992  
  1993  func libc_setregid_trampoline()
  1994  
  1995  //go:linkname libc_setregid libc_setregid
  1996  //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
  1997  
  1998  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1999  
  2000  func Setreuid(ruid int, euid int) (err error) {
  2001  	_, _, e1 := syscall_rawSyscall(funcPC(libc_setreuid_trampoline), uintptr(ruid), uintptr(euid), 0)
  2002  	if e1 != 0 {
  2003  		err = errnoErr(e1)
  2004  	}
  2005  	return
  2006  }
  2007  
  2008  func libc_setreuid_trampoline()
  2009  
  2010  //go:linkname libc_setreuid libc_setreuid
  2011  //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
  2012  
  2013  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2014  
  2015  func Setrlimit(which int, lim *Rlimit) (err error) {
  2016  	_, _, e1 := syscall_rawSyscall(funcPC(libc_setrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
  2017  	if e1 != 0 {
  2018  		err = errnoErr(e1)
  2019  	}
  2020  	return
  2021  }
  2022  
  2023  func libc_setrlimit_trampoline()
  2024  
  2025  //go:linkname libc_setrlimit libc_setrlimit
  2026  //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
  2027  
  2028  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2029  
  2030  func Setsid() (pid int, err error) {
  2031  	r0, _, e1 := syscall_rawSyscall(funcPC(libc_setsid_trampoline), 0, 0, 0)
  2032  	pid = int(r0)
  2033  	if e1 != 0 {
  2034  		err = errnoErr(e1)
  2035  	}
  2036  	return
  2037  }
  2038  
  2039  func libc_setsid_trampoline()
  2040  
  2041  //go:linkname libc_setsid libc_setsid
  2042  //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
  2043  
  2044  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2045  
  2046  func Settimeofday(tp *Timeval) (err error) {
  2047  	_, _, e1 := syscall_rawSyscall(funcPC(libc_settimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
  2048  	if e1 != 0 {
  2049  		err = errnoErr(e1)
  2050  	}
  2051  	return
  2052  }
  2053  
  2054  func libc_settimeofday_trampoline()
  2055  
  2056  //go:linkname libc_settimeofday libc_settimeofday
  2057  //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
  2058  
  2059  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2060  
  2061  func Setuid(uid int) (err error) {
  2062  	_, _, e1 := syscall_rawSyscall(funcPC(libc_setuid_trampoline), uintptr(uid), 0, 0)
  2063  	if e1 != 0 {
  2064  		err = errnoErr(e1)
  2065  	}
  2066  	return
  2067  }
  2068  
  2069  func libc_setuid_trampoline()
  2070  
  2071  //go:linkname libc_setuid libc_setuid
  2072  //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
  2073  
  2074  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2075  
  2076  func Symlink(path string, link string) (err error) {
  2077  	var _p0 *byte
  2078  	_p0, err = BytePtrFromString(path)
  2079  	if err != nil {
  2080  		return
  2081  	}
  2082  	var _p1 *byte
  2083  	_p1, err = BytePtrFromString(link)
  2084  	if err != nil {
  2085  		return
  2086  	}
  2087  	_, _, e1 := syscall_syscall(funcPC(libc_symlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  2088  	if e1 != 0 {
  2089  		err = errnoErr(e1)
  2090  	}
  2091  	return
  2092  }
  2093  
  2094  func libc_symlink_trampoline()
  2095  
  2096  //go:linkname libc_symlink libc_symlink
  2097  //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
  2098  
  2099  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2100  
  2101  func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
  2102  	var _p0 *byte
  2103  	_p0, err = BytePtrFromString(oldpath)
  2104  	if err != nil {
  2105  		return
  2106  	}
  2107  	var _p1 *byte
  2108  	_p1, err = BytePtrFromString(newpath)
  2109  	if err != nil {
  2110  		return
  2111  	}
  2112  	_, _, e1 := syscall_syscall(funcPC(libc_symlinkat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
  2113  	if e1 != 0 {
  2114  		err = errnoErr(e1)
  2115  	}
  2116  	return
  2117  }
  2118  
  2119  func libc_symlinkat_trampoline()
  2120  
  2121  //go:linkname libc_symlinkat libc_symlinkat
  2122  //go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib"
  2123  
  2124  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2125  
  2126  func Sync() (err error) {
  2127  	_, _, e1 := syscall_syscall(funcPC(libc_sync_trampoline), 0, 0, 0)
  2128  	if e1 != 0 {
  2129  		err = errnoErr(e1)
  2130  	}
  2131  	return
  2132  }
  2133  
  2134  func libc_sync_trampoline()
  2135  
  2136  //go:linkname libc_sync libc_sync
  2137  //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
  2138  
  2139  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2140  
  2141  func Truncate(path string, length int64) (err error) {
  2142  	var _p0 *byte
  2143  	_p0, err = BytePtrFromString(path)
  2144  	if err != nil {
  2145  		return
  2146  	}
  2147  	_, _, e1 := syscall_syscall(funcPC(libc_truncate_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32))
  2148  	if e1 != 0 {
  2149  		err = errnoErr(e1)
  2150  	}
  2151  	return
  2152  }
  2153  
  2154  func libc_truncate_trampoline()
  2155  
  2156  //go:linkname libc_truncate libc_truncate
  2157  //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
  2158  
  2159  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2160  
  2161  func Umask(newmask int) (oldmask int) {
  2162  	r0, _, _ := syscall_syscall(funcPC(libc_umask_trampoline), uintptr(newmask), 0, 0)
  2163  	oldmask = int(r0)
  2164  	return
  2165  }
  2166  
  2167  func libc_umask_trampoline()
  2168  
  2169  //go:linkname libc_umask libc_umask
  2170  //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
  2171  
  2172  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2173  
  2174  func Undelete(path string) (err error) {
  2175  	var _p0 *byte
  2176  	_p0, err = BytePtrFromString(path)
  2177  	if err != nil {
  2178  		return
  2179  	}
  2180  	_, _, e1 := syscall_syscall(funcPC(libc_undelete_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  2181  	if e1 != 0 {
  2182  		err = errnoErr(e1)
  2183  	}
  2184  	return
  2185  }
  2186  
  2187  func libc_undelete_trampoline()
  2188  
  2189  //go:linkname libc_undelete libc_undelete
  2190  //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
  2191  
  2192  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2193  
  2194  func Unlink(path string) (err error) {
  2195  	var _p0 *byte
  2196  	_p0, err = BytePtrFromString(path)
  2197  	if err != nil {
  2198  		return
  2199  	}
  2200  	_, _, e1 := syscall_syscall(funcPC(libc_unlink_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
  2201  	if e1 != 0 {
  2202  		err = errnoErr(e1)
  2203  	}
  2204  	return
  2205  }
  2206  
  2207  func libc_unlink_trampoline()
  2208  
  2209  //go:linkname libc_unlink libc_unlink
  2210  //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
  2211  
  2212  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2213  
  2214  func Unlinkat(dirfd int, path string, flags int) (err error) {
  2215  	var _p0 *byte
  2216  	_p0, err = BytePtrFromString(path)
  2217  	if err != nil {
  2218  		return
  2219  	}
  2220  	_, _, e1 := syscall_syscall(funcPC(libc_unlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
  2221  	if e1 != 0 {
  2222  		err = errnoErr(e1)
  2223  	}
  2224  	return
  2225  }
  2226  
  2227  func libc_unlinkat_trampoline()
  2228  
  2229  //go:linkname libc_unlinkat libc_unlinkat
  2230  //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
  2231  
  2232  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2233  
  2234  func Unmount(path string, flags int) (err error) {
  2235  	var _p0 *byte
  2236  	_p0, err = BytePtrFromString(path)
  2237  	if err != nil {
  2238  		return
  2239  	}
  2240  	_, _, e1 := syscall_syscall(funcPC(libc_unmount_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  2241  	if e1 != 0 {
  2242  		err = errnoErr(e1)
  2243  	}
  2244  	return
  2245  }
  2246  
  2247  func libc_unmount_trampoline()
  2248  
  2249  //go:linkname libc_unmount libc_unmount
  2250  //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
  2251  
  2252  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2253  
  2254  func write(fd int, p []byte) (n int, err error) {
  2255  	var _p0 unsafe.Pointer
  2256  	if len(p) > 0 {
  2257  		_p0 = unsafe.Pointer(&p[0])
  2258  	} else {
  2259  		_p0 = unsafe.Pointer(&_zero)
  2260  	}
  2261  	r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
  2262  	n = int(r0)
  2263  	if e1 != 0 {
  2264  		err = errnoErr(e1)
  2265  	}
  2266  	return
  2267  }
  2268  
  2269  func libc_write_trampoline()
  2270  
  2271  //go:linkname libc_write libc_write
  2272  //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
  2273  
  2274  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2275  
  2276  func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  2277  	r0, _, e1 := syscall_syscall9(funcPC(libc_mmap_trampoline), uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0)
  2278  	ret = uintptr(r0)
  2279  	if e1 != 0 {
  2280  		err = errnoErr(e1)
  2281  	}
  2282  	return
  2283  }
  2284  
  2285  func libc_mmap_trampoline()
  2286  
  2287  //go:linkname libc_mmap libc_mmap
  2288  //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
  2289  
  2290  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2291  
  2292  func munmap(addr uintptr, length uintptr) (err error) {
  2293  	_, _, e1 := syscall_syscall(funcPC(libc_munmap_trampoline), uintptr(addr), uintptr(length), 0)
  2294  	if e1 != 0 {
  2295  		err = errnoErr(e1)
  2296  	}
  2297  	return
  2298  }
  2299  
  2300  func libc_munmap_trampoline()
  2301  
  2302  //go:linkname libc_munmap libc_munmap
  2303  //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
  2304  
  2305  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2306  
  2307  func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
  2308  	r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  2309  	n = int(r0)
  2310  	if e1 != 0 {
  2311  		err = errnoErr(e1)
  2312  	}
  2313  	return
  2314  }
  2315  
  2316  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2317  
  2318  func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
  2319  	r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  2320  	n = int(r0)
  2321  	if e1 != 0 {
  2322  		err = errnoErr(e1)
  2323  	}
  2324  	return
  2325  }
  2326  
  2327  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2328  
  2329  func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
  2330  	_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
  2331  	if e1 != 0 {
  2332  		err = errnoErr(e1)
  2333  	}
  2334  	return
  2335  }
  2336  
  2337  func libc_ptrace_trampoline()
  2338  
  2339  //go:linkname libc_ptrace libc_ptrace
  2340  //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
  2341  
  2342  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2343  
  2344  func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
  2345  	r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
  2346  	sec = int32(r0)
  2347  	usec = int32(r1)
  2348  	if e1 != 0 {
  2349  		err = errnoErr(e1)
  2350  	}
  2351  	return
  2352  }
  2353  
  2354  func libc_gettimeofday_trampoline()
  2355  
  2356  //go:linkname libc_gettimeofday libc_gettimeofday
  2357  //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
  2358  
  2359  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2360  
  2361  func Fstat(fd int, stat *Stat_t) (err error) {
  2362  	_, _, e1 := syscall_syscall(funcPC(libc_fstat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  2363  	if e1 != 0 {
  2364  		err = errnoErr(e1)
  2365  	}
  2366  	return
  2367  }
  2368  
  2369  func libc_fstat64_trampoline()
  2370  
  2371  //go:linkname libc_fstat64 libc_fstat64
  2372  //go:cgo_import_dynamic libc_fstat64 fstat64 "/usr/lib/libSystem.B.dylib"
  2373  
  2374  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2375  
  2376  func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
  2377  	var _p0 *byte
  2378  	_p0, err = BytePtrFromString(path)
  2379  	if err != nil {
  2380  		return
  2381  	}
  2382  	_, _, e1 := syscall_syscall6(funcPC(libc_fstatat64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  2383  	if e1 != 0 {
  2384  		err = errnoErr(e1)
  2385  	}
  2386  	return
  2387  }
  2388  
  2389  func libc_fstatat64_trampoline()
  2390  
  2391  //go:linkname libc_fstatat64 libc_fstatat64
  2392  //go:cgo_import_dynamic libc_fstatat64 fstatat64 "/usr/lib/libSystem.B.dylib"
  2393  
  2394  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2395  
  2396  func Fstatfs(fd int, stat *Statfs_t) (err error) {
  2397  	_, _, e1 := syscall_syscall(funcPC(libc_fstatfs64_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  2398  	if e1 != 0 {
  2399  		err = errnoErr(e1)
  2400  	}
  2401  	return
  2402  }
  2403  
  2404  func libc_fstatfs64_trampoline()
  2405  
  2406  //go:linkname libc_fstatfs64 libc_fstatfs64
  2407  //go:cgo_import_dynamic libc_fstatfs64 fstatfs64 "/usr/lib/libSystem.B.dylib"
  2408  
  2409  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2410  
  2411  func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
  2412  	var _p0 unsafe.Pointer
  2413  	if len(buf) > 0 {
  2414  		_p0 = unsafe.Pointer(&buf[0])
  2415  	} else {
  2416  		_p0 = unsafe.Pointer(&_zero)
  2417  	}
  2418  	r0, _, e1 := syscall_syscall6(funcPC(libc___getdirentries64_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
  2419  	n = int(r0)
  2420  	if e1 != 0 {
  2421  		err = errnoErr(e1)
  2422  	}
  2423  	return
  2424  }
  2425  
  2426  func libc___getdirentries64_trampoline()
  2427  
  2428  //go:linkname libc___getdirentries64 libc___getdirentries64
  2429  //go:cgo_import_dynamic libc___getdirentries64 __getdirentries64 "/usr/lib/libSystem.B.dylib"
  2430  
  2431  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2432  
  2433  func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
  2434  	r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat64_trampoline), uintptr(buf), uintptr(size), uintptr(flags))
  2435  	n = int(r0)
  2436  	if e1 != 0 {
  2437  		err = errnoErr(e1)
  2438  	}
  2439  	return
  2440  }
  2441  
  2442  func libc_getfsstat64_trampoline()
  2443  
  2444  //go:linkname libc_getfsstat64 libc_getfsstat64
  2445  //go:cgo_import_dynamic libc_getfsstat64 getfsstat64 "/usr/lib/libSystem.B.dylib"
  2446  
  2447  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2448  
  2449  func Lstat(path string, stat *Stat_t) (err error) {
  2450  	var _p0 *byte
  2451  	_p0, err = BytePtrFromString(path)
  2452  	if err != nil {
  2453  		return
  2454  	}
  2455  	_, _, e1 := syscall_syscall(funcPC(libc_lstat64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  2456  	if e1 != 0 {
  2457  		err = errnoErr(e1)
  2458  	}
  2459  	return
  2460  }
  2461  
  2462  func libc_lstat64_trampoline()
  2463  
  2464  //go:linkname libc_lstat64 libc_lstat64
  2465  //go:cgo_import_dynamic libc_lstat64 lstat64 "/usr/lib/libSystem.B.dylib"
  2466  
  2467  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2468  
  2469  func Stat(path string, stat *Stat_t) (err error) {
  2470  	var _p0 *byte
  2471  	_p0, err = BytePtrFromString(path)
  2472  	if err != nil {
  2473  		return
  2474  	}
  2475  	_, _, e1 := syscall_syscall(funcPC(libc_stat64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  2476  	if e1 != 0 {
  2477  		err = errnoErr(e1)
  2478  	}
  2479  	return
  2480  }
  2481  
  2482  func libc_stat64_trampoline()
  2483  
  2484  //go:linkname libc_stat64 libc_stat64
  2485  //go:cgo_import_dynamic libc_stat64 stat64 "/usr/lib/libSystem.B.dylib"
  2486  
  2487  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2488  
  2489  func Statfs(path string, stat *Statfs_t) (err error) {
  2490  	var _p0 *byte
  2491  	_p0, err = BytePtrFromString(path)
  2492  	if err != nil {
  2493  		return
  2494  	}
  2495  	_, _, e1 := syscall_syscall(funcPC(libc_statfs64_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  2496  	if e1 != 0 {
  2497  		err = errnoErr(e1)
  2498  	}
  2499  	return
  2500  }
  2501  
  2502  func libc_statfs64_trampoline()
  2503  
  2504  //go:linkname libc_statfs64 libc_statfs64
  2505  //go:cgo_import_dynamic libc_statfs64 statfs64 "/usr/lib/libSystem.B.dylib"