...
Run Format

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

View as plain text