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