github.com/maenmax/kairep@v0.0.0-20210218001208-55bf3df36788/src/golang.org/x/sys/unix/zsyscall_solaris_amd64.go (about)

     1  // mksyscall_solaris.pl syscall_solaris.go syscall_solaris_amd64.go
     2  // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
     3  
     4  // +build amd64,solaris
     5  
     6  package unix
     7  
     8  import (
     9  	"syscall"
    10  	"unsafe"
    11  )
    12  
    13  //go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so"
    14  //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
    15  //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
    16  //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    17  //go:cgo_import_dynamic libc_utimes utimes "libc.so"
    18  //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
    19  //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
    20  //go:cgo_import_dynamic libc_futimesat futimesat "libc.so"
    21  //go:cgo_import_dynamic libc_accept accept "libsocket.so"
    22  //go:cgo_import_dynamic libc_recvmsg recvmsg "libsocket.so"
    23  //go:cgo_import_dynamic libc_sendmsg sendmsg "libsocket.so"
    24  //go:cgo_import_dynamic libc_acct acct "libc.so"
    25  //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
    26  //go:cgo_import_dynamic libc_access access "libc.so"
    27  //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
    28  //go:cgo_import_dynamic libc_chdir chdir "libc.so"
    29  //go:cgo_import_dynamic libc_chmod chmod "libc.so"
    30  //go:cgo_import_dynamic libc_chown chown "libc.so"
    31  //go:cgo_import_dynamic libc_chroot chroot "libc.so"
    32  //go:cgo_import_dynamic libc_close close "libc.so"
    33  //go:cgo_import_dynamic libc_creat creat "libc.so"
    34  //go:cgo_import_dynamic libc_dup dup "libc.so"
    35  //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
    36  //go:cgo_import_dynamic libc_exit exit "libc.so"
    37  //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
    38  //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
    39  //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
    40  //go:cgo_import_dynamic libc_fchown fchown "libc.so"
    41  //go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
    42  //go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so"
    43  //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
    44  //go:cgo_import_dynamic libc_fstat fstat "libc.so"
    45  //go:cgo_import_dynamic libc_getdents getdents "libc.so"
    46  //go:cgo_import_dynamic libc_getgid getgid "libc.so"
    47  //go:cgo_import_dynamic libc_getpid getpid "libc.so"
    48  //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
    49  //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
    50  //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
    51  //go:cgo_import_dynamic libc_getegid getegid "libc.so"
    52  //go:cgo_import_dynamic libc_getppid getppid "libc.so"
    53  //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
    54  //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
    55  //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
    56  //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
    57  //go:cgo_import_dynamic libc_getuid getuid "libc.so"
    58  //go:cgo_import_dynamic libc_kill kill "libc.so"
    59  //go:cgo_import_dynamic libc_lchown lchown "libc.so"
    60  //go:cgo_import_dynamic libc_link link "libc.so"
    61  //go:cgo_import_dynamic libc_listen listen "libsocket.so"
    62  //go:cgo_import_dynamic libc_lstat lstat "libc.so"
    63  //go:cgo_import_dynamic libc_madvise madvise "libc.so"
    64  //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
    65  //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
    66  //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
    67  //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
    68  //go:cgo_import_dynamic libc_mknod mknod "libc.so"
    69  //go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
    70  //go:cgo_import_dynamic libc_mlock mlock "libc.so"
    71  //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
    72  //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
    73  //go:cgo_import_dynamic libc_munlock munlock "libc.so"
    74  //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
    75  //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
    76  //go:cgo_import_dynamic libc_open open "libc.so"
    77  //go:cgo_import_dynamic libc_openat openat "libc.so"
    78  //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
    79  //go:cgo_import_dynamic libc_pause pause "libc.so"
    80  //go:cgo_import_dynamic libc_pread pread "libc.so"
    81  //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
    82  //go:cgo_import_dynamic libc_read read "libc.so"
    83  //go:cgo_import_dynamic libc_readlink readlink "libc.so"
    84  //go:cgo_import_dynamic libc_rename rename "libc.so"
    85  //go:cgo_import_dynamic libc_renameat renameat "libc.so"
    86  //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
    87  //go:cgo_import_dynamic libc_lseek lseek "libc.so"
    88  //go:cgo_import_dynamic libc_setegid setegid "libc.so"
    89  //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
    90  //go:cgo_import_dynamic libc_setgid setgid "libc.so"
    91  //go:cgo_import_dynamic libc_sethostname sethostname "libc.so"
    92  //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
    93  //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
    94  //go:cgo_import_dynamic libc_setregid setregid "libc.so"
    95  //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
    96  //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
    97  //go:cgo_import_dynamic libc_setsid setsid "libc.so"
    98  //go:cgo_import_dynamic libc_setuid setuid "libc.so"
    99  //go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so"
   100  //go:cgo_import_dynamic libc_stat stat "libc.so"
   101  //go:cgo_import_dynamic libc_symlink symlink "libc.so"
   102  //go:cgo_import_dynamic libc_sync sync "libc.so"
   103  //go:cgo_import_dynamic libc_times times "libc.so"
   104  //go:cgo_import_dynamic libc_truncate truncate "libc.so"
   105  //go:cgo_import_dynamic libc_fsync fsync "libc.so"
   106  //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
   107  //go:cgo_import_dynamic libc_umask umask "libc.so"
   108  //go:cgo_import_dynamic libc_uname uname "libc.so"
   109  //go:cgo_import_dynamic libc_umount umount "libc.so"
   110  //go:cgo_import_dynamic libc_unlink unlink "libc.so"
   111  //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
   112  //go:cgo_import_dynamic libc_ustat ustat "libc.so"
   113  //go:cgo_import_dynamic libc_utime utime "libc.so"
   114  //go:cgo_import_dynamic libc_bind bind "libsocket.so"
   115  //go:cgo_import_dynamic libc_connect connect "libsocket.so"
   116  //go:cgo_import_dynamic libc_mmap mmap "libc.so"
   117  //go:cgo_import_dynamic libc_munmap munmap "libc.so"
   118  //go:cgo_import_dynamic libc_sendto sendto "libsocket.so"
   119  //go:cgo_import_dynamic libc_socket socket "libsocket.so"
   120  //go:cgo_import_dynamic libc_socketpair socketpair "libsocket.so"
   121  //go:cgo_import_dynamic libc_write write "libc.so"
   122  //go:cgo_import_dynamic libc_getsockopt getsockopt "libsocket.so"
   123  //go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
   124  //go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
   125  //go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
   126  //go:cgo_import_dynamic libc_sysconf sysconf "libc.so"
   127  
   128  //go:linkname procgetsockname libc_getsockname
   129  //go:linkname procGetcwd libc_getcwd
   130  //go:linkname procgetgroups libc_getgroups
   131  //go:linkname procsetgroups libc_setgroups
   132  //go:linkname procutimes libc_utimes
   133  //go:linkname procutimensat libc_utimensat
   134  //go:linkname procfcntl libc_fcntl
   135  //go:linkname procfutimesat libc_futimesat
   136  //go:linkname procaccept libc_accept
   137  //go:linkname procrecvmsg libc_recvmsg
   138  //go:linkname procsendmsg libc_sendmsg
   139  //go:linkname procacct libc_acct
   140  //go:linkname procioctl libc_ioctl
   141  //go:linkname procAccess libc_access
   142  //go:linkname procAdjtime libc_adjtime
   143  //go:linkname procChdir libc_chdir
   144  //go:linkname procChmod libc_chmod
   145  //go:linkname procChown libc_chown
   146  //go:linkname procChroot libc_chroot
   147  //go:linkname procClose libc_close
   148  //go:linkname procCreat libc_creat
   149  //go:linkname procDup libc_dup
   150  //go:linkname procDup2 libc_dup2
   151  //go:linkname procExit libc_exit
   152  //go:linkname procFchdir libc_fchdir
   153  //go:linkname procFchmod libc_fchmod
   154  //go:linkname procFchmodat libc_fchmodat
   155  //go:linkname procFchown libc_fchown
   156  //go:linkname procFchownat libc_fchownat
   157  //go:linkname procFdatasync libc_fdatasync
   158  //go:linkname procFpathconf libc_fpathconf
   159  //go:linkname procFstat libc_fstat
   160  //go:linkname procGetdents libc_getdents
   161  //go:linkname procGetgid libc_getgid
   162  //go:linkname procGetpid libc_getpid
   163  //go:linkname procGetpgid libc_getpgid
   164  //go:linkname procGetpgrp libc_getpgrp
   165  //go:linkname procGeteuid libc_geteuid
   166  //go:linkname procGetegid libc_getegid
   167  //go:linkname procGetppid libc_getppid
   168  //go:linkname procGetpriority libc_getpriority
   169  //go:linkname procGetrlimit libc_getrlimit
   170  //go:linkname procGetrusage libc_getrusage
   171  //go:linkname procGettimeofday libc_gettimeofday
   172  //go:linkname procGetuid libc_getuid
   173  //go:linkname procKill libc_kill
   174  //go:linkname procLchown libc_lchown
   175  //go:linkname procLink libc_link
   176  //go:linkname proclisten libc_listen
   177  //go:linkname procLstat libc_lstat
   178  //go:linkname procMadvise libc_madvise
   179  //go:linkname procMkdir libc_mkdir
   180  //go:linkname procMkdirat libc_mkdirat
   181  //go:linkname procMkfifo libc_mkfifo
   182  //go:linkname procMkfifoat libc_mkfifoat
   183  //go:linkname procMknod libc_mknod
   184  //go:linkname procMknodat libc_mknodat
   185  //go:linkname procMlock libc_mlock
   186  //go:linkname procMlockall libc_mlockall
   187  //go:linkname procMprotect libc_mprotect
   188  //go:linkname procMunlock libc_munlock
   189  //go:linkname procMunlockall libc_munlockall
   190  //go:linkname procNanosleep libc_nanosleep
   191  //go:linkname procOpen libc_open
   192  //go:linkname procOpenat libc_openat
   193  //go:linkname procPathconf libc_pathconf
   194  //go:linkname procPause libc_pause
   195  //go:linkname procPread libc_pread
   196  //go:linkname procPwrite libc_pwrite
   197  //go:linkname procread libc_read
   198  //go:linkname procReadlink libc_readlink
   199  //go:linkname procRename libc_rename
   200  //go:linkname procRenameat libc_renameat
   201  //go:linkname procRmdir libc_rmdir
   202  //go:linkname proclseek libc_lseek
   203  //go:linkname procSetegid libc_setegid
   204  //go:linkname procSeteuid libc_seteuid
   205  //go:linkname procSetgid libc_setgid
   206  //go:linkname procSethostname libc_sethostname
   207  //go:linkname procSetpgid libc_setpgid
   208  //go:linkname procSetpriority libc_setpriority
   209  //go:linkname procSetregid libc_setregid
   210  //go:linkname procSetreuid libc_setreuid
   211  //go:linkname procSetrlimit libc_setrlimit
   212  //go:linkname procSetsid libc_setsid
   213  //go:linkname procSetuid libc_setuid
   214  //go:linkname procshutdown libc_shutdown
   215  //go:linkname procStat libc_stat
   216  //go:linkname procSymlink libc_symlink
   217  //go:linkname procSync libc_sync
   218  //go:linkname procTimes libc_times
   219  //go:linkname procTruncate libc_truncate
   220  //go:linkname procFsync libc_fsync
   221  //go:linkname procFtruncate libc_ftruncate
   222  //go:linkname procUmask libc_umask
   223  //go:linkname procUname libc_uname
   224  //go:linkname procumount libc_umount
   225  //go:linkname procUnlink libc_unlink
   226  //go:linkname procUnlinkat libc_unlinkat
   227  //go:linkname procUstat libc_ustat
   228  //go:linkname procUtime libc_utime
   229  //go:linkname procbind libc_bind
   230  //go:linkname procconnect libc_connect
   231  //go:linkname procmmap libc_mmap
   232  //go:linkname procmunmap libc_munmap
   233  //go:linkname procsendto libc_sendto
   234  //go:linkname procsocket libc_socket
   235  //go:linkname procsocketpair libc_socketpair
   236  //go:linkname procwrite libc_write
   237  //go:linkname procgetsockopt libc_getsockopt
   238  //go:linkname procgetpeername libc_getpeername
   239  //go:linkname procsetsockopt libc_setsockopt
   240  //go:linkname procrecvfrom libc_recvfrom
   241  //go:linkname procsysconf libc_sysconf
   242  
   243  var (
   244  	procgetsockname,
   245  	procGetcwd,
   246  	procgetgroups,
   247  	procsetgroups,
   248  	procutimes,
   249  	procutimensat,
   250  	procfcntl,
   251  	procfutimesat,
   252  	procaccept,
   253  	procrecvmsg,
   254  	procsendmsg,
   255  	procacct,
   256  	procioctl,
   257  	procAccess,
   258  	procAdjtime,
   259  	procChdir,
   260  	procChmod,
   261  	procChown,
   262  	procChroot,
   263  	procClose,
   264  	procCreat,
   265  	procDup,
   266  	procDup2,
   267  	procExit,
   268  	procFchdir,
   269  	procFchmod,
   270  	procFchmodat,
   271  	procFchown,
   272  	procFchownat,
   273  	procFdatasync,
   274  	procFpathconf,
   275  	procFstat,
   276  	procGetdents,
   277  	procGetgid,
   278  	procGetpid,
   279  	procGetpgid,
   280  	procGetpgrp,
   281  	procGeteuid,
   282  	procGetegid,
   283  	procGetppid,
   284  	procGetpriority,
   285  	procGetrlimit,
   286  	procGetrusage,
   287  	procGettimeofday,
   288  	procGetuid,
   289  	procKill,
   290  	procLchown,
   291  	procLink,
   292  	proclisten,
   293  	procLstat,
   294  	procMadvise,
   295  	procMkdir,
   296  	procMkdirat,
   297  	procMkfifo,
   298  	procMkfifoat,
   299  	procMknod,
   300  	procMknodat,
   301  	procMlock,
   302  	procMlockall,
   303  	procMprotect,
   304  	procMunlock,
   305  	procMunlockall,
   306  	procNanosleep,
   307  	procOpen,
   308  	procOpenat,
   309  	procPathconf,
   310  	procPause,
   311  	procPread,
   312  	procPwrite,
   313  	procread,
   314  	procReadlink,
   315  	procRename,
   316  	procRenameat,
   317  	procRmdir,
   318  	proclseek,
   319  	procSetegid,
   320  	procSeteuid,
   321  	procSetgid,
   322  	procSethostname,
   323  	procSetpgid,
   324  	procSetpriority,
   325  	procSetregid,
   326  	procSetreuid,
   327  	procSetrlimit,
   328  	procSetsid,
   329  	procSetuid,
   330  	procshutdown,
   331  	procStat,
   332  	procSymlink,
   333  	procSync,
   334  	procTimes,
   335  	procTruncate,
   336  	procFsync,
   337  	procFtruncate,
   338  	procUmask,
   339  	procUname,
   340  	procumount,
   341  	procUnlink,
   342  	procUnlinkat,
   343  	procUstat,
   344  	procUtime,
   345  	procbind,
   346  	procconnect,
   347  	procmmap,
   348  	procmunmap,
   349  	procsendto,
   350  	procsocket,
   351  	procsocketpair,
   352  	procwrite,
   353  	procgetsockopt,
   354  	procgetpeername,
   355  	procsetsockopt,
   356  	procrecvfrom,
   357  	procsysconf syscallFunc
   358  )
   359  
   360  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   361  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
   362  	if e1 != 0 {
   363  		err = e1
   364  	}
   365  	return
   366  }
   367  
   368  func Getcwd(buf []byte) (n int, err error) {
   369  	var _p0 *byte
   370  	if len(buf) > 0 {
   371  		_p0 = &buf[0]
   372  	}
   373  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
   374  	n = int(r0)
   375  	if e1 != 0 {
   376  		err = e1
   377  	}
   378  	return
   379  }
   380  
   381  func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
   382  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
   383  	n = int(r0)
   384  	if e1 != 0 {
   385  		err = e1
   386  	}
   387  	return
   388  }
   389  
   390  func setgroups(ngid int, gid *_Gid_t) (err error) {
   391  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
   392  	if e1 != 0 {
   393  		err = e1
   394  	}
   395  	return
   396  }
   397  
   398  func utimes(path string, times *[2]Timeval) (err error) {
   399  	var _p0 *byte
   400  	_p0, err = BytePtrFromString(path)
   401  	if err != nil {
   402  		return
   403  	}
   404  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
   405  	use(unsafe.Pointer(_p0))
   406  	if e1 != 0 {
   407  		err = e1
   408  	}
   409  	return
   410  }
   411  
   412  func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) {
   413  	var _p0 *byte
   414  	_p0, err = BytePtrFromString(path)
   415  	if err != nil {
   416  		return
   417  	}
   418  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
   419  	use(unsafe.Pointer(_p0))
   420  	if e1 != 0 {
   421  		err = e1
   422  	}
   423  	return
   424  }
   425  
   426  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   427  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
   428  	val = int(r0)
   429  	if e1 != 0 {
   430  		err = e1
   431  	}
   432  	return
   433  }
   434  
   435  func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) {
   436  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0)
   437  	if e1 != 0 {
   438  		err = e1
   439  	}
   440  	return
   441  }
   442  
   443  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
   444  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
   445  	fd = int(r0)
   446  	if e1 != 0 {
   447  		err = e1
   448  	}
   449  	return
   450  }
   451  
   452  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   453  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
   454  	n = int(r0)
   455  	if e1 != 0 {
   456  		err = e1
   457  	}
   458  	return
   459  }
   460  
   461  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   462  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
   463  	n = int(r0)
   464  	if e1 != 0 {
   465  		err = e1
   466  	}
   467  	return
   468  }
   469  
   470  func acct(path *byte) (err error) {
   471  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0)
   472  	if e1 != 0 {
   473  		err = e1
   474  	}
   475  	return
   476  }
   477  
   478  func ioctl(fd int, req int, arg uintptr) (err error) {
   479  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
   480  	if e1 != 0 {
   481  		err = e1
   482  	}
   483  	return
   484  }
   485  
   486  func Access(path string, mode uint32) (err error) {
   487  	var _p0 *byte
   488  	_p0, err = BytePtrFromString(path)
   489  	if err != nil {
   490  		return
   491  	}
   492  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   493  	use(unsafe.Pointer(_p0))
   494  	if e1 != 0 {
   495  		err = e1
   496  	}
   497  	return
   498  }
   499  
   500  func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
   501  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0)
   502  	if e1 != 0 {
   503  		err = e1
   504  	}
   505  	return
   506  }
   507  
   508  func Chdir(path string) (err error) {
   509  	var _p0 *byte
   510  	_p0, err = BytePtrFromString(path)
   511  	if err != nil {
   512  		return
   513  	}
   514  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   515  	use(unsafe.Pointer(_p0))
   516  	if e1 != 0 {
   517  		err = e1
   518  	}
   519  	return
   520  }
   521  
   522  func Chmod(path string, mode uint32) (err error) {
   523  	var _p0 *byte
   524  	_p0, err = BytePtrFromString(path)
   525  	if err != nil {
   526  		return
   527  	}
   528  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   529  	use(unsafe.Pointer(_p0))
   530  	if e1 != 0 {
   531  		err = e1
   532  	}
   533  	return
   534  }
   535  
   536  func Chown(path string, uid int, gid int) (err error) {
   537  	var _p0 *byte
   538  	_p0, err = BytePtrFromString(path)
   539  	if err != nil {
   540  		return
   541  	}
   542  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
   543  	use(unsafe.Pointer(_p0))
   544  	if e1 != 0 {
   545  		err = e1
   546  	}
   547  	return
   548  }
   549  
   550  func Chroot(path string) (err error) {
   551  	var _p0 *byte
   552  	_p0, err = BytePtrFromString(path)
   553  	if err != nil {
   554  		return
   555  	}
   556  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   557  	use(unsafe.Pointer(_p0))
   558  	if e1 != 0 {
   559  		err = e1
   560  	}
   561  	return
   562  }
   563  
   564  func Close(fd int) (err error) {
   565  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   566  	if e1 != 0 {
   567  		err = e1
   568  	}
   569  	return
   570  }
   571  
   572  func Creat(path string, mode uint32) (fd int, err error) {
   573  	var _p0 *byte
   574  	_p0, err = BytePtrFromString(path)
   575  	if err != nil {
   576  		return
   577  	}
   578  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   579  	use(unsafe.Pointer(_p0))
   580  	fd = int(r0)
   581  	if e1 != 0 {
   582  		err = e1
   583  	}
   584  	return
   585  }
   586  
   587  func Dup(fd int) (nfd int, err error) {
   588  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   589  	nfd = int(r0)
   590  	if e1 != 0 {
   591  		err = e1
   592  	}
   593  	return
   594  }
   595  
   596  func Dup2(oldfd int, newfd int) (err error) {
   597  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0)
   598  	if e1 != 0 {
   599  		err = e1
   600  	}
   601  	return
   602  }
   603  
   604  func Exit(code int) {
   605  	sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0)
   606  	return
   607  }
   608  
   609  func Fchdir(fd int) (err error) {
   610  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   611  	if e1 != 0 {
   612  		err = e1
   613  	}
   614  	return
   615  }
   616  
   617  func Fchmod(fd int, mode uint32) (err error) {
   618  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
   619  	if e1 != 0 {
   620  		err = e1
   621  	}
   622  	return
   623  }
   624  
   625  func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
   626  	var _p0 *byte
   627  	_p0, err = BytePtrFromString(path)
   628  	if err != nil {
   629  		return
   630  	}
   631  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   632  	use(unsafe.Pointer(_p0))
   633  	if e1 != 0 {
   634  		err = e1
   635  	}
   636  	return
   637  }
   638  
   639  func Fchown(fd int, uid int, gid int) (err error) {
   640  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
   641  	if e1 != 0 {
   642  		err = e1
   643  	}
   644  	return
   645  }
   646  
   647  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   648  	var _p0 *byte
   649  	_p0, err = BytePtrFromString(path)
   650  	if err != nil {
   651  		return
   652  	}
   653  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   654  	use(unsafe.Pointer(_p0))
   655  	if e1 != 0 {
   656  		err = e1
   657  	}
   658  	return
   659  }
   660  
   661  func Fdatasync(fd int) (err error) {
   662  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   663  	if e1 != 0 {
   664  		err = e1
   665  	}
   666  	return
   667  }
   668  
   669  func Fpathconf(fd int, name int) (val int, err error) {
   670  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
   671  	val = int(r0)
   672  	if e1 != 0 {
   673  		err = e1
   674  	}
   675  	return
   676  }
   677  
   678  func Fstat(fd int, stat *Stat_t) (err error) {
   679  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
   680  	if e1 != 0 {
   681  		err = e1
   682  	}
   683  	return
   684  }
   685  
   686  func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) {
   687  	var _p0 *byte
   688  	if len(buf) > 0 {
   689  		_p0 = &buf[0]
   690  	}
   691  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
   692  	n = int(r0)
   693  	if e1 != 0 {
   694  		err = e1
   695  	}
   696  	return
   697  }
   698  
   699  func Getgid() (gid int) {
   700  	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0)
   701  	gid = int(r0)
   702  	return
   703  }
   704  
   705  func Getpid() (pid int) {
   706  	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0)
   707  	pid = int(r0)
   708  	return
   709  }
   710  
   711  func Getpgid(pid int) (pgid int, err error) {
   712  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
   713  	pgid = int(r0)
   714  	if e1 != 0 {
   715  		err = e1
   716  	}
   717  	return
   718  }
   719  
   720  func Getpgrp() (pgid int, err error) {
   721  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0)
   722  	pgid = int(r0)
   723  	if e1 != 0 {
   724  		err = e1
   725  	}
   726  	return
   727  }
   728  
   729  func Geteuid() (euid int) {
   730  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0)
   731  	euid = int(r0)
   732  	return
   733  }
   734  
   735  func Getegid() (egid int) {
   736  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0)
   737  	egid = int(r0)
   738  	return
   739  }
   740  
   741  func Getppid() (ppid int) {
   742  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0)
   743  	ppid = int(r0)
   744  	return
   745  }
   746  
   747  func Getpriority(which int, who int) (n int, err error) {
   748  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
   749  	n = int(r0)
   750  	if e1 != 0 {
   751  		err = e1
   752  	}
   753  	return
   754  }
   755  
   756  func Getrlimit(which int, lim *Rlimit) (err error) {
   757  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
   758  	if e1 != 0 {
   759  		err = e1
   760  	}
   761  	return
   762  }
   763  
   764  func Getrusage(who int, rusage *Rusage) (err error) {
   765  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0)
   766  	if e1 != 0 {
   767  		err = e1
   768  	}
   769  	return
   770  }
   771  
   772  func Gettimeofday(tv *Timeval) (err error) {
   773  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0)
   774  	if e1 != 0 {
   775  		err = e1
   776  	}
   777  	return
   778  }
   779  
   780  func Getuid() (uid int) {
   781  	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0)
   782  	uid = int(r0)
   783  	return
   784  }
   785  
   786  func Kill(pid int, signum syscall.Signal) (err error) {
   787  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
   788  	if e1 != 0 {
   789  		err = e1
   790  	}
   791  	return
   792  }
   793  
   794  func Lchown(path string, uid int, gid int) (err error) {
   795  	var _p0 *byte
   796  	_p0, err = BytePtrFromString(path)
   797  	if err != nil {
   798  		return
   799  	}
   800  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
   801  	use(unsafe.Pointer(_p0))
   802  	if e1 != 0 {
   803  		err = e1
   804  	}
   805  	return
   806  }
   807  
   808  func Link(path string, link string) (err error) {
   809  	var _p0 *byte
   810  	_p0, err = BytePtrFromString(path)
   811  	if err != nil {
   812  		return
   813  	}
   814  	var _p1 *byte
   815  	_p1, err = BytePtrFromString(link)
   816  	if err != nil {
   817  		return
   818  	}
   819  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
   820  	use(unsafe.Pointer(_p0))
   821  	use(unsafe.Pointer(_p1))
   822  	if e1 != 0 {
   823  		err = e1
   824  	}
   825  	return
   826  }
   827  
   828  func Listen(s int, backlog int) (err error) {
   829  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
   830  	if e1 != 0 {
   831  		err = e1
   832  	}
   833  	return
   834  }
   835  
   836  func Lstat(path string, stat *Stat_t) (err error) {
   837  	var _p0 *byte
   838  	_p0, err = BytePtrFromString(path)
   839  	if err != nil {
   840  		return
   841  	}
   842  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
   843  	use(unsafe.Pointer(_p0))
   844  	if e1 != 0 {
   845  		err = e1
   846  	}
   847  	return
   848  }
   849  
   850  func Madvise(b []byte, advice int) (err error) {
   851  	var _p0 *byte
   852  	if len(b) > 0 {
   853  		_p0 = &b[0]
   854  	}
   855  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0)
   856  	if e1 != 0 {
   857  		err = e1
   858  	}
   859  	return
   860  }
   861  
   862  func Mkdir(path string, mode uint32) (err error) {
   863  	var _p0 *byte
   864  	_p0, err = BytePtrFromString(path)
   865  	if err != nil {
   866  		return
   867  	}
   868  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   869  	use(unsafe.Pointer(_p0))
   870  	if e1 != 0 {
   871  		err = e1
   872  	}
   873  	return
   874  }
   875  
   876  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
   877  	var _p0 *byte
   878  	_p0, err = BytePtrFromString(path)
   879  	if err != nil {
   880  		return
   881  	}
   882  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
   883  	use(unsafe.Pointer(_p0))
   884  	if e1 != 0 {
   885  		err = e1
   886  	}
   887  	return
   888  }
   889  
   890  func Mkfifo(path string, mode uint32) (err error) {
   891  	var _p0 *byte
   892  	_p0, err = BytePtrFromString(path)
   893  	if err != nil {
   894  		return
   895  	}
   896  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   897  	use(unsafe.Pointer(_p0))
   898  	if e1 != 0 {
   899  		err = e1
   900  	}
   901  	return
   902  }
   903  
   904  func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
   905  	var _p0 *byte
   906  	_p0, err = BytePtrFromString(path)
   907  	if err != nil {
   908  		return
   909  	}
   910  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
   911  	use(unsafe.Pointer(_p0))
   912  	if e1 != 0 {
   913  		err = e1
   914  	}
   915  	return
   916  }
   917  
   918  func Mknod(path string, mode uint32, dev int) (err error) {
   919  	var _p0 *byte
   920  	_p0, err = BytePtrFromString(path)
   921  	if err != nil {
   922  		return
   923  	}
   924  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0)
   925  	use(unsafe.Pointer(_p0))
   926  	if e1 != 0 {
   927  		err = e1
   928  	}
   929  	return
   930  }
   931  
   932  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
   933  	var _p0 *byte
   934  	_p0, err = BytePtrFromString(path)
   935  	if err != nil {
   936  		return
   937  	}
   938  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
   939  	use(unsafe.Pointer(_p0))
   940  	if e1 != 0 {
   941  		err = e1
   942  	}
   943  	return
   944  }
   945  
   946  func Mlock(b []byte) (err error) {
   947  	var _p0 *byte
   948  	if len(b) > 0 {
   949  		_p0 = &b[0]
   950  	}
   951  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
   952  	if e1 != 0 {
   953  		err = e1
   954  	}
   955  	return
   956  }
   957  
   958  func Mlockall(flags int) (err error) {
   959  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0)
   960  	if e1 != 0 {
   961  		err = e1
   962  	}
   963  	return
   964  }
   965  
   966  func Mprotect(b []byte, prot int) (err error) {
   967  	var _p0 *byte
   968  	if len(b) > 0 {
   969  		_p0 = &b[0]
   970  	}
   971  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0)
   972  	if e1 != 0 {
   973  		err = e1
   974  	}
   975  	return
   976  }
   977  
   978  func Munlock(b []byte) (err error) {
   979  	var _p0 *byte
   980  	if len(b) > 0 {
   981  		_p0 = &b[0]
   982  	}
   983  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
   984  	if e1 != 0 {
   985  		err = e1
   986  	}
   987  	return
   988  }
   989  
   990  func Munlockall() (err error) {
   991  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0)
   992  	if e1 != 0 {
   993  		err = e1
   994  	}
   995  	return
   996  }
   997  
   998  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
   999  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0)
  1000  	if e1 != 0 {
  1001  		err = e1
  1002  	}
  1003  	return
  1004  }
  1005  
  1006  func Open(path string, mode int, perm uint32) (fd int, err error) {
  1007  	var _p0 *byte
  1008  	_p0, err = BytePtrFromString(path)
  1009  	if err != nil {
  1010  		return
  1011  	}
  1012  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
  1013  	use(unsafe.Pointer(_p0))
  1014  	fd = int(r0)
  1015  	if e1 != 0 {
  1016  		err = e1
  1017  	}
  1018  	return
  1019  }
  1020  
  1021  func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
  1022  	var _p0 *byte
  1023  	_p0, err = BytePtrFromString(path)
  1024  	if err != nil {
  1025  		return
  1026  	}
  1027  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
  1028  	use(unsafe.Pointer(_p0))
  1029  	fd = int(r0)
  1030  	if e1 != 0 {
  1031  		err = e1
  1032  	}
  1033  	return
  1034  }
  1035  
  1036  func Pathconf(path string, name int) (val int, err error) {
  1037  	var _p0 *byte
  1038  	_p0, err = BytePtrFromString(path)
  1039  	if err != nil {
  1040  		return
  1041  	}
  1042  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0)
  1043  	use(unsafe.Pointer(_p0))
  1044  	val = int(r0)
  1045  	if e1 != 0 {
  1046  		err = e1
  1047  	}
  1048  	return
  1049  }
  1050  
  1051  func Pause() (err error) {
  1052  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0)
  1053  	if e1 != 0 {
  1054  		err = e1
  1055  	}
  1056  	return
  1057  }
  1058  
  1059  func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1060  	var _p0 *byte
  1061  	if len(p) > 0 {
  1062  		_p0 = &p[0]
  1063  	}
  1064  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
  1065  	n = int(r0)
  1066  	if e1 != 0 {
  1067  		err = e1
  1068  	}
  1069  	return
  1070  }
  1071  
  1072  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1073  	var _p0 *byte
  1074  	if len(p) > 0 {
  1075  		_p0 = &p[0]
  1076  	}
  1077  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
  1078  	n = int(r0)
  1079  	if e1 != 0 {
  1080  		err = e1
  1081  	}
  1082  	return
  1083  }
  1084  
  1085  func read(fd int, p []byte) (n int, err error) {
  1086  	var _p0 *byte
  1087  	if len(p) > 0 {
  1088  		_p0 = &p[0]
  1089  	}
  1090  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1091  	n = int(r0)
  1092  	if e1 != 0 {
  1093  		err = e1
  1094  	}
  1095  	return
  1096  }
  1097  
  1098  func Readlink(path string, buf []byte) (n int, err error) {
  1099  	var _p0 *byte
  1100  	_p0, err = BytePtrFromString(path)
  1101  	if err != nil {
  1102  		return
  1103  	}
  1104  	var _p1 *byte
  1105  	if len(buf) > 0 {
  1106  		_p1 = &buf[0]
  1107  	}
  1108  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0)
  1109  	use(unsafe.Pointer(_p0))
  1110  	n = int(r0)
  1111  	if e1 != 0 {
  1112  		err = e1
  1113  	}
  1114  	return
  1115  }
  1116  
  1117  func Rename(from string, to string) (err error) {
  1118  	var _p0 *byte
  1119  	_p0, err = BytePtrFromString(from)
  1120  	if err != nil {
  1121  		return
  1122  	}
  1123  	var _p1 *byte
  1124  	_p1, err = BytePtrFromString(to)
  1125  	if err != nil {
  1126  		return
  1127  	}
  1128  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1129  	use(unsafe.Pointer(_p0))
  1130  	use(unsafe.Pointer(_p1))
  1131  	if e1 != 0 {
  1132  		err = e1
  1133  	}
  1134  	return
  1135  }
  1136  
  1137  func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  1138  	var _p0 *byte
  1139  	_p0, err = BytePtrFromString(oldpath)
  1140  	if err != nil {
  1141  		return
  1142  	}
  1143  	var _p1 *byte
  1144  	_p1, err = BytePtrFromString(newpath)
  1145  	if err != nil {
  1146  		return
  1147  	}
  1148  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1149  	use(unsafe.Pointer(_p0))
  1150  	use(unsafe.Pointer(_p1))
  1151  	if e1 != 0 {
  1152  		err = e1
  1153  	}
  1154  	return
  1155  }
  1156  
  1157  func Rmdir(path string) (err error) {
  1158  	var _p0 *byte
  1159  	_p0, err = BytePtrFromString(path)
  1160  	if err != nil {
  1161  		return
  1162  	}
  1163  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1164  	use(unsafe.Pointer(_p0))
  1165  	if e1 != 0 {
  1166  		err = e1
  1167  	}
  1168  	return
  1169  }
  1170  
  1171  func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
  1172  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
  1173  	newoffset = int64(r0)
  1174  	if e1 != 0 {
  1175  		err = e1
  1176  	}
  1177  	return
  1178  }
  1179  
  1180  func Setegid(egid int) (err error) {
  1181  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
  1182  	if e1 != 0 {
  1183  		err = e1
  1184  	}
  1185  	return
  1186  }
  1187  
  1188  func Seteuid(euid int) (err error) {
  1189  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
  1190  	if e1 != 0 {
  1191  		err = e1
  1192  	}
  1193  	return
  1194  }
  1195  
  1196  func Setgid(gid int) (err error) {
  1197  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
  1198  	if e1 != 0 {
  1199  		err = e1
  1200  	}
  1201  	return
  1202  }
  1203  
  1204  func Sethostname(p []byte) (err error) {
  1205  	var _p0 *byte
  1206  	if len(p) > 0 {
  1207  		_p0 = &p[0]
  1208  	}
  1209  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0)
  1210  	if e1 != 0 {
  1211  		err = e1
  1212  	}
  1213  	return
  1214  }
  1215  
  1216  func Setpgid(pid int, pgid int) (err error) {
  1217  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
  1218  	if e1 != 0 {
  1219  		err = e1
  1220  	}
  1221  	return
  1222  }
  1223  
  1224  func Setpriority(which int, who int, prio int) (err error) {
  1225  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
  1226  	if e1 != 0 {
  1227  		err = e1
  1228  	}
  1229  	return
  1230  }
  1231  
  1232  func Setregid(rgid int, egid int) (err error) {
  1233  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
  1234  	if e1 != 0 {
  1235  		err = e1
  1236  	}
  1237  	return
  1238  }
  1239  
  1240  func Setreuid(ruid int, euid int) (err error) {
  1241  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
  1242  	if e1 != 0 {
  1243  		err = e1
  1244  	}
  1245  	return
  1246  }
  1247  
  1248  func Setrlimit(which int, lim *Rlimit) (err error) {
  1249  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
  1250  	if e1 != 0 {
  1251  		err = e1
  1252  	}
  1253  	return
  1254  }
  1255  
  1256  func Setsid() (pid int, err error) {
  1257  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0)
  1258  	pid = int(r0)
  1259  	if e1 != 0 {
  1260  		err = e1
  1261  	}
  1262  	return
  1263  }
  1264  
  1265  func Setuid(uid int) (err error) {
  1266  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
  1267  	if e1 != 0 {
  1268  		err = e1
  1269  	}
  1270  	return
  1271  }
  1272  
  1273  func Shutdown(s int, how int) (err error) {
  1274  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
  1275  	if e1 != 0 {
  1276  		err = e1
  1277  	}
  1278  	return
  1279  }
  1280  
  1281  func Stat(path string, stat *Stat_t) (err error) {
  1282  	var _p0 *byte
  1283  	_p0, err = BytePtrFromString(path)
  1284  	if err != nil {
  1285  		return
  1286  	}
  1287  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
  1288  	use(unsafe.Pointer(_p0))
  1289  	if e1 != 0 {
  1290  		err = e1
  1291  	}
  1292  	return
  1293  }
  1294  
  1295  func Symlink(path string, link string) (err error) {
  1296  	var _p0 *byte
  1297  	_p0, err = BytePtrFromString(path)
  1298  	if err != nil {
  1299  		return
  1300  	}
  1301  	var _p1 *byte
  1302  	_p1, err = BytePtrFromString(link)
  1303  	if err != nil {
  1304  		return
  1305  	}
  1306  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1307  	use(unsafe.Pointer(_p0))
  1308  	use(unsafe.Pointer(_p1))
  1309  	if e1 != 0 {
  1310  		err = e1
  1311  	}
  1312  	return
  1313  }
  1314  
  1315  func Sync() (err error) {
  1316  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0)
  1317  	if e1 != 0 {
  1318  		err = e1
  1319  	}
  1320  	return
  1321  }
  1322  
  1323  func Times(tms *Tms) (ticks uintptr, err error) {
  1324  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0)
  1325  	ticks = uintptr(r0)
  1326  	if e1 != 0 {
  1327  		err = e1
  1328  	}
  1329  	return
  1330  }
  1331  
  1332  func Truncate(path string, length int64) (err error) {
  1333  	var _p0 *byte
  1334  	_p0, err = BytePtrFromString(path)
  1335  	if err != nil {
  1336  		return
  1337  	}
  1338  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
  1339  	use(unsafe.Pointer(_p0))
  1340  	if e1 != 0 {
  1341  		err = e1
  1342  	}
  1343  	return
  1344  }
  1345  
  1346  func Fsync(fd int) (err error) {
  1347  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  1348  	if e1 != 0 {
  1349  		err = e1
  1350  	}
  1351  	return
  1352  }
  1353  
  1354  func Ftruncate(fd int, length int64) (err error) {
  1355  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
  1356  	if e1 != 0 {
  1357  		err = e1
  1358  	}
  1359  	return
  1360  }
  1361  
  1362  func Umask(mask int) (oldmask int) {
  1363  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
  1364  	oldmask = int(r0)
  1365  	return
  1366  }
  1367  
  1368  func Uname(buf *Utsname) (err error) {
  1369  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
  1370  	if e1 != 0 {
  1371  		err = e1
  1372  	}
  1373  	return
  1374  }
  1375  
  1376  func Unmount(target string, flags int) (err error) {
  1377  	var _p0 *byte
  1378  	_p0, err = BytePtrFromString(target)
  1379  	if err != nil {
  1380  		return
  1381  	}
  1382  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0)
  1383  	use(unsafe.Pointer(_p0))
  1384  	if e1 != 0 {
  1385  		err = e1
  1386  	}
  1387  	return
  1388  }
  1389  
  1390  func Unlink(path string) (err error) {
  1391  	var _p0 *byte
  1392  	_p0, err = BytePtrFromString(path)
  1393  	if err != nil {
  1394  		return
  1395  	}
  1396  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1397  	use(unsafe.Pointer(_p0))
  1398  	if e1 != 0 {
  1399  		err = e1
  1400  	}
  1401  	return
  1402  }
  1403  
  1404  func Unlinkat(dirfd int, path string, flags int) (err error) {
  1405  	var _p0 *byte
  1406  	_p0, err = BytePtrFromString(path)
  1407  	if err != nil {
  1408  		return
  1409  	}
  1410  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0)
  1411  	use(unsafe.Pointer(_p0))
  1412  	if e1 != 0 {
  1413  		err = e1
  1414  	}
  1415  	return
  1416  }
  1417  
  1418  func Ustat(dev int, ubuf *Ustat_t) (err error) {
  1419  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0)
  1420  	if e1 != 0 {
  1421  		err = e1
  1422  	}
  1423  	return
  1424  }
  1425  
  1426  func Utime(path string, buf *Utimbuf) (err error) {
  1427  	var _p0 *byte
  1428  	_p0, err = BytePtrFromString(path)
  1429  	if err != nil {
  1430  		return
  1431  	}
  1432  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
  1433  	use(unsafe.Pointer(_p0))
  1434  	if e1 != 0 {
  1435  		err = e1
  1436  	}
  1437  	return
  1438  }
  1439  
  1440  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1441  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procbind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1442  	if e1 != 0 {
  1443  		err = e1
  1444  	}
  1445  	return
  1446  }
  1447  
  1448  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1449  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procconnect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1450  	if e1 != 0 {
  1451  		err = e1
  1452  	}
  1453  	return
  1454  }
  1455  
  1456  func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1457  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
  1458  	ret = uintptr(r0)
  1459  	if e1 != 0 {
  1460  		err = e1
  1461  	}
  1462  	return
  1463  }
  1464  
  1465  func munmap(addr uintptr, length uintptr) (err error) {
  1466  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
  1467  	if e1 != 0 {
  1468  		err = e1
  1469  	}
  1470  	return
  1471  }
  1472  
  1473  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1474  	var _p0 *byte
  1475  	if len(buf) > 0 {
  1476  		_p0 = &buf[0]
  1477  	}
  1478  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1479  	if e1 != 0 {
  1480  		err = e1
  1481  	}
  1482  	return
  1483  }
  1484  
  1485  func socket(domain int, typ int, proto int) (fd int, err error) {
  1486  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsocket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
  1487  	fd = int(r0)
  1488  	if e1 != 0 {
  1489  		err = e1
  1490  	}
  1491  	return
  1492  }
  1493  
  1494  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  1495  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsocketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  1496  	if e1 != 0 {
  1497  		err = e1
  1498  	}
  1499  	return
  1500  }
  1501  
  1502  func write(fd int, p []byte) (n int, err error) {
  1503  	var _p0 *byte
  1504  	if len(p) > 0 {
  1505  		_p0 = &p[0]
  1506  	}
  1507  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1508  	n = int(r0)
  1509  	if e1 != 0 {
  1510  		err = e1
  1511  	}
  1512  	return
  1513  }
  1514  
  1515  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  1516  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  1517  	if e1 != 0 {
  1518  		err = e1
  1519  	}
  1520  	return
  1521  }
  1522  
  1523  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1524  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
  1525  	if e1 != 0 {
  1526  		err = e1
  1527  	}
  1528  	return
  1529  }
  1530  
  1531  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  1532  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  1533  	if e1 != 0 {
  1534  		err = e1
  1535  	}
  1536  	return
  1537  }
  1538  
  1539  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  1540  	var _p0 *byte
  1541  	if len(p) > 0 {
  1542  		_p0 = &p[0]
  1543  	}
  1544  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  1545  	n = int(r0)
  1546  	if e1 != 0 {
  1547  		err = e1
  1548  	}
  1549  	return
  1550  }
  1551  
  1552  func sysconf(name int) (n int64, err error) {
  1553  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsysconf)), 1, uintptr(name), 0, 0, 0, 0, 0)
  1554  	n = int64(r0)
  1555  	if e1 != 0 {
  1556  		err = e1
  1557  	}
  1558  	return
  1559  }