Source file src/syscall/zsyscall_aix_ppc64.go

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

View as plain text