github.com/Kalvelign/golang-windows-sys-lib@v0.0.0-20221121121202-63da651435e1/unix/zsyscall_freebsd_arm64.go (about) 1 // go run mksyscall.go -tags freebsd,arm64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 //go:build freebsd && arm64 5 // +build freebsd,arm64 6 7 package unix 8 9 import ( 10 "syscall" 11 "unsafe" 12 ) 13 14 var _ syscall.Errno 15 16 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 17 18 func getgroups(ngid int, gid *_Gid_t) (n int, err error) { 19 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 20 n = int(r0) 21 if e1 != 0 { 22 err = errnoErr(e1) 23 } 24 return 25 } 26 27 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 28 29 func setgroups(ngid int, gid *_Gid_t) (err error) { 30 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 31 if e1 != 0 { 32 err = errnoErr(e1) 33 } 34 return 35 } 36 37 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 38 39 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { 40 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) 41 wpid = int(r0) 42 if e1 != 0 { 43 err = errnoErr(e1) 44 } 45 return 46 } 47 48 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 49 50 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 51 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 52 fd = int(r0) 53 if e1 != 0 { 54 err = errnoErr(e1) 55 } 56 return 57 } 58 59 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 60 61 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 62 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) 63 if e1 != 0 { 64 err = errnoErr(e1) 65 } 66 return 67 } 68 69 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 70 71 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 72 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) 73 if e1 != 0 { 74 err = errnoErr(e1) 75 } 76 return 77 } 78 79 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 80 81 func socket(domain int, typ int, proto int) (fd int, err error) { 82 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) 83 fd = int(r0) 84 if e1 != 0 { 85 err = errnoErr(e1) 86 } 87 return 88 } 89 90 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 91 92 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { 93 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 94 if e1 != 0 { 95 err = errnoErr(e1) 96 } 97 return 98 } 99 100 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 101 102 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { 103 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 104 if e1 != 0 { 105 err = errnoErr(e1) 106 } 107 return 108 } 109 110 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 111 112 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 113 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 114 if e1 != 0 { 115 err = errnoErr(e1) 116 } 117 return 118 } 119 120 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 121 122 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 123 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 124 if e1 != 0 { 125 err = errnoErr(e1) 126 } 127 return 128 } 129 130 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 131 132 func Shutdown(s int, how int) (err error) { 133 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) 134 if e1 != 0 { 135 err = errnoErr(e1) 136 } 137 return 138 } 139 140 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 141 142 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { 143 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 144 if e1 != 0 { 145 err = errnoErr(e1) 146 } 147 return 148 } 149 150 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 151 152 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { 153 var _p0 unsafe.Pointer 154 if len(p) > 0 { 155 _p0 = unsafe.Pointer(&p[0]) 156 } else { 157 _p0 = unsafe.Pointer(&_zero) 158 } 159 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) 160 n = int(r0) 161 if e1 != 0 { 162 err = errnoErr(e1) 163 } 164 return 165 } 166 167 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 168 169 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { 170 var _p0 unsafe.Pointer 171 if len(buf) > 0 { 172 _p0 = unsafe.Pointer(&buf[0]) 173 } else { 174 _p0 = unsafe.Pointer(&_zero) 175 } 176 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 177 if e1 != 0 { 178 err = errnoErr(e1) 179 } 180 return 181 } 182 183 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 184 185 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { 186 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 187 n = int(r0) 188 if e1 != 0 { 189 err = errnoErr(e1) 190 } 191 return 192 } 193 194 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 195 196 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { 197 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 198 n = int(r0) 199 if e1 != 0 { 200 err = errnoErr(e1) 201 } 202 return 203 } 204 205 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 206 207 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { 208 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) 209 n = int(r0) 210 if e1 != 0 { 211 err = errnoErr(e1) 212 } 213 return 214 } 215 216 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 217 218 func utimes(path string, timeval *[2]Timeval) (err error) { 219 var _p0 *byte 220 _p0, err = BytePtrFromString(path) 221 if err != nil { 222 return 223 } 224 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 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 futimes(fd int, timeval *[2]Timeval) (err error) { 234 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 235 if e1 != 0 { 236 err = errnoErr(e1) 237 } 238 return 239 } 240 241 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 242 243 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { 244 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) 245 n = int(r0) 246 if e1 != 0 { 247 err = errnoErr(e1) 248 } 249 return 250 } 251 252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 253 254 func Madvise(b []byte, behav int) (err error) { 255 var _p0 unsafe.Pointer 256 if len(b) > 0 { 257 _p0 = unsafe.Pointer(&b[0]) 258 } else { 259 _p0 = unsafe.Pointer(&_zero) 260 } 261 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 262 if e1 != 0 { 263 err = errnoErr(e1) 264 } 265 return 266 } 267 268 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 269 270 func Mlock(b []byte) (err error) { 271 var _p0 unsafe.Pointer 272 if len(b) > 0 { 273 _p0 = unsafe.Pointer(&b[0]) 274 } else { 275 _p0 = unsafe.Pointer(&_zero) 276 } 277 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) 278 if e1 != 0 { 279 err = errnoErr(e1) 280 } 281 return 282 } 283 284 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 285 286 func Mlockall(flags int) (err error) { 287 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) 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 Mprotect(b []byte, prot int) (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_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 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 Msync(b []byte, flags int) (err error) { 313 var _p0 unsafe.Pointer 314 if len(b) > 0 { 315 _p0 = unsafe.Pointer(&b[0]) 316 } else { 317 _p0 = unsafe.Pointer(&_zero) 318 } 319 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 320 if e1 != 0 { 321 err = errnoErr(e1) 322 } 323 return 324 } 325 326 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 327 328 func Munlock(b []byte) (err error) { 329 var _p0 unsafe.Pointer 330 if len(b) > 0 { 331 _p0 = unsafe.Pointer(&b[0]) 332 } else { 333 _p0 = unsafe.Pointer(&_zero) 334 } 335 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) 336 if e1 != 0 { 337 err = errnoErr(e1) 338 } 339 return 340 } 341 342 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 343 344 func Munlockall() (err error) { 345 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) 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 pipe2(p *[2]_C_int, flags int) (err error) { 355 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 356 if e1 != 0 { 357 err = errnoErr(e1) 358 } 359 return 360 } 361 362 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 363 364 func Getcwd(buf []byte) (n int, err error) { 365 var _p0 unsafe.Pointer 366 if len(buf) > 0 { 367 _p0 = unsafe.Pointer(&buf[0]) 368 } else { 369 _p0 = unsafe.Pointer(&_zero) 370 } 371 r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) 372 n = int(r0) 373 if e1 != 0 { 374 err = errnoErr(e1) 375 } 376 return 377 } 378 379 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 380 381 func ioctl(fd int, req uint, arg uintptr) (err error) { 382 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 383 if e1 != 0 { 384 err = errnoErr(e1) 385 } 386 return 387 } 388 389 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 390 391 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { 392 var _p0 unsafe.Pointer 393 if len(mib) > 0 { 394 _p0 = unsafe.Pointer(&mib[0]) 395 } else { 396 _p0 = unsafe.Pointer(&_zero) 397 } 398 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 399 if e1 != 0 { 400 err = errnoErr(e1) 401 } 402 return 403 } 404 405 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 406 407 func ptrace(request int, pid int, addr uintptr, data int) (err error) { 408 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) 409 if e1 != 0 { 410 err = errnoErr(e1) 411 } 412 return 413 } 414 415 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 416 417 func Access(path string, mode uint32) (err error) { 418 var _p0 *byte 419 _p0, err = BytePtrFromString(path) 420 if err != nil { 421 return 422 } 423 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 424 if e1 != 0 { 425 err = errnoErr(e1) 426 } 427 return 428 } 429 430 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 431 432 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { 433 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 434 if e1 != 0 { 435 err = errnoErr(e1) 436 } 437 return 438 } 439 440 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 441 442 func CapEnter() (err error) { 443 _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) 444 if e1 != 0 { 445 err = errnoErr(e1) 446 } 447 return 448 } 449 450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 451 452 func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { 453 _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) 454 if e1 != 0 { 455 err = errnoErr(e1) 456 } 457 return 458 } 459 460 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 461 462 func capRightsLimit(fd int, rightsp *CapRights) (err error) { 463 _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) 464 if e1 != 0 { 465 err = errnoErr(e1) 466 } 467 return 468 } 469 470 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 471 472 func Chdir(path string) (err error) { 473 var _p0 *byte 474 _p0, err = BytePtrFromString(path) 475 if err != nil { 476 return 477 } 478 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 479 if e1 != 0 { 480 err = errnoErr(e1) 481 } 482 return 483 } 484 485 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 486 487 func Chflags(path string, flags int) (err error) { 488 var _p0 *byte 489 _p0, err = BytePtrFromString(path) 490 if err != nil { 491 return 492 } 493 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 494 if e1 != 0 { 495 err = errnoErr(e1) 496 } 497 return 498 } 499 500 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 501 502 func Chmod(path string, mode uint32) (err error) { 503 var _p0 *byte 504 _p0, err = BytePtrFromString(path) 505 if err != nil { 506 return 507 } 508 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 509 if e1 != 0 { 510 err = errnoErr(e1) 511 } 512 return 513 } 514 515 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 516 517 func Chown(path string, uid int, gid int) (err error) { 518 var _p0 *byte 519 _p0, err = BytePtrFromString(path) 520 if err != nil { 521 return 522 } 523 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 524 if e1 != 0 { 525 err = errnoErr(e1) 526 } 527 return 528 } 529 530 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 531 532 func Chroot(path string) (err error) { 533 var _p0 *byte 534 _p0, err = BytePtrFromString(path) 535 if err != nil { 536 return 537 } 538 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) 539 if e1 != 0 { 540 err = errnoErr(e1) 541 } 542 return 543 } 544 545 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 546 547 func Close(fd int) (err error) { 548 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) 549 if e1 != 0 { 550 err = errnoErr(e1) 551 } 552 return 553 } 554 555 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 556 557 func Dup(fd int) (nfd int, err error) { 558 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) 559 nfd = int(r0) 560 if e1 != 0 { 561 err = errnoErr(e1) 562 } 563 return 564 } 565 566 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 567 568 func Dup2(from int, to int) (err error) { 569 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) 570 if e1 != 0 { 571 err = errnoErr(e1) 572 } 573 return 574 } 575 576 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 577 578 func Exit(code int) { 579 Syscall(SYS_EXIT, uintptr(code), 0, 0) 580 return 581 } 582 583 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 584 585 func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 586 var _p0 *byte 587 _p0, err = BytePtrFromString(attrname) 588 if err != nil { 589 return 590 } 591 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) 592 ret = int(r0) 593 if e1 != 0 { 594 err = errnoErr(e1) 595 } 596 return 597 } 598 599 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 600 601 func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 602 var _p0 *byte 603 _p0, err = BytePtrFromString(attrname) 604 if err != nil { 605 return 606 } 607 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) 608 ret = int(r0) 609 if e1 != 0 { 610 err = errnoErr(e1) 611 } 612 return 613 } 614 615 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 616 617 func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { 618 var _p0 *byte 619 _p0, err = BytePtrFromString(attrname) 620 if err != nil { 621 return 622 } 623 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) 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 ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { 633 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) 634 ret = int(r0) 635 if e1 != 0 { 636 err = errnoErr(e1) 637 } 638 return 639 } 640 641 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 642 643 func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 644 var _p0 *byte 645 _p0, err = BytePtrFromString(file) 646 if err != nil { 647 return 648 } 649 var _p1 *byte 650 _p1, err = BytePtrFromString(attrname) 651 if err != nil { 652 return 653 } 654 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) 655 ret = int(r0) 656 if e1 != 0 { 657 err = errnoErr(e1) 658 } 659 return 660 } 661 662 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 663 664 func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 665 var _p0 *byte 666 _p0, err = BytePtrFromString(file) 667 if err != nil { 668 return 669 } 670 var _p1 *byte 671 _p1, err = BytePtrFromString(attrname) 672 if err != nil { 673 return 674 } 675 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) 676 ret = int(r0) 677 if e1 != 0 { 678 err = errnoErr(e1) 679 } 680 return 681 } 682 683 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 684 685 func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { 686 var _p0 *byte 687 _p0, err = BytePtrFromString(file) 688 if err != nil { 689 return 690 } 691 var _p1 *byte 692 _p1, err = BytePtrFromString(attrname) 693 if err != nil { 694 return 695 } 696 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) 697 if e1 != 0 { 698 err = errnoErr(e1) 699 } 700 return 701 } 702 703 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 704 705 func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { 706 var _p0 *byte 707 _p0, err = BytePtrFromString(file) 708 if err != nil { 709 return 710 } 711 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) 712 ret = int(r0) 713 if e1 != 0 { 714 err = errnoErr(e1) 715 } 716 return 717 } 718 719 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 720 721 func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 722 var _p0 *byte 723 _p0, err = BytePtrFromString(link) 724 if err != nil { 725 return 726 } 727 var _p1 *byte 728 _p1, err = BytePtrFromString(attrname) 729 if err != nil { 730 return 731 } 732 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) 733 ret = int(r0) 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 ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { 743 var _p0 *byte 744 _p0, err = BytePtrFromString(link) 745 if err != nil { 746 return 747 } 748 var _p1 *byte 749 _p1, err = BytePtrFromString(attrname) 750 if err != nil { 751 return 752 } 753 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) 754 ret = int(r0) 755 if e1 != 0 { 756 err = errnoErr(e1) 757 } 758 return 759 } 760 761 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 762 763 func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { 764 var _p0 *byte 765 _p0, err = BytePtrFromString(link) 766 if err != nil { 767 return 768 } 769 var _p1 *byte 770 _p1, err = BytePtrFromString(attrname) 771 if err != nil { 772 return 773 } 774 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) 775 if e1 != 0 { 776 err = errnoErr(e1) 777 } 778 return 779 } 780 781 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 782 783 func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { 784 var _p0 *byte 785 _p0, err = BytePtrFromString(link) 786 if err != nil { 787 return 788 } 789 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) 790 ret = int(r0) 791 if e1 != 0 { 792 err = errnoErr(e1) 793 } 794 return 795 } 796 797 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 798 799 func Fadvise(fd int, offset int64, length int64, advice int) (err error) { 800 _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) 801 if e1 != 0 { 802 err = errnoErr(e1) 803 } 804 return 805 } 806 807 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 808 809 func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { 810 var _p0 *byte 811 _p0, err = BytePtrFromString(path) 812 if err != nil { 813 return 814 } 815 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 821 822 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 823 824 func Fchdir(fd int) (err error) { 825 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 826 if e1 != 0 { 827 err = errnoErr(e1) 828 } 829 return 830 } 831 832 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 833 834 func Fchflags(fd int, flags int) (err error) { 835 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) 836 if e1 != 0 { 837 err = errnoErr(e1) 838 } 839 return 840 } 841 842 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 843 844 func Fchmod(fd int, mode uint32) (err error) { 845 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 846 if e1 != 0 { 847 err = errnoErr(e1) 848 } 849 return 850 } 851 852 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 853 854 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { 855 var _p0 *byte 856 _p0, err = BytePtrFromString(path) 857 if err != nil { 858 return 859 } 860 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 861 if e1 != 0 { 862 err = errnoErr(e1) 863 } 864 return 865 } 866 867 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 868 869 func Fchown(fd int, uid int, gid int) (err error) { 870 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 871 if e1 != 0 { 872 err = errnoErr(e1) 873 } 874 return 875 } 876 877 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 878 879 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { 880 var _p0 *byte 881 _p0, err = BytePtrFromString(path) 882 if err != nil { 883 return 884 } 885 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 886 if e1 != 0 { 887 err = errnoErr(e1) 888 } 889 return 890 } 891 892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 893 894 func Flock(fd int, how int) (err error) { 895 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 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 Fpathconf(fd int, name int) (val int, err error) { 905 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) 906 val = int(r0) 907 if e1 != 0 { 908 err = errnoErr(e1) 909 } 910 return 911 } 912 913 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 914 915 func Fstat(fd int, stat *Stat_t) (err error) { 916 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 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 Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { 926 var _p0 *byte 927 _p0, err = BytePtrFromString(path) 928 if err != nil { 929 return 930 } 931 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 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 Fstatfs(fd int, stat *Statfs_t) (err error) { 941 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 942 if e1 != 0 { 943 err = errnoErr(e1) 944 } 945 return 946 } 947 948 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 949 950 func Fsync(fd int) (err error) { 951 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 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 Ftruncate(fd int, length int64) (err error) { 961 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) 962 if e1 != 0 { 963 err = errnoErr(e1) 964 } 965 return 966 } 967 968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 969 970 func getdirentries(fd int, buf []byte, basep *uint64) (n int, err error) { 971 var _p0 unsafe.Pointer 972 if len(buf) > 0 { 973 _p0 = unsafe.Pointer(&buf[0]) 974 } else { 975 _p0 = unsafe.Pointer(&_zero) 976 } 977 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) 978 n = int(r0) 979 if e1 != 0 { 980 err = errnoErr(e1) 981 } 982 return 983 } 984 985 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 986 987 func Getdtablesize() (size int) { 988 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) 989 size = int(r0) 990 return 991 } 992 993 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 994 995 func Getegid() (egid int) { 996 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) 997 egid = int(r0) 998 return 999 } 1000 1001 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1002 1003 func Geteuid() (uid int) { 1004 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) 1005 uid = int(r0) 1006 return 1007 } 1008 1009 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1010 1011 func Getgid() (gid int) { 1012 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) 1013 gid = int(r0) 1014 return 1015 } 1016 1017 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1018 1019 func Getpgid(pid int) (pgid int, err error) { 1020 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) 1021 pgid = int(r0) 1022 if e1 != 0 { 1023 err = errnoErr(e1) 1024 } 1025 return 1026 } 1027 1028 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1029 1030 func Getpgrp() (pgrp int) { 1031 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) 1032 pgrp = int(r0) 1033 return 1034 } 1035 1036 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1037 1038 func Getpid() (pid int) { 1039 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) 1040 pid = int(r0) 1041 return 1042 } 1043 1044 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1045 1046 func Getppid() (ppid int) { 1047 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) 1048 ppid = int(r0) 1049 return 1050 } 1051 1052 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1053 1054 func Getpriority(which int, who int) (prio int, err error) { 1055 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) 1056 prio = int(r0) 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 Getrlimit(which int, lim *Rlimit) (err error) { 1066 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1067 if e1 != 0 { 1068 err = errnoErr(e1) 1069 } 1070 return 1071 } 1072 1073 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1074 1075 func Getrusage(who int, rusage *Rusage) (err error) { 1076 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 1077 if e1 != 0 { 1078 err = errnoErr(e1) 1079 } 1080 return 1081 } 1082 1083 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1084 1085 func Getsid(pid int) (sid int, err error) { 1086 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) 1087 sid = int(r0) 1088 if e1 != 0 { 1089 err = errnoErr(e1) 1090 } 1091 return 1092 } 1093 1094 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1095 1096 func Gettimeofday(tv *Timeval) (err error) { 1097 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 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 Getuid() (uid int) { 1107 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) 1108 uid = int(r0) 1109 return 1110 } 1111 1112 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1113 1114 func Issetugid() (tainted bool) { 1115 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) 1116 tainted = bool(r0 != 0) 1117 return 1118 } 1119 1120 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1121 1122 func Kill(pid int, signum syscall.Signal) (err error) { 1123 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 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 Kqueue() (fd int, err error) { 1133 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) 1134 fd = int(r0) 1135 if e1 != 0 { 1136 err = errnoErr(e1) 1137 } 1138 return 1139 } 1140 1141 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1142 1143 func Lchown(path string, uid int, gid int) (err error) { 1144 var _p0 *byte 1145 _p0, err = BytePtrFromString(path) 1146 if err != nil { 1147 return 1148 } 1149 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 1150 if e1 != 0 { 1151 err = errnoErr(e1) 1152 } 1153 return 1154 } 1155 1156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1157 1158 func Link(path string, link string) (err error) { 1159 var _p0 *byte 1160 _p0, err = BytePtrFromString(path) 1161 if err != nil { 1162 return 1163 } 1164 var _p1 *byte 1165 _p1, err = BytePtrFromString(link) 1166 if err != nil { 1167 return 1168 } 1169 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1170 if e1 != 0 { 1171 err = errnoErr(e1) 1172 } 1173 return 1174 } 1175 1176 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1177 1178 func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { 1179 var _p0 *byte 1180 _p0, err = BytePtrFromString(path) 1181 if err != nil { 1182 return 1183 } 1184 var _p1 *byte 1185 _p1, err = BytePtrFromString(link) 1186 if err != nil { 1187 return 1188 } 1189 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1190 if e1 != 0 { 1191 err = errnoErr(e1) 1192 } 1193 return 1194 } 1195 1196 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1197 1198 func Listen(s int, backlog int) (err error) { 1199 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) 1200 if e1 != 0 { 1201 err = errnoErr(e1) 1202 } 1203 return 1204 } 1205 1206 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1207 1208 func Mkdir(path string, mode uint32) (err error) { 1209 var _p0 *byte 1210 _p0, err = BytePtrFromString(path) 1211 if err != nil { 1212 return 1213 } 1214 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1215 if e1 != 0 { 1216 err = errnoErr(e1) 1217 } 1218 return 1219 } 1220 1221 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1222 1223 func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1224 var _p0 *byte 1225 _p0, err = BytePtrFromString(path) 1226 if err != nil { 1227 return 1228 } 1229 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1230 if e1 != 0 { 1231 err = errnoErr(e1) 1232 } 1233 return 1234 } 1235 1236 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1237 1238 func Mkfifo(path string, mode uint32) (err error) { 1239 var _p0 *byte 1240 _p0, err = BytePtrFromString(path) 1241 if err != nil { 1242 return 1243 } 1244 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1245 if e1 != 0 { 1246 err = errnoErr(e1) 1247 } 1248 return 1249 } 1250 1251 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1252 1253 func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) { 1254 var _p0 *byte 1255 _p0, err = BytePtrFromString(path) 1256 if err != nil { 1257 return 1258 } 1259 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 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 Nanosleep(time *Timespec, leftover *Timespec) (err error) { 1269 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 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 Open(path string, mode int, perm uint32) (fd int, err error) { 1279 var _p0 *byte 1280 _p0, err = BytePtrFromString(path) 1281 if err != nil { 1282 return 1283 } 1284 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) 1285 fd = int(r0) 1286 if e1 != 0 { 1287 err = errnoErr(e1) 1288 } 1289 return 1290 } 1291 1292 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1293 1294 func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { 1295 var _p0 *byte 1296 _p0, err = BytePtrFromString(path) 1297 if err != nil { 1298 return 1299 } 1300 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) 1301 fd = int(r0) 1302 if e1 != 0 { 1303 err = errnoErr(e1) 1304 } 1305 return 1306 } 1307 1308 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1309 1310 func Pathconf(path string, name int) (val int, err error) { 1311 var _p0 *byte 1312 _p0, err = BytePtrFromString(path) 1313 if err != nil { 1314 return 1315 } 1316 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) 1317 val = int(r0) 1318 if e1 != 0 { 1319 err = errnoErr(e1) 1320 } 1321 return 1322 } 1323 1324 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1325 1326 func pread(fd int, p []byte, offset int64) (n int, err error) { 1327 var _p0 unsafe.Pointer 1328 if len(p) > 0 { 1329 _p0 = unsafe.Pointer(&p[0]) 1330 } else { 1331 _p0 = unsafe.Pointer(&_zero) 1332 } 1333 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) 1334 n = int(r0) 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 pwrite(fd int, p []byte, offset int64) (n int, err error) { 1344 var _p0 unsafe.Pointer 1345 if len(p) > 0 { 1346 _p0 = unsafe.Pointer(&p[0]) 1347 } else { 1348 _p0 = unsafe.Pointer(&_zero) 1349 } 1350 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) 1351 n = int(r0) 1352 if e1 != 0 { 1353 err = errnoErr(e1) 1354 } 1355 return 1356 } 1357 1358 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1359 1360 func read(fd int, p []byte) (n int, err error) { 1361 var _p0 unsafe.Pointer 1362 if len(p) > 0 { 1363 _p0 = unsafe.Pointer(&p[0]) 1364 } else { 1365 _p0 = unsafe.Pointer(&_zero) 1366 } 1367 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1368 n = int(r0) 1369 if e1 != 0 { 1370 err = errnoErr(e1) 1371 } 1372 return 1373 } 1374 1375 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1376 1377 func Readlink(path string, buf []byte) (n int, err error) { 1378 var _p0 *byte 1379 _p0, err = BytePtrFromString(path) 1380 if err != nil { 1381 return 1382 } 1383 var _p1 unsafe.Pointer 1384 if len(buf) > 0 { 1385 _p1 = unsafe.Pointer(&buf[0]) 1386 } else { 1387 _p1 = unsafe.Pointer(&_zero) 1388 } 1389 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) 1390 n = int(r0) 1391 if e1 != 0 { 1392 err = errnoErr(e1) 1393 } 1394 return 1395 } 1396 1397 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1398 1399 func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { 1400 var _p0 *byte 1401 _p0, err = BytePtrFromString(path) 1402 if err != nil { 1403 return 1404 } 1405 var _p1 unsafe.Pointer 1406 if len(buf) > 0 { 1407 _p1 = unsafe.Pointer(&buf[0]) 1408 } else { 1409 _p1 = unsafe.Pointer(&_zero) 1410 } 1411 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) 1412 n = int(r0) 1413 if e1 != 0 { 1414 err = errnoErr(e1) 1415 } 1416 return 1417 } 1418 1419 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1420 1421 func Rename(from string, to string) (err error) { 1422 var _p0 *byte 1423 _p0, err = BytePtrFromString(from) 1424 if err != nil { 1425 return 1426 } 1427 var _p1 *byte 1428 _p1, err = BytePtrFromString(to) 1429 if err != nil { 1430 return 1431 } 1432 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1433 if e1 != 0 { 1434 err = errnoErr(e1) 1435 } 1436 return 1437 } 1438 1439 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1440 1441 func Renameat(fromfd int, from string, tofd int, to string) (err error) { 1442 var _p0 *byte 1443 _p0, err = BytePtrFromString(from) 1444 if err != nil { 1445 return 1446 } 1447 var _p1 *byte 1448 _p1, err = BytePtrFromString(to) 1449 if err != nil { 1450 return 1451 } 1452 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1453 if e1 != 0 { 1454 err = errnoErr(e1) 1455 } 1456 return 1457 } 1458 1459 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1460 1461 func Revoke(path string) (err error) { 1462 var _p0 *byte 1463 _p0, err = BytePtrFromString(path) 1464 if err != nil { 1465 return 1466 } 1467 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1468 if e1 != 0 { 1469 err = errnoErr(e1) 1470 } 1471 return 1472 } 1473 1474 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1475 1476 func Rmdir(path string) (err error) { 1477 var _p0 *byte 1478 _p0, err = BytePtrFromString(path) 1479 if err != nil { 1480 return 1481 } 1482 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 1483 if e1 != 0 { 1484 err = errnoErr(e1) 1485 } 1486 return 1487 } 1488 1489 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1490 1491 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { 1492 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) 1493 newoffset = int64(r0) 1494 if e1 != 0 { 1495 err = errnoErr(e1) 1496 } 1497 return 1498 } 1499 1500 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1501 1502 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { 1503 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1504 n = int(r0) 1505 if e1 != 0 { 1506 err = errnoErr(e1) 1507 } 1508 return 1509 } 1510 1511 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1512 1513 func Setegid(egid int) (err error) { 1514 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) 1515 if e1 != 0 { 1516 err = errnoErr(e1) 1517 } 1518 return 1519 } 1520 1521 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1522 1523 func Seteuid(euid int) (err error) { 1524 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) 1525 if e1 != 0 { 1526 err = errnoErr(e1) 1527 } 1528 return 1529 } 1530 1531 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1532 1533 func Setgid(gid int) (err error) { 1534 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) 1535 if e1 != 0 { 1536 err = errnoErr(e1) 1537 } 1538 return 1539 } 1540 1541 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1542 1543 func Setlogin(name string) (err error) { 1544 var _p0 *byte 1545 _p0, err = BytePtrFromString(name) 1546 if err != nil { 1547 return 1548 } 1549 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) 1550 if e1 != 0 { 1551 err = errnoErr(e1) 1552 } 1553 return 1554 } 1555 1556 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1557 1558 func Setpgid(pid int, pgid int) (err error) { 1559 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) 1560 if e1 != 0 { 1561 err = errnoErr(e1) 1562 } 1563 return 1564 } 1565 1566 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1567 1568 func Setpriority(which int, who int, prio int) (err error) { 1569 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) 1570 if e1 != 0 { 1571 err = errnoErr(e1) 1572 } 1573 return 1574 } 1575 1576 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1577 1578 func Setregid(rgid int, egid int) (err error) { 1579 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1580 if e1 != 0 { 1581 err = errnoErr(e1) 1582 } 1583 return 1584 } 1585 1586 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1587 1588 func Setreuid(ruid int, euid int) (err error) { 1589 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1590 if e1 != 0 { 1591 err = errnoErr(e1) 1592 } 1593 return 1594 } 1595 1596 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1597 1598 func Setresgid(rgid int, egid int, sgid int) (err error) { 1599 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1600 if e1 != 0 { 1601 err = errnoErr(e1) 1602 } 1603 return 1604 } 1605 1606 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1607 1608 func Setresuid(ruid int, euid int, suid int) (err error) { 1609 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) 1610 if e1 != 0 { 1611 err = errnoErr(e1) 1612 } 1613 return 1614 } 1615 1616 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1617 1618 func Setrlimit(which int, lim *Rlimit) (err error) { 1619 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1620 if e1 != 0 { 1621 err = errnoErr(e1) 1622 } 1623 return 1624 } 1625 1626 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1627 1628 func Setsid() (pid int, err error) { 1629 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) 1630 pid = int(r0) 1631 if e1 != 0 { 1632 err = errnoErr(e1) 1633 } 1634 return 1635 } 1636 1637 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1638 1639 func Settimeofday(tp *Timeval) (err error) { 1640 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1641 if e1 != 0 { 1642 err = errnoErr(e1) 1643 } 1644 return 1645 } 1646 1647 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1648 1649 func Setuid(uid int) (err error) { 1650 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) 1651 if e1 != 0 { 1652 err = errnoErr(e1) 1653 } 1654 return 1655 } 1656 1657 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1658 1659 func Statfs(path string, stat *Statfs_t) (err error) { 1660 var _p0 *byte 1661 _p0, err = BytePtrFromString(path) 1662 if err != nil { 1663 return 1664 } 1665 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1666 if e1 != 0 { 1667 err = errnoErr(e1) 1668 } 1669 return 1670 } 1671 1672 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1673 1674 func Symlink(path string, link string) (err error) { 1675 var _p0 *byte 1676 _p0, err = BytePtrFromString(path) 1677 if err != nil { 1678 return 1679 } 1680 var _p1 *byte 1681 _p1, err = BytePtrFromString(link) 1682 if err != nil { 1683 return 1684 } 1685 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1686 if e1 != 0 { 1687 err = errnoErr(e1) 1688 } 1689 return 1690 } 1691 1692 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1693 1694 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { 1695 var _p0 *byte 1696 _p0, err = BytePtrFromString(oldpath) 1697 if err != nil { 1698 return 1699 } 1700 var _p1 *byte 1701 _p1, err = BytePtrFromString(newpath) 1702 if err != nil { 1703 return 1704 } 1705 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 1706 if e1 != 0 { 1707 err = errnoErr(e1) 1708 } 1709 return 1710 } 1711 1712 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1713 1714 func Sync() (err error) { 1715 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) 1716 if e1 != 0 { 1717 err = errnoErr(e1) 1718 } 1719 return 1720 } 1721 1722 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1723 1724 func Truncate(path string, length int64) (err error) { 1725 var _p0 *byte 1726 _p0, err = BytePtrFromString(path) 1727 if err != nil { 1728 return 1729 } 1730 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) 1731 if e1 != 0 { 1732 err = errnoErr(e1) 1733 } 1734 return 1735 } 1736 1737 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1738 1739 func Umask(newmask int) (oldmask int) { 1740 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) 1741 oldmask = int(r0) 1742 return 1743 } 1744 1745 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1746 1747 func Undelete(path string) (err error) { 1748 var _p0 *byte 1749 _p0, err = BytePtrFromString(path) 1750 if err != nil { 1751 return 1752 } 1753 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1754 if e1 != 0 { 1755 err = errnoErr(e1) 1756 } 1757 return 1758 } 1759 1760 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1761 1762 func Unlink(path string) (err error) { 1763 var _p0 *byte 1764 _p0, err = BytePtrFromString(path) 1765 if err != nil { 1766 return 1767 } 1768 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) 1769 if e1 != 0 { 1770 err = errnoErr(e1) 1771 } 1772 return 1773 } 1774 1775 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1776 1777 func Unlinkat(dirfd int, path string, flags int) (err error) { 1778 var _p0 *byte 1779 _p0, err = BytePtrFromString(path) 1780 if err != nil { 1781 return 1782 } 1783 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 1784 if e1 != 0 { 1785 err = errnoErr(e1) 1786 } 1787 return 1788 } 1789 1790 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1791 1792 func Unmount(path string, flags int) (err error) { 1793 var _p0 *byte 1794 _p0, err = BytePtrFromString(path) 1795 if err != nil { 1796 return 1797 } 1798 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1799 if e1 != 0 { 1800 err = errnoErr(e1) 1801 } 1802 return 1803 } 1804 1805 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1806 1807 func write(fd int, p []byte) (n int, err error) { 1808 var _p0 unsafe.Pointer 1809 if len(p) > 0 { 1810 _p0 = unsafe.Pointer(&p[0]) 1811 } else { 1812 _p0 = unsafe.Pointer(&_zero) 1813 } 1814 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1815 n = int(r0) 1816 if e1 != 0 { 1817 err = errnoErr(e1) 1818 } 1819 return 1820 } 1821 1822 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1823 1824 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { 1825 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) 1826 ret = uintptr(r0) 1827 if e1 != 0 { 1828 err = errnoErr(e1) 1829 } 1830 return 1831 } 1832 1833 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1834 1835 func munmap(addr uintptr, length uintptr) (err error) { 1836 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1837 if e1 != 0 { 1838 err = errnoErr(e1) 1839 } 1840 return 1841 } 1842 1843 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1844 1845 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { 1846 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1847 n = int(r0) 1848 if e1 != 0 { 1849 err = errnoErr(e1) 1850 } 1851 return 1852 } 1853 1854 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1855 1856 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1857 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1858 n = int(r0) 1859 if e1 != 0 { 1860 err = errnoErr(e1) 1861 } 1862 return 1863 } 1864 1865 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1866 1867 func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { 1868 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) 1869 nfd = int(r0) 1870 if e1 != 0 { 1871 err = errnoErr(e1) 1872 } 1873 return 1874 } 1875 1876 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1877 1878 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 1879 var _p0 *byte 1880 _p0, err = BytePtrFromString(path) 1881 if err != nil { 1882 return 1883 } 1884 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 1885 if e1 != 0 { 1886 err = errnoErr(e1) 1887 } 1888 return 1889 }