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