Black Lives Matter. Support the Equal Justice Initiative.

Source file src/syscall/zsyscall_aix_ppc64.go

Documentation: syscall

     1  // mksyscall_libc.pl -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go
     2  // Code generated by the command above; DO NOT EDIT.
     3  
     4  // +build aix,ppc64
     5  
     6  package syscall
     7  
     8  import "unsafe"
     9  
    10  //go:cgo_import_dynamic libc_fcntl fcntl "libc.a/shr_64.o"
    11  //go:cgo_import_dynamic libc_Dup2 dup2 "libc.a/shr_64.o"
    12  //go:cgo_import_dynamic libc_pipe pipe "libc.a/shr_64.o"
    13  //go:cgo_import_dynamic libc_readlink readlink "libc.a/shr_64.o"
    14  //go:cgo_import_dynamic libc_utimes utimes "libc.a/shr_64.o"
    15  //go:cgo_import_dynamic libc_utimensat utimensat "libc.a/shr_64.o"
    16  //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.a/shr_64.o"
    17  //go:cgo_import_dynamic libc_getcwd getcwd "libc.a/shr_64.o"
    18  //go:cgo_import_dynamic libc_getgroups getgroups "libc.a/shr_64.o"
    19  //go:cgo_import_dynamic libc_setgroups setgroups "libc.a/shr_64.o"
    20  //go:cgo_import_dynamic libc_getdirent getdirent "libc.a/shr_64.o"
    21  //go:cgo_import_dynamic libc_wait4 wait4 "libc.a/shr_64.o"
    22  //go:cgo_import_dynamic libc_bind bind "libc.a/shr_64.o"
    23  //go:cgo_import_dynamic libc_connect connect "libc.a/shr_64.o"
    24  //go:cgo_import_dynamic libc_Getkerninfo getkerninfo "libc.a/shr_64.o"
    25  //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.a/shr_64.o"
    26  //go:cgo_import_dynamic libc_Listen listen "libc.a/shr_64.o"
    27  //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.a/shr_64.o"
    28  //go:cgo_import_dynamic libc_socket socket "libc.a/shr_64.o"
    29  //go:cgo_import_dynamic libc_socketpair socketpair "libc.a/shr_64.o"
    30  //go:cgo_import_dynamic libc_getpeername getpeername "libc.a/shr_64.o"
    31  //go:cgo_import_dynamic libc_getsockname getsockname "libc.a/shr_64.o"
    32  //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.a/shr_64.o"
    33  //go:cgo_import_dynamic libc_sendto sendto "libc.a/shr_64.o"
    34  //go:cgo_import_dynamic libc_Shutdown shutdown "libc.a/shr_64.o"
    35  //go:cgo_import_dynamic libc_nrecvmsg nrecvmsg "libc.a/shr_64.o"
    36  //go:cgo_import_dynamic libc_nsendmsg nsendmsg "libc.a/shr_64.o"
    37  //go:cgo_import_dynamic libc_accept accept "libc.a/shr_64.o"
    38  //go:cgo_import_dynamic libc_Openat openat "libc.a/shr_64.o"
    39  //go:cgo_import_dynamic libc_ptrace64 ptrace64 "libc.a/shr_64.o"
    40  //go:cgo_import_dynamic libc_Acct acct "libc.a/shr_64.o"
    41  //go:cgo_import_dynamic libc_Chdir chdir "libc.a/shr_64.o"
    42  //go:cgo_import_dynamic libc_Chmod chmod "libc.a/shr_64.o"
    43  //go:cgo_import_dynamic libc_Chown chown "libc.a/shr_64.o"
    44  //go:cgo_import_dynamic libc_Chroot chroot "libc.a/shr_64.o"
    45  //go:cgo_import_dynamic libc_Close close "libc.a/shr_64.o"
    46  //go:cgo_import_dynamic libc_Dup dup "libc.a/shr_64.o"
    47  //go:cgo_import_dynamic libc_Faccessat faccessat "libc.a/shr_64.o"
    48  //go:cgo_import_dynamic libc_Fchdir fchdir "libc.a/shr_64.o"
    49  //go:cgo_import_dynamic libc_Fchmod fchmod "libc.a/shr_64.o"
    50  //go:cgo_import_dynamic libc_Fchmodat fchmodat "libc.a/shr_64.o"
    51  //go:cgo_import_dynamic libc_Fchown fchown "libc.a/shr_64.o"
    52  //go:cgo_import_dynamic libc_Fchownat fchownat "libc.a/shr_64.o"
    53  //go:cgo_import_dynamic libc_Fpathconf fpathconf "libc.a/shr_64.o"
    54  //go:cgo_import_dynamic libc_Fstat fstat "libc.a/shr_64.o"
    55  //go:cgo_import_dynamic libc_Fstatfs fstatfs "libc.a/shr_64.o"
    56  //go:cgo_import_dynamic libc_Ftruncate ftruncate "libc.a/shr_64.o"
    57  //go:cgo_import_dynamic libc_Fsync fsync "libc.a/shr_64.o"
    58  //go:cgo_import_dynamic libc_Getgid getgid "libc.a/shr_64.o"
    59  //go:cgo_import_dynamic libc_Getpid getpid "libc.a/shr_64.o"
    60  //go:cgo_import_dynamic libc_Geteuid geteuid "libc.a/shr_64.o"
    61  //go:cgo_import_dynamic libc_Getegid getegid "libc.a/shr_64.o"
    62  //go:cgo_import_dynamic libc_Getppid getppid "libc.a/shr_64.o"
    63  //go:cgo_import_dynamic libc_Getpriority getpriority "libc.a/shr_64.o"
    64  //go:cgo_import_dynamic libc_Getrlimit getrlimit "libc.a/shr_64.o"
    65  //go:cgo_import_dynamic libc_Getuid getuid "libc.a/shr_64.o"
    66  //go:cgo_import_dynamic libc_Kill kill "libc.a/shr_64.o"
    67  //go:cgo_import_dynamic libc_Lchown lchown "libc.a/shr_64.o"
    68  //go:cgo_import_dynamic libc_Link link "libc.a/shr_64.o"
    69  //go:cgo_import_dynamic libc_Lstat lstat "libc.a/shr_64.o"
    70  //go:cgo_import_dynamic libc_Mkdir mkdir "libc.a/shr_64.o"
    71  //go:cgo_import_dynamic libc_Mkdirat mkdirat "libc.a/shr_64.o"
    72  //go:cgo_import_dynamic libc_Mknodat mknodat "libc.a/shr_64.o"
    73  //go:cgo_import_dynamic libc_Open open "libc.a/shr_64.o"
    74  //go:cgo_import_dynamic libc_Pread pread "libc.a/shr_64.o"
    75  //go:cgo_import_dynamic libc_Pwrite pwrite "libc.a/shr_64.o"
    76  //go:cgo_import_dynamic libc_read read "libc.a/shr_64.o"
    77  //go:cgo_import_dynamic libc_Reboot reboot "libc.a/shr_64.o"
    78  //go:cgo_import_dynamic libc_Rename rename "libc.a/shr_64.o"
    79  //go:cgo_import_dynamic libc_Renameat renameat "libc.a/shr_64.o"
    80  //go:cgo_import_dynamic libc_Rmdir rmdir "libc.a/shr_64.o"
    81  //go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o"
    82  //go:cgo_import_dynamic libc_Setegid setegid "libc.a/shr_64.o"
    83  //go:cgo_import_dynamic libc_Seteuid seteuid "libc.a/shr_64.o"
    84  //go:cgo_import_dynamic libc_Setgid setgid "libc.a/shr_64.o"
    85  //go:cgo_import_dynamic libc_Setpgid setpgid "libc.a/shr_64.o"
    86  //go:cgo_import_dynamic libc_Setpriority setpriority "libc.a/shr_64.o"
    87  //go:cgo_import_dynamic libc_Setregid setregid "libc.a/shr_64.o"
    88  //go:cgo_import_dynamic libc_Setreuid setreuid "libc.a/shr_64.o"
    89  //go:cgo_import_dynamic libc_Setrlimit setrlimit "libc.a/shr_64.o"
    90  //go:cgo_import_dynamic libc_Stat stat "libc.a/shr_64.o"
    91  //go:cgo_import_dynamic libc_Statfs statfs "libc.a/shr_64.o"
    92  //go:cgo_import_dynamic libc_Symlink symlink "libc.a/shr_64.o"
    93  //go:cgo_import_dynamic libc_Truncate truncate "libc.a/shr_64.o"
    94  //go:cgo_import_dynamic libc_Umask umask "libc.a/shr_64.o"
    95  //go:cgo_import_dynamic libc_Unlink unlink "libc.a/shr_64.o"
    96  //go:cgo_import_dynamic libc_Uname uname "libc.a/shr_64.o"
    97  //go:cgo_import_dynamic libc_write write "libc.a/shr_64.o"
    98  //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o"
    99  //go:cgo_import_dynamic libc_mmap mmap "libc.a/shr_64.o"
   100  //go:cgo_import_dynamic libc_munmap munmap "libc.a/shr_64.o"
   101  
   102  //go:linkname libc_fcntl libc_fcntl
   103  //go:linkname libc_Dup2 libc_Dup2
   104  //go:linkname libc_pipe libc_pipe
   105  //go:linkname libc_readlink libc_readlink
   106  //go:linkname libc_utimes libc_utimes
   107  //go:linkname libc_utimensat libc_utimensat
   108  //go:linkname libc_unlinkat libc_unlinkat
   109  //go:linkname libc_getcwd libc_getcwd
   110  //go:linkname libc_getgroups libc_getgroups
   111  //go:linkname libc_setgroups libc_setgroups
   112  //go:linkname libc_getdirent libc_getdirent
   113  //go:linkname libc_wait4 libc_wait4
   114  //go:linkname libc_bind libc_bind
   115  //go:linkname libc_connect libc_connect
   116  //go:linkname libc_Getkerninfo libc_Getkerninfo
   117  //go:linkname libc_getsockopt libc_getsockopt
   118  //go:linkname libc_Listen libc_Listen
   119  //go:linkname libc_setsockopt libc_setsockopt
   120  //go:linkname libc_socket libc_socket
   121  //go:linkname libc_socketpair libc_socketpair
   122  //go:linkname libc_getpeername libc_getpeername
   123  //go:linkname libc_getsockname libc_getsockname
   124  //go:linkname libc_recvfrom libc_recvfrom
   125  //go:linkname libc_sendto libc_sendto
   126  //go:linkname libc_Shutdown libc_Shutdown
   127  //go:linkname libc_nrecvmsg libc_nrecvmsg
   128  //go:linkname libc_nsendmsg libc_nsendmsg
   129  //go:linkname libc_accept libc_accept
   130  //go:linkname libc_Openat libc_Openat
   131  //go:linkname libc_ptrace64 libc_ptrace64
   132  //go:linkname libc_Acct libc_Acct
   133  //go:linkname libc_Chdir libc_Chdir
   134  //go:linkname libc_Chmod libc_Chmod
   135  //go:linkname libc_Chown libc_Chown
   136  //go:linkname libc_Chroot libc_Chroot
   137  //go:linkname libc_Close libc_Close
   138  //go:linkname libc_Dup libc_Dup
   139  //go:linkname libc_Faccessat libc_Faccessat
   140  //go:linkname libc_Fchdir libc_Fchdir
   141  //go:linkname libc_Fchmod libc_Fchmod
   142  //go:linkname libc_Fchmodat libc_Fchmodat
   143  //go:linkname libc_Fchown libc_Fchown
   144  //go:linkname libc_Fchownat libc_Fchownat
   145  //go:linkname libc_Fpathconf libc_Fpathconf
   146  //go:linkname libc_Fstat libc_Fstat
   147  //go:linkname libc_Fstatfs libc_Fstatfs
   148  //go:linkname libc_Ftruncate libc_Ftruncate
   149  //go:linkname libc_Fsync libc_Fsync
   150  //go:linkname libc_Getgid libc_Getgid
   151  //go:linkname libc_Getpid libc_Getpid
   152  //go:linkname libc_Geteuid libc_Geteuid
   153  //go:linkname libc_Getegid libc_Getegid
   154  //go:linkname libc_Getppid libc_Getppid
   155  //go:linkname libc_Getpriority libc_Getpriority
   156  //go:linkname libc_Getrlimit libc_Getrlimit
   157  //go:linkname libc_Getuid libc_Getuid
   158  //go:linkname libc_Kill libc_Kill
   159  //go:linkname libc_Lchown libc_Lchown
   160  //go:linkname libc_Link libc_Link
   161  //go:linkname libc_Lstat libc_Lstat
   162  //go:linkname libc_Mkdir libc_Mkdir
   163  //go:linkname libc_Mkdirat libc_Mkdirat
   164  //go:linkname libc_Mknodat libc_Mknodat
   165  //go:linkname libc_Open libc_Open
   166  //go:linkname libc_Pread libc_Pread
   167  //go:linkname libc_Pwrite libc_Pwrite
   168  //go:linkname libc_read libc_read
   169  //go:linkname libc_Reboot libc_Reboot
   170  //go:linkname libc_Rename libc_Rename
   171  //go:linkname libc_Renameat libc_Renameat
   172  //go:linkname libc_Rmdir libc_Rmdir
   173  //go:linkname libc_lseek libc_lseek
   174  //go:linkname libc_Setegid libc_Setegid
   175  //go:linkname libc_Seteuid libc_Seteuid
   176  //go:linkname libc_Setgid libc_Setgid
   177  //go:linkname libc_Setpgid libc_Setpgid
   178  //go:linkname libc_Setpriority libc_Setpriority
   179  //go:linkname libc_Setregid libc_Setregid
   180  //go:linkname libc_Setreuid libc_Setreuid
   181  //go:linkname libc_Setrlimit libc_Setrlimit
   182  //go:linkname libc_Stat libc_Stat
   183  //go:linkname libc_Statfs libc_Statfs
   184  //go:linkname libc_Symlink libc_Symlink
   185  //go:linkname libc_Truncate libc_Truncate
   186  //go:linkname libc_Umask libc_Umask
   187  //go:linkname libc_Unlink libc_Unlink
   188  //go:linkname libc_Uname libc_Uname
   189  //go:linkname libc_write libc_write
   190  //go:linkname libc_gettimeofday libc_gettimeofday
   191  //go:linkname libc_mmap libc_mmap
   192  //go:linkname libc_munmap libc_munmap
   193  
   194  type libcFunc uintptr
   195  
   196  var (
   197  	libc_fcntl,
   198  	libc_Dup2,
   199  	libc_pipe,
   200  	libc_readlink,
   201  	libc_utimes,
   202  	libc_utimensat,
   203  	libc_unlinkat,
   204  	libc_getcwd,
   205  	libc_getgroups,
   206  	libc_setgroups,
   207  	libc_getdirent,
   208  	libc_wait4,
   209  	libc_bind,
   210  	libc_connect,
   211  	libc_Getkerninfo,
   212  	libc_getsockopt,
   213  	libc_Listen,
   214  	libc_setsockopt,
   215  	libc_socket,
   216  	libc_socketpair,
   217  	libc_getpeername,
   218  	libc_getsockname,
   219  	libc_recvfrom,
   220  	libc_sendto,
   221  	libc_Shutdown,
   222  	libc_nrecvmsg,
   223  	libc_nsendmsg,
   224  	libc_accept,
   225  	libc_Openat,
   226  	libc_ptrace64,
   227  	libc_Acct,
   228  	libc_Chdir,
   229  	libc_Chmod,
   230  	libc_Chown,
   231  	libc_Chroot,
   232  	libc_Close,
   233  	libc_Dup,
   234  	libc_Faccessat,
   235  	libc_Fchdir,
   236  	libc_Fchmod,
   237  	libc_Fchmodat,
   238  	libc_Fchown,
   239  	libc_Fchownat,
   240  	libc_Fpathconf,
   241  	libc_Fstat,
   242  	libc_Fstatfs,
   243  	libc_Ftruncate,
   244  	libc_Fsync,
   245  	libc_Getgid,
   246  	libc_Getpid,
   247  	libc_Geteuid,
   248  	libc_Getegid,
   249  	libc_Getppid,
   250  	libc_Getpriority,
   251  	libc_Getrlimit,
   252  	libc_Getuid,
   253  	libc_Kill,
   254  	libc_Lchown,
   255  	libc_Link,
   256  	libc_Lstat,
   257  	libc_Mkdir,
   258  	libc_Mkdirat,
   259  	libc_Mknodat,
   260  	libc_Open,
   261  	libc_Pread,
   262  	libc_Pwrite,
   263  	libc_read,
   264  	libc_Reboot,
   265  	libc_Rename,
   266  	libc_Renameat,
   267  	libc_Rmdir,
   268  	libc_lseek,
   269  	libc_Setegid,
   270  	libc_Seteuid,
   271  	libc_Setgid,
   272  	libc_Setpgid,
   273  	libc_Setpriority,
   274  	libc_Setregid,
   275  	libc_Setreuid,
   276  	libc_Setrlimit,
   277  	libc_Stat,
   278  	libc_Statfs,
   279  	libc_Symlink,
   280  	libc_Truncate,
   281  	libc_Umask,
   282  	libc_Unlink,
   283  	libc_Uname,
   284  	libc_write,
   285  	libc_gettimeofday,
   286  	libc_mmap,
   287  	libc_munmap libcFunc
   288  )
   289  
   290  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   291  
   292  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   293  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
   294  	val = int(r0)
   295  	if e1 != 0 {
   296  		err = errnoErr(e1)
   297  	}
   298  	return
   299  }
   300  
   301  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   302  
   303  func Dup2(old int, new int) (err error) {
   304  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Dup2)), 2, uintptr(old), uintptr(new), 0, 0, 0, 0)
   305  	if e1 != 0 {
   306  		err = errnoErr(e1)
   307  	}
   308  	return
   309  }
   310  
   311  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   312  
   313  func pipe(p *[2]_C_int) (err error) {
   314  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_pipe)), 1, uintptr(unsafe.Pointer(p)), 0, 0, 0, 0, 0)
   315  	if e1 != 0 {
   316  		err = errnoErr(e1)
   317  	}
   318  	return
   319  }
   320  
   321  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   322  
   323  func readlink(path string, buf []byte, bufSize uint64) (n int, err error) {
   324  	var _p0 *byte
   325  	_p0, err = BytePtrFromString(path)
   326  	if err != nil {
   327  		return
   328  	}
   329  	var _p1 *byte
   330  	if len(buf) > 0 {
   331  		_p1 = &buf[0]
   332  	}
   333  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_readlink)), 4, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), uintptr(bufSize), 0, 0)
   334  	n = int(r0)
   335  	if e1 != 0 {
   336  		err = errnoErr(e1)
   337  	}
   338  	return
   339  }
   340  
   341  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   342  
   343  func utimes(path string, times *[2]Timeval) (err error) {
   344  	var _p0 *byte
   345  	_p0, err = BytePtrFromString(path)
   346  	if err != nil {
   347  		return
   348  	}
   349  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_utimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
   350  	if e1 != 0 {
   351  		err = errnoErr(e1)
   352  	}
   353  	return
   354  }
   355  
   356  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   357  
   358  func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
   359  	var _p0 *byte
   360  	_p0, err = BytePtrFromString(path)
   361  	if err != nil {
   362  		return
   363  	}
   364  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_utimensat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
   365  	if e1 != 0 {
   366  		err = errnoErr(e1)
   367  	}
   368  	return
   369  }
   370  
   371  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   372  
   373  func unlinkat(dirfd int, path string, flags int) (err error) {
   374  	var _p0 *byte
   375  	_p0, err = BytePtrFromString(path)
   376  	if err != nil {
   377  		return
   378  	}
   379  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_unlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0)
   380  	if e1 != 0 {
   381  		err = errnoErr(e1)
   382  	}
   383  	return
   384  }
   385  
   386  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   387  
   388  func getcwd(buf *byte, size uint64) (err error) {
   389  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_getcwd)), 2, uintptr(unsafe.Pointer(buf)), uintptr(size), 0, 0, 0, 0)
   390  	if e1 != 0 {
   391  		err = errnoErr(e1)
   392  	}
   393  	return
   394  }
   395  
   396  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   397  
   398  func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
   399  	r0, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_getgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
   400  	n = int(r0)
   401  	if e1 != 0 {
   402  		err = errnoErr(e1)
   403  	}
   404  	return
   405  }
   406  
   407  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   408  
   409  func setgroups(ngid int, gid *_Gid_t) (err error) {
   410  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_setgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
   411  	if e1 != 0 {
   412  		err = errnoErr(e1)
   413  	}
   414  	return
   415  }
   416  
   417  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   418  
   419  func getdirent(fd int, buf []byte) (n int, err error) {
   420  	var _p0 *byte
   421  	if len(buf) > 0 {
   422  		_p0 = &buf[0]
   423  	}
   424  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_getdirent)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0)
   425  	n = int(r0)
   426  	if e1 != 0 {
   427  		err = errnoErr(e1)
   428  	}
   429  	return
   430  }
   431  
   432  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   433  
   434  func wait4(pid _Pid_t, status *_C_int, options int, rusage *Rusage) (wpid _Pid_t, err error) {
   435  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_wait4)), 4, uintptr(pid), uintptr(unsafe.Pointer(status)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
   436  	wpid = _Pid_t(r0)
   437  	if e1 != 0 {
   438  		err = errnoErr(e1)
   439  	}
   440  	return
   441  }
   442  
   443  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   444  
   445  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
   446  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
   447  	if e1 != 0 {
   448  		err = errnoErr(e1)
   449  	}
   450  	return
   451  }
   452  
   453  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   454  
   455  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
   456  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
   457  	if e1 != 0 {
   458  		err = errnoErr(e1)
   459  	}
   460  	return
   461  }
   462  
   463  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   464  
   465  func Getkerninfo(op int32, where uintptr, size uintptr, arg int64) (i int32, err error) {
   466  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Getkerninfo)), 4, uintptr(op), uintptr(where), uintptr(size), uintptr(arg), 0, 0)
   467  	i = int32(r0)
   468  	if e1 != 0 {
   469  		err = errnoErr(e1)
   470  	}
   471  	return
   472  }
   473  
   474  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   475  
   476  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
   477  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
   478  	if e1 != 0 {
   479  		err = errnoErr(e1)
   480  	}
   481  	return
   482  }
   483  
   484  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   485  
   486  func Listen(s int, backlog int) (err error) {
   487  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Listen)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
   488  	if e1 != 0 {
   489  		err = errnoErr(e1)
   490  	}
   491  	return
   492  }
   493  
   494  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   495  
   496  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
   497  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_setsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
   498  	if e1 != 0 {
   499  		err = errnoErr(e1)
   500  	}
   501  	return
   502  }
   503  
   504  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   505  
   506  func socket(domain int, typ int, proto int) (fd int, err error) {
   507  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
   508  	fd = int(r0)
   509  	if e1 != 0 {
   510  		err = errnoErr(e1)
   511  	}
   512  	return
   513  }
   514  
   515  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   516  
   517  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
   518  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
   519  	if e1 != 0 {
   520  		err = errnoErr(e1)
   521  	}
   522  	return
   523  }
   524  
   525  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   526  
   527  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   528  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_getpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
   529  	if e1 != 0 {
   530  		err = errnoErr(e1)
   531  	}
   532  	return
   533  }
   534  
   535  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   536  
   537  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   538  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_getsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
   539  	if e1 != 0 {
   540  		err = errnoErr(e1)
   541  	}
   542  	return
   543  }
   544  
   545  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   546  
   547  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
   548  	var _p0 *byte
   549  	if len(p) > 0 {
   550  		_p0 = &p[0]
   551  	}
   552  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_recvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
   553  	n = int(r0)
   554  	if e1 != 0 {
   555  		err = errnoErr(e1)
   556  	}
   557  	return
   558  }
   559  
   560  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   561  
   562  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
   563  	var _p0 *byte
   564  	if len(buf) > 0 {
   565  		_p0 = &buf[0]
   566  	}
   567  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
   568  	if e1 != 0 {
   569  		err = errnoErr(e1)
   570  	}
   571  	return
   572  }
   573  
   574  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   575  
   576  func Shutdown(s int, how int) (err error) {
   577  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Shutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
   578  	if e1 != 0 {
   579  		err = errnoErr(e1)
   580  	}
   581  	return
   582  }
   583  
   584  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   585  
   586  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   587  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_nrecvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
   588  	n = int(r0)
   589  	if e1 != 0 {
   590  		err = errnoErr(e1)
   591  	}
   592  	return
   593  }
   594  
   595  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   596  
   597  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   598  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_nsendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
   599  	n = int(r0)
   600  	if e1 != 0 {
   601  		err = errnoErr(e1)
   602  	}
   603  	return
   604  }
   605  
   606  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   607  
   608  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
   609  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_accept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
   610  	fd = int(r0)
   611  	if e1 != 0 {
   612  		err = errnoErr(e1)
   613  	}
   614  	return
   615  }
   616  
   617  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   618  
   619  func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
   620  	var _p0 *byte
   621  	_p0, err = BytePtrFromString(path)
   622  	if err != nil {
   623  		return
   624  	}
   625  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Openat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
   626  	fd = int(r0)
   627  	if e1 != 0 {
   628  		err = errnoErr(e1)
   629  	}
   630  	return
   631  }
   632  
   633  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   634  
   635  func ptrace64(request int, id int64, addr int64, data int, buff uintptr) (err error) {
   636  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_ptrace64)), 5, uintptr(request), uintptr(id), uintptr(addr), uintptr(data), uintptr(buff), 0)
   637  	if e1 != 0 {
   638  		err = errnoErr(e1)
   639  	}
   640  	return
   641  }
   642  
   643  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   644  
   645  func Acct(path string) (err error) {
   646  	var _p0 *byte
   647  	_p0, err = BytePtrFromString(path)
   648  	if err != nil {
   649  		return
   650  	}
   651  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Acct)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   652  	if e1 != 0 {
   653  		err = errnoErr(e1)
   654  	}
   655  	return
   656  }
   657  
   658  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   659  
   660  func Chdir(path string) (err error) {
   661  	var _p0 *byte
   662  	_p0, err = BytePtrFromString(path)
   663  	if err != nil {
   664  		return
   665  	}
   666  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Chdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   667  	if e1 != 0 {
   668  		err = errnoErr(e1)
   669  	}
   670  	return
   671  }
   672  
   673  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   674  
   675  func Chmod(path string, mode uint32) (err error) {
   676  	var _p0 *byte
   677  	_p0, err = BytePtrFromString(path)
   678  	if err != nil {
   679  		return
   680  	}
   681  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Chmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   682  	if e1 != 0 {
   683  		err = errnoErr(e1)
   684  	}
   685  	return
   686  }
   687  
   688  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   689  
   690  func Chown(path string, uid int, gid int) (err error) {
   691  	var _p0 *byte
   692  	_p0, err = BytePtrFromString(path)
   693  	if err != nil {
   694  		return
   695  	}
   696  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Chown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
   697  	if e1 != 0 {
   698  		err = errnoErr(e1)
   699  	}
   700  	return
   701  }
   702  
   703  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   704  
   705  func Chroot(path string) (err error) {
   706  	var _p0 *byte
   707  	_p0, err = BytePtrFromString(path)
   708  	if err != nil {
   709  		return
   710  	}
   711  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Chroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   712  	if e1 != 0 {
   713  		err = errnoErr(e1)
   714  	}
   715  	return
   716  }
   717  
   718  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   719  
   720  func Close(fd int) (err error) {
   721  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Close)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   722  	if e1 != 0 {
   723  		err = errnoErr(e1)
   724  	}
   725  	return
   726  }
   727  
   728  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   729  
   730  func Dup(fd int) (nfd int, err error) {
   731  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Dup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   732  	nfd = int(r0)
   733  	if e1 != 0 {
   734  		err = errnoErr(e1)
   735  	}
   736  	return
   737  }
   738  
   739  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   740  
   741  func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
   742  	var _p0 *byte
   743  	_p0, err = BytePtrFromString(path)
   744  	if err != nil {
   745  		return
   746  	}
   747  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Faccessat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   748  	if e1 != 0 {
   749  		err = errnoErr(e1)
   750  	}
   751  	return
   752  }
   753  
   754  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   755  
   756  func Fchdir(fd int) (err error) {
   757  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   758  	if e1 != 0 {
   759  		err = errnoErr(e1)
   760  	}
   761  	return
   762  }
   763  
   764  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   765  
   766  func Fchmod(fd int, mode uint32) (err error) {
   767  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
   768  	if e1 != 0 {
   769  		err = errnoErr(e1)
   770  	}
   771  	return
   772  }
   773  
   774  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   775  
   776  func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
   777  	var _p0 *byte
   778  	_p0, err = BytePtrFromString(path)
   779  	if err != nil {
   780  		return
   781  	}
   782  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   783  	if e1 != 0 {
   784  		err = errnoErr(e1)
   785  	}
   786  	return
   787  }
   788  
   789  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   790  
   791  func Fchown(fd int, uid int, gid int) (err error) {
   792  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
   793  	if e1 != 0 {
   794  		err = errnoErr(e1)
   795  	}
   796  	return
   797  }
   798  
   799  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   800  
   801  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   802  	var _p0 *byte
   803  	_p0, err = BytePtrFromString(path)
   804  	if err != nil {
   805  		return
   806  	}
   807  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   808  	if e1 != 0 {
   809  		err = errnoErr(e1)
   810  	}
   811  	return
   812  }
   813  
   814  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   815  
   816  func Fpathconf(fd int, name int) (val int, err error) {
   817  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
   818  	val = int(r0)
   819  	if e1 != 0 {
   820  		err = errnoErr(e1)
   821  	}
   822  	return
   823  }
   824  
   825  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   826  
   827  func Fstat(fd int, stat *Stat_t) (err error) {
   828  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
   829  	if e1 != 0 {
   830  		err = errnoErr(e1)
   831  	}
   832  	return
   833  }
   834  
   835  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   836  
   837  func Fstatfs(fd int, buf *Statfs_t) (err error) {
   838  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fstatfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
   839  	if e1 != 0 {
   840  		err = errnoErr(e1)
   841  	}
   842  	return
   843  }
   844  
   845  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   846  
   847  func Ftruncate(fd int, length int64) (err error) {
   848  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Ftruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
   849  	if e1 != 0 {
   850  		err = errnoErr(e1)
   851  	}
   852  	return
   853  }
   854  
   855  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   856  
   857  func Fsync(fd int) (err error) {
   858  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Fsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   859  	if e1 != 0 {
   860  		err = errnoErr(e1)
   861  	}
   862  	return
   863  }
   864  
   865  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   866  
   867  func Getgid() (gid int) {
   868  	r0, _, _ := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getgid)), 0, 0, 0, 0, 0, 0, 0)
   869  	gid = int(r0)
   870  	return
   871  }
   872  
   873  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   874  
   875  func Getpid() (pid int) {
   876  	r0, _, _ := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getpid)), 0, 0, 0, 0, 0, 0, 0)
   877  	pid = int(r0)
   878  	return
   879  }
   880  
   881  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   882  
   883  func Geteuid() (euid int) {
   884  	r0, _, _ := syscall6(uintptr(unsafe.Pointer(&libc_Geteuid)), 0, 0, 0, 0, 0, 0, 0)
   885  	euid = int(r0)
   886  	return
   887  }
   888  
   889  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   890  
   891  func Getegid() (egid int) {
   892  	r0, _, _ := syscall6(uintptr(unsafe.Pointer(&libc_Getegid)), 0, 0, 0, 0, 0, 0, 0)
   893  	egid = int(r0)
   894  	return
   895  }
   896  
   897  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   898  
   899  func Getppid() (ppid int) {
   900  	r0, _, _ := syscall6(uintptr(unsafe.Pointer(&libc_Getppid)), 0, 0, 0, 0, 0, 0, 0)
   901  	ppid = int(r0)
   902  	return
   903  }
   904  
   905  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   906  
   907  func Getpriority(which int, who int) (n int, err error) {
   908  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Getpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
   909  	n = int(r0)
   910  	if e1 != 0 {
   911  		err = errnoErr(e1)
   912  	}
   913  	return
   914  }
   915  
   916  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   917  
   918  func Getrlimit(which int, lim *Rlimit) (err error) {
   919  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
   920  	if e1 != 0 {
   921  		err = errnoErr(e1)
   922  	}
   923  	return
   924  }
   925  
   926  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   927  
   928  func Getuid() (uid int) {
   929  	r0, _, _ := rawSyscall6(uintptr(unsafe.Pointer(&libc_Getuid)), 0, 0, 0, 0, 0, 0, 0)
   930  	uid = int(r0)
   931  	return
   932  }
   933  
   934  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   935  
   936  func Kill(pid int, signum Signal) (err error) {
   937  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Kill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
   938  	if e1 != 0 {
   939  		err = errnoErr(e1)
   940  	}
   941  	return
   942  }
   943  
   944  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   945  
   946  func Lchown(path string, uid int, gid int) (err error) {
   947  	var _p0 *byte
   948  	_p0, err = BytePtrFromString(path)
   949  	if err != nil {
   950  		return
   951  	}
   952  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Lchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
   953  	if e1 != 0 {
   954  		err = errnoErr(e1)
   955  	}
   956  	return
   957  }
   958  
   959  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   960  
   961  func Link(path string, link string) (err error) {
   962  	var _p0 *byte
   963  	_p0, err = BytePtrFromString(path)
   964  	if err != nil {
   965  		return
   966  	}
   967  	var _p1 *byte
   968  	_p1, err = BytePtrFromString(link)
   969  	if err != nil {
   970  		return
   971  	}
   972  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Link)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
   973  	if e1 != 0 {
   974  		err = errnoErr(e1)
   975  	}
   976  	return
   977  }
   978  
   979  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   980  
   981  func Lstat(path string, stat *Stat_t) (err error) {
   982  	var _p0 *byte
   983  	_p0, err = BytePtrFromString(path)
   984  	if err != nil {
   985  		return
   986  	}
   987  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Lstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
   988  	if e1 != 0 {
   989  		err = errnoErr(e1)
   990  	}
   991  	return
   992  }
   993  
   994  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   995  
   996  func Mkdir(path string, mode uint32) (err error) {
   997  	var _p0 *byte
   998  	_p0, err = BytePtrFromString(path)
   999  	if err != nil {
  1000  		return
  1001  	}
  1002  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Mkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
  1003  	if e1 != 0 {
  1004  		err = errnoErr(e1)
  1005  	}
  1006  	return
  1007  }
  1008  
  1009  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1010  
  1011  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1012  	var _p0 *byte
  1013  	_p0, err = BytePtrFromString(path)
  1014  	if err != nil {
  1015  		return
  1016  	}
  1017  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Mkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
  1018  	if e1 != 0 {
  1019  		err = errnoErr(e1)
  1020  	}
  1021  	return
  1022  }
  1023  
  1024  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1025  
  1026  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1027  	var _p0 *byte
  1028  	_p0, err = BytePtrFromString(path)
  1029  	if err != nil {
  1030  		return
  1031  	}
  1032  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Mknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1033  	if e1 != 0 {
  1034  		err = errnoErr(e1)
  1035  	}
  1036  	return
  1037  }
  1038  
  1039  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1040  
  1041  func Open(path string, mode int, perm uint32) (fd int, err error) {
  1042  	var _p0 *byte
  1043  	_p0, err = BytePtrFromString(path)
  1044  	if err != nil {
  1045  		return
  1046  	}
  1047  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Open)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
  1048  	fd = int(r0)
  1049  	if e1 != 0 {
  1050  		err = errnoErr(e1)
  1051  	}
  1052  	return
  1053  }
  1054  
  1055  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1056  
  1057  func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1058  	var _p0 *byte
  1059  	if len(p) > 0 {
  1060  		_p0 = &p[0]
  1061  	}
  1062  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Pread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
  1063  	n = int(r0)
  1064  	if e1 != 0 {
  1065  		err = errnoErr(e1)
  1066  	}
  1067  	return
  1068  }
  1069  
  1070  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1071  
  1072  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1073  	var _p0 *byte
  1074  	if len(p) > 0 {
  1075  		_p0 = &p[0]
  1076  	}
  1077  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Pwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
  1078  	n = int(r0)
  1079  	if e1 != 0 {
  1080  		err = errnoErr(e1)
  1081  	}
  1082  	return
  1083  }
  1084  
  1085  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1086  
  1087  func read(fd int, p []byte) (n int, err error) {
  1088  	var _p0 *byte
  1089  	if len(p) > 0 {
  1090  		_p0 = &p[0]
  1091  	}
  1092  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_read)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1093  	n = int(r0)
  1094  	if e1 != 0 {
  1095  		err = errnoErr(e1)
  1096  	}
  1097  	return
  1098  }
  1099  
  1100  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1101  
  1102  func Reboot(how int) (err error) {
  1103  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Reboot)), 1, uintptr(how), 0, 0, 0, 0, 0)
  1104  	if e1 != 0 {
  1105  		err = errnoErr(e1)
  1106  	}
  1107  	return
  1108  }
  1109  
  1110  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1111  
  1112  func Rename(from string, to string) (err error) {
  1113  	var _p0 *byte
  1114  	_p0, err = BytePtrFromString(from)
  1115  	if err != nil {
  1116  		return
  1117  	}
  1118  	var _p1 *byte
  1119  	_p1, err = BytePtrFromString(to)
  1120  	if err != nil {
  1121  		return
  1122  	}
  1123  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Rename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1124  	if e1 != 0 {
  1125  		err = errnoErr(e1)
  1126  	}
  1127  	return
  1128  }
  1129  
  1130  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1131  
  1132  func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  1133  	var _p0 *byte
  1134  	_p0, err = BytePtrFromString(oldpath)
  1135  	if err != nil {
  1136  		return
  1137  	}
  1138  	var _p1 *byte
  1139  	_p1, err = BytePtrFromString(newpath)
  1140  	if err != nil {
  1141  		return
  1142  	}
  1143  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Renameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1144  	if e1 != 0 {
  1145  		err = errnoErr(e1)
  1146  	}
  1147  	return
  1148  }
  1149  
  1150  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1151  
  1152  func Rmdir(path string) (err error) {
  1153  	var _p0 *byte
  1154  	_p0, err = BytePtrFromString(path)
  1155  	if err != nil {
  1156  		return
  1157  	}
  1158  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Rmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1159  	if e1 != 0 {
  1160  		err = errnoErr(e1)
  1161  	}
  1162  	return
  1163  }
  1164  
  1165  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1166  
  1167  func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
  1168  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_lseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
  1169  	newoffset = int64(r0)
  1170  	if e1 != 0 {
  1171  		err = errnoErr(e1)
  1172  	}
  1173  	return
  1174  }
  1175  
  1176  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1177  
  1178  func Setegid(egid int) (err error) {
  1179  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
  1180  	if e1 != 0 {
  1181  		err = errnoErr(e1)
  1182  	}
  1183  	return
  1184  }
  1185  
  1186  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1187  
  1188  func Seteuid(euid int) (err error) {
  1189  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Seteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
  1190  	if e1 != 0 {
  1191  		err = errnoErr(e1)
  1192  	}
  1193  	return
  1194  }
  1195  
  1196  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1197  
  1198  func Setgid(gid int) (err error) {
  1199  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
  1200  	if e1 != 0 {
  1201  		err = errnoErr(e1)
  1202  	}
  1203  	return
  1204  }
  1205  
  1206  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1207  
  1208  func Setpgid(pid int, pgid int) (err error) {
  1209  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
  1210  	if e1 != 0 {
  1211  		err = errnoErr(e1)
  1212  	}
  1213  	return
  1214  }
  1215  
  1216  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1217  
  1218  func Setpriority(which int, who int, prio int) (err error) {
  1219  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Setpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
  1220  	if e1 != 0 {
  1221  		err = errnoErr(e1)
  1222  	}
  1223  	return
  1224  }
  1225  
  1226  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1227  
  1228  func Setregid(rgid int, egid int) (err error) {
  1229  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
  1230  	if e1 != 0 {
  1231  		err = errnoErr(e1)
  1232  	}
  1233  	return
  1234  }
  1235  
  1236  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1237  
  1238  func Setreuid(ruid int, euid int) (err error) {
  1239  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
  1240  	if e1 != 0 {
  1241  		err = errnoErr(e1)
  1242  	}
  1243  	return
  1244  }
  1245  
  1246  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1247  
  1248  func Setrlimit(which int, lim *Rlimit) (err error) {
  1249  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Setrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
  1250  	if e1 != 0 {
  1251  		err = errnoErr(e1)
  1252  	}
  1253  	return
  1254  }
  1255  
  1256  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1257  
  1258  func Stat(path string, stat *Stat_t) (err error) {
  1259  	var _p0 *byte
  1260  	_p0, err = BytePtrFromString(path)
  1261  	if err != nil {
  1262  		return
  1263  	}
  1264  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Stat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
  1265  	if e1 != 0 {
  1266  		err = errnoErr(e1)
  1267  	}
  1268  	return
  1269  }
  1270  
  1271  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1272  
  1273  func Statfs(path string, buf *Statfs_t) (err error) {
  1274  	var _p0 *byte
  1275  	_p0, err = BytePtrFromString(path)
  1276  	if err != nil {
  1277  		return
  1278  	}
  1279  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Statfs)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
  1280  	if e1 != 0 {
  1281  		err = errnoErr(e1)
  1282  	}
  1283  	return
  1284  }
  1285  
  1286  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1287  
  1288  func Symlink(path string, link string) (err error) {
  1289  	var _p0 *byte
  1290  	_p0, err = BytePtrFromString(path)
  1291  	if err != nil {
  1292  		return
  1293  	}
  1294  	var _p1 *byte
  1295  	_p1, err = BytePtrFromString(link)
  1296  	if err != nil {
  1297  		return
  1298  	}
  1299  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Symlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1300  	if e1 != 0 {
  1301  		err = errnoErr(e1)
  1302  	}
  1303  	return
  1304  }
  1305  
  1306  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1307  
  1308  func Truncate(path string, length int64) (err error) {
  1309  	var _p0 *byte
  1310  	_p0, err = BytePtrFromString(path)
  1311  	if err != nil {
  1312  		return
  1313  	}
  1314  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Truncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
  1315  	if e1 != 0 {
  1316  		err = errnoErr(e1)
  1317  	}
  1318  	return
  1319  }
  1320  
  1321  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1322  
  1323  func Umask(newmask int) (oldmask int) {
  1324  	r0, _, _ := syscall6(uintptr(unsafe.Pointer(&libc_Umask)), 1, uintptr(newmask), 0, 0, 0, 0, 0)
  1325  	oldmask = int(r0)
  1326  	return
  1327  }
  1328  
  1329  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1330  
  1331  func Unlink(path string) (err error) {
  1332  	var _p0 *byte
  1333  	_p0, err = BytePtrFromString(path)
  1334  	if err != nil {
  1335  		return
  1336  	}
  1337  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_Unlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1338  	if e1 != 0 {
  1339  		err = errnoErr(e1)
  1340  	}
  1341  	return
  1342  }
  1343  
  1344  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1345  
  1346  func Uname(buf *Utsname) (err error) {
  1347  	_, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_Uname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
  1348  	if e1 != 0 {
  1349  		err = errnoErr(e1)
  1350  	}
  1351  	return
  1352  }
  1353  
  1354  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1355  
  1356  func write(fd int, p []byte) (n int, err error) {
  1357  	var _p0 *byte
  1358  	if len(p) > 0 {
  1359  		_p0 = &p[0]
  1360  	}
  1361  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_write)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1362  	n = int(r0)
  1363  	if e1 != 0 {
  1364  		err = errnoErr(e1)
  1365  	}
  1366  	return
  1367  }
  1368  
  1369  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1370  
  1371  func gettimeofday(tv *Timeval, tzp *Timezone) (err error) {
  1372  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_gettimeofday)), 2, uintptr(unsafe.Pointer(tv)), uintptr(unsafe.Pointer(tzp)), 0, 0, 0, 0)
  1373  	if e1 != 0 {
  1374  		err = errnoErr(e1)
  1375  	}
  1376  	return
  1377  }
  1378  
  1379  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1380  
  1381  func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1382  	r0, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_mmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
  1383  	ret = uintptr(r0)
  1384  	if e1 != 0 {
  1385  		err = errnoErr(e1)
  1386  	}
  1387  	return
  1388  }
  1389  
  1390  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1391  
  1392  func munmap(addr uintptr, length uintptr) (err error) {
  1393  	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_munmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
  1394  	if e1 != 0 {
  1395  		err = errnoErr(e1)
  1396  	}
  1397  	return
  1398  }
  1399  

View as plain text