github.com/gogf/gkafka@v1.0.1-0.20190702070843-033a14468069/third/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go (about) 1 // go run mksyscall.go -dragonfly -tags dragonfly,amd64 syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 // +build dragonfly,amd64 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 getgroups(ngid int, gid *_Gid_t) (n int, err error) { 18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 19 n = 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 setgroups(ngid int, gid *_Gid_t) (err error) { 29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 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 wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { 39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) 40 wpid = int(r0) 41 if e1 != 0 { 42 err = errnoErr(e1) 43 } 44 return 45 } 46 47 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 48 49 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 51 fd = int(r0) 52 if e1 != 0 { 53 err = errnoErr(e1) 54 } 55 return 56 } 57 58 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 59 60 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) 62 if e1 != 0 { 63 err = errnoErr(e1) 64 } 65 return 66 } 67 68 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 69 70 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) 72 if e1 != 0 { 73 err = errnoErr(e1) 74 } 75 return 76 } 77 78 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 79 80 func socket(domain int, typ int, proto int) (fd int, err error) { 81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) 82 fd = int(r0) 83 if e1 != 0 { 84 err = errnoErr(e1) 85 } 86 return 87 } 88 89 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 90 91 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { 92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 93 if e1 != 0 { 94 err = errnoErr(e1) 95 } 96 return 97 } 98 99 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 100 101 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { 102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 103 if e1 != 0 { 104 err = errnoErr(e1) 105 } 106 return 107 } 108 109 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 110 111 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 113 if e1 != 0 { 114 err = errnoErr(e1) 115 } 116 return 117 } 118 119 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 120 121 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 123 if e1 != 0 { 124 err = errnoErr(e1) 125 } 126 return 127 } 128 129 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 130 131 func Shutdown(s int, how int) (err error) { 132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) 133 if e1 != 0 { 134 err = errnoErr(e1) 135 } 136 return 137 } 138 139 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 140 141 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { 142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 143 if e1 != 0 { 144 err = errnoErr(e1) 145 } 146 return 147 } 148 149 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 150 151 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { 152 var _p0 unsafe.Pointer 153 if len(p) > 0 { 154 _p0 = unsafe.Pointer(&p[0]) 155 } else { 156 _p0 = unsafe.Pointer(&_zero) 157 } 158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) 159 n = int(r0) 160 if e1 != 0 { 161 err = errnoErr(e1) 162 } 163 return 164 } 165 166 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 167 168 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { 169 var _p0 unsafe.Pointer 170 if len(buf) > 0 { 171 _p0 = unsafe.Pointer(&buf[0]) 172 } else { 173 _p0 = unsafe.Pointer(&_zero) 174 } 175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 176 if e1 != 0 { 177 err = errnoErr(e1) 178 } 179 return 180 } 181 182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 183 184 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { 185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 186 n = int(r0) 187 if e1 != 0 { 188 err = errnoErr(e1) 189 } 190 return 191 } 192 193 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 194 195 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { 196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 197 n = int(r0) 198 if e1 != 0 { 199 err = errnoErr(e1) 200 } 201 return 202 } 203 204 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 205 206 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { 207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) 208 n = int(r0) 209 if e1 != 0 { 210 err = errnoErr(e1) 211 } 212 return 213 } 214 215 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 216 217 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { 218 var _p0 unsafe.Pointer 219 if len(mib) > 0 { 220 _p0 = unsafe.Pointer(&mib[0]) 221 } else { 222 _p0 = unsafe.Pointer(&_zero) 223 } 224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 225 if e1 != 0 { 226 err = errnoErr(e1) 227 } 228 return 229 } 230 231 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 232 233 func utimes(path string, timeval *[2]Timeval) (err error) { 234 var _p0 *byte 235 _p0, err = BytePtrFromString(path) 236 if err != nil { 237 return 238 } 239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 240 if e1 != 0 { 241 err = errnoErr(e1) 242 } 243 return 244 } 245 246 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 247 248 func futimes(fd int, timeval *[2]Timeval) (err error) { 249 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 250 if e1 != 0 { 251 err = errnoErr(e1) 252 } 253 return 254 } 255 256 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 257 258 func fcntl(fd int, cmd int, arg int) (val int, err error) { 259 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) 260 val = int(r0) 261 if e1 != 0 { 262 err = errnoErr(e1) 263 } 264 return 265 } 266 267 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 268 269 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { 270 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) 271 n = int(r0) 272 if e1 != 0 { 273 err = errnoErr(e1) 274 } 275 return 276 } 277 278 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 279 280 func Madvise(b []byte, behav int) (err error) { 281 var _p0 unsafe.Pointer 282 if len(b) > 0 { 283 _p0 = unsafe.Pointer(&b[0]) 284 } else { 285 _p0 = unsafe.Pointer(&_zero) 286 } 287 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 288 if e1 != 0 { 289 err = errnoErr(e1) 290 } 291 return 292 } 293 294 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 295 296 func Mlock(b []byte) (err error) { 297 var _p0 unsafe.Pointer 298 if len(b) > 0 { 299 _p0 = unsafe.Pointer(&b[0]) 300 } else { 301 _p0 = unsafe.Pointer(&_zero) 302 } 303 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) 304 if e1 != 0 { 305 err = errnoErr(e1) 306 } 307 return 308 } 309 310 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 311 312 func Mlockall(flags int) (err error) { 313 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) 314 if e1 != 0 { 315 err = errnoErr(e1) 316 } 317 return 318 } 319 320 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 321 322 func Mprotect(b []byte, prot int) (err error) { 323 var _p0 unsafe.Pointer 324 if len(b) > 0 { 325 _p0 = unsafe.Pointer(&b[0]) 326 } else { 327 _p0 = unsafe.Pointer(&_zero) 328 } 329 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 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 Msync(b []byte, flags int) (err error) { 339 var _p0 unsafe.Pointer 340 if len(b) > 0 { 341 _p0 = unsafe.Pointer(&b[0]) 342 } else { 343 _p0 = unsafe.Pointer(&_zero) 344 } 345 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 351 352 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 353 354 func Munlock(b []byte) (err error) { 355 var _p0 unsafe.Pointer 356 if len(b) > 0 { 357 _p0 = unsafe.Pointer(&b[0]) 358 } else { 359 _p0 = unsafe.Pointer(&_zero) 360 } 361 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) 362 if e1 != 0 { 363 err = errnoErr(e1) 364 } 365 return 366 } 367 368 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 369 370 func Munlockall() (err error) { 371 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) 372 if e1 != 0 { 373 err = errnoErr(e1) 374 } 375 return 376 } 377 378 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 379 380 func pipe() (r int, w int, err error) { 381 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) 382 r = int(r0) 383 w = int(r1) 384 if e1 != 0 { 385 err = errnoErr(e1) 386 } 387 return 388 } 389 390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 391 392 func extpread(fd int, p []byte, flags int, offset int64) (n int, err error) { 393 var _p0 unsafe.Pointer 394 if len(p) > 0 { 395 _p0 = unsafe.Pointer(&p[0]) 396 } else { 397 _p0 = unsafe.Pointer(&_zero) 398 } 399 r0, _, e1 := Syscall6(SYS_EXTPREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0) 400 n = int(r0) 401 if e1 != 0 { 402 err = errnoErr(e1) 403 } 404 return 405 } 406 407 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 408 409 func extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) { 410 var _p0 unsafe.Pointer 411 if len(p) > 0 { 412 _p0 = unsafe.Pointer(&p[0]) 413 } else { 414 _p0 = unsafe.Pointer(&_zero) 415 } 416 r0, _, e1 := Syscall6(SYS_EXTPWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0) 417 n = int(r0) 418 if e1 != 0 { 419 err = errnoErr(e1) 420 } 421 return 422 } 423 424 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 425 426 func Getcwd(buf []byte) (n int, err error) { 427 var _p0 unsafe.Pointer 428 if len(buf) > 0 { 429 _p0 = unsafe.Pointer(&buf[0]) 430 } else { 431 _p0 = unsafe.Pointer(&_zero) 432 } 433 r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) 434 n = int(r0) 435 if e1 != 0 { 436 err = errnoErr(e1) 437 } 438 return 439 } 440 441 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 442 443 func ioctl(fd int, req uint, arg uintptr) (err error) { 444 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 445 if e1 != 0 { 446 err = errnoErr(e1) 447 } 448 return 449 } 450 451 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 452 453 func Access(path string, mode uint32) (err error) { 454 var _p0 *byte 455 _p0, err = BytePtrFromString(path) 456 if err != nil { 457 return 458 } 459 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 460 if e1 != 0 { 461 err = errnoErr(e1) 462 } 463 return 464 } 465 466 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 467 468 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { 469 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 470 if e1 != 0 { 471 err = errnoErr(e1) 472 } 473 return 474 } 475 476 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 477 478 func Chdir(path string) (err error) { 479 var _p0 *byte 480 _p0, err = BytePtrFromString(path) 481 if err != nil { 482 return 483 } 484 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 485 if e1 != 0 { 486 err = errnoErr(e1) 487 } 488 return 489 } 490 491 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 492 493 func Chflags(path string, flags int) (err error) { 494 var _p0 *byte 495 _p0, err = BytePtrFromString(path) 496 if err != nil { 497 return 498 } 499 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 500 if e1 != 0 { 501 err = errnoErr(e1) 502 } 503 return 504 } 505 506 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 507 508 func Chmod(path string, mode uint32) (err error) { 509 var _p0 *byte 510 _p0, err = BytePtrFromString(path) 511 if err != nil { 512 return 513 } 514 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 515 if e1 != 0 { 516 err = errnoErr(e1) 517 } 518 return 519 } 520 521 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 522 523 func Chown(path string, uid int, gid int) (err error) { 524 var _p0 *byte 525 _p0, err = BytePtrFromString(path) 526 if err != nil { 527 return 528 } 529 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 530 if e1 != 0 { 531 err = errnoErr(e1) 532 } 533 return 534 } 535 536 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 537 538 func Chroot(path string) (err error) { 539 var _p0 *byte 540 _p0, err = BytePtrFromString(path) 541 if err != nil { 542 return 543 } 544 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) 545 if e1 != 0 { 546 err = errnoErr(e1) 547 } 548 return 549 } 550 551 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 552 553 func Close(fd int) (err error) { 554 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) 555 if e1 != 0 { 556 err = errnoErr(e1) 557 } 558 return 559 } 560 561 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 562 563 func Dup(fd int) (nfd int, err error) { 564 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) 565 nfd = int(r0) 566 if e1 != 0 { 567 err = errnoErr(e1) 568 } 569 return 570 } 571 572 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 573 574 func Dup2(from int, to int) (err error) { 575 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) 576 if e1 != 0 { 577 err = errnoErr(e1) 578 } 579 return 580 } 581 582 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 583 584 func Exit(code int) { 585 Syscall(SYS_EXIT, uintptr(code), 0, 0) 586 return 587 } 588 589 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 590 591 func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { 592 var _p0 *byte 593 _p0, err = BytePtrFromString(path) 594 if err != nil { 595 return 596 } 597 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 598 if e1 != 0 { 599 err = errnoErr(e1) 600 } 601 return 602 } 603 604 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 605 606 func Fchdir(fd int) (err error) { 607 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 608 if e1 != 0 { 609 err = errnoErr(e1) 610 } 611 return 612 } 613 614 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 615 616 func Fchflags(fd int, flags int) (err error) { 617 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) 618 if e1 != 0 { 619 err = errnoErr(e1) 620 } 621 return 622 } 623 624 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 625 626 func Fchmod(fd int, mode uint32) (err error) { 627 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 628 if e1 != 0 { 629 err = errnoErr(e1) 630 } 631 return 632 } 633 634 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 635 636 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { 637 var _p0 *byte 638 _p0, err = BytePtrFromString(path) 639 if err != nil { 640 return 641 } 642 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 643 if e1 != 0 { 644 err = errnoErr(e1) 645 } 646 return 647 } 648 649 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 650 651 func Fchown(fd int, uid int, gid int) (err error) { 652 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 653 if e1 != 0 { 654 err = errnoErr(e1) 655 } 656 return 657 } 658 659 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 660 661 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { 662 var _p0 *byte 663 _p0, err = BytePtrFromString(path) 664 if err != nil { 665 return 666 } 667 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 668 if e1 != 0 { 669 err = errnoErr(e1) 670 } 671 return 672 } 673 674 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 675 676 func Flock(fd int, how int) (err error) { 677 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 678 if e1 != 0 { 679 err = errnoErr(e1) 680 } 681 return 682 } 683 684 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 685 686 func Fpathconf(fd int, name int) (val int, err error) { 687 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) 688 val = int(r0) 689 if e1 != 0 { 690 err = errnoErr(e1) 691 } 692 return 693 } 694 695 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 696 697 func Fstat(fd int, stat *Stat_t) (err error) { 698 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 699 if e1 != 0 { 700 err = errnoErr(e1) 701 } 702 return 703 } 704 705 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 706 707 func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { 708 var _p0 *byte 709 _p0, err = BytePtrFromString(path) 710 if err != nil { 711 return 712 } 713 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 714 if e1 != 0 { 715 err = errnoErr(e1) 716 } 717 return 718 } 719 720 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 721 722 func Fstatfs(fd int, stat *Statfs_t) (err error) { 723 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 724 if e1 != 0 { 725 err = errnoErr(e1) 726 } 727 return 728 } 729 730 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 731 732 func Fsync(fd int) (err error) { 733 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 734 if e1 != 0 { 735 err = errnoErr(e1) 736 } 737 return 738 } 739 740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 741 742 func Ftruncate(fd int, length int64) (err error) { 743 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) 744 if e1 != 0 { 745 err = errnoErr(e1) 746 } 747 return 748 } 749 750 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 751 752 func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 753 var _p0 unsafe.Pointer 754 if len(buf) > 0 { 755 _p0 = unsafe.Pointer(&buf[0]) 756 } else { 757 _p0 = unsafe.Pointer(&_zero) 758 } 759 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) 760 n = int(r0) 761 if e1 != 0 { 762 err = errnoErr(e1) 763 } 764 return 765 } 766 767 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 768 769 func Getdtablesize() (size int) { 770 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) 771 size = int(r0) 772 return 773 } 774 775 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 776 777 func Getegid() (egid int) { 778 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) 779 egid = int(r0) 780 return 781 } 782 783 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 784 785 func Geteuid() (uid int) { 786 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) 787 uid = int(r0) 788 return 789 } 790 791 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 792 793 func Getgid() (gid int) { 794 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) 795 gid = int(r0) 796 return 797 } 798 799 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 800 801 func Getpgid(pid int) (pgid int, err error) { 802 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) 803 pgid = int(r0) 804 if e1 != 0 { 805 err = errnoErr(e1) 806 } 807 return 808 } 809 810 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 811 812 func Getpgrp() (pgrp int) { 813 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) 814 pgrp = int(r0) 815 return 816 } 817 818 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 819 820 func Getpid() (pid int) { 821 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) 822 pid = int(r0) 823 return 824 } 825 826 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 827 828 func Getppid() (ppid int) { 829 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) 830 ppid = int(r0) 831 return 832 } 833 834 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 835 836 func Getpriority(which int, who int) (prio int, err error) { 837 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) 838 prio = int(r0) 839 if e1 != 0 { 840 err = errnoErr(e1) 841 } 842 return 843 } 844 845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 846 847 func Getrlimit(which int, lim *Rlimit) (err error) { 848 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 849 if e1 != 0 { 850 err = errnoErr(e1) 851 } 852 return 853 } 854 855 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 856 857 func Getrusage(who int, rusage *Rusage) (err error) { 858 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 859 if e1 != 0 { 860 err = errnoErr(e1) 861 } 862 return 863 } 864 865 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 866 867 func Getsid(pid int) (sid int, err error) { 868 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) 869 sid = int(r0) 870 if e1 != 0 { 871 err = errnoErr(e1) 872 } 873 return 874 } 875 876 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 877 878 func Gettimeofday(tv *Timeval) (err error) { 879 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 880 if e1 != 0 { 881 err = errnoErr(e1) 882 } 883 return 884 } 885 886 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 887 888 func Getuid() (uid int) { 889 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) 890 uid = int(r0) 891 return 892 } 893 894 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 895 896 func Issetugid() (tainted bool) { 897 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) 898 tainted = bool(r0 != 0) 899 return 900 } 901 902 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 903 904 func Kill(pid int, signum syscall.Signal) (err error) { 905 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) 906 if e1 != 0 { 907 err = errnoErr(e1) 908 } 909 return 910 } 911 912 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 913 914 func Kqueue() (fd int, err error) { 915 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) 916 fd = int(r0) 917 if e1 != 0 { 918 err = errnoErr(e1) 919 } 920 return 921 } 922 923 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 924 925 func Lchown(path string, uid int, gid int) (err error) { 926 var _p0 *byte 927 _p0, err = BytePtrFromString(path) 928 if err != nil { 929 return 930 } 931 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 932 if e1 != 0 { 933 err = errnoErr(e1) 934 } 935 return 936 } 937 938 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 939 940 func Link(path string, link string) (err error) { 941 var _p0 *byte 942 _p0, err = BytePtrFromString(path) 943 if err != nil { 944 return 945 } 946 var _p1 *byte 947 _p1, err = BytePtrFromString(link) 948 if err != nil { 949 return 950 } 951 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 952 if e1 != 0 { 953 err = errnoErr(e1) 954 } 955 return 956 } 957 958 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 959 960 func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { 961 var _p0 *byte 962 _p0, err = BytePtrFromString(path) 963 if err != nil { 964 return 965 } 966 var _p1 *byte 967 _p1, err = BytePtrFromString(link) 968 if err != nil { 969 return 970 } 971 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 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 Listen(s int, backlog int) (err error) { 981 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 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 Lstat(path string, stat *Stat_t) (err error) { 991 var _p0 *byte 992 _p0, err = BytePtrFromString(path) 993 if err != nil { 994 return 995 } 996 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 997 if e1 != 0 { 998 err = errnoErr(e1) 999 } 1000 return 1001 } 1002 1003 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1004 1005 func Mkdir(path string, mode uint32) (err error) { 1006 var _p0 *byte 1007 _p0, err = BytePtrFromString(path) 1008 if err != nil { 1009 return 1010 } 1011 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1012 if e1 != 0 { 1013 err = errnoErr(e1) 1014 } 1015 return 1016 } 1017 1018 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1019 1020 func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1021 var _p0 *byte 1022 _p0, err = BytePtrFromString(path) 1023 if err != nil { 1024 return 1025 } 1026 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1027 if e1 != 0 { 1028 err = errnoErr(e1) 1029 } 1030 return 1031 } 1032 1033 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1034 1035 func Mkfifo(path string, mode uint32) (err error) { 1036 var _p0 *byte 1037 _p0, err = BytePtrFromString(path) 1038 if err != nil { 1039 return 1040 } 1041 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1042 if e1 != 0 { 1043 err = errnoErr(e1) 1044 } 1045 return 1046 } 1047 1048 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1049 1050 func Mknod(path string, mode uint32, dev int) (err error) { 1051 var _p0 *byte 1052 _p0, err = BytePtrFromString(path) 1053 if err != nil { 1054 return 1055 } 1056 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1057 if e1 != 0 { 1058 err = errnoErr(e1) 1059 } 1060 return 1061 } 1062 1063 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1064 1065 func Mknodat(fd int, path string, mode uint32, dev int) (err error) { 1066 var _p0 *byte 1067 _p0, err = BytePtrFromString(path) 1068 if err != nil { 1069 return 1070 } 1071 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1072 if e1 != 0 { 1073 err = errnoErr(e1) 1074 } 1075 return 1076 } 1077 1078 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1079 1080 func Nanosleep(time *Timespec, leftover *Timespec) (err error) { 1081 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1082 if e1 != 0 { 1083 err = errnoErr(e1) 1084 } 1085 return 1086 } 1087 1088 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1089 1090 func Open(path string, mode int, perm uint32) (fd int, err error) { 1091 var _p0 *byte 1092 _p0, err = BytePtrFromString(path) 1093 if err != nil { 1094 return 1095 } 1096 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) 1097 fd = int(r0) 1098 if e1 != 0 { 1099 err = errnoErr(e1) 1100 } 1101 return 1102 } 1103 1104 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1105 1106 func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { 1107 var _p0 *byte 1108 _p0, err = BytePtrFromString(path) 1109 if err != nil { 1110 return 1111 } 1112 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) 1113 fd = int(r0) 1114 if e1 != 0 { 1115 err = errnoErr(e1) 1116 } 1117 return 1118 } 1119 1120 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1121 1122 func Pathconf(path string, name int) (val int, err error) { 1123 var _p0 *byte 1124 _p0, err = BytePtrFromString(path) 1125 if err != nil { 1126 return 1127 } 1128 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) 1129 val = int(r0) 1130 if e1 != 0 { 1131 err = errnoErr(e1) 1132 } 1133 return 1134 } 1135 1136 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1137 1138 func read(fd int, p []byte) (n int, err error) { 1139 var _p0 unsafe.Pointer 1140 if len(p) > 0 { 1141 _p0 = unsafe.Pointer(&p[0]) 1142 } else { 1143 _p0 = unsafe.Pointer(&_zero) 1144 } 1145 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1146 n = int(r0) 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 Readlink(path string, buf []byte) (n int, err error) { 1156 var _p0 *byte 1157 _p0, err = BytePtrFromString(path) 1158 if err != nil { 1159 return 1160 } 1161 var _p1 unsafe.Pointer 1162 if len(buf) > 0 { 1163 _p1 = unsafe.Pointer(&buf[0]) 1164 } else { 1165 _p1 = unsafe.Pointer(&_zero) 1166 } 1167 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) 1168 n = int(r0) 1169 if e1 != 0 { 1170 err = errnoErr(e1) 1171 } 1172 return 1173 } 1174 1175 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1176 1177 func Rename(from string, to string) (err error) { 1178 var _p0 *byte 1179 _p0, err = BytePtrFromString(from) 1180 if err != nil { 1181 return 1182 } 1183 var _p1 *byte 1184 _p1, err = BytePtrFromString(to) 1185 if err != nil { 1186 return 1187 } 1188 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1189 if e1 != 0 { 1190 err = errnoErr(e1) 1191 } 1192 return 1193 } 1194 1195 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1196 1197 func Renameat(fromfd int, from string, tofd int, to string) (err error) { 1198 var _p0 *byte 1199 _p0, err = BytePtrFromString(from) 1200 if err != nil { 1201 return 1202 } 1203 var _p1 *byte 1204 _p1, err = BytePtrFromString(to) 1205 if err != nil { 1206 return 1207 } 1208 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1209 if e1 != 0 { 1210 err = errnoErr(e1) 1211 } 1212 return 1213 } 1214 1215 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1216 1217 func Revoke(path string) (err error) { 1218 var _p0 *byte 1219 _p0, err = BytePtrFromString(path) 1220 if err != nil { 1221 return 1222 } 1223 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1224 if e1 != 0 { 1225 err = errnoErr(e1) 1226 } 1227 return 1228 } 1229 1230 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1231 1232 func Rmdir(path string) (err error) { 1233 var _p0 *byte 1234 _p0, err = BytePtrFromString(path) 1235 if err != nil { 1236 return 1237 } 1238 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 1239 if e1 != 0 { 1240 err = errnoErr(e1) 1241 } 1242 return 1243 } 1244 1245 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1246 1247 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { 1248 r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) 1249 newoffset = int64(r0) 1250 if e1 != 0 { 1251 err = errnoErr(e1) 1252 } 1253 return 1254 } 1255 1256 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1257 1258 func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { 1259 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1260 if e1 != 0 { 1261 err = errnoErr(e1) 1262 } 1263 return 1264 } 1265 1266 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1267 1268 func Setegid(egid int) (err error) { 1269 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) 1270 if e1 != 0 { 1271 err = errnoErr(e1) 1272 } 1273 return 1274 } 1275 1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1277 1278 func Seteuid(euid int) (err error) { 1279 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) 1280 if e1 != 0 { 1281 err = errnoErr(e1) 1282 } 1283 return 1284 } 1285 1286 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1287 1288 func Setgid(gid int) (err error) { 1289 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) 1290 if e1 != 0 { 1291 err = errnoErr(e1) 1292 } 1293 return 1294 } 1295 1296 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1297 1298 func Setlogin(name string) (err error) { 1299 var _p0 *byte 1300 _p0, err = BytePtrFromString(name) 1301 if err != nil { 1302 return 1303 } 1304 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) 1305 if e1 != 0 { 1306 err = errnoErr(e1) 1307 } 1308 return 1309 } 1310 1311 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1312 1313 func Setpgid(pid int, pgid int) (err error) { 1314 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) 1315 if e1 != 0 { 1316 err = errnoErr(e1) 1317 } 1318 return 1319 } 1320 1321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1322 1323 func Setpriority(which int, who int, prio int) (err error) { 1324 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) 1325 if e1 != 0 { 1326 err = errnoErr(e1) 1327 } 1328 return 1329 } 1330 1331 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1332 1333 func Setregid(rgid int, egid int) (err error) { 1334 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1335 if e1 != 0 { 1336 err = errnoErr(e1) 1337 } 1338 return 1339 } 1340 1341 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1342 1343 func Setreuid(ruid int, euid int) (err error) { 1344 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1345 if e1 != 0 { 1346 err = errnoErr(e1) 1347 } 1348 return 1349 } 1350 1351 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1352 1353 func Setresgid(rgid int, egid int, sgid int) (err error) { 1354 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1355 if e1 != 0 { 1356 err = errnoErr(e1) 1357 } 1358 return 1359 } 1360 1361 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1362 1363 func Setresuid(ruid int, euid int, suid int) (err error) { 1364 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) 1365 if e1 != 0 { 1366 err = errnoErr(e1) 1367 } 1368 return 1369 } 1370 1371 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1372 1373 func Setrlimit(which int, lim *Rlimit) (err error) { 1374 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1380 1381 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1382 1383 func Setsid() (pid int, err error) { 1384 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) 1385 pid = int(r0) 1386 if e1 != 0 { 1387 err = errnoErr(e1) 1388 } 1389 return 1390 } 1391 1392 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1393 1394 func Settimeofday(tp *Timeval) (err error) { 1395 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1396 if e1 != 0 { 1397 err = errnoErr(e1) 1398 } 1399 return 1400 } 1401 1402 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1403 1404 func Setuid(uid int) (err error) { 1405 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) 1406 if e1 != 0 { 1407 err = errnoErr(e1) 1408 } 1409 return 1410 } 1411 1412 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1413 1414 func Stat(path string, stat *Stat_t) (err error) { 1415 var _p0 *byte 1416 _p0, err = BytePtrFromString(path) 1417 if err != nil { 1418 return 1419 } 1420 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1421 if e1 != 0 { 1422 err = errnoErr(e1) 1423 } 1424 return 1425 } 1426 1427 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1428 1429 func Statfs(path string, stat *Statfs_t) (err error) { 1430 var _p0 *byte 1431 _p0, err = BytePtrFromString(path) 1432 if err != nil { 1433 return 1434 } 1435 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1436 if e1 != 0 { 1437 err = errnoErr(e1) 1438 } 1439 return 1440 } 1441 1442 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1443 1444 func Symlink(path string, link string) (err error) { 1445 var _p0 *byte 1446 _p0, err = BytePtrFromString(path) 1447 if err != nil { 1448 return 1449 } 1450 var _p1 *byte 1451 _p1, err = BytePtrFromString(link) 1452 if err != nil { 1453 return 1454 } 1455 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1456 if e1 != 0 { 1457 err = errnoErr(e1) 1458 } 1459 return 1460 } 1461 1462 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1463 1464 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { 1465 var _p0 *byte 1466 _p0, err = BytePtrFromString(oldpath) 1467 if err != nil { 1468 return 1469 } 1470 var _p1 *byte 1471 _p1, err = BytePtrFromString(newpath) 1472 if err != nil { 1473 return 1474 } 1475 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 1476 if e1 != 0 { 1477 err = errnoErr(e1) 1478 } 1479 return 1480 } 1481 1482 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1483 1484 func Sync() (err error) { 1485 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) 1486 if e1 != 0 { 1487 err = errnoErr(e1) 1488 } 1489 return 1490 } 1491 1492 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1493 1494 func Truncate(path string, length int64) (err error) { 1495 var _p0 *byte 1496 _p0, err = BytePtrFromString(path) 1497 if err != nil { 1498 return 1499 } 1500 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) 1501 if e1 != 0 { 1502 err = errnoErr(e1) 1503 } 1504 return 1505 } 1506 1507 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1508 1509 func Umask(newmask int) (oldmask int) { 1510 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) 1511 oldmask = int(r0) 1512 return 1513 } 1514 1515 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1516 1517 func Undelete(path string) (err error) { 1518 var _p0 *byte 1519 _p0, err = BytePtrFromString(path) 1520 if err != nil { 1521 return 1522 } 1523 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1524 if e1 != 0 { 1525 err = errnoErr(e1) 1526 } 1527 return 1528 } 1529 1530 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1531 1532 func Unlink(path string) (err error) { 1533 var _p0 *byte 1534 _p0, err = BytePtrFromString(path) 1535 if err != nil { 1536 return 1537 } 1538 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) 1539 if e1 != 0 { 1540 err = errnoErr(e1) 1541 } 1542 return 1543 } 1544 1545 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1546 1547 func Unlinkat(dirfd int, path string, flags int) (err error) { 1548 var _p0 *byte 1549 _p0, err = BytePtrFromString(path) 1550 if err != nil { 1551 return 1552 } 1553 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 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 Unmount(path string, flags int) (err error) { 1563 var _p0 *byte 1564 _p0, err = BytePtrFromString(path) 1565 if err != nil { 1566 return 1567 } 1568 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1569 if e1 != 0 { 1570 err = errnoErr(e1) 1571 } 1572 return 1573 } 1574 1575 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1576 1577 func write(fd int, p []byte) (n int, err error) { 1578 var _p0 unsafe.Pointer 1579 if len(p) > 0 { 1580 _p0 = unsafe.Pointer(&p[0]) 1581 } else { 1582 _p0 = unsafe.Pointer(&_zero) 1583 } 1584 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1585 n = int(r0) 1586 if e1 != 0 { 1587 err = errnoErr(e1) 1588 } 1589 return 1590 } 1591 1592 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1593 1594 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { 1595 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) 1596 ret = uintptr(r0) 1597 if e1 != 0 { 1598 err = errnoErr(e1) 1599 } 1600 return 1601 } 1602 1603 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1604 1605 func munmap(addr uintptr, length uintptr) (err error) { 1606 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1607 if e1 != 0 { 1608 err = errnoErr(e1) 1609 } 1610 return 1611 } 1612 1613 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1614 1615 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { 1616 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1617 n = int(r0) 1618 if e1 != 0 { 1619 err = errnoErr(e1) 1620 } 1621 return 1622 } 1623 1624 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1625 1626 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1627 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1628 n = int(r0) 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 accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { 1638 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) 1639 nfd = int(r0) 1640 if e1 != 0 { 1641 err = errnoErr(e1) 1642 } 1643 return 1644 } 1645 1646 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1647 1648 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 1649 var _p0 *byte 1650 _p0, err = BytePtrFromString(path) 1651 if err != nil { 1652 return 1653 } 1654 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 1655 if e1 != 0 { 1656 err = errnoErr(e1) 1657 } 1658 return 1659 }