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

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

View as plain text