github.com/kooksee/kchain@v0.0.0-20180613035215-4aef51c04906/src/golang.org/x/sys/unix/zsyscall_solaris_amd64.go (about)

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