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

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

View as plain text