github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/proto_vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go (about) 1 // go run mksyscall.go -l32 -arm -tags linux,mipsle syscall_linux.go syscall_linux_mipsx.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 // +build linux,mipsle 5 6 package unix 7 8 import ( 9 "syscall" 10 "unsafe" 11 ) 12 13 var _ syscall.Errno 14 15 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 16 17 func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { 18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) 19 fd = int(r0) 20 if e1 != 0 { 21 err = errnoErr(e1) 22 } 23 return 24 } 25 26 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 27 28 func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { 29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) 30 if e1 != 0 { 31 err = errnoErr(e1) 32 } 33 return 34 } 35 36 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 37 38 func fchmodat(dirfd int, path string, mode uint32) (err error) { 39 var _p0 *byte 40 _p0, err = BytePtrFromString(path) 41 if err != nil { 42 return 43 } 44 _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 45 if e1 != 0 { 46 err = errnoErr(e1) 47 } 48 return 49 } 50 51 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 52 53 func ioctl(fd int, req uint, arg uintptr) (err error) { 54 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 55 if e1 != 0 { 56 err = errnoErr(e1) 57 } 58 return 59 } 60 61 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 62 63 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 64 var _p0 *byte 65 _p0, err = BytePtrFromString(oldpath) 66 if err != nil { 67 return 68 } 69 var _p1 *byte 70 _p1, err = BytePtrFromString(newpath) 71 if err != nil { 72 return 73 } 74 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 75 if e1 != 0 { 76 err = errnoErr(e1) 77 } 78 return 79 } 80 81 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 82 83 func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { 84 var _p0 *byte 85 _p0, err = BytePtrFromString(path) 86 if err != nil { 87 return 88 } 89 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) 90 fd = int(r0) 91 if e1 != 0 { 92 err = errnoErr(e1) 93 } 94 return 95 } 96 97 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 98 99 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { 100 r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) 101 n = int(r0) 102 if e1 != 0 { 103 err = errnoErr(e1) 104 } 105 return 106 } 107 108 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 109 110 func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { 111 var _p0 *byte 112 _p0, err = BytePtrFromString(path) 113 if err != nil { 114 return 115 } 116 var _p1 unsafe.Pointer 117 if len(buf) > 0 { 118 _p1 = unsafe.Pointer(&buf[0]) 119 } else { 120 _p1 = unsafe.Pointer(&_zero) 121 } 122 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) 123 n = int(r0) 124 if e1 != 0 { 125 err = errnoErr(e1) 126 } 127 return 128 } 129 130 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 131 132 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { 133 var _p0 *byte 134 _p0, err = BytePtrFromString(oldpath) 135 if err != nil { 136 return 137 } 138 var _p1 *byte 139 _p1, err = BytePtrFromString(newpath) 140 if err != nil { 141 return 142 } 143 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 144 if e1 != 0 { 145 err = errnoErr(e1) 146 } 147 return 148 } 149 150 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 151 152 func Unlinkat(dirfd int, path string, flags int) (err error) { 153 var _p0 *byte 154 _p0, err = BytePtrFromString(path) 155 if err != nil { 156 return 157 } 158 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 159 if e1 != 0 { 160 err = errnoErr(e1) 161 } 162 return 163 } 164 165 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 166 167 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 168 var _p0 *byte 169 _p0, err = BytePtrFromString(path) 170 if err != nil { 171 return 172 } 173 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 174 if e1 != 0 { 175 err = errnoErr(e1) 176 } 177 return 178 } 179 180 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 181 182 func Getcwd(buf []byte) (n int, err error) { 183 var _p0 unsafe.Pointer 184 if len(buf) > 0 { 185 _p0 = unsafe.Pointer(&buf[0]) 186 } else { 187 _p0 = unsafe.Pointer(&_zero) 188 } 189 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) 190 n = int(r0) 191 if e1 != 0 { 192 err = errnoErr(e1) 193 } 194 return 195 } 196 197 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 198 199 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { 200 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) 201 wpid = int(r0) 202 if e1 != 0 { 203 err = errnoErr(e1) 204 } 205 return 206 } 207 208 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 209 210 func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { 211 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) 212 ret = int(r0) 213 if e1 != 0 { 214 err = errnoErr(e1) 215 } 216 return 217 } 218 219 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 220 221 func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { 222 var _p0 unsafe.Pointer 223 if len(buf) > 0 { 224 _p0 = unsafe.Pointer(&buf[0]) 225 } else { 226 _p0 = unsafe.Pointer(&_zero) 227 } 228 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) 229 ret = int(r0) 230 if e1 != 0 { 231 err = errnoErr(e1) 232 } 233 return 234 } 235 236 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 237 238 func keyctlJoin(cmd int, arg2 string) (ret int, err error) { 239 var _p0 *byte 240 _p0, err = BytePtrFromString(arg2) 241 if err != nil { 242 return 243 } 244 r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) 245 ret = int(r0) 246 if e1 != 0 { 247 err = errnoErr(e1) 248 } 249 return 250 } 251 252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 253 254 func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { 255 var _p0 *byte 256 _p0, err = BytePtrFromString(arg3) 257 if err != nil { 258 return 259 } 260 var _p1 *byte 261 _p1, err = BytePtrFromString(arg4) 262 if err != nil { 263 return 264 } 265 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) 266 ret = int(r0) 267 if e1 != 0 { 268 err = errnoErr(e1) 269 } 270 return 271 } 272 273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 274 275 func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { 276 var _p0 unsafe.Pointer 277 if len(payload) > 0 { 278 _p0 = unsafe.Pointer(&payload[0]) 279 } else { 280 _p0 = unsafe.Pointer(&_zero) 281 } 282 _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) 283 if e1 != 0 { 284 err = errnoErr(e1) 285 } 286 return 287 } 288 289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 290 291 func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { 292 var _p0 unsafe.Pointer 293 if len(buf) > 0 { 294 _p0 = unsafe.Pointer(&buf[0]) 295 } else { 296 _p0 = unsafe.Pointer(&_zero) 297 } 298 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) 299 ret = int(r0) 300 if e1 != 0 { 301 err = errnoErr(e1) 302 } 303 return 304 } 305 306 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 307 308 func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) { 309 var _p0 *byte 310 _p0, err = BytePtrFromString(keyType) 311 if err != nil { 312 return 313 } 314 var _p1 *byte 315 _p1, err = BytePtrFromString(restriction) 316 if err != nil { 317 return 318 } 319 _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0) 320 if e1 != 0 { 321 err = errnoErr(e1) 322 } 323 return 324 } 325 326 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 327 328 func keyctlRestrictKeyring(cmd int, arg2 int) (err error) { 329 _, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0) 330 if e1 != 0 { 331 err = errnoErr(e1) 332 } 333 return 334 } 335 336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 337 338 func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 339 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) 340 if e1 != 0 { 341 err = errnoErr(e1) 342 } 343 return 344 } 345 346 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 347 348 func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { 349 var _p0 *byte 350 _p0, err = BytePtrFromString(arg) 351 if err != nil { 352 return 353 } 354 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) 355 if e1 != 0 { 356 err = errnoErr(e1) 357 } 358 return 359 } 360 361 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 362 363 func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { 364 var _p0 *byte 365 _p0, err = BytePtrFromString(source) 366 if err != nil { 367 return 368 } 369 var _p1 *byte 370 _p1, err = BytePtrFromString(target) 371 if err != nil { 372 return 373 } 374 var _p2 *byte 375 _p2, err = BytePtrFromString(fstype) 376 if err != nil { 377 return 378 } 379 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) 380 if e1 != 0 { 381 err = errnoErr(e1) 382 } 383 return 384 } 385 386 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 387 388 func Acct(path string) (err error) { 389 var _p0 *byte 390 _p0, err = BytePtrFromString(path) 391 if err != nil { 392 return 393 } 394 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) 395 if e1 != 0 { 396 err = errnoErr(e1) 397 } 398 return 399 } 400 401 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 402 403 func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { 404 var _p0 *byte 405 _p0, err = BytePtrFromString(keyType) 406 if err != nil { 407 return 408 } 409 var _p1 *byte 410 _p1, err = BytePtrFromString(description) 411 if err != nil { 412 return 413 } 414 var _p2 unsafe.Pointer 415 if len(payload) > 0 { 416 _p2 = unsafe.Pointer(&payload[0]) 417 } else { 418 _p2 = unsafe.Pointer(&_zero) 419 } 420 r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) 421 id = int(r0) 422 if e1 != 0 { 423 err = errnoErr(e1) 424 } 425 return 426 } 427 428 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 429 430 func Adjtimex(buf *Timex) (state int, err error) { 431 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) 432 state = int(r0) 433 if e1 != 0 { 434 err = errnoErr(e1) 435 } 436 return 437 } 438 439 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 440 441 func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { 442 _, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) 443 if e1 != 0 { 444 err = errnoErr(e1) 445 } 446 return 447 } 448 449 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 450 451 func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { 452 _, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) 453 if e1 != 0 { 454 err = errnoErr(e1) 455 } 456 return 457 } 458 459 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 460 461 func Chdir(path string) (err error) { 462 var _p0 *byte 463 _p0, err = BytePtrFromString(path) 464 if err != nil { 465 return 466 } 467 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 468 if e1 != 0 { 469 err = errnoErr(e1) 470 } 471 return 472 } 473 474 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 475 476 func Chroot(path string) (err error) { 477 var _p0 *byte 478 _p0, err = BytePtrFromString(path) 479 if err != nil { 480 return 481 } 482 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) 483 if e1 != 0 { 484 err = errnoErr(e1) 485 } 486 return 487 } 488 489 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 490 491 func ClockGetres(clockid int32, res *Timespec) (err error) { 492 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) 493 if e1 != 0 { 494 err = errnoErr(e1) 495 } 496 return 497 } 498 499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 500 501 func ClockGettime(clockid int32, time *Timespec) (err error) { 502 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 503 if e1 != 0 { 504 err = errnoErr(e1) 505 } 506 return 507 } 508 509 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 510 511 func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { 512 _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) 513 if e1 != 0 { 514 err = errnoErr(e1) 515 } 516 return 517 } 518 519 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 520 521 func Close(fd int) (err error) { 522 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) 523 if e1 != 0 { 524 err = errnoErr(e1) 525 } 526 return 527 } 528 529 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 530 531 func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { 532 r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) 533 n = int(r0) 534 if e1 != 0 { 535 err = errnoErr(e1) 536 } 537 return 538 } 539 540 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 541 542 func DeleteModule(name string, flags int) (err error) { 543 var _p0 *byte 544 _p0, err = BytePtrFromString(name) 545 if err != nil { 546 return 547 } 548 _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 549 if e1 != 0 { 550 err = errnoErr(e1) 551 } 552 return 553 } 554 555 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 556 557 func Dup(oldfd int) (fd int, err error) { 558 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) 559 fd = int(r0) 560 if e1 != 0 { 561 err = errnoErr(e1) 562 } 563 return 564 } 565 566 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 567 568 func Dup3(oldfd int, newfd int, flags int) (err error) { 569 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) 570 if e1 != 0 { 571 err = errnoErr(e1) 572 } 573 return 574 } 575 576 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 577 578 func EpollCreate1(flag int) (fd int, err error) { 579 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 580 fd = int(r0) 581 if e1 != 0 { 582 err = errnoErr(e1) 583 } 584 return 585 } 586 587 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 588 589 func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { 590 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) 591 if e1 != 0 { 592 err = errnoErr(e1) 593 } 594 return 595 } 596 597 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 598 599 func Eventfd(initval uint, flags int) (fd int, err error) { 600 r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) 601 fd = int(r0) 602 if e1 != 0 { 603 err = errnoErr(e1) 604 } 605 return 606 } 607 608 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 609 610 func Exit(code int) { 611 SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) 612 return 613 } 614 615 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 616 617 func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 618 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) 619 if e1 != 0 { 620 err = errnoErr(e1) 621 } 622 return 623 } 624 625 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 626 627 func Fchdir(fd int) (err error) { 628 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 629 if e1 != 0 { 630 err = errnoErr(e1) 631 } 632 return 633 } 634 635 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 636 637 func Fchmod(fd int, mode uint32) (err error) { 638 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 639 if e1 != 0 { 640 err = errnoErr(e1) 641 } 642 return 643 } 644 645 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 646 647 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { 648 var _p0 *byte 649 _p0, err = BytePtrFromString(path) 650 if err != nil { 651 return 652 } 653 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 654 if e1 != 0 { 655 err = errnoErr(e1) 656 } 657 return 658 } 659 660 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 661 662 func fcntl(fd int, cmd int, arg int) (val int, err error) { 663 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) 664 val = int(r0) 665 if e1 != 0 { 666 err = errnoErr(e1) 667 } 668 return 669 } 670 671 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 672 673 func Fdatasync(fd int) (err error) { 674 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) 675 if e1 != 0 { 676 err = errnoErr(e1) 677 } 678 return 679 } 680 681 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 682 683 func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { 684 var _p0 *byte 685 _p0, err = BytePtrFromString(attr) 686 if err != nil { 687 return 688 } 689 var _p1 unsafe.Pointer 690 if len(dest) > 0 { 691 _p1 = unsafe.Pointer(&dest[0]) 692 } else { 693 _p1 = unsafe.Pointer(&_zero) 694 } 695 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) 696 sz = int(r0) 697 if e1 != 0 { 698 err = errnoErr(e1) 699 } 700 return 701 } 702 703 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 704 705 func FinitModule(fd int, params string, flags int) (err error) { 706 var _p0 *byte 707 _p0, err = BytePtrFromString(params) 708 if err != nil { 709 return 710 } 711 _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 712 if e1 != 0 { 713 err = errnoErr(e1) 714 } 715 return 716 } 717 718 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 719 720 func Flistxattr(fd int, dest []byte) (sz int, err error) { 721 var _p0 unsafe.Pointer 722 if len(dest) > 0 { 723 _p0 = unsafe.Pointer(&dest[0]) 724 } else { 725 _p0 = unsafe.Pointer(&_zero) 726 } 727 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) 728 sz = int(r0) 729 if e1 != 0 { 730 err = errnoErr(e1) 731 } 732 return 733 } 734 735 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 736 737 func Flock(fd int, how int) (err error) { 738 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 739 if e1 != 0 { 740 err = errnoErr(e1) 741 } 742 return 743 } 744 745 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 746 747 func Fremovexattr(fd int, attr string) (err error) { 748 var _p0 *byte 749 _p0, err = BytePtrFromString(attr) 750 if err != nil { 751 return 752 } 753 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) 754 if e1 != 0 { 755 err = errnoErr(e1) 756 } 757 return 758 } 759 760 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 761 762 func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { 763 var _p0 *byte 764 _p0, err = BytePtrFromString(attr) 765 if err != nil { 766 return 767 } 768 var _p1 unsafe.Pointer 769 if len(dest) > 0 { 770 _p1 = unsafe.Pointer(&dest[0]) 771 } else { 772 _p1 = unsafe.Pointer(&_zero) 773 } 774 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) 775 if e1 != 0 { 776 err = errnoErr(e1) 777 } 778 return 779 } 780 781 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 782 783 func Fsync(fd int) (err error) { 784 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 785 if e1 != 0 { 786 err = errnoErr(e1) 787 } 788 return 789 } 790 791 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 792 793 func Getdents(fd int, buf []byte) (n int, err error) { 794 var _p0 unsafe.Pointer 795 if len(buf) > 0 { 796 _p0 = unsafe.Pointer(&buf[0]) 797 } else { 798 _p0 = unsafe.Pointer(&_zero) 799 } 800 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) 801 n = int(r0) 802 if e1 != 0 { 803 err = errnoErr(e1) 804 } 805 return 806 } 807 808 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 809 810 func Getpgid(pid int) (pgid int, err error) { 811 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) 812 pgid = int(r0) 813 if e1 != 0 { 814 err = errnoErr(e1) 815 } 816 return 817 } 818 819 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 820 821 func Getpid() (pid int) { 822 r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) 823 pid = int(r0) 824 return 825 } 826 827 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 828 829 func Getppid() (ppid int) { 830 r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) 831 ppid = int(r0) 832 return 833 } 834 835 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 836 837 func Getpriority(which int, who int) (prio int, err error) { 838 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) 839 prio = int(r0) 840 if e1 != 0 { 841 err = errnoErr(e1) 842 } 843 return 844 } 845 846 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 847 848 func Getrandom(buf []byte, flags int) (n int, err error) { 849 var _p0 unsafe.Pointer 850 if len(buf) > 0 { 851 _p0 = unsafe.Pointer(&buf[0]) 852 } else { 853 _p0 = unsafe.Pointer(&_zero) 854 } 855 r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) 856 n = int(r0) 857 if e1 != 0 { 858 err = errnoErr(e1) 859 } 860 return 861 } 862 863 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 864 865 func Getrusage(who int, rusage *Rusage) (err error) { 866 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 867 if e1 != 0 { 868 err = errnoErr(e1) 869 } 870 return 871 } 872 873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 874 875 func Getsid(pid int) (sid int, err error) { 876 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) 877 sid = int(r0) 878 if e1 != 0 { 879 err = errnoErr(e1) 880 } 881 return 882 } 883 884 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 885 886 func Gettid() (tid int) { 887 r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) 888 tid = int(r0) 889 return 890 } 891 892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 893 894 func Getxattr(path string, attr string, dest []byte) (sz int, err error) { 895 var _p0 *byte 896 _p0, err = BytePtrFromString(path) 897 if err != nil { 898 return 899 } 900 var _p1 *byte 901 _p1, err = BytePtrFromString(attr) 902 if err != nil { 903 return 904 } 905 var _p2 unsafe.Pointer 906 if len(dest) > 0 { 907 _p2 = unsafe.Pointer(&dest[0]) 908 } else { 909 _p2 = unsafe.Pointer(&_zero) 910 } 911 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) 912 sz = int(r0) 913 if e1 != 0 { 914 err = errnoErr(e1) 915 } 916 return 917 } 918 919 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 920 921 func InitModule(moduleImage []byte, params string) (err error) { 922 var _p0 unsafe.Pointer 923 if len(moduleImage) > 0 { 924 _p0 = unsafe.Pointer(&moduleImage[0]) 925 } else { 926 _p0 = unsafe.Pointer(&_zero) 927 } 928 var _p1 *byte 929 _p1, err = BytePtrFromString(params) 930 if err != nil { 931 return 932 } 933 _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) 934 if e1 != 0 { 935 err = errnoErr(e1) 936 } 937 return 938 } 939 940 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 941 942 func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { 943 var _p0 *byte 944 _p0, err = BytePtrFromString(pathname) 945 if err != nil { 946 return 947 } 948 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) 949 watchdesc = int(r0) 950 if e1 != 0 { 951 err = errnoErr(e1) 952 } 953 return 954 } 955 956 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 957 958 func InotifyInit1(flags int) (fd int, err error) { 959 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) 960 fd = int(r0) 961 if e1 != 0 { 962 err = errnoErr(e1) 963 } 964 return 965 } 966 967 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 968 969 func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { 970 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) 971 success = int(r0) 972 if e1 != 0 { 973 err = errnoErr(e1) 974 } 975 return 976 } 977 978 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 979 980 func Kill(pid int, sig syscall.Signal) (err error) { 981 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) 982 if e1 != 0 { 983 err = errnoErr(e1) 984 } 985 return 986 } 987 988 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 989 990 func Klogctl(typ int, buf []byte) (n int, err error) { 991 var _p0 unsafe.Pointer 992 if len(buf) > 0 { 993 _p0 = unsafe.Pointer(&buf[0]) 994 } else { 995 _p0 = unsafe.Pointer(&_zero) 996 } 997 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) 998 n = int(r0) 999 if e1 != 0 { 1000 err = errnoErr(e1) 1001 } 1002 return 1003 } 1004 1005 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1006 1007 func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { 1008 var _p0 *byte 1009 _p0, err = BytePtrFromString(path) 1010 if err != nil { 1011 return 1012 } 1013 var _p1 *byte 1014 _p1, err = BytePtrFromString(attr) 1015 if err != nil { 1016 return 1017 } 1018 var _p2 unsafe.Pointer 1019 if len(dest) > 0 { 1020 _p2 = unsafe.Pointer(&dest[0]) 1021 } else { 1022 _p2 = unsafe.Pointer(&_zero) 1023 } 1024 r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) 1025 sz = int(r0) 1026 if e1 != 0 { 1027 err = errnoErr(e1) 1028 } 1029 return 1030 } 1031 1032 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1033 1034 func Listxattr(path string, dest []byte) (sz int, err error) { 1035 var _p0 *byte 1036 _p0, err = BytePtrFromString(path) 1037 if err != nil { 1038 return 1039 } 1040 var _p1 unsafe.Pointer 1041 if len(dest) > 0 { 1042 _p1 = unsafe.Pointer(&dest[0]) 1043 } else { 1044 _p1 = unsafe.Pointer(&_zero) 1045 } 1046 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) 1047 sz = int(r0) 1048 if e1 != 0 { 1049 err = errnoErr(e1) 1050 } 1051 return 1052 } 1053 1054 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1055 1056 func Llistxattr(path string, dest []byte) (sz int, err error) { 1057 var _p0 *byte 1058 _p0, err = BytePtrFromString(path) 1059 if err != nil { 1060 return 1061 } 1062 var _p1 unsafe.Pointer 1063 if len(dest) > 0 { 1064 _p1 = unsafe.Pointer(&dest[0]) 1065 } else { 1066 _p1 = unsafe.Pointer(&_zero) 1067 } 1068 r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) 1069 sz = int(r0) 1070 if e1 != 0 { 1071 err = errnoErr(e1) 1072 } 1073 return 1074 } 1075 1076 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1077 1078 func Lremovexattr(path string, attr string) (err error) { 1079 var _p0 *byte 1080 _p0, err = BytePtrFromString(path) 1081 if err != nil { 1082 return 1083 } 1084 var _p1 *byte 1085 _p1, err = BytePtrFromString(attr) 1086 if err != nil { 1087 return 1088 } 1089 _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1090 if e1 != 0 { 1091 err = errnoErr(e1) 1092 } 1093 return 1094 } 1095 1096 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1097 1098 func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { 1099 var _p0 *byte 1100 _p0, err = BytePtrFromString(path) 1101 if err != nil { 1102 return 1103 } 1104 var _p1 *byte 1105 _p1, err = BytePtrFromString(attr) 1106 if err != nil { 1107 return 1108 } 1109 var _p2 unsafe.Pointer 1110 if len(data) > 0 { 1111 _p2 = unsafe.Pointer(&data[0]) 1112 } else { 1113 _p2 = unsafe.Pointer(&_zero) 1114 } 1115 _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) 1116 if e1 != 0 { 1117 err = errnoErr(e1) 1118 } 1119 return 1120 } 1121 1122 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1123 1124 func MemfdCreate(name string, flags int) (fd int, err error) { 1125 var _p0 *byte 1126 _p0, err = BytePtrFromString(name) 1127 if err != nil { 1128 return 1129 } 1130 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1131 fd = int(r0) 1132 if e1 != 0 { 1133 err = errnoErr(e1) 1134 } 1135 return 1136 } 1137 1138 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1139 1140 func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1141 var _p0 *byte 1142 _p0, err = BytePtrFromString(path) 1143 if err != nil { 1144 return 1145 } 1146 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1147 if e1 != 0 { 1148 err = errnoErr(e1) 1149 } 1150 return 1151 } 1152 1153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1154 1155 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { 1156 var _p0 *byte 1157 _p0, err = BytePtrFromString(path) 1158 if err != nil { 1159 return 1160 } 1161 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1162 if e1 != 0 { 1163 err = errnoErr(e1) 1164 } 1165 return 1166 } 1167 1168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1169 1170 func Nanosleep(time *Timespec, leftover *Timespec) (err error) { 1171 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1172 if e1 != 0 { 1173 err = errnoErr(e1) 1174 } 1175 return 1176 } 1177 1178 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1179 1180 func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { 1181 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) 1182 fd = int(r0) 1183 if e1 != 0 { 1184 err = errnoErr(e1) 1185 } 1186 return 1187 } 1188 1189 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1190 1191 func PivotRoot(newroot string, putold string) (err error) { 1192 var _p0 *byte 1193 _p0, err = BytePtrFromString(newroot) 1194 if err != nil { 1195 return 1196 } 1197 var _p1 *byte 1198 _p1, err = BytePtrFromString(putold) 1199 if err != nil { 1200 return 1201 } 1202 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1203 if e1 != 0 { 1204 err = errnoErr(e1) 1205 } 1206 return 1207 } 1208 1209 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1210 1211 func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { 1212 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) 1213 if e1 != 0 { 1214 err = errnoErr(e1) 1215 } 1216 return 1217 } 1218 1219 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1220 1221 func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { 1222 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) 1223 if e1 != 0 { 1224 err = errnoErr(e1) 1225 } 1226 return 1227 } 1228 1229 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1230 1231 func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { 1232 r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) 1233 n = int(r0) 1234 if e1 != 0 { 1235 err = errnoErr(e1) 1236 } 1237 return 1238 } 1239 1240 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1241 1242 func read(fd int, p []byte) (n int, err error) { 1243 var _p0 unsafe.Pointer 1244 if len(p) > 0 { 1245 _p0 = unsafe.Pointer(&p[0]) 1246 } else { 1247 _p0 = unsafe.Pointer(&_zero) 1248 } 1249 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1250 n = int(r0) 1251 if e1 != 0 { 1252 err = errnoErr(e1) 1253 } 1254 return 1255 } 1256 1257 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1258 1259 func Removexattr(path string, attr string) (err error) { 1260 var _p0 *byte 1261 _p0, err = BytePtrFromString(path) 1262 if err != nil { 1263 return 1264 } 1265 var _p1 *byte 1266 _p1, err = BytePtrFromString(attr) 1267 if err != nil { 1268 return 1269 } 1270 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1271 if e1 != 0 { 1272 err = errnoErr(e1) 1273 } 1274 return 1275 } 1276 1277 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1278 1279 func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { 1280 var _p0 *byte 1281 _p0, err = BytePtrFromString(oldpath) 1282 if err != nil { 1283 return 1284 } 1285 var _p1 *byte 1286 _p1, err = BytePtrFromString(newpath) 1287 if err != nil { 1288 return 1289 } 1290 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1291 if e1 != 0 { 1292 err = errnoErr(e1) 1293 } 1294 return 1295 } 1296 1297 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1298 1299 func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1300 var _p0 *byte 1301 _p0, err = BytePtrFromString(keyType) 1302 if err != nil { 1303 return 1304 } 1305 var _p1 *byte 1306 _p1, err = BytePtrFromString(description) 1307 if err != nil { 1308 return 1309 } 1310 var _p2 *byte 1311 _p2, err = BytePtrFromString(callback) 1312 if err != nil { 1313 return 1314 } 1315 r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) 1316 id = int(r0) 1317 if e1 != 0 { 1318 err = errnoErr(e1) 1319 } 1320 return 1321 } 1322 1323 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1324 1325 func Setdomainname(p []byte) (err error) { 1326 var _p0 unsafe.Pointer 1327 if len(p) > 0 { 1328 _p0 = unsafe.Pointer(&p[0]) 1329 } else { 1330 _p0 = unsafe.Pointer(&_zero) 1331 } 1332 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) 1333 if e1 != 0 { 1334 err = errnoErr(e1) 1335 } 1336 return 1337 } 1338 1339 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1340 1341 func Sethostname(p []byte) (err error) { 1342 var _p0 unsafe.Pointer 1343 if len(p) > 0 { 1344 _p0 = unsafe.Pointer(&p[0]) 1345 } else { 1346 _p0 = unsafe.Pointer(&_zero) 1347 } 1348 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) 1349 if e1 != 0 { 1350 err = errnoErr(e1) 1351 } 1352 return 1353 } 1354 1355 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1356 1357 func Setpgid(pid int, pgid int) (err error) { 1358 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) 1359 if e1 != 0 { 1360 err = errnoErr(e1) 1361 } 1362 return 1363 } 1364 1365 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1366 1367 func Setsid() (pid int, err error) { 1368 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) 1369 pid = int(r0) 1370 if e1 != 0 { 1371 err = errnoErr(e1) 1372 } 1373 return 1374 } 1375 1376 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1377 1378 func Settimeofday(tv *Timeval) (err error) { 1379 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 1380 if e1 != 0 { 1381 err = errnoErr(e1) 1382 } 1383 return 1384 } 1385 1386 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1387 1388 func Setns(fd int, nstype int) (err error) { 1389 _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) 1390 if e1 != 0 { 1391 err = errnoErr(e1) 1392 } 1393 return 1394 } 1395 1396 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1397 1398 func Setpriority(which int, who int, prio int) (err error) { 1399 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) 1400 if e1 != 0 { 1401 err = errnoErr(e1) 1402 } 1403 return 1404 } 1405 1406 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1407 1408 func Setxattr(path string, attr string, data []byte, flags int) (err error) { 1409 var _p0 *byte 1410 _p0, err = BytePtrFromString(path) 1411 if err != nil { 1412 return 1413 } 1414 var _p1 *byte 1415 _p1, err = BytePtrFromString(attr) 1416 if err != nil { 1417 return 1418 } 1419 var _p2 unsafe.Pointer 1420 if len(data) > 0 { 1421 _p2 = unsafe.Pointer(&data[0]) 1422 } else { 1423 _p2 = unsafe.Pointer(&_zero) 1424 } 1425 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) 1426 if e1 != 0 { 1427 err = errnoErr(e1) 1428 } 1429 return 1430 } 1431 1432 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1433 1434 func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { 1435 r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) 1436 newfd = int(r0) 1437 if e1 != 0 { 1438 err = errnoErr(e1) 1439 } 1440 return 1441 } 1442 1443 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1444 1445 func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { 1446 var _p0 *byte 1447 _p0, err = BytePtrFromString(path) 1448 if err != nil { 1449 return 1450 } 1451 _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) 1452 if e1 != 0 { 1453 err = errnoErr(e1) 1454 } 1455 return 1456 } 1457 1458 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1459 1460 func Sync() { 1461 SyscallNoError(SYS_SYNC, 0, 0, 0) 1462 return 1463 } 1464 1465 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1466 1467 func Syncfs(fd int) (err error) { 1468 _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) 1469 if e1 != 0 { 1470 err = errnoErr(e1) 1471 } 1472 return 1473 } 1474 1475 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1476 1477 func Sysinfo(info *Sysinfo_t) (err error) { 1478 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) 1479 if e1 != 0 { 1480 err = errnoErr(e1) 1481 } 1482 return 1483 } 1484 1485 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1486 1487 func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { 1488 r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) 1489 n = int64(int64(r1)<<32 | int64(r0)) 1490 if e1 != 0 { 1491 err = errnoErr(e1) 1492 } 1493 return 1494 } 1495 1496 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1497 1498 func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { 1499 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) 1500 if e1 != 0 { 1501 err = errnoErr(e1) 1502 } 1503 return 1504 } 1505 1506 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1507 1508 func Times(tms *Tms) (ticks uintptr, err error) { 1509 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) 1510 ticks = uintptr(r0) 1511 if e1 != 0 { 1512 err = errnoErr(e1) 1513 } 1514 return 1515 } 1516 1517 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1518 1519 func Umask(mask int) (oldmask int) { 1520 r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) 1521 oldmask = int(r0) 1522 return 1523 } 1524 1525 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1526 1527 func Uname(buf *Utsname) (err error) { 1528 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) 1529 if e1 != 0 { 1530 err = errnoErr(e1) 1531 } 1532 return 1533 } 1534 1535 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1536 1537 func Unmount(target string, flags int) (err error) { 1538 var _p0 *byte 1539 _p0, err = BytePtrFromString(target) 1540 if err != nil { 1541 return 1542 } 1543 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1544 if e1 != 0 { 1545 err = errnoErr(e1) 1546 } 1547 return 1548 } 1549 1550 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1551 1552 func Unshare(flags int) (err error) { 1553 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) 1554 if e1 != 0 { 1555 err = errnoErr(e1) 1556 } 1557 return 1558 } 1559 1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1561 1562 func write(fd int, p []byte) (n int, err error) { 1563 var _p0 unsafe.Pointer 1564 if len(p) > 0 { 1565 _p0 = unsafe.Pointer(&p[0]) 1566 } else { 1567 _p0 = unsafe.Pointer(&_zero) 1568 } 1569 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1570 n = int(r0) 1571 if e1 != 0 { 1572 err = errnoErr(e1) 1573 } 1574 return 1575 } 1576 1577 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1578 1579 func exitThread(code int) (err error) { 1580 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) 1581 if e1 != 0 { 1582 err = errnoErr(e1) 1583 } 1584 return 1585 } 1586 1587 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1588 1589 func readlen(fd int, p *byte, np int) (n int, err error) { 1590 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) 1591 n = int(r0) 1592 if e1 != 0 { 1593 err = errnoErr(e1) 1594 } 1595 return 1596 } 1597 1598 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1599 1600 func writelen(fd int, p *byte, np int) (n int, err error) { 1601 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) 1602 n = int(r0) 1603 if e1 != 0 { 1604 err = errnoErr(e1) 1605 } 1606 return 1607 } 1608 1609 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1610 1611 func munmap(addr uintptr, length uintptr) (err error) { 1612 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1613 if e1 != 0 { 1614 err = errnoErr(e1) 1615 } 1616 return 1617 } 1618 1619 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1620 1621 func Madvise(b []byte, advice int) (err error) { 1622 var _p0 unsafe.Pointer 1623 if len(b) > 0 { 1624 _p0 = unsafe.Pointer(&b[0]) 1625 } else { 1626 _p0 = unsafe.Pointer(&_zero) 1627 } 1628 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) 1629 if e1 != 0 { 1630 err = errnoErr(e1) 1631 } 1632 return 1633 } 1634 1635 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1636 1637 func Mprotect(b []byte, prot int) (err error) { 1638 var _p0 unsafe.Pointer 1639 if len(b) > 0 { 1640 _p0 = unsafe.Pointer(&b[0]) 1641 } else { 1642 _p0 = unsafe.Pointer(&_zero) 1643 } 1644 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 1645 if e1 != 0 { 1646 err = errnoErr(e1) 1647 } 1648 return 1649 } 1650 1651 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1652 1653 func Mlock(b []byte) (err error) { 1654 var _p0 unsafe.Pointer 1655 if len(b) > 0 { 1656 _p0 = unsafe.Pointer(&b[0]) 1657 } else { 1658 _p0 = unsafe.Pointer(&_zero) 1659 } 1660 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) 1661 if e1 != 0 { 1662 err = errnoErr(e1) 1663 } 1664 return 1665 } 1666 1667 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1668 1669 func Mlockall(flags int) (err error) { 1670 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) 1671 if e1 != 0 { 1672 err = errnoErr(e1) 1673 } 1674 return 1675 } 1676 1677 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1678 1679 func Msync(b []byte, flags int) (err error) { 1680 var _p0 unsafe.Pointer 1681 if len(b) > 0 { 1682 _p0 = unsafe.Pointer(&b[0]) 1683 } else { 1684 _p0 = unsafe.Pointer(&_zero) 1685 } 1686 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 1687 if e1 != 0 { 1688 err = errnoErr(e1) 1689 } 1690 return 1691 } 1692 1693 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1694 1695 func Munlock(b []byte) (err error) { 1696 var _p0 unsafe.Pointer 1697 if len(b) > 0 { 1698 _p0 = unsafe.Pointer(&b[0]) 1699 } else { 1700 _p0 = unsafe.Pointer(&_zero) 1701 } 1702 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) 1703 if e1 != 0 { 1704 err = errnoErr(e1) 1705 } 1706 return 1707 } 1708 1709 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1710 1711 func Munlockall() (err error) { 1712 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) 1713 if e1 != 0 { 1714 err = errnoErr(e1) 1715 } 1716 return 1717 } 1718 1719 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1720 1721 func faccessat(dirfd int, path string, mode uint32) (err error) { 1722 var _p0 *byte 1723 _p0, err = BytePtrFromString(path) 1724 if err != nil { 1725 return 1726 } 1727 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1728 if e1 != 0 { 1729 err = errnoErr(e1) 1730 } 1731 return 1732 } 1733 1734 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1735 1736 func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { 1737 var _p0 *byte 1738 _p0, err = BytePtrFromString(pathname) 1739 if err != nil { 1740 return 1741 } 1742 _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) 1743 if e1 != 0 { 1744 err = errnoErr(e1) 1745 } 1746 return 1747 } 1748 1749 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1750 1751 func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { 1752 r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) 1753 fd = int(r0) 1754 if e1 != 0 { 1755 err = errnoErr(e1) 1756 } 1757 return 1758 } 1759 1760 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1761 1762 func Dup2(oldfd int, newfd int) (err error) { 1763 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1764 if e1 != 0 { 1765 err = errnoErr(e1) 1766 } 1767 return 1768 } 1769 1770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1771 1772 func EpollCreate(size int) (fd int, err error) { 1773 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) 1774 fd = int(r0) 1775 if e1 != 0 { 1776 err = errnoErr(e1) 1777 } 1778 return 1779 } 1780 1781 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1782 1783 func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 1784 var _p0 unsafe.Pointer 1785 if len(events) > 0 { 1786 _p0 = unsafe.Pointer(&events[0]) 1787 } else { 1788 _p0 = unsafe.Pointer(&_zero) 1789 } 1790 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) 1791 n = int(r0) 1792 if e1 != 0 { 1793 err = errnoErr(e1) 1794 } 1795 return 1796 } 1797 1798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1799 1800 func Fadvise(fd int, offset int64, length int64, advice int) (err error) { 1801 _, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice), 0, 0) 1802 if e1 != 0 { 1803 err = errnoErr(e1) 1804 } 1805 return 1806 } 1807 1808 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1809 1810 func Fchown(fd int, uid int, gid int) (err error) { 1811 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 1812 if e1 != 0 { 1813 err = errnoErr(e1) 1814 } 1815 return 1816 } 1817 1818 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1819 1820 func Ftruncate(fd int, length int64) (err error) { 1821 _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) 1822 if e1 != 0 { 1823 err = errnoErr(e1) 1824 } 1825 return 1826 } 1827 1828 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1829 1830 func Getegid() (egid int) { 1831 r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) 1832 egid = int(r0) 1833 return 1834 } 1835 1836 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1837 1838 func Geteuid() (euid int) { 1839 r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) 1840 euid = int(r0) 1841 return 1842 } 1843 1844 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1845 1846 func Getgid() (gid int) { 1847 r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) 1848 gid = int(r0) 1849 return 1850 } 1851 1852 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1853 1854 func Getuid() (uid int) { 1855 r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) 1856 uid = int(r0) 1857 return 1858 } 1859 1860 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1861 1862 func Lchown(path string, uid int, gid int) (err error) { 1863 var _p0 *byte 1864 _p0, err = BytePtrFromString(path) 1865 if err != nil { 1866 return 1867 } 1868 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 1869 if e1 != 0 { 1870 err = errnoErr(e1) 1871 } 1872 return 1873 } 1874 1875 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1876 1877 func Listen(s int, n int) (err error) { 1878 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) 1879 if e1 != 0 { 1880 err = errnoErr(e1) 1881 } 1882 return 1883 } 1884 1885 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1886 1887 func Pread(fd int, p []byte, offset int64) (n int, err error) { 1888 var _p0 unsafe.Pointer 1889 if len(p) > 0 { 1890 _p0 = unsafe.Pointer(&p[0]) 1891 } else { 1892 _p0 = unsafe.Pointer(&_zero) 1893 } 1894 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) 1895 n = int(r0) 1896 if e1 != 0 { 1897 err = errnoErr(e1) 1898 } 1899 return 1900 } 1901 1902 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1903 1904 func Pwrite(fd int, p []byte, offset int64) (n int, err error) { 1905 var _p0 unsafe.Pointer 1906 if len(p) > 0 { 1907 _p0 = unsafe.Pointer(&p[0]) 1908 } else { 1909 _p0 = unsafe.Pointer(&_zero) 1910 } 1911 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) 1912 n = int(r0) 1913 if e1 != 0 { 1914 err = errnoErr(e1) 1915 } 1916 return 1917 } 1918 1919 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1920 1921 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1922 var _p0 *byte 1923 _p0, err = BytePtrFromString(oldpath) 1924 if err != nil { 1925 return 1926 } 1927 var _p1 *byte 1928 _p1, err = BytePtrFromString(newpath) 1929 if err != nil { 1930 return 1931 } 1932 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1933 if e1 != 0 { 1934 err = errnoErr(e1) 1935 } 1936 return 1937 } 1938 1939 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1940 1941 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { 1942 r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1943 n = int(r0) 1944 if e1 != 0 { 1945 err = errnoErr(e1) 1946 } 1947 return 1948 } 1949 1950 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1951 1952 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { 1953 r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) 1954 written = int(r0) 1955 if e1 != 0 { 1956 err = errnoErr(e1) 1957 } 1958 return 1959 } 1960 1961 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1962 1963 func Setfsgid(gid int) (err error) { 1964 _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) 1965 if e1 != 0 { 1966 err = errnoErr(e1) 1967 } 1968 return 1969 } 1970 1971 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1972 1973 func Setfsuid(uid int) (err error) { 1974 _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) 1975 if e1 != 0 { 1976 err = errnoErr(e1) 1977 } 1978 return 1979 } 1980 1981 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1982 1983 func Setregid(rgid int, egid int) (err error) { 1984 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1985 if e1 != 0 { 1986 err = errnoErr(e1) 1987 } 1988 return 1989 } 1990 1991 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1992 1993 func Setresgid(rgid int, egid int, sgid int) (err error) { 1994 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1995 if e1 != 0 { 1996 err = errnoErr(e1) 1997 } 1998 return 1999 } 2000 2001 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2002 2003 func Setresuid(ruid int, euid int, suid int) (err error) { 2004 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) 2005 if e1 != 0 { 2006 err = errnoErr(e1) 2007 } 2008 return 2009 } 2010 2011 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2012 2013 func Setreuid(ruid int, euid int) (err error) { 2014 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 2015 if e1 != 0 { 2016 err = errnoErr(e1) 2017 } 2018 return 2019 } 2020 2021 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2022 2023 func Shutdown(fd int, how int) (err error) { 2024 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) 2025 if e1 != 0 { 2026 err = errnoErr(e1) 2027 } 2028 return 2029 } 2030 2031 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2032 2033 func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { 2034 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) 2035 n = int(r0) 2036 if e1 != 0 { 2037 err = errnoErr(e1) 2038 } 2039 return 2040 } 2041 2042 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2043 2044 func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { 2045 _, _, e1 := Syscall9(SYS_SYNC_FILE_RANGE, uintptr(fd), 0, uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32), uintptr(flags), 0, 0) 2046 if e1 != 0 { 2047 err = errnoErr(e1) 2048 } 2049 return 2050 } 2051 2052 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2053 2054 func Truncate(path string, length int64) (err error) { 2055 var _p0 *byte 2056 _p0, err = BytePtrFromString(path) 2057 if err != nil { 2058 return 2059 } 2060 _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) 2061 if e1 != 0 { 2062 err = errnoErr(e1) 2063 } 2064 return 2065 } 2066 2067 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2068 2069 func Ustat(dev int, ubuf *Ustat_t) (err error) { 2070 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) 2071 if e1 != 0 { 2072 err = errnoErr(e1) 2073 } 2074 return 2075 } 2076 2077 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2078 2079 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 2080 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 2081 fd = int(r0) 2082 if e1 != 0 { 2083 err = errnoErr(e1) 2084 } 2085 return 2086 } 2087 2088 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2089 2090 func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { 2091 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) 2092 fd = int(r0) 2093 if e1 != 0 { 2094 err = errnoErr(e1) 2095 } 2096 return 2097 } 2098 2099 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2100 2101 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 2102 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) 2103 if e1 != 0 { 2104 err = errnoErr(e1) 2105 } 2106 return 2107 } 2108 2109 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2110 2111 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 2112 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) 2113 if e1 != 0 { 2114 err = errnoErr(e1) 2115 } 2116 return 2117 } 2118 2119 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2120 2121 func getgroups(n int, list *_Gid_t) (nn int, err error) { 2122 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) 2123 nn = int(r0) 2124 if e1 != 0 { 2125 err = errnoErr(e1) 2126 } 2127 return 2128 } 2129 2130 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2131 2132 func setgroups(n int, list *_Gid_t) (err error) { 2133 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) 2134 if e1 != 0 { 2135 err = errnoErr(e1) 2136 } 2137 return 2138 } 2139 2140 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2141 2142 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { 2143 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 2144 if e1 != 0 { 2145 err = errnoErr(e1) 2146 } 2147 return 2148 } 2149 2150 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2151 2152 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { 2153 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 2154 if e1 != 0 { 2155 err = errnoErr(e1) 2156 } 2157 return 2158 } 2159 2160 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2161 2162 func socket(domain int, typ int, proto int) (fd int, err error) { 2163 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) 2164 fd = int(r0) 2165 if e1 != 0 { 2166 err = errnoErr(e1) 2167 } 2168 return 2169 } 2170 2171 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2172 2173 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { 2174 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 2175 if e1 != 0 { 2176 err = errnoErr(e1) 2177 } 2178 return 2179 } 2180 2181 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2182 2183 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 2184 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 2185 if e1 != 0 { 2186 err = errnoErr(e1) 2187 } 2188 return 2189 } 2190 2191 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2192 2193 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 2194 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 2195 if e1 != 0 { 2196 err = errnoErr(e1) 2197 } 2198 return 2199 } 2200 2201 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2202 2203 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { 2204 var _p0 unsafe.Pointer 2205 if len(p) > 0 { 2206 _p0 = unsafe.Pointer(&p[0]) 2207 } else { 2208 _p0 = unsafe.Pointer(&_zero) 2209 } 2210 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) 2211 n = int(r0) 2212 if e1 != 0 { 2213 err = errnoErr(e1) 2214 } 2215 return 2216 } 2217 2218 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2219 2220 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { 2221 var _p0 unsafe.Pointer 2222 if len(buf) > 0 { 2223 _p0 = unsafe.Pointer(&buf[0]) 2224 } else { 2225 _p0 = unsafe.Pointer(&_zero) 2226 } 2227 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 2228 if e1 != 0 { 2229 err = errnoErr(e1) 2230 } 2231 return 2232 } 2233 2234 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2235 2236 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { 2237 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 2238 n = int(r0) 2239 if e1 != 0 { 2240 err = errnoErr(e1) 2241 } 2242 return 2243 } 2244 2245 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2246 2247 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { 2248 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 2249 n = int(r0) 2250 if e1 != 0 { 2251 err = errnoErr(e1) 2252 } 2253 return 2254 } 2255 2256 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2257 2258 func InotifyInit() (fd int, err error) { 2259 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) 2260 fd = int(r0) 2261 if e1 != 0 { 2262 err = errnoErr(e1) 2263 } 2264 return 2265 } 2266 2267 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2268 2269 func Ioperm(from int, num int, on int) (err error) { 2270 _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) 2271 if e1 != 0 { 2272 err = errnoErr(e1) 2273 } 2274 return 2275 } 2276 2277 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2278 2279 func Iopl(level int) (err error) { 2280 _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) 2281 if e1 != 0 { 2282 err = errnoErr(e1) 2283 } 2284 return 2285 } 2286 2287 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2288 2289 func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { 2290 var _p0 *byte 2291 _p0, err = BytePtrFromString(path) 2292 if err != nil { 2293 return 2294 } 2295 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) 2296 if e1 != 0 { 2297 err = errnoErr(e1) 2298 } 2299 return 2300 } 2301 2302 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2303 2304 func Gettimeofday(tv *Timeval) (err error) { 2305 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2306 if e1 != 0 { 2307 err = errnoErr(e1) 2308 } 2309 return 2310 } 2311 2312 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2313 2314 func Time(t *Time_t) (tt Time_t, err error) { 2315 r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) 2316 tt = Time_t(r0) 2317 if e1 != 0 { 2318 err = errnoErr(e1) 2319 } 2320 return 2321 } 2322 2323 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2324 2325 func Utime(path string, buf *Utimbuf) (err error) { 2326 var _p0 *byte 2327 _p0, err = BytePtrFromString(path) 2328 if err != nil { 2329 return 2330 } 2331 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) 2332 if e1 != 0 { 2333 err = errnoErr(e1) 2334 } 2335 return 2336 } 2337 2338 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2339 2340 func utimes(path string, times *[2]Timeval) (err error) { 2341 var _p0 *byte 2342 _p0, err = BytePtrFromString(path) 2343 if err != nil { 2344 return 2345 } 2346 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) 2347 if e1 != 0 { 2348 err = errnoErr(e1) 2349 } 2350 return 2351 } 2352 2353 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2354 2355 func Lstat(path string, stat *Stat_t) (err error) { 2356 var _p0 *byte 2357 _p0, err = BytePtrFromString(path) 2358 if err != nil { 2359 return 2360 } 2361 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 2362 if e1 != 0 { 2363 err = errnoErr(e1) 2364 } 2365 return 2366 } 2367 2368 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2369 2370 func Fstat(fd int, stat *Stat_t) (err error) { 2371 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 2372 if e1 != 0 { 2373 err = errnoErr(e1) 2374 } 2375 return 2376 } 2377 2378 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2379 2380 func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { 2381 var _p0 *byte 2382 _p0, err = BytePtrFromString(path) 2383 if err != nil { 2384 return 2385 } 2386 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 2387 if e1 != 0 { 2388 err = errnoErr(e1) 2389 } 2390 return 2391 } 2392 2393 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2394 2395 func Stat(path string, stat *Stat_t) (err error) { 2396 var _p0 *byte 2397 _p0, err = BytePtrFromString(path) 2398 if err != nil { 2399 return 2400 } 2401 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 2402 if e1 != 0 { 2403 err = errnoErr(e1) 2404 } 2405 return 2406 } 2407 2408 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2409 2410 func Pause() (err error) { 2411 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) 2412 if e1 != 0 { 2413 err = errnoErr(e1) 2414 } 2415 return 2416 } 2417 2418 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2419 2420 func pipe2(p *[2]_C_int, flags int) (err error) { 2421 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 2422 if e1 != 0 { 2423 err = errnoErr(e1) 2424 } 2425 return 2426 } 2427 2428 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2429 2430 func pipe() (p1 int, p2 int, err error) { 2431 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) 2432 p1 = int(r0) 2433 p2 = int(r1) 2434 if e1 != 0 { 2435 err = errnoErr(e1) 2436 } 2437 return 2438 } 2439 2440 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2441 2442 func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { 2443 r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) 2444 xaddr = uintptr(r0) 2445 if e1 != 0 { 2446 err = errnoErr(e1) 2447 } 2448 return 2449 } 2450 2451 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2452 2453 func getrlimit(resource int, rlim *rlimit32) (err error) { 2454 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 2455 if e1 != 0 { 2456 err = errnoErr(e1) 2457 } 2458 return 2459 } 2460 2461 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2462 2463 func setrlimit(resource int, rlim *rlimit32) (err error) { 2464 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 2465 if e1 != 0 { 2466 err = errnoErr(e1) 2467 } 2468 return 2469 } 2470 2471 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2472 2473 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { 2474 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) 2475 n = int(r0) 2476 if e1 != 0 { 2477 err = errnoErr(e1) 2478 } 2479 return 2480 }