github.com/gogf/gkafka@v1.0.1-0.20190702070843-033a14468069/third/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go (about) 1 // go run mksyscall.go -netbsd -tags netbsd,amd64 syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 // +build netbsd,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() (fd1 int, fd2 int, err error) { 381 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) 382 fd1 = int(r0) 383 fd2 = 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 getdents(fd int, buf []byte) (n int, err error) { 393 var _p0 unsafe.Pointer 394 if len(buf) > 0 { 395 _p0 = unsafe.Pointer(&buf[0]) 396 } else { 397 _p0 = unsafe.Pointer(&_zero) 398 } 399 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) 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 Getcwd(buf []byte) (n int, err error) { 410 var _p0 unsafe.Pointer 411 if len(buf) > 0 { 412 _p0 = unsafe.Pointer(&buf[0]) 413 } else { 414 _p0 = unsafe.Pointer(&_zero) 415 } 416 r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 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 ioctl(fd int, req uint, arg uintptr) (err error) { 427 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 428 if e1 != 0 { 429 err = errnoErr(e1) 430 } 431 return 432 } 433 434 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 435 436 func Access(path string, mode uint32) (err error) { 437 var _p0 *byte 438 _p0, err = BytePtrFromString(path) 439 if err != nil { 440 return 441 } 442 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 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 Adjtime(delta *Timeval, olddelta *Timeval) (err error) { 452 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 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 Chflags(path string, flags int) (err error) { 477 var _p0 *byte 478 _p0, err = BytePtrFromString(path) 479 if err != nil { 480 return 481 } 482 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 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 Chmod(path string, mode uint32) (err error) { 492 var _p0 *byte 493 _p0, err = BytePtrFromString(path) 494 if err != nil { 495 return 496 } 497 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 498 if e1 != 0 { 499 err = errnoErr(e1) 500 } 501 return 502 } 503 504 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 505 506 func Chown(path string, uid int, gid int) (err error) { 507 var _p0 *byte 508 _p0, err = BytePtrFromString(path) 509 if err != nil { 510 return 511 } 512 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 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 Chroot(path string) (err error) { 522 var _p0 *byte 523 _p0, err = BytePtrFromString(path) 524 if err != nil { 525 return 526 } 527 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) 528 if e1 != 0 { 529 err = errnoErr(e1) 530 } 531 return 532 } 533 534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 535 536 func Close(fd int) (err error) { 537 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) 538 if e1 != 0 { 539 err = errnoErr(e1) 540 } 541 return 542 } 543 544 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 545 546 func Dup(fd int) (nfd int, err error) { 547 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) 548 nfd = int(r0) 549 if e1 != 0 { 550 err = errnoErr(e1) 551 } 552 return 553 } 554 555 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 556 557 func Dup2(from int, to int) (err error) { 558 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) 559 if e1 != 0 { 560 err = errnoErr(e1) 561 } 562 return 563 } 564 565 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 566 567 func Exit(code int) { 568 Syscall(SYS_EXIT, uintptr(code), 0, 0) 569 return 570 } 571 572 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 573 574 func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 575 var _p0 *byte 576 _p0, err = BytePtrFromString(attrname) 577 if err != nil { 578 return 579 } 580 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) 581 ret = int(r0) 582 if e1 != 0 { 583 err = errnoErr(e1) 584 } 585 return 586 } 587 588 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 589 590 func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 591 var _p0 *byte 592 _p0, err = BytePtrFromString(attrname) 593 if err != nil { 594 return 595 } 596 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) 597 ret = int(r0) 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 ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { 607 var _p0 *byte 608 _p0, err = BytePtrFromString(attrname) 609 if err != nil { 610 return 611 } 612 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) 613 if e1 != 0 { 614 err = errnoErr(e1) 615 } 616 return 617 } 618 619 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 620 621 func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { 622 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) 623 ret = int(r0) 624 if e1 != 0 { 625 err = errnoErr(e1) 626 } 627 return 628 } 629 630 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 631 632 func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 633 var _p0 *byte 634 _p0, err = BytePtrFromString(file) 635 if err != nil { 636 return 637 } 638 var _p1 *byte 639 _p1, err = BytePtrFromString(attrname) 640 if err != nil { 641 return 642 } 643 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) 644 ret = int(r0) 645 if e1 != 0 { 646 err = errnoErr(e1) 647 } 648 return 649 } 650 651 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 652 653 func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 654 var _p0 *byte 655 _p0, err = BytePtrFromString(file) 656 if err != nil { 657 return 658 } 659 var _p1 *byte 660 _p1, err = BytePtrFromString(attrname) 661 if err != nil { 662 return 663 } 664 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) 665 ret = int(r0) 666 if e1 != 0 { 667 err = errnoErr(e1) 668 } 669 return 670 } 671 672 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 673 674 func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { 675 var _p0 *byte 676 _p0, err = BytePtrFromString(file) 677 if err != nil { 678 return 679 } 680 var _p1 *byte 681 _p1, err = BytePtrFromString(attrname) 682 if err != nil { 683 return 684 } 685 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) 686 if e1 != 0 { 687 err = errnoErr(e1) 688 } 689 return 690 } 691 692 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 693 694 func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { 695 var _p0 *byte 696 _p0, err = BytePtrFromString(file) 697 if err != nil { 698 return 699 } 700 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) 701 ret = int(r0) 702 if e1 != 0 { 703 err = errnoErr(e1) 704 } 705 return 706 } 707 708 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 709 710 func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 711 var _p0 *byte 712 _p0, err = BytePtrFromString(link) 713 if err != nil { 714 return 715 } 716 var _p1 *byte 717 _p1, err = BytePtrFromString(attrname) 718 if err != nil { 719 return 720 } 721 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) 722 ret = int(r0) 723 if e1 != 0 { 724 err = errnoErr(e1) 725 } 726 return 727 } 728 729 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 730 731 func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 732 var _p0 *byte 733 _p0, err = BytePtrFromString(link) 734 if err != nil { 735 return 736 } 737 var _p1 *byte 738 _p1, err = BytePtrFromString(attrname) 739 if err != nil { 740 return 741 } 742 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) 743 ret = int(r0) 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 ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { 753 var _p0 *byte 754 _p0, err = BytePtrFromString(link) 755 if err != nil { 756 return 757 } 758 var _p1 *byte 759 _p1, err = BytePtrFromString(attrname) 760 if err != nil { 761 return 762 } 763 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) 764 if e1 != 0 { 765 err = errnoErr(e1) 766 } 767 return 768 } 769 770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 771 772 func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { 773 var _p0 *byte 774 _p0, err = BytePtrFromString(link) 775 if err != nil { 776 return 777 } 778 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) 779 ret = int(r0) 780 if e1 != 0 { 781 err = errnoErr(e1) 782 } 783 return 784 } 785 786 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 787 788 func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { 789 var _p0 *byte 790 _p0, err = BytePtrFromString(path) 791 if err != nil { 792 return 793 } 794 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 795 if e1 != 0 { 796 err = errnoErr(e1) 797 } 798 return 799 } 800 801 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 802 803 func Fadvise(fd int, offset int64, length int64, advice int) (err error) { 804 _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), 0, uintptr(length), uintptr(advice)) 805 if e1 != 0 { 806 err = errnoErr(e1) 807 } 808 return 809 } 810 811 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 812 813 func Fchdir(fd int) (err error) { 814 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 815 if e1 != 0 { 816 err = errnoErr(e1) 817 } 818 return 819 } 820 821 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 822 823 func Fchflags(fd int, flags int) (err error) { 824 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) 825 if e1 != 0 { 826 err = errnoErr(e1) 827 } 828 return 829 } 830 831 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 832 833 func Fchmod(fd int, mode uint32) (err error) { 834 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 835 if e1 != 0 { 836 err = errnoErr(e1) 837 } 838 return 839 } 840 841 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 842 843 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { 844 var _p0 *byte 845 _p0, err = BytePtrFromString(path) 846 if err != nil { 847 return 848 } 849 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 850 if e1 != 0 { 851 err = errnoErr(e1) 852 } 853 return 854 } 855 856 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 857 858 func Fchown(fd int, uid int, gid int) (err error) { 859 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 860 if e1 != 0 { 861 err = errnoErr(e1) 862 } 863 return 864 } 865 866 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 867 868 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { 869 var _p0 *byte 870 _p0, err = BytePtrFromString(path) 871 if err != nil { 872 return 873 } 874 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 875 if e1 != 0 { 876 err = errnoErr(e1) 877 } 878 return 879 } 880 881 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 882 883 func Flock(fd int, how int) (err error) { 884 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 885 if e1 != 0 { 886 err = errnoErr(e1) 887 } 888 return 889 } 890 891 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 892 893 func Fpathconf(fd int, name int) (val int, err error) { 894 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) 895 val = int(r0) 896 if e1 != 0 { 897 err = errnoErr(e1) 898 } 899 return 900 } 901 902 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 903 904 func Fstat(fd int, stat *Stat_t) (err error) { 905 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 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 Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { 915 var _p0 *byte 916 _p0, err = BytePtrFromString(path) 917 if err != nil { 918 return 919 } 920 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 921 if e1 != 0 { 922 err = errnoErr(e1) 923 } 924 return 925 } 926 927 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 928 929 func Fsync(fd int) (err error) { 930 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 931 if e1 != 0 { 932 err = errnoErr(e1) 933 } 934 return 935 } 936 937 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 938 939 func Ftruncate(fd int, length int64) (err error) { 940 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) 941 if e1 != 0 { 942 err = errnoErr(e1) 943 } 944 return 945 } 946 947 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 948 949 func Getegid() (egid int) { 950 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) 951 egid = int(r0) 952 return 953 } 954 955 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 956 957 func Geteuid() (uid int) { 958 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) 959 uid = int(r0) 960 return 961 } 962 963 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 964 965 func Getgid() (gid int) { 966 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) 967 gid = int(r0) 968 return 969 } 970 971 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 972 973 func Getpgid(pid int) (pgid int, err error) { 974 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) 975 pgid = int(r0) 976 if e1 != 0 { 977 err = errnoErr(e1) 978 } 979 return 980 } 981 982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 983 984 func Getpgrp() (pgrp int) { 985 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) 986 pgrp = int(r0) 987 return 988 } 989 990 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 991 992 func Getpid() (pid int) { 993 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) 994 pid = int(r0) 995 return 996 } 997 998 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 999 1000 func Getppid() (ppid int) { 1001 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) 1002 ppid = int(r0) 1003 return 1004 } 1005 1006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1007 1008 func Getpriority(which int, who int) (prio int, err error) { 1009 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) 1010 prio = int(r0) 1011 if e1 != 0 { 1012 err = errnoErr(e1) 1013 } 1014 return 1015 } 1016 1017 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1018 1019 func Getrlimit(which int, lim *Rlimit) (err error) { 1020 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1021 if e1 != 0 { 1022 err = errnoErr(e1) 1023 } 1024 return 1025 } 1026 1027 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1028 1029 func Getrusage(who int, rusage *Rusage) (err error) { 1030 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 1031 if e1 != 0 { 1032 err = errnoErr(e1) 1033 } 1034 return 1035 } 1036 1037 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1038 1039 func Getsid(pid int) (sid int, err error) { 1040 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) 1041 sid = int(r0) 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 Gettimeofday(tv *Timeval) (err error) { 1051 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 1052 if e1 != 0 { 1053 err = errnoErr(e1) 1054 } 1055 return 1056 } 1057 1058 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1059 1060 func Getuid() (uid int) { 1061 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) 1062 uid = int(r0) 1063 return 1064 } 1065 1066 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1067 1068 func Issetugid() (tainted bool) { 1069 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) 1070 tainted = bool(r0 != 0) 1071 return 1072 } 1073 1074 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1075 1076 func Kill(pid int, signum syscall.Signal) (err error) { 1077 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) 1078 if e1 != 0 { 1079 err = errnoErr(e1) 1080 } 1081 return 1082 } 1083 1084 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1085 1086 func Kqueue() (fd int, err error) { 1087 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) 1088 fd = int(r0) 1089 if e1 != 0 { 1090 err = errnoErr(e1) 1091 } 1092 return 1093 } 1094 1095 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1096 1097 func Lchown(path string, uid int, gid int) (err error) { 1098 var _p0 *byte 1099 _p0, err = BytePtrFromString(path) 1100 if err != nil { 1101 return 1102 } 1103 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 1104 if e1 != 0 { 1105 err = errnoErr(e1) 1106 } 1107 return 1108 } 1109 1110 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1111 1112 func Link(path string, link string) (err error) { 1113 var _p0 *byte 1114 _p0, err = BytePtrFromString(path) 1115 if err != nil { 1116 return 1117 } 1118 var _p1 *byte 1119 _p1, err = BytePtrFromString(link) 1120 if err != nil { 1121 return 1122 } 1123 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1124 if e1 != 0 { 1125 err = errnoErr(e1) 1126 } 1127 return 1128 } 1129 1130 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1131 1132 func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { 1133 var _p0 *byte 1134 _p0, err = BytePtrFromString(path) 1135 if err != nil { 1136 return 1137 } 1138 var _p1 *byte 1139 _p1, err = BytePtrFromString(link) 1140 if err != nil { 1141 return 1142 } 1143 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1144 if e1 != 0 { 1145 err = errnoErr(e1) 1146 } 1147 return 1148 } 1149 1150 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1151 1152 func Listen(s int, backlog int) (err error) { 1153 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) 1154 if e1 != 0 { 1155 err = errnoErr(e1) 1156 } 1157 return 1158 } 1159 1160 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1161 1162 func Lstat(path string, stat *Stat_t) (err error) { 1163 var _p0 *byte 1164 _p0, err = BytePtrFromString(path) 1165 if err != nil { 1166 return 1167 } 1168 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 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 Mkdir(path string, mode uint32) (err error) { 1178 var _p0 *byte 1179 _p0, err = BytePtrFromString(path) 1180 if err != nil { 1181 return 1182 } 1183 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1184 if e1 != 0 { 1185 err = errnoErr(e1) 1186 } 1187 return 1188 } 1189 1190 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1191 1192 func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1193 var _p0 *byte 1194 _p0, err = BytePtrFromString(path) 1195 if err != nil { 1196 return 1197 } 1198 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1199 if e1 != 0 { 1200 err = errnoErr(e1) 1201 } 1202 return 1203 } 1204 1205 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1206 1207 func Mkfifo(path string, mode uint32) (err error) { 1208 var _p0 *byte 1209 _p0, err = BytePtrFromString(path) 1210 if err != nil { 1211 return 1212 } 1213 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1214 if e1 != 0 { 1215 err = errnoErr(e1) 1216 } 1217 return 1218 } 1219 1220 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1221 1222 func Mkfifoat(dirfd int, path string, mode uint32) (err error) { 1223 var _p0 *byte 1224 _p0, err = BytePtrFromString(path) 1225 if err != nil { 1226 return 1227 } 1228 _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1229 if e1 != 0 { 1230 err = errnoErr(e1) 1231 } 1232 return 1233 } 1234 1235 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1236 1237 func Mknod(path string, mode uint32, dev int) (err error) { 1238 var _p0 *byte 1239 _p0, err = BytePtrFromString(path) 1240 if err != nil { 1241 return 1242 } 1243 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1244 if e1 != 0 { 1245 err = errnoErr(e1) 1246 } 1247 return 1248 } 1249 1250 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1251 1252 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { 1253 var _p0 *byte 1254 _p0, err = BytePtrFromString(path) 1255 if err != nil { 1256 return 1257 } 1258 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1259 if e1 != 0 { 1260 err = errnoErr(e1) 1261 } 1262 return 1263 } 1264 1265 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1266 1267 func Nanosleep(time *Timespec, leftover *Timespec) (err error) { 1268 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1269 if e1 != 0 { 1270 err = errnoErr(e1) 1271 } 1272 return 1273 } 1274 1275 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1276 1277 func Open(path string, mode int, perm uint32) (fd int, err error) { 1278 var _p0 *byte 1279 _p0, err = BytePtrFromString(path) 1280 if err != nil { 1281 return 1282 } 1283 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) 1284 fd = int(r0) 1285 if e1 != 0 { 1286 err = errnoErr(e1) 1287 } 1288 return 1289 } 1290 1291 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1292 1293 func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { 1294 var _p0 *byte 1295 _p0, err = BytePtrFromString(path) 1296 if err != nil { 1297 return 1298 } 1299 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) 1300 fd = int(r0) 1301 if e1 != 0 { 1302 err = errnoErr(e1) 1303 } 1304 return 1305 } 1306 1307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1308 1309 func Pathconf(path string, name int) (val int, err error) { 1310 var _p0 *byte 1311 _p0, err = BytePtrFromString(path) 1312 if err != nil { 1313 return 1314 } 1315 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) 1316 val = 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 Pread(fd int, p []byte, offset int64) (n int, 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 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) 1333 n = int(r0) 1334 if e1 != 0 { 1335 err = errnoErr(e1) 1336 } 1337 return 1338 } 1339 1340 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1341 1342 func Pwrite(fd int, p []byte, offset int64) (n int, err error) { 1343 var _p0 unsafe.Pointer 1344 if len(p) > 0 { 1345 _p0 = unsafe.Pointer(&p[0]) 1346 } else { 1347 _p0 = unsafe.Pointer(&_zero) 1348 } 1349 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) 1350 n = int(r0) 1351 if e1 != 0 { 1352 err = errnoErr(e1) 1353 } 1354 return 1355 } 1356 1357 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1358 1359 func read(fd int, p []byte) (n int, err error) { 1360 var _p0 unsafe.Pointer 1361 if len(p) > 0 { 1362 _p0 = unsafe.Pointer(&p[0]) 1363 } else { 1364 _p0 = unsafe.Pointer(&_zero) 1365 } 1366 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1367 n = int(r0) 1368 if e1 != 0 { 1369 err = errnoErr(e1) 1370 } 1371 return 1372 } 1373 1374 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1375 1376 func Readlink(path string, buf []byte) (n int, err error) { 1377 var _p0 *byte 1378 _p0, err = BytePtrFromString(path) 1379 if err != nil { 1380 return 1381 } 1382 var _p1 unsafe.Pointer 1383 if len(buf) > 0 { 1384 _p1 = unsafe.Pointer(&buf[0]) 1385 } else { 1386 _p1 = unsafe.Pointer(&_zero) 1387 } 1388 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) 1389 n = int(r0) 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 Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { 1399 var _p0 *byte 1400 _p0, err = BytePtrFromString(path) 1401 if err != nil { 1402 return 1403 } 1404 var _p1 unsafe.Pointer 1405 if len(buf) > 0 { 1406 _p1 = unsafe.Pointer(&buf[0]) 1407 } else { 1408 _p1 = unsafe.Pointer(&_zero) 1409 } 1410 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) 1411 n = int(r0) 1412 if e1 != 0 { 1413 err = errnoErr(e1) 1414 } 1415 return 1416 } 1417 1418 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1419 1420 func Rename(from string, to string) (err error) { 1421 var _p0 *byte 1422 _p0, err = BytePtrFromString(from) 1423 if err != nil { 1424 return 1425 } 1426 var _p1 *byte 1427 _p1, err = BytePtrFromString(to) 1428 if err != nil { 1429 return 1430 } 1431 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1432 if e1 != 0 { 1433 err = errnoErr(e1) 1434 } 1435 return 1436 } 1437 1438 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1439 1440 func Renameat(fromfd int, from string, tofd int, to string) (err error) { 1441 var _p0 *byte 1442 _p0, err = BytePtrFromString(from) 1443 if err != nil { 1444 return 1445 } 1446 var _p1 *byte 1447 _p1, err = BytePtrFromString(to) 1448 if err != nil { 1449 return 1450 } 1451 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 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 Revoke(path string) (err error) { 1461 var _p0 *byte 1462 _p0, err = BytePtrFromString(path) 1463 if err != nil { 1464 return 1465 } 1466 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1467 if e1 != 0 { 1468 err = errnoErr(e1) 1469 } 1470 return 1471 } 1472 1473 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1474 1475 func Rmdir(path string) (err error) { 1476 var _p0 *byte 1477 _p0, err = BytePtrFromString(path) 1478 if err != nil { 1479 return 1480 } 1481 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 1482 if e1 != 0 { 1483 err = errnoErr(e1) 1484 } 1485 return 1486 } 1487 1488 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1489 1490 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { 1491 r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) 1492 newoffset = int64(r0) 1493 if e1 != 0 { 1494 err = errnoErr(e1) 1495 } 1496 return 1497 } 1498 1499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1500 1501 func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { 1502 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1503 if e1 != 0 { 1504 err = errnoErr(e1) 1505 } 1506 return 1507 } 1508 1509 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1510 1511 func Setegid(egid int) (err error) { 1512 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) 1513 if e1 != 0 { 1514 err = errnoErr(e1) 1515 } 1516 return 1517 } 1518 1519 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1520 1521 func Seteuid(euid int) (err error) { 1522 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) 1523 if e1 != 0 { 1524 err = errnoErr(e1) 1525 } 1526 return 1527 } 1528 1529 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1530 1531 func Setgid(gid int) (err error) { 1532 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) 1533 if e1 != 0 { 1534 err = errnoErr(e1) 1535 } 1536 return 1537 } 1538 1539 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1540 1541 func Setpgid(pid int, pgid int) (err error) { 1542 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) 1543 if e1 != 0 { 1544 err = errnoErr(e1) 1545 } 1546 return 1547 } 1548 1549 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1550 1551 func Setpriority(which int, who int, prio int) (err error) { 1552 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) 1553 if e1 != 0 { 1554 err = errnoErr(e1) 1555 } 1556 return 1557 } 1558 1559 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1560 1561 func Setregid(rgid int, egid int) (err error) { 1562 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1563 if e1 != 0 { 1564 err = errnoErr(e1) 1565 } 1566 return 1567 } 1568 1569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1570 1571 func Setreuid(ruid int, euid int) (err error) { 1572 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1573 if e1 != 0 { 1574 err = errnoErr(e1) 1575 } 1576 return 1577 } 1578 1579 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1580 1581 func Setrlimit(which int, lim *Rlimit) (err error) { 1582 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1583 if e1 != 0 { 1584 err = errnoErr(e1) 1585 } 1586 return 1587 } 1588 1589 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1590 1591 func Setsid() (pid int, err error) { 1592 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) 1593 pid = int(r0) 1594 if e1 != 0 { 1595 err = errnoErr(e1) 1596 } 1597 return 1598 } 1599 1600 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1601 1602 func Settimeofday(tp *Timeval) (err error) { 1603 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1604 if e1 != 0 { 1605 err = errnoErr(e1) 1606 } 1607 return 1608 } 1609 1610 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1611 1612 func Setuid(uid int) (err error) { 1613 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) 1614 if e1 != 0 { 1615 err = errnoErr(e1) 1616 } 1617 return 1618 } 1619 1620 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1621 1622 func Stat(path string, stat *Stat_t) (err error) { 1623 var _p0 *byte 1624 _p0, err = BytePtrFromString(path) 1625 if err != nil { 1626 return 1627 } 1628 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 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 Symlink(path string, link string) (err error) { 1638 var _p0 *byte 1639 _p0, err = BytePtrFromString(path) 1640 if err != nil { 1641 return 1642 } 1643 var _p1 *byte 1644 _p1, err = BytePtrFromString(link) 1645 if err != nil { 1646 return 1647 } 1648 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1649 if e1 != 0 { 1650 err = errnoErr(e1) 1651 } 1652 return 1653 } 1654 1655 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1656 1657 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { 1658 var _p0 *byte 1659 _p0, err = BytePtrFromString(oldpath) 1660 if err != nil { 1661 return 1662 } 1663 var _p1 *byte 1664 _p1, err = BytePtrFromString(newpath) 1665 if err != nil { 1666 return 1667 } 1668 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 1669 if e1 != 0 { 1670 err = errnoErr(e1) 1671 } 1672 return 1673 } 1674 1675 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1676 1677 func Sync() (err error) { 1678 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) 1679 if e1 != 0 { 1680 err = errnoErr(e1) 1681 } 1682 return 1683 } 1684 1685 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1686 1687 func Truncate(path string, length int64) (err error) { 1688 var _p0 *byte 1689 _p0, err = BytePtrFromString(path) 1690 if err != nil { 1691 return 1692 } 1693 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) 1694 if e1 != 0 { 1695 err = errnoErr(e1) 1696 } 1697 return 1698 } 1699 1700 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1701 1702 func Umask(newmask int) (oldmask int) { 1703 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) 1704 oldmask = int(r0) 1705 return 1706 } 1707 1708 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1709 1710 func Unlink(path string) (err error) { 1711 var _p0 *byte 1712 _p0, err = BytePtrFromString(path) 1713 if err != nil { 1714 return 1715 } 1716 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) 1717 if e1 != 0 { 1718 err = errnoErr(e1) 1719 } 1720 return 1721 } 1722 1723 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1724 1725 func Unlinkat(dirfd int, path string, flags int) (err error) { 1726 var _p0 *byte 1727 _p0, err = BytePtrFromString(path) 1728 if err != nil { 1729 return 1730 } 1731 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 1732 if e1 != 0 { 1733 err = errnoErr(e1) 1734 } 1735 return 1736 } 1737 1738 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1739 1740 func Unmount(path string, flags int) (err error) { 1741 var _p0 *byte 1742 _p0, err = BytePtrFromString(path) 1743 if err != nil { 1744 return 1745 } 1746 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1747 if e1 != 0 { 1748 err = errnoErr(e1) 1749 } 1750 return 1751 } 1752 1753 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1754 1755 func write(fd int, p []byte) (n int, err error) { 1756 var _p0 unsafe.Pointer 1757 if len(p) > 0 { 1758 _p0 = unsafe.Pointer(&p[0]) 1759 } else { 1760 _p0 = unsafe.Pointer(&_zero) 1761 } 1762 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1763 n = int(r0) 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 mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { 1773 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) 1774 ret = uintptr(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 munmap(addr uintptr, length uintptr) (err error) { 1784 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1785 if e1 != 0 { 1786 err = errnoErr(e1) 1787 } 1788 return 1789 } 1790 1791 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1792 1793 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { 1794 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1795 n = int(r0) 1796 if e1 != 0 { 1797 err = errnoErr(e1) 1798 } 1799 return 1800 } 1801 1802 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1803 1804 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1805 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1806 n = int(r0) 1807 if e1 != 0 { 1808 err = errnoErr(e1) 1809 } 1810 return 1811 } 1812 1813 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1814 1815 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 1816 var _p0 *byte 1817 _p0, err = BytePtrFromString(path) 1818 if err != nil { 1819 return 1820 } 1821 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 1822 if e1 != 0 { 1823 err = errnoErr(e1) 1824 } 1825 return 1826 }