Source file src/cmd/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go

     1  // go run mksyscall_solaris.go -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  //go: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_pipe2 pipe2 "libc.so"
    15  //go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so"
    16  //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
    17  //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
    18  //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    19  //go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
    20  //go:cgo_import_dynamic libc_gethostname gethostname "libc.so"
    21  //go:cgo_import_dynamic libc_utimes utimes "libc.so"
    22  //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
    23  //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
    24  //go:cgo_import_dynamic libc_futimesat futimesat "libc.so"
    25  //go:cgo_import_dynamic libc_accept accept "libsocket.so"
    26  //go:cgo_import_dynamic libc___xnet_recvmsg __xnet_recvmsg "libsocket.so"
    27  //go:cgo_import_dynamic libc___xnet_sendmsg __xnet_sendmsg "libsocket.so"
    28  //go:cgo_import_dynamic libc_acct acct "libc.so"
    29  //go:cgo_import_dynamic libc___makedev __makedev "libc.so"
    30  //go:cgo_import_dynamic libc___major __major "libc.so"
    31  //go:cgo_import_dynamic libc___minor __minor "libc.so"
    32  //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
    33  //go:cgo_import_dynamic libc_poll poll "libc.so"
    34  //go:cgo_import_dynamic libc_access access "libc.so"
    35  //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
    36  //go:cgo_import_dynamic libc_chdir chdir "libc.so"
    37  //go:cgo_import_dynamic libc_chmod chmod "libc.so"
    38  //go:cgo_import_dynamic libc_chown chown "libc.so"
    39  //go:cgo_import_dynamic libc_chroot chroot "libc.so"
    40  //go:cgo_import_dynamic libc_clockgettime clockgettime "libc.so"
    41  //go:cgo_import_dynamic libc_close close "libc.so"
    42  //go:cgo_import_dynamic libc_creat creat "libc.so"
    43  //go:cgo_import_dynamic libc_dup dup "libc.so"
    44  //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
    45  //go:cgo_import_dynamic libc_exit exit "libc.so"
    46  //go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
    47  //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
    48  //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
    49  //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
    50  //go:cgo_import_dynamic libc_fchown fchown "libc.so"
    51  //go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
    52  //go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so"
    53  //go:cgo_import_dynamic libc_flock flock "libc.so"
    54  //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
    55  //go:cgo_import_dynamic libc_fstat fstat "libc.so"
    56  //go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
    57  //go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so"
    58  //go:cgo_import_dynamic libc_getdents getdents "libc.so"
    59  //go:cgo_import_dynamic libc_getgid getgid "libc.so"
    60  //go:cgo_import_dynamic libc_getpid getpid "libc.so"
    61  //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
    62  //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
    63  //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
    64  //go:cgo_import_dynamic libc_getegid getegid "libc.so"
    65  //go:cgo_import_dynamic libc_getppid getppid "libc.so"
    66  //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
    67  //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
    68  //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
    69  //go:cgo_import_dynamic libc_getsid getsid "libc.so"
    70  //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
    71  //go:cgo_import_dynamic libc_getuid getuid "libc.so"
    72  //go:cgo_import_dynamic libc_kill kill "libc.so"
    73  //go:cgo_import_dynamic libc_lchown lchown "libc.so"
    74  //go:cgo_import_dynamic libc_link link "libc.so"
    75  //go:cgo_import_dynamic libc___xnet_llisten __xnet_llisten "libsocket.so"
    76  //go:cgo_import_dynamic libc_lstat lstat "libc.so"
    77  //go:cgo_import_dynamic libc_madvise madvise "libc.so"
    78  //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
    79  //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
    80  //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
    81  //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
    82  //go:cgo_import_dynamic libc_mknod mknod "libc.so"
    83  //go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
    84  //go:cgo_import_dynamic libc_mlock mlock "libc.so"
    85  //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
    86  //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
    87  //go:cgo_import_dynamic libc_msync msync "libc.so"
    88  //go:cgo_import_dynamic libc_munlock munlock "libc.so"
    89  //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
    90  //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
    91  //go:cgo_import_dynamic libc_open open "libc.so"
    92  //go:cgo_import_dynamic libc_openat openat "libc.so"
    93  //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
    94  //go:cgo_import_dynamic libc_pause pause "libc.so"
    95  //go:cgo_import_dynamic libc_pread pread "libc.so"
    96  //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
    97  //go:cgo_import_dynamic libc_read read "libc.so"
    98  //go:cgo_import_dynamic libc_readlink readlink "libc.so"
    99  //go:cgo_import_dynamic libc_rename rename "libc.so"
   100  //go:cgo_import_dynamic libc_renameat renameat "libc.so"
   101  //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
   102  //go:cgo_import_dynamic libc_lseek lseek "libc.so"
   103  //go:cgo_import_dynamic libc_select select "libc.so"
   104  //go:cgo_import_dynamic libc_setegid setegid "libc.so"
   105  //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
   106  //go:cgo_import_dynamic libc_setgid setgid "libc.so"
   107  //go:cgo_import_dynamic libc_sethostname sethostname "libc.so"
   108  //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
   109  //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
   110  //go:cgo_import_dynamic libc_setregid setregid "libc.so"
   111  //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
   112  //go:cgo_import_dynamic libc_setsid setsid "libc.so"
   113  //go:cgo_import_dynamic libc_setuid setuid "libc.so"
   114  //go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so"
   115  //go:cgo_import_dynamic libc_stat stat "libc.so"
   116  //go:cgo_import_dynamic libc_statvfs statvfs "libc.so"
   117  //go:cgo_import_dynamic libc_symlink symlink "libc.so"
   118  //go:cgo_import_dynamic libc_sync sync "libc.so"
   119  //go:cgo_import_dynamic libc_sysconf sysconf "libc.so"
   120  //go:cgo_import_dynamic libc_times times "libc.so"
   121  //go:cgo_import_dynamic libc_truncate truncate "libc.so"
   122  //go:cgo_import_dynamic libc_fsync fsync "libc.so"
   123  //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
   124  //go:cgo_import_dynamic libc_umask umask "libc.so"
   125  //go:cgo_import_dynamic libc_uname uname "libc.so"
   126  //go:cgo_import_dynamic libc_umount umount "libc.so"
   127  //go:cgo_import_dynamic libc_unlink unlink "libc.so"
   128  //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
   129  //go:cgo_import_dynamic libc_ustat ustat "libc.so"
   130  //go:cgo_import_dynamic libc_utime utime "libc.so"
   131  //go:cgo_import_dynamic libc___xnet_bind __xnet_bind "libsocket.so"
   132  //go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so"
   133  //go:cgo_import_dynamic libc_mmap mmap "libc.so"
   134  //go:cgo_import_dynamic libc_munmap munmap "libc.so"
   135  //go:cgo_import_dynamic libc_sendfile sendfile "libsendfile.so"
   136  //go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so"
   137  //go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so"
   138  //go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so"
   139  //go:cgo_import_dynamic libc_write write "libc.so"
   140  //go:cgo_import_dynamic libc___xnet_getsockopt __xnet_getsockopt "libsocket.so"
   141  //go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
   142  //go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
   143  //go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
   144  //go:cgo_import_dynamic libc_getpeerucred getpeerucred "libc.so"
   145  //go:cgo_import_dynamic libc_ucred_get ucred_get "libc.so"
   146  //go:cgo_import_dynamic libc_ucred_geteuid ucred_geteuid "libc.so"
   147  //go:cgo_import_dynamic libc_ucred_getegid ucred_getegid "libc.so"
   148  //go:cgo_import_dynamic libc_ucred_getruid ucred_getruid "libc.so"
   149  //go:cgo_import_dynamic libc_ucred_getrgid ucred_getrgid "libc.so"
   150  //go:cgo_import_dynamic libc_ucred_getsuid ucred_getsuid "libc.so"
   151  //go:cgo_import_dynamic libc_ucred_getsgid ucred_getsgid "libc.so"
   152  //go:cgo_import_dynamic libc_ucred_getpid ucred_getpid "libc.so"
   153  //go:cgo_import_dynamic libc_ucred_free ucred_free "libc.so"
   154  //go:cgo_import_dynamic libc_port_create port_create "libc.so"
   155  //go:cgo_import_dynamic libc_port_associate port_associate "libc.so"
   156  //go:cgo_import_dynamic libc_port_dissociate port_dissociate "libc.so"
   157  //go:cgo_import_dynamic libc_port_get port_get "libc.so"
   158  //go:cgo_import_dynamic libc_port_getn port_getn "libc.so"
   159  //go:cgo_import_dynamic libc_putmsg putmsg "libc.so"
   160  //go:cgo_import_dynamic libc_getmsg getmsg "libc.so"
   161  
   162  //go:linkname procpipe libc_pipe
   163  //go:linkname procpipe2 libc_pipe2
   164  //go:linkname procgetsockname libc_getsockname
   165  //go:linkname procGetcwd libc_getcwd
   166  //go:linkname procgetgroups libc_getgroups
   167  //go:linkname procsetgroups libc_setgroups
   168  //go:linkname procwait4 libc_wait4
   169  //go:linkname procgethostname libc_gethostname
   170  //go:linkname procutimes libc_utimes
   171  //go:linkname procutimensat libc_utimensat
   172  //go:linkname procfcntl libc_fcntl
   173  //go:linkname procfutimesat libc_futimesat
   174  //go:linkname procaccept libc_accept
   175  //go:linkname proc__xnet_recvmsg libc___xnet_recvmsg
   176  //go:linkname proc__xnet_sendmsg libc___xnet_sendmsg
   177  //go:linkname procacct libc_acct
   178  //go:linkname proc__makedev libc___makedev
   179  //go:linkname proc__major libc___major
   180  //go:linkname proc__minor libc___minor
   181  //go:linkname procioctl libc_ioctl
   182  //go:linkname procpoll libc_poll
   183  //go:linkname procAccess libc_access
   184  //go:linkname procAdjtime libc_adjtime
   185  //go:linkname procChdir libc_chdir
   186  //go:linkname procChmod libc_chmod
   187  //go:linkname procChown libc_chown
   188  //go:linkname procChroot libc_chroot
   189  //go:linkname procClockGettime libc_clockgettime
   190  //go:linkname procClose libc_close
   191  //go:linkname procCreat libc_creat
   192  //go:linkname procDup libc_dup
   193  //go:linkname procDup2 libc_dup2
   194  //go:linkname procExit libc_exit
   195  //go:linkname procFaccessat libc_faccessat
   196  //go:linkname procFchdir libc_fchdir
   197  //go:linkname procFchmod libc_fchmod
   198  //go:linkname procFchmodat libc_fchmodat
   199  //go:linkname procFchown libc_fchown
   200  //go:linkname procFchownat libc_fchownat
   201  //go:linkname procFdatasync libc_fdatasync
   202  //go:linkname procFlock libc_flock
   203  //go:linkname procFpathconf libc_fpathconf
   204  //go:linkname procFstat libc_fstat
   205  //go:linkname procFstatat libc_fstatat
   206  //go:linkname procFstatvfs libc_fstatvfs
   207  //go:linkname procGetdents libc_getdents
   208  //go:linkname procGetgid libc_getgid
   209  //go:linkname procGetpid libc_getpid
   210  //go:linkname procGetpgid libc_getpgid
   211  //go:linkname procGetpgrp libc_getpgrp
   212  //go:linkname procGeteuid libc_geteuid
   213  //go:linkname procGetegid libc_getegid
   214  //go:linkname procGetppid libc_getppid
   215  //go:linkname procGetpriority libc_getpriority
   216  //go:linkname procGetrlimit libc_getrlimit
   217  //go:linkname procGetrusage libc_getrusage
   218  //go:linkname procGetsid libc_getsid
   219  //go:linkname procGettimeofday libc_gettimeofday
   220  //go:linkname procGetuid libc_getuid
   221  //go:linkname procKill libc_kill
   222  //go:linkname procLchown libc_lchown
   223  //go:linkname procLink libc_link
   224  //go:linkname proc__xnet_llisten libc___xnet_llisten
   225  //go:linkname procLstat libc_lstat
   226  //go:linkname procMadvise libc_madvise
   227  //go:linkname procMkdir libc_mkdir
   228  //go:linkname procMkdirat libc_mkdirat
   229  //go:linkname procMkfifo libc_mkfifo
   230  //go:linkname procMkfifoat libc_mkfifoat
   231  //go:linkname procMknod libc_mknod
   232  //go:linkname procMknodat libc_mknodat
   233  //go:linkname procMlock libc_mlock
   234  //go:linkname procMlockall libc_mlockall
   235  //go:linkname procMprotect libc_mprotect
   236  //go:linkname procMsync libc_msync
   237  //go:linkname procMunlock libc_munlock
   238  //go:linkname procMunlockall libc_munlockall
   239  //go:linkname procNanosleep libc_nanosleep
   240  //go:linkname procOpen libc_open
   241  //go:linkname procOpenat libc_openat
   242  //go:linkname procPathconf libc_pathconf
   243  //go:linkname procPause libc_pause
   244  //go:linkname procpread libc_pread
   245  //go:linkname procpwrite libc_pwrite
   246  //go:linkname procread libc_read
   247  //go:linkname procReadlink libc_readlink
   248  //go:linkname procRename libc_rename
   249  //go:linkname procRenameat libc_renameat
   250  //go:linkname procRmdir libc_rmdir
   251  //go:linkname proclseek libc_lseek
   252  //go:linkname procSelect libc_select
   253  //go:linkname procSetegid libc_setegid
   254  //go:linkname procSeteuid libc_seteuid
   255  //go:linkname procSetgid libc_setgid
   256  //go:linkname procSethostname libc_sethostname
   257  //go:linkname procSetpgid libc_setpgid
   258  //go:linkname procSetpriority libc_setpriority
   259  //go:linkname procSetregid libc_setregid
   260  //go:linkname procSetreuid libc_setreuid
   261  //go:linkname procSetsid libc_setsid
   262  //go:linkname procSetuid libc_setuid
   263  //go:linkname procshutdown libc_shutdown
   264  //go:linkname procStat libc_stat
   265  //go:linkname procStatvfs libc_statvfs
   266  //go:linkname procSymlink libc_symlink
   267  //go:linkname procSync libc_sync
   268  //go:linkname procSysconf libc_sysconf
   269  //go:linkname procTimes libc_times
   270  //go:linkname procTruncate libc_truncate
   271  //go:linkname procFsync libc_fsync
   272  //go:linkname procFtruncate libc_ftruncate
   273  //go:linkname procUmask libc_umask
   274  //go:linkname procUname libc_uname
   275  //go:linkname procumount libc_umount
   276  //go:linkname procUnlink libc_unlink
   277  //go:linkname procUnlinkat libc_unlinkat
   278  //go:linkname procUstat libc_ustat
   279  //go:linkname procUtime libc_utime
   280  //go:linkname proc__xnet_bind libc___xnet_bind
   281  //go:linkname proc__xnet_connect libc___xnet_connect
   282  //go:linkname procmmap libc_mmap
   283  //go:linkname procmunmap libc_munmap
   284  //go:linkname procsendfile libc_sendfile
   285  //go:linkname proc__xnet_sendto libc___xnet_sendto
   286  //go:linkname proc__xnet_socket libc___xnet_socket
   287  //go:linkname proc__xnet_socketpair libc___xnet_socketpair
   288  //go:linkname procwrite libc_write
   289  //go:linkname proc__xnet_getsockopt libc___xnet_getsockopt
   290  //go:linkname procgetpeername libc_getpeername
   291  //go:linkname procsetsockopt libc_setsockopt
   292  //go:linkname procrecvfrom libc_recvfrom
   293  //go:linkname procgetpeerucred libc_getpeerucred
   294  //go:linkname procucred_get libc_ucred_get
   295  //go:linkname procucred_geteuid libc_ucred_geteuid
   296  //go:linkname procucred_getegid libc_ucred_getegid
   297  //go:linkname procucred_getruid libc_ucred_getruid
   298  //go:linkname procucred_getrgid libc_ucred_getrgid
   299  //go:linkname procucred_getsuid libc_ucred_getsuid
   300  //go:linkname procucred_getsgid libc_ucred_getsgid
   301  //go:linkname procucred_getpid libc_ucred_getpid
   302  //go:linkname procucred_free libc_ucred_free
   303  //go:linkname procport_create libc_port_create
   304  //go:linkname procport_associate libc_port_associate
   305  //go:linkname procport_dissociate libc_port_dissociate
   306  //go:linkname procport_get libc_port_get
   307  //go:linkname procport_getn libc_port_getn
   308  //go:linkname procputmsg libc_putmsg
   309  //go:linkname procgetmsg libc_getmsg
   310  
   311  var (
   312  	procpipe,
   313  	procpipe2,
   314  	procgetsockname,
   315  	procGetcwd,
   316  	procgetgroups,
   317  	procsetgroups,
   318  	procwait4,
   319  	procgethostname,
   320  	procutimes,
   321  	procutimensat,
   322  	procfcntl,
   323  	procfutimesat,
   324  	procaccept,
   325  	proc__xnet_recvmsg,
   326  	proc__xnet_sendmsg,
   327  	procacct,
   328  	proc__makedev,
   329  	proc__major,
   330  	proc__minor,
   331  	procioctl,
   332  	procpoll,
   333  	procAccess,
   334  	procAdjtime,
   335  	procChdir,
   336  	procChmod,
   337  	procChown,
   338  	procChroot,
   339  	procClockGettime,
   340  	procClose,
   341  	procCreat,
   342  	procDup,
   343  	procDup2,
   344  	procExit,
   345  	procFaccessat,
   346  	procFchdir,
   347  	procFchmod,
   348  	procFchmodat,
   349  	procFchown,
   350  	procFchownat,
   351  	procFdatasync,
   352  	procFlock,
   353  	procFpathconf,
   354  	procFstat,
   355  	procFstatat,
   356  	procFstatvfs,
   357  	procGetdents,
   358  	procGetgid,
   359  	procGetpid,
   360  	procGetpgid,
   361  	procGetpgrp,
   362  	procGeteuid,
   363  	procGetegid,
   364  	procGetppid,
   365  	procGetpriority,
   366  	procGetrlimit,
   367  	procGetrusage,
   368  	procGetsid,
   369  	procGettimeofday,
   370  	procGetuid,
   371  	procKill,
   372  	procLchown,
   373  	procLink,
   374  	proc__xnet_llisten,
   375  	procLstat,
   376  	procMadvise,
   377  	procMkdir,
   378  	procMkdirat,
   379  	procMkfifo,
   380  	procMkfifoat,
   381  	procMknod,
   382  	procMknodat,
   383  	procMlock,
   384  	procMlockall,
   385  	procMprotect,
   386  	procMsync,
   387  	procMunlock,
   388  	procMunlockall,
   389  	procNanosleep,
   390  	procOpen,
   391  	procOpenat,
   392  	procPathconf,
   393  	procPause,
   394  	procpread,
   395  	procpwrite,
   396  	procread,
   397  	procReadlink,
   398  	procRename,
   399  	procRenameat,
   400  	procRmdir,
   401  	proclseek,
   402  	procSelect,
   403  	procSetegid,
   404  	procSeteuid,
   405  	procSetgid,
   406  	procSethostname,
   407  	procSetpgid,
   408  	procSetpriority,
   409  	procSetregid,
   410  	procSetreuid,
   411  	procSetsid,
   412  	procSetuid,
   413  	procshutdown,
   414  	procStat,
   415  	procStatvfs,
   416  	procSymlink,
   417  	procSync,
   418  	procSysconf,
   419  	procTimes,
   420  	procTruncate,
   421  	procFsync,
   422  	procFtruncate,
   423  	procUmask,
   424  	procUname,
   425  	procumount,
   426  	procUnlink,
   427  	procUnlinkat,
   428  	procUstat,
   429  	procUtime,
   430  	proc__xnet_bind,
   431  	proc__xnet_connect,
   432  	procmmap,
   433  	procmunmap,
   434  	procsendfile,
   435  	proc__xnet_sendto,
   436  	proc__xnet_socket,
   437  	proc__xnet_socketpair,
   438  	procwrite,
   439  	proc__xnet_getsockopt,
   440  	procgetpeername,
   441  	procsetsockopt,
   442  	procrecvfrom,
   443  	procgetpeerucred,
   444  	procucred_get,
   445  	procucred_geteuid,
   446  	procucred_getegid,
   447  	procucred_getruid,
   448  	procucred_getrgid,
   449  	procucred_getsuid,
   450  	procucred_getsgid,
   451  	procucred_getpid,
   452  	procucred_free,
   453  	procport_create,
   454  	procport_associate,
   455  	procport_dissociate,
   456  	procport_get,
   457  	procport_getn,
   458  	procputmsg,
   459  	procgetmsg syscallFunc
   460  )
   461  
   462  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   463  
   464  func pipe(p *[2]_C_int) (n int, err error) {
   465  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe)), 1, uintptr(unsafe.Pointer(p)), 0, 0, 0, 0, 0)
   466  	n = int(r0)
   467  	if e1 != 0 {
   468  		err = errnoErr(e1)
   469  	}
   470  	return
   471  }
   472  
   473  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   474  
   475  func pipe2(p *[2]_C_int, flags int) (err error) {
   476  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe2)), 2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0, 0, 0, 0)
   477  	if e1 != 0 {
   478  		err = errnoErr(e1)
   479  	}
   480  	return
   481  }
   482  
   483  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   484  
   485  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   486  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
   487  	if e1 != 0 {
   488  		err = errnoErr(e1)
   489  	}
   490  	return
   491  }
   492  
   493  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   494  
   495  func Getcwd(buf []byte) (n int, err error) {
   496  	var _p0 *byte
   497  	if len(buf) > 0 {
   498  		_p0 = &buf[0]
   499  	}
   500  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
   501  	n = int(r0)
   502  	if e1 != 0 {
   503  		err = errnoErr(e1)
   504  	}
   505  	return
   506  }
   507  
   508  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   509  
   510  func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
   511  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
   512  	n = int(r0)
   513  	if e1 != 0 {
   514  		err = errnoErr(e1)
   515  	}
   516  	return
   517  }
   518  
   519  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   520  
   521  func setgroups(ngid int, gid *_Gid_t) (err error) {
   522  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
   523  	if e1 != 0 {
   524  		err = errnoErr(e1)
   525  	}
   526  	return
   527  }
   528  
   529  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   530  
   531  func wait4(pid int32, statusp *_C_int, options int, rusage *Rusage) (wpid int32, err error) {
   532  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwait4)), 4, uintptr(pid), uintptr(unsafe.Pointer(statusp)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
   533  	wpid = int32(r0)
   534  	if e1 != 0 {
   535  		err = errnoErr(e1)
   536  	}
   537  	return
   538  }
   539  
   540  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   541  
   542  func gethostname(buf []byte) (n int, err error) {
   543  	var _p0 *byte
   544  	if len(buf) > 0 {
   545  		_p0 = &buf[0]
   546  	}
   547  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
   548  	n = int(r0)
   549  	if e1 != 0 {
   550  		err = errnoErr(e1)
   551  	}
   552  	return
   553  }
   554  
   555  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   556  
   557  func utimes(path string, times *[2]Timeval) (err error) {
   558  	var _p0 *byte
   559  	_p0, err = BytePtrFromString(path)
   560  	if err != nil {
   561  		return
   562  	}
   563  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
   564  	if e1 != 0 {
   565  		err = errnoErr(e1)
   566  	}
   567  	return
   568  }
   569  
   570  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   571  
   572  func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) {
   573  	var _p0 *byte
   574  	_p0, err = BytePtrFromString(path)
   575  	if err != nil {
   576  		return
   577  	}
   578  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
   579  	if e1 != 0 {
   580  		err = errnoErr(e1)
   581  	}
   582  	return
   583  }
   584  
   585  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   586  
   587  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   588  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
   589  	val = int(r0)
   590  	if e1 != 0 {
   591  		err = errnoErr(e1)
   592  	}
   593  	return
   594  }
   595  
   596  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   597  
   598  func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) {
   599  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0)
   600  	if e1 != 0 {
   601  		err = errnoErr(e1)
   602  	}
   603  	return
   604  }
   605  
   606  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   607  
   608  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
   609  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
   610  	fd = int(r0)
   611  	if e1 != 0 {
   612  		err = errnoErr(e1)
   613  	}
   614  	return
   615  }
   616  
   617  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   618  
   619  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   620  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_recvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
   621  	n = int(r0)
   622  	if e1 != 0 {
   623  		err = errnoErr(e1)
   624  	}
   625  	return
   626  }
   627  
   628  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   629  
   630  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   631  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
   632  	n = int(r0)
   633  	if e1 != 0 {
   634  		err = errnoErr(e1)
   635  	}
   636  	return
   637  }
   638  
   639  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   640  
   641  func acct(path *byte) (err error) {
   642  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0)
   643  	if e1 != 0 {
   644  		err = errnoErr(e1)
   645  	}
   646  	return
   647  }
   648  
   649  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   650  
   651  func __makedev(version int, major uint, minor uint) (val uint64) {
   652  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__makedev)), 3, uintptr(version), uintptr(major), uintptr(minor), 0, 0, 0)
   653  	val = uint64(r0)
   654  	return
   655  }
   656  
   657  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   658  
   659  func __major(version int, dev uint64) (val uint) {
   660  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__major)), 2, uintptr(version), uintptr(dev), 0, 0, 0, 0)
   661  	val = uint(r0)
   662  	return
   663  }
   664  
   665  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   666  
   667  func __minor(version int, dev uint64) (val uint) {
   668  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__minor)), 2, uintptr(version), uintptr(dev), 0, 0, 0, 0)
   669  	val = uint(r0)
   670  	return
   671  }
   672  
   673  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   674  
   675  func ioctlRet(fd int, req int, arg uintptr) (ret int, err error) {
   676  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
   677  	ret = int(r0)
   678  	if e1 != 0 {
   679  		err = errnoErr(e1)
   680  	}
   681  	return
   682  }
   683  
   684  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   685  
   686  func ioctlPtrRet(fd int, req int, arg unsafe.Pointer) (ret int, err error) {
   687  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
   688  	ret = int(r0)
   689  	if e1 != 0 {
   690  		err = errnoErr(e1)
   691  	}
   692  	return
   693  }
   694  
   695  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   696  
   697  func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
   698  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpoll)), 3, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout), 0, 0, 0)
   699  	n = int(r0)
   700  	if e1 != 0 {
   701  		err = errnoErr(e1)
   702  	}
   703  	return
   704  }
   705  
   706  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   707  
   708  func Access(path string, mode uint32) (err error) {
   709  	var _p0 *byte
   710  	_p0, err = BytePtrFromString(path)
   711  	if err != nil {
   712  		return
   713  	}
   714  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   715  	if e1 != 0 {
   716  		err = errnoErr(e1)
   717  	}
   718  	return
   719  }
   720  
   721  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   722  
   723  func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
   724  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0)
   725  	if e1 != 0 {
   726  		err = errnoErr(e1)
   727  	}
   728  	return
   729  }
   730  
   731  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   732  
   733  func Chdir(path string) (err error) {
   734  	var _p0 *byte
   735  	_p0, err = BytePtrFromString(path)
   736  	if err != nil {
   737  		return
   738  	}
   739  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   740  	if e1 != 0 {
   741  		err = errnoErr(e1)
   742  	}
   743  	return
   744  }
   745  
   746  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   747  
   748  func Chmod(path string, mode uint32) (err error) {
   749  	var _p0 *byte
   750  	_p0, err = BytePtrFromString(path)
   751  	if err != nil {
   752  		return
   753  	}
   754  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   755  	if e1 != 0 {
   756  		err = errnoErr(e1)
   757  	}
   758  	return
   759  }
   760  
   761  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   762  
   763  func Chown(path string, uid int, gid int) (err error) {
   764  	var _p0 *byte
   765  	_p0, err = BytePtrFromString(path)
   766  	if err != nil {
   767  		return
   768  	}
   769  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
   770  	if e1 != 0 {
   771  		err = errnoErr(e1)
   772  	}
   773  	return
   774  }
   775  
   776  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   777  
   778  func Chroot(path string) (err error) {
   779  	var _p0 *byte
   780  	_p0, err = BytePtrFromString(path)
   781  	if err != nil {
   782  		return
   783  	}
   784  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   785  	if e1 != 0 {
   786  		err = errnoErr(e1)
   787  	}
   788  	return
   789  }
   790  
   791  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   792  
   793  func ClockGettime(clockid int32, time *Timespec) (err error) {
   794  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClockGettime)), 2, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0, 0, 0, 0)
   795  	if e1 != 0 {
   796  		err = errnoErr(e1)
   797  	}
   798  	return
   799  }
   800  
   801  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   802  
   803  func Close(fd int) (err error) {
   804  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   805  	if e1 != 0 {
   806  		err = errnoErr(e1)
   807  	}
   808  	return
   809  }
   810  
   811  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   812  
   813  func Creat(path string, mode uint32) (fd int, err error) {
   814  	var _p0 *byte
   815  	_p0, err = BytePtrFromString(path)
   816  	if err != nil {
   817  		return
   818  	}
   819  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   820  	fd = int(r0)
   821  	if e1 != 0 {
   822  		err = errnoErr(e1)
   823  	}
   824  	return
   825  }
   826  
   827  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   828  
   829  func Dup(fd int) (nfd int, err error) {
   830  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   831  	nfd = int(r0)
   832  	if e1 != 0 {
   833  		err = errnoErr(e1)
   834  	}
   835  	return
   836  }
   837  
   838  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   839  
   840  func Dup2(oldfd int, newfd int) (err error) {
   841  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0)
   842  	if e1 != 0 {
   843  		err = errnoErr(e1)
   844  	}
   845  	return
   846  }
   847  
   848  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   849  
   850  func Exit(code int) {
   851  	sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0)
   852  	return
   853  }
   854  
   855  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   856  
   857  func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
   858  	var _p0 *byte
   859  	_p0, err = BytePtrFromString(path)
   860  	if err != nil {
   861  		return
   862  	}
   863  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFaccessat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   864  	if e1 != 0 {
   865  		err = errnoErr(e1)
   866  	}
   867  	return
   868  }
   869  
   870  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   871  
   872  func Fchdir(fd int) (err error) {
   873  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   874  	if e1 != 0 {
   875  		err = errnoErr(e1)
   876  	}
   877  	return
   878  }
   879  
   880  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   881  
   882  func Fchmod(fd int, mode uint32) (err error) {
   883  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
   884  	if e1 != 0 {
   885  		err = errnoErr(e1)
   886  	}
   887  	return
   888  }
   889  
   890  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   891  
   892  func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
   893  	var _p0 *byte
   894  	_p0, err = BytePtrFromString(path)
   895  	if err != nil {
   896  		return
   897  	}
   898  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   899  	if e1 != 0 {
   900  		err = errnoErr(e1)
   901  	}
   902  	return
   903  }
   904  
   905  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   906  
   907  func Fchown(fd int, uid int, gid int) (err error) {
   908  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
   909  	if e1 != 0 {
   910  		err = errnoErr(e1)
   911  	}
   912  	return
   913  }
   914  
   915  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   916  
   917  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   918  	var _p0 *byte
   919  	_p0, err = BytePtrFromString(path)
   920  	if err != nil {
   921  		return
   922  	}
   923  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   924  	if e1 != 0 {
   925  		err = errnoErr(e1)
   926  	}
   927  	return
   928  }
   929  
   930  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   931  
   932  func Fdatasync(fd int) (err error) {
   933  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   934  	if e1 != 0 {
   935  		err = errnoErr(e1)
   936  	}
   937  	return
   938  }
   939  
   940  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   941  
   942  func Flock(fd int, how int) (err error) {
   943  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFlock)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0)
   944  	if e1 != 0 {
   945  		err = errnoErr(e1)
   946  	}
   947  	return
   948  }
   949  
   950  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   951  
   952  func Fpathconf(fd int, name int) (val int, err error) {
   953  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
   954  	val = int(r0)
   955  	if e1 != 0 {
   956  		err = errnoErr(e1)
   957  	}
   958  	return
   959  }
   960  
   961  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   962  
   963  func Fstat(fd int, stat *Stat_t) (err error) {
   964  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
   965  	if e1 != 0 {
   966  		err = errnoErr(e1)
   967  	}
   968  	return
   969  }
   970  
   971  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   972  
   973  func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
   974  	var _p0 *byte
   975  	_p0, err = BytePtrFromString(path)
   976  	if err != nil {
   977  		return
   978  	}
   979  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
   980  	if e1 != 0 {
   981  		err = errnoErr(e1)
   982  	}
   983  	return
   984  }
   985  
   986  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   987  
   988  func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) {
   989  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0)
   990  	if e1 != 0 {
   991  		err = errnoErr(e1)
   992  	}
   993  	return
   994  }
   995  
   996  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   997  
   998  func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) {
   999  	var _p0 *byte
  1000  	if len(buf) > 0 {
  1001  		_p0 = &buf[0]
  1002  	}
  1003  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
  1004  	n = int(r0)
  1005  	if e1 != 0 {
  1006  		err = errnoErr(e1)
  1007  	}
  1008  	return
  1009  }
  1010  
  1011  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1012  
  1013  func Getgid() (gid int) {
  1014  	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0)
  1015  	gid = int(r0)
  1016  	return
  1017  }
  1018  
  1019  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1020  
  1021  func Getpid() (pid int) {
  1022  	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0)
  1023  	pid = int(r0)
  1024  	return
  1025  }
  1026  
  1027  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1028  
  1029  func Getpgid(pid int) (pgid int, err error) {
  1030  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
  1031  	pgid = int(r0)
  1032  	if e1 != 0 {
  1033  		err = errnoErr(e1)
  1034  	}
  1035  	return
  1036  }
  1037  
  1038  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1039  
  1040  func Getpgrp() (pgid int, err error) {
  1041  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0)
  1042  	pgid = int(r0)
  1043  	if e1 != 0 {
  1044  		err = errnoErr(e1)
  1045  	}
  1046  	return
  1047  }
  1048  
  1049  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1050  
  1051  func Geteuid() (euid int) {
  1052  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0)
  1053  	euid = int(r0)
  1054  	return
  1055  }
  1056  
  1057  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1058  
  1059  func Getegid() (egid int) {
  1060  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0)
  1061  	egid = int(r0)
  1062  	return
  1063  }
  1064  
  1065  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1066  
  1067  func Getppid() (ppid int) {
  1068  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0)
  1069  	ppid = int(r0)
  1070  	return
  1071  }
  1072  
  1073  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1074  
  1075  func Getpriority(which int, who int) (n int, err error) {
  1076  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
  1077  	n = int(r0)
  1078  	if e1 != 0 {
  1079  		err = errnoErr(e1)
  1080  	}
  1081  	return
  1082  }
  1083  
  1084  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1085  
  1086  func Getrlimit(which int, lim *Rlimit) (err error) {
  1087  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
  1088  	if e1 != 0 {
  1089  		err = errnoErr(e1)
  1090  	}
  1091  	return
  1092  }
  1093  
  1094  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1095  
  1096  func Getrusage(who int, rusage *Rusage) (err error) {
  1097  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0)
  1098  	if e1 != 0 {
  1099  		err = errnoErr(e1)
  1100  	}
  1101  	return
  1102  }
  1103  
  1104  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1105  
  1106  func Getsid(pid int) (sid int, err error) {
  1107  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetsid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
  1108  	sid = int(r0)
  1109  	if e1 != 0 {
  1110  		err = errnoErr(e1)
  1111  	}
  1112  	return
  1113  }
  1114  
  1115  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1116  
  1117  func Gettimeofday(tv *Timeval) (err error) {
  1118  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0)
  1119  	if e1 != 0 {
  1120  		err = errnoErr(e1)
  1121  	}
  1122  	return
  1123  }
  1124  
  1125  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1126  
  1127  func Getuid() (uid int) {
  1128  	r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0)
  1129  	uid = int(r0)
  1130  	return
  1131  }
  1132  
  1133  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1134  
  1135  func Kill(pid int, signum syscall.Signal) (err error) {
  1136  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
  1137  	if e1 != 0 {
  1138  		err = errnoErr(e1)
  1139  	}
  1140  	return
  1141  }
  1142  
  1143  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1144  
  1145  func Lchown(path string, uid int, gid int) (err error) {
  1146  	var _p0 *byte
  1147  	_p0, err = BytePtrFromString(path)
  1148  	if err != nil {
  1149  		return
  1150  	}
  1151  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
  1152  	if e1 != 0 {
  1153  		err = errnoErr(e1)
  1154  	}
  1155  	return
  1156  }
  1157  
  1158  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1159  
  1160  func Link(path string, link string) (err error) {
  1161  	var _p0 *byte
  1162  	_p0, err = BytePtrFromString(path)
  1163  	if err != nil {
  1164  		return
  1165  	}
  1166  	var _p1 *byte
  1167  	_p1, err = BytePtrFromString(link)
  1168  	if err != nil {
  1169  		return
  1170  	}
  1171  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1172  	if e1 != 0 {
  1173  		err = errnoErr(e1)
  1174  	}
  1175  	return
  1176  }
  1177  
  1178  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1179  
  1180  func Listen(s int, backlog int) (err error) {
  1181  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_llisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
  1182  	if e1 != 0 {
  1183  		err = errnoErr(e1)
  1184  	}
  1185  	return
  1186  }
  1187  
  1188  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1189  
  1190  func Lstat(path string, stat *Stat_t) (err error) {
  1191  	var _p0 *byte
  1192  	_p0, err = BytePtrFromString(path)
  1193  	if err != nil {
  1194  		return
  1195  	}
  1196  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
  1197  	if e1 != 0 {
  1198  		err = errnoErr(e1)
  1199  	}
  1200  	return
  1201  }
  1202  
  1203  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1204  
  1205  func Madvise(b []byte, advice int) (err error) {
  1206  	var _p0 *byte
  1207  	if len(b) > 0 {
  1208  		_p0 = &b[0]
  1209  	}
  1210  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0)
  1211  	if e1 != 0 {
  1212  		err = errnoErr(e1)
  1213  	}
  1214  	return
  1215  }
  1216  
  1217  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1218  
  1219  func Mkdir(path string, mode uint32) (err error) {
  1220  	var _p0 *byte
  1221  	_p0, err = BytePtrFromString(path)
  1222  	if err != nil {
  1223  		return
  1224  	}
  1225  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
  1226  	if e1 != 0 {
  1227  		err = errnoErr(e1)
  1228  	}
  1229  	return
  1230  }
  1231  
  1232  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1233  
  1234  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1235  	var _p0 *byte
  1236  	_p0, err = BytePtrFromString(path)
  1237  	if err != nil {
  1238  		return
  1239  	}
  1240  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
  1241  	if e1 != 0 {
  1242  		err = errnoErr(e1)
  1243  	}
  1244  	return
  1245  }
  1246  
  1247  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1248  
  1249  func Mkfifo(path string, mode uint32) (err error) {
  1250  	var _p0 *byte
  1251  	_p0, err = BytePtrFromString(path)
  1252  	if err != nil {
  1253  		return
  1254  	}
  1255  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
  1256  	if e1 != 0 {
  1257  		err = errnoErr(e1)
  1258  	}
  1259  	return
  1260  }
  1261  
  1262  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1263  
  1264  func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
  1265  	var _p0 *byte
  1266  	_p0, err = BytePtrFromString(path)
  1267  	if err != nil {
  1268  		return
  1269  	}
  1270  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
  1271  	if e1 != 0 {
  1272  		err = errnoErr(e1)
  1273  	}
  1274  	return
  1275  }
  1276  
  1277  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1278  
  1279  func Mknod(path string, mode uint32, dev int) (err error) {
  1280  	var _p0 *byte
  1281  	_p0, err = BytePtrFromString(path)
  1282  	if err != nil {
  1283  		return
  1284  	}
  1285  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0)
  1286  	if e1 != 0 {
  1287  		err = errnoErr(e1)
  1288  	}
  1289  	return
  1290  }
  1291  
  1292  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1293  
  1294  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1295  	var _p0 *byte
  1296  	_p0, err = BytePtrFromString(path)
  1297  	if err != nil {
  1298  		return
  1299  	}
  1300  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1301  	if e1 != 0 {
  1302  		err = errnoErr(e1)
  1303  	}
  1304  	return
  1305  }
  1306  
  1307  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1308  
  1309  func Mlock(b []byte) (err error) {
  1310  	var _p0 *byte
  1311  	if len(b) > 0 {
  1312  		_p0 = &b[0]
  1313  	}
  1314  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
  1315  	if e1 != 0 {
  1316  		err = errnoErr(e1)
  1317  	}
  1318  	return
  1319  }
  1320  
  1321  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1322  
  1323  func Mlockall(flags int) (err error) {
  1324  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0)
  1325  	if e1 != 0 {
  1326  		err = errnoErr(e1)
  1327  	}
  1328  	return
  1329  }
  1330  
  1331  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1332  
  1333  func Mprotect(b []byte, prot int) (err error) {
  1334  	var _p0 *byte
  1335  	if len(b) > 0 {
  1336  		_p0 = &b[0]
  1337  	}
  1338  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0)
  1339  	if e1 != 0 {
  1340  		err = errnoErr(e1)
  1341  	}
  1342  	return
  1343  }
  1344  
  1345  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1346  
  1347  func Msync(b []byte, flags int) (err error) {
  1348  	var _p0 *byte
  1349  	if len(b) > 0 {
  1350  		_p0 = &b[0]
  1351  	}
  1352  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMsync)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(flags), 0, 0, 0)
  1353  	if e1 != 0 {
  1354  		err = errnoErr(e1)
  1355  	}
  1356  	return
  1357  }
  1358  
  1359  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1360  
  1361  func Munlock(b []byte) (err error) {
  1362  	var _p0 *byte
  1363  	if len(b) > 0 {
  1364  		_p0 = &b[0]
  1365  	}
  1366  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
  1367  	if e1 != 0 {
  1368  		err = errnoErr(e1)
  1369  	}
  1370  	return
  1371  }
  1372  
  1373  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1374  
  1375  func Munlockall() (err error) {
  1376  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0)
  1377  	if e1 != 0 {
  1378  		err = errnoErr(e1)
  1379  	}
  1380  	return
  1381  }
  1382  
  1383  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1384  
  1385  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1386  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0)
  1387  	if e1 != 0 {
  1388  		err = errnoErr(e1)
  1389  	}
  1390  	return
  1391  }
  1392  
  1393  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1394  
  1395  func Open(path string, mode int, perm uint32) (fd int, err error) {
  1396  	var _p0 *byte
  1397  	_p0, err = BytePtrFromString(path)
  1398  	if err != nil {
  1399  		return
  1400  	}
  1401  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
  1402  	fd = int(r0)
  1403  	if e1 != 0 {
  1404  		err = errnoErr(e1)
  1405  	}
  1406  	return
  1407  }
  1408  
  1409  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1410  
  1411  func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
  1412  	var _p0 *byte
  1413  	_p0, err = BytePtrFromString(path)
  1414  	if err != nil {
  1415  		return
  1416  	}
  1417  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
  1418  	fd = int(r0)
  1419  	if e1 != 0 {
  1420  		err = errnoErr(e1)
  1421  	}
  1422  	return
  1423  }
  1424  
  1425  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1426  
  1427  func Pathconf(path string, name int) (val int, err error) {
  1428  	var _p0 *byte
  1429  	_p0, err = BytePtrFromString(path)
  1430  	if err != nil {
  1431  		return
  1432  	}
  1433  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0)
  1434  	val = int(r0)
  1435  	if e1 != 0 {
  1436  		err = errnoErr(e1)
  1437  	}
  1438  	return
  1439  }
  1440  
  1441  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1442  
  1443  func Pause() (err error) {
  1444  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0)
  1445  	if e1 != 0 {
  1446  		err = errnoErr(e1)
  1447  	}
  1448  	return
  1449  }
  1450  
  1451  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1452  
  1453  func pread(fd int, p []byte, offset int64) (n int, err error) {
  1454  	var _p0 *byte
  1455  	if len(p) > 0 {
  1456  		_p0 = &p[0]
  1457  	}
  1458  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
  1459  	n = int(r0)
  1460  	if e1 != 0 {
  1461  		err = errnoErr(e1)
  1462  	}
  1463  	return
  1464  }
  1465  
  1466  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1467  
  1468  func pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1469  	var _p0 *byte
  1470  	if len(p) > 0 {
  1471  		_p0 = &p[0]
  1472  	}
  1473  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
  1474  	n = int(r0)
  1475  	if e1 != 0 {
  1476  		err = errnoErr(e1)
  1477  	}
  1478  	return
  1479  }
  1480  
  1481  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1482  
  1483  func read(fd int, p []byte) (n int, err error) {
  1484  	var _p0 *byte
  1485  	if len(p) > 0 {
  1486  		_p0 = &p[0]
  1487  	}
  1488  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1489  	n = int(r0)
  1490  	if e1 != 0 {
  1491  		err = errnoErr(e1)
  1492  	}
  1493  	return
  1494  }
  1495  
  1496  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1497  
  1498  func Readlink(path string, buf []byte) (n int, err error) {
  1499  	var _p0 *byte
  1500  	_p0, err = BytePtrFromString(path)
  1501  	if err != nil {
  1502  		return
  1503  	}
  1504  	var _p1 *byte
  1505  	if len(buf) > 0 {
  1506  		_p1 = &buf[0]
  1507  	}
  1508  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0)
  1509  	n = int(r0)
  1510  	if e1 != 0 {
  1511  		err = errnoErr(e1)
  1512  	}
  1513  	return
  1514  }
  1515  
  1516  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1517  
  1518  func Rename(from string, to string) (err error) {
  1519  	var _p0 *byte
  1520  	_p0, err = BytePtrFromString(from)
  1521  	if err != nil {
  1522  		return
  1523  	}
  1524  	var _p1 *byte
  1525  	_p1, err = BytePtrFromString(to)
  1526  	if err != nil {
  1527  		return
  1528  	}
  1529  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1530  	if e1 != 0 {
  1531  		err = errnoErr(e1)
  1532  	}
  1533  	return
  1534  }
  1535  
  1536  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1537  
  1538  func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  1539  	var _p0 *byte
  1540  	_p0, err = BytePtrFromString(oldpath)
  1541  	if err != nil {
  1542  		return
  1543  	}
  1544  	var _p1 *byte
  1545  	_p1, err = BytePtrFromString(newpath)
  1546  	if err != nil {
  1547  		return
  1548  	}
  1549  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1550  	if e1 != 0 {
  1551  		err = errnoErr(e1)
  1552  	}
  1553  	return
  1554  }
  1555  
  1556  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1557  
  1558  func Rmdir(path string) (err error) {
  1559  	var _p0 *byte
  1560  	_p0, err = BytePtrFromString(path)
  1561  	if err != nil {
  1562  		return
  1563  	}
  1564  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1565  	if e1 != 0 {
  1566  		err = errnoErr(e1)
  1567  	}
  1568  	return
  1569  }
  1570  
  1571  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1572  
  1573  func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
  1574  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
  1575  	newoffset = int64(r0)
  1576  	if e1 != 0 {
  1577  		err = errnoErr(e1)
  1578  	}
  1579  	return
  1580  }
  1581  
  1582  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1583  
  1584  func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  1585  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSelect)), 5, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1586  	n = int(r0)
  1587  	if e1 != 0 {
  1588  		err = errnoErr(e1)
  1589  	}
  1590  	return
  1591  }
  1592  
  1593  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1594  
  1595  func Setegid(egid int) (err error) {
  1596  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
  1597  	if e1 != 0 {
  1598  		err = errnoErr(e1)
  1599  	}
  1600  	return
  1601  }
  1602  
  1603  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1604  
  1605  func Seteuid(euid int) (err error) {
  1606  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
  1607  	if e1 != 0 {
  1608  		err = errnoErr(e1)
  1609  	}
  1610  	return
  1611  }
  1612  
  1613  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1614  
  1615  func Setgid(gid int) (err error) {
  1616  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
  1617  	if e1 != 0 {
  1618  		err = errnoErr(e1)
  1619  	}
  1620  	return
  1621  }
  1622  
  1623  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1624  
  1625  func Sethostname(p []byte) (err error) {
  1626  	var _p0 *byte
  1627  	if len(p) > 0 {
  1628  		_p0 = &p[0]
  1629  	}
  1630  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0)
  1631  	if e1 != 0 {
  1632  		err = errnoErr(e1)
  1633  	}
  1634  	return
  1635  }
  1636  
  1637  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1638  
  1639  func Setpgid(pid int, pgid int) (err error) {
  1640  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
  1641  	if e1 != 0 {
  1642  		err = errnoErr(e1)
  1643  	}
  1644  	return
  1645  }
  1646  
  1647  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1648  
  1649  func Setpriority(which int, who int, prio int) (err error) {
  1650  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
  1651  	if e1 != 0 {
  1652  		err = errnoErr(e1)
  1653  	}
  1654  	return
  1655  }
  1656  
  1657  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1658  
  1659  func Setregid(rgid int, egid int) (err error) {
  1660  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
  1661  	if e1 != 0 {
  1662  		err = errnoErr(e1)
  1663  	}
  1664  	return
  1665  }
  1666  
  1667  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1668  
  1669  func Setreuid(ruid int, euid int) (err error) {
  1670  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
  1671  	if e1 != 0 {
  1672  		err = errnoErr(e1)
  1673  	}
  1674  	return
  1675  }
  1676  
  1677  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1678  
  1679  func Setsid() (pid int, err error) {
  1680  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0)
  1681  	pid = int(r0)
  1682  	if e1 != 0 {
  1683  		err = errnoErr(e1)
  1684  	}
  1685  	return
  1686  }
  1687  
  1688  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1689  
  1690  func Setuid(uid int) (err error) {
  1691  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
  1692  	if e1 != 0 {
  1693  		err = errnoErr(e1)
  1694  	}
  1695  	return
  1696  }
  1697  
  1698  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1699  
  1700  func Shutdown(s int, how int) (err error) {
  1701  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
  1702  	if e1 != 0 {
  1703  		err = errnoErr(e1)
  1704  	}
  1705  	return
  1706  }
  1707  
  1708  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1709  
  1710  func Stat(path string, stat *Stat_t) (err error) {
  1711  	var _p0 *byte
  1712  	_p0, err = BytePtrFromString(path)
  1713  	if err != nil {
  1714  		return
  1715  	}
  1716  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
  1717  	if e1 != 0 {
  1718  		err = errnoErr(e1)
  1719  	}
  1720  	return
  1721  }
  1722  
  1723  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1724  
  1725  func Statvfs(path string, vfsstat *Statvfs_t) (err error) {
  1726  	var _p0 *byte
  1727  	_p0, err = BytePtrFromString(path)
  1728  	if err != nil {
  1729  		return
  1730  	}
  1731  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStatvfs)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0)
  1732  	if e1 != 0 {
  1733  		err = errnoErr(e1)
  1734  	}
  1735  	return
  1736  }
  1737  
  1738  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1739  
  1740  func Symlink(path string, link string) (err error) {
  1741  	var _p0 *byte
  1742  	_p0, err = BytePtrFromString(path)
  1743  	if err != nil {
  1744  		return
  1745  	}
  1746  	var _p1 *byte
  1747  	_p1, err = BytePtrFromString(link)
  1748  	if err != nil {
  1749  		return
  1750  	}
  1751  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1752  	if e1 != 0 {
  1753  		err = errnoErr(e1)
  1754  	}
  1755  	return
  1756  }
  1757  
  1758  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1759  
  1760  func Sync() (err error) {
  1761  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0)
  1762  	if e1 != 0 {
  1763  		err = errnoErr(e1)
  1764  	}
  1765  	return
  1766  }
  1767  
  1768  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1769  
  1770  func Sysconf(which int) (n int64, err error) {
  1771  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSysconf)), 1, uintptr(which), 0, 0, 0, 0, 0)
  1772  	n = int64(r0)
  1773  	if e1 != 0 {
  1774  		err = errnoErr(e1)
  1775  	}
  1776  	return
  1777  }
  1778  
  1779  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1780  
  1781  func Times(tms *Tms) (ticks uintptr, err error) {
  1782  	r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0)
  1783  	ticks = uintptr(r0)
  1784  	if e1 != 0 {
  1785  		err = errnoErr(e1)
  1786  	}
  1787  	return
  1788  }
  1789  
  1790  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1791  
  1792  func Truncate(path string, length int64) (err error) {
  1793  	var _p0 *byte
  1794  	_p0, err = BytePtrFromString(path)
  1795  	if err != nil {
  1796  		return
  1797  	}
  1798  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
  1799  	if e1 != 0 {
  1800  		err = errnoErr(e1)
  1801  	}
  1802  	return
  1803  }
  1804  
  1805  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1806  
  1807  func Fsync(fd int) (err error) {
  1808  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  1809  	if e1 != 0 {
  1810  		err = errnoErr(e1)
  1811  	}
  1812  	return
  1813  }
  1814  
  1815  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1816  
  1817  func Ftruncate(fd int, length int64) (err error) {
  1818  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
  1819  	if e1 != 0 {
  1820  		err = errnoErr(e1)
  1821  	}
  1822  	return
  1823  }
  1824  
  1825  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1826  
  1827  func Umask(mask int) (oldmask int) {
  1828  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
  1829  	oldmask = int(r0)
  1830  	return
  1831  }
  1832  
  1833  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1834  
  1835  func Uname(buf *Utsname) (err error) {
  1836  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
  1837  	if e1 != 0 {
  1838  		err = errnoErr(e1)
  1839  	}
  1840  	return
  1841  }
  1842  
  1843  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1844  
  1845  func Unmount(target string, flags int) (err error) {
  1846  	var _p0 *byte
  1847  	_p0, err = BytePtrFromString(target)
  1848  	if err != nil {
  1849  		return
  1850  	}
  1851  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0)
  1852  	if e1 != 0 {
  1853  		err = errnoErr(e1)
  1854  	}
  1855  	return
  1856  }
  1857  
  1858  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1859  
  1860  func Unlink(path string) (err error) {
  1861  	var _p0 *byte
  1862  	_p0, err = BytePtrFromString(path)
  1863  	if err != nil {
  1864  		return
  1865  	}
  1866  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1867  	if e1 != 0 {
  1868  		err = errnoErr(e1)
  1869  	}
  1870  	return
  1871  }
  1872  
  1873  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1874  
  1875  func Unlinkat(dirfd int, path string, flags int) (err error) {
  1876  	var _p0 *byte
  1877  	_p0, err = BytePtrFromString(path)
  1878  	if err != nil {
  1879  		return
  1880  	}
  1881  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0)
  1882  	if e1 != 0 {
  1883  		err = errnoErr(e1)
  1884  	}
  1885  	return
  1886  }
  1887  
  1888  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1889  
  1890  func Ustat(dev int, ubuf *Ustat_t) (err error) {
  1891  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0)
  1892  	if e1 != 0 {
  1893  		err = errnoErr(e1)
  1894  	}
  1895  	return
  1896  }
  1897  
  1898  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1899  
  1900  func Utime(path string, buf *Utimbuf) (err error) {
  1901  	var _p0 *byte
  1902  	_p0, err = BytePtrFromString(path)
  1903  	if err != nil {
  1904  		return
  1905  	}
  1906  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
  1907  	if e1 != 0 {
  1908  		err = errnoErr(e1)
  1909  	}
  1910  	return
  1911  }
  1912  
  1913  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1914  
  1915  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1916  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1917  	if e1 != 0 {
  1918  		err = errnoErr(e1)
  1919  	}
  1920  	return
  1921  }
  1922  
  1923  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1924  
  1925  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1926  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1927  	if e1 != 0 {
  1928  		err = errnoErr(e1)
  1929  	}
  1930  	return
  1931  }
  1932  
  1933  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1934  
  1935  func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1936  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
  1937  	ret = uintptr(r0)
  1938  	if e1 != 0 {
  1939  		err = errnoErr(e1)
  1940  	}
  1941  	return
  1942  }
  1943  
  1944  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1945  
  1946  func munmap(addr uintptr, length uintptr) (err error) {
  1947  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
  1948  	if e1 != 0 {
  1949  		err = errnoErr(e1)
  1950  	}
  1951  	return
  1952  }
  1953  
  1954  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1955  
  1956  func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  1957  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendfile)), 4, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  1958  	written = int(r0)
  1959  	if e1 != 0 {
  1960  		err = errnoErr(e1)
  1961  	}
  1962  	return
  1963  }
  1964  
  1965  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1966  
  1967  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1968  	var _p0 *byte
  1969  	if len(buf) > 0 {
  1970  		_p0 = &buf[0]
  1971  	}
  1972  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1973  	if e1 != 0 {
  1974  		err = errnoErr(e1)
  1975  	}
  1976  	return
  1977  }
  1978  
  1979  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1980  
  1981  func socket(domain int, typ int, proto int) (fd int, err error) {
  1982  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
  1983  	fd = int(r0)
  1984  	if e1 != 0 {
  1985  		err = errnoErr(e1)
  1986  	}
  1987  	return
  1988  }
  1989  
  1990  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1991  
  1992  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  1993  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  1994  	if e1 != 0 {
  1995  		err = errnoErr(e1)
  1996  	}
  1997  	return
  1998  }
  1999  
  2000  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2001  
  2002  func write(fd int, p []byte) (n int, err error) {
  2003  	var _p0 *byte
  2004  	if len(p) > 0 {
  2005  		_p0 = &p[0]
  2006  	}
  2007  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  2008  	n = int(r0)
  2009  	if e1 != 0 {
  2010  		err = errnoErr(e1)
  2011  	}
  2012  	return
  2013  }
  2014  
  2015  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2016  
  2017  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  2018  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  2019  	if e1 != 0 {
  2020  		err = errnoErr(e1)
  2021  	}
  2022  	return
  2023  }
  2024  
  2025  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2026  
  2027  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  2028  	_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
  2029  	if e1 != 0 {
  2030  		err = errnoErr(e1)
  2031  	}
  2032  	return
  2033  }
  2034  
  2035  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2036  
  2037  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  2038  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  2039  	if e1 != 0 {
  2040  		err = errnoErr(e1)
  2041  	}
  2042  	return
  2043  }
  2044  
  2045  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2046  
  2047  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  2048  	var _p0 *byte
  2049  	if len(p) > 0 {
  2050  		_p0 = &p[0]
  2051  	}
  2052  	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)))
  2053  	n = int(r0)
  2054  	if e1 != 0 {
  2055  		err = errnoErr(e1)
  2056  	}
  2057  	return
  2058  }
  2059  
  2060  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2061  
  2062  func getpeerucred(fd uintptr, ucred *uintptr) (err error) {
  2063  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetpeerucred)), 2, uintptr(fd), uintptr(unsafe.Pointer(ucred)), 0, 0, 0, 0)
  2064  	if e1 != 0 {
  2065  		err = errnoErr(e1)
  2066  	}
  2067  	return
  2068  }
  2069  
  2070  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2071  
  2072  func ucredGet(pid int) (ucred uintptr, err error) {
  2073  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procucred_get)), 1, uintptr(pid), 0, 0, 0, 0, 0)
  2074  	ucred = uintptr(r0)
  2075  	if e1 != 0 {
  2076  		err = errnoErr(e1)
  2077  	}
  2078  	return
  2079  }
  2080  
  2081  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2082  
  2083  func ucredGeteuid(ucred uintptr) (uid int) {
  2084  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procucred_geteuid)), 1, uintptr(ucred), 0, 0, 0, 0, 0)
  2085  	uid = int(r0)
  2086  	return
  2087  }
  2088  
  2089  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2090  
  2091  func ucredGetegid(ucred uintptr) (gid int) {
  2092  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procucred_getegid)), 1, uintptr(ucred), 0, 0, 0, 0, 0)
  2093  	gid = int(r0)
  2094  	return
  2095  }
  2096  
  2097  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2098  
  2099  func ucredGetruid(ucred uintptr) (uid int) {
  2100  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procucred_getruid)), 1, uintptr(ucred), 0, 0, 0, 0, 0)
  2101  	uid = int(r0)
  2102  	return
  2103  }
  2104  
  2105  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2106  
  2107  func ucredGetrgid(ucred uintptr) (gid int) {
  2108  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procucred_getrgid)), 1, uintptr(ucred), 0, 0, 0, 0, 0)
  2109  	gid = int(r0)
  2110  	return
  2111  }
  2112  
  2113  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2114  
  2115  func ucredGetsuid(ucred uintptr) (uid int) {
  2116  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procucred_getsuid)), 1, uintptr(ucred), 0, 0, 0, 0, 0)
  2117  	uid = int(r0)
  2118  	return
  2119  }
  2120  
  2121  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2122  
  2123  func ucredGetsgid(ucred uintptr) (gid int) {
  2124  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procucred_getsgid)), 1, uintptr(ucred), 0, 0, 0, 0, 0)
  2125  	gid = int(r0)
  2126  	return
  2127  }
  2128  
  2129  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2130  
  2131  func ucredGetpid(ucred uintptr) (pid int) {
  2132  	r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procucred_getpid)), 1, uintptr(ucred), 0, 0, 0, 0, 0)
  2133  	pid = int(r0)
  2134  	return
  2135  }
  2136  
  2137  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2138  
  2139  func ucredFree(ucred uintptr) {
  2140  	sysvicall6(uintptr(unsafe.Pointer(&procucred_free)), 1, uintptr(ucred), 0, 0, 0, 0, 0)
  2141  	return
  2142  }
  2143  
  2144  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2145  
  2146  func port_create() (n int, err error) {
  2147  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_create)), 0, 0, 0, 0, 0, 0, 0)
  2148  	n = int(r0)
  2149  	if e1 != 0 {
  2150  		err = errnoErr(e1)
  2151  	}
  2152  	return
  2153  }
  2154  
  2155  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2156  
  2157  func port_associate(port int, source int, object uintptr, events int, user *byte) (n int, err error) {
  2158  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_associate)), 5, uintptr(port), uintptr(source), uintptr(object), uintptr(events), uintptr(unsafe.Pointer(user)), 0)
  2159  	n = int(r0)
  2160  	if e1 != 0 {
  2161  		err = errnoErr(e1)
  2162  	}
  2163  	return
  2164  }
  2165  
  2166  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2167  
  2168  func port_dissociate(port int, source int, object uintptr) (n int, err error) {
  2169  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_dissociate)), 3, uintptr(port), uintptr(source), uintptr(object), 0, 0, 0)
  2170  	n = int(r0)
  2171  	if e1 != 0 {
  2172  		err = errnoErr(e1)
  2173  	}
  2174  	return
  2175  }
  2176  
  2177  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2178  
  2179  func port_get(port int, pe *portEvent, timeout *Timespec) (n int, err error) {
  2180  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_get)), 3, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(unsafe.Pointer(timeout)), 0, 0, 0)
  2181  	n = int(r0)
  2182  	if e1 != 0 {
  2183  		err = errnoErr(e1)
  2184  	}
  2185  	return
  2186  }
  2187  
  2188  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2189  
  2190  func port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Timespec) (n int, err error) {
  2191  	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_getn)), 5, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(max), uintptr(unsafe.Pointer(nget)), uintptr(unsafe.Pointer(timeout)), 0)
  2192  	n = int(r0)
  2193  	if e1 != 0 {
  2194  		err = errnoErr(e1)
  2195  	}
  2196  	return
  2197  }
  2198  
  2199  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2200  
  2201  func putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) {
  2202  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procputmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(flags), 0, 0)
  2203  	if e1 != 0 {
  2204  		err = errnoErr(e1)
  2205  	}
  2206  	return
  2207  }
  2208  
  2209  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2210  
  2211  func getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error) {
  2212  	_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(unsafe.Pointer(flags)), 0, 0)
  2213  	if e1 != 0 {
  2214  		err = errnoErr(e1)
  2215  	}
  2216  	return
  2217  }
  2218  

View as plain text