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