golang.org/x/sys@v0.9.0/unix/zsyscall_linux_amd64.go (about) 1 // go run mksyscall.go -tags linux,amd64 syscall_linux.go syscall_linux_amd64.go syscall_linux_alarm.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 //go:build linux && amd64 5 // +build linux,amd64 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 fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { 19 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) 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 Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 29 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 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 Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { 39 r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) 40 n = int64(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 EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 50 var _p0 unsafe.Pointer 51 if len(events) > 0 { 52 _p0 = unsafe.Pointer(&events[0]) 53 } else { 54 _p0 = unsafe.Pointer(&_zero) 55 } 56 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) 57 n = int(r0) 58 if e1 != 0 { 59 err = errnoErr(e1) 60 } 61 return 62 } 63 64 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 65 66 func Fadvise(fd int, offset int64, length int64, advice int) (err error) { 67 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) 68 if e1 != 0 { 69 err = errnoErr(e1) 70 } 71 return 72 } 73 74 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 75 76 func Fchown(fd int, uid int, gid int) (err error) { 77 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 78 if e1 != 0 { 79 err = errnoErr(e1) 80 } 81 return 82 } 83 84 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 85 86 func Fstat(fd int, stat *Stat_t) (err error) { 87 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 88 if e1 != 0 { 89 err = errnoErr(e1) 90 } 91 return 92 } 93 94 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 95 96 func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { 97 var _p0 *byte 98 _p0, err = BytePtrFromString(path) 99 if err != nil { 100 return 101 } 102 _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 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 Fstatfs(fd int, buf *Statfs_t) (err error) { 112 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) 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 Ftruncate(fd int, length int64) (err error) { 122 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) 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 Getegid() (egid int) { 132 r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) 133 egid = int(r0) 134 return 135 } 136 137 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 138 139 func Geteuid() (euid int) { 140 r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) 141 euid = int(r0) 142 return 143 } 144 145 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 146 147 func Getgid() (gid int) { 148 r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) 149 gid = int(r0) 150 return 151 } 152 153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 154 155 func Getrlimit(resource int, rlim *Rlimit) (err error) { 156 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 157 if e1 != 0 { 158 err = errnoErr(e1) 159 } 160 return 161 } 162 163 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 164 165 func Getuid() (uid int) { 166 r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) 167 uid = int(r0) 168 return 169 } 170 171 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 172 173 func Ioperm(from int, num int, on int) (err error) { 174 _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) 175 if e1 != 0 { 176 err = errnoErr(e1) 177 } 178 return 179 } 180 181 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 182 183 func Iopl(level int) (err error) { 184 _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) 185 if e1 != 0 { 186 err = errnoErr(e1) 187 } 188 return 189 } 190 191 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 192 193 func Lchown(path string, uid int, gid int) (err error) { 194 var _p0 *byte 195 _p0, err = BytePtrFromString(path) 196 if err != nil { 197 return 198 } 199 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 200 if e1 != 0 { 201 err = errnoErr(e1) 202 } 203 return 204 } 205 206 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 207 208 func Listen(s int, n int) (err error) { 209 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) 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 MemfdSecret(flags int) (fd int, err error) { 219 r0, _, e1 := Syscall(SYS_MEMFD_SECRET, uintptr(flags), 0, 0) 220 fd = int(r0) 221 if e1 != 0 { 222 err = errnoErr(e1) 223 } 224 return 225 } 226 227 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 228 229 func Pause() (err error) { 230 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) 231 if e1 != 0 { 232 err = errnoErr(e1) 233 } 234 return 235 } 236 237 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 238 239 func pread(fd int, p []byte, offset int64) (n int, err error) { 240 var _p0 unsafe.Pointer 241 if len(p) > 0 { 242 _p0 = unsafe.Pointer(&p[0]) 243 } else { 244 _p0 = unsafe.Pointer(&_zero) 245 } 246 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) 247 n = int(r0) 248 if e1 != 0 { 249 err = errnoErr(e1) 250 } 251 return 252 } 253 254 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 255 256 func pwrite(fd int, p []byte, offset int64) (n int, err error) { 257 var _p0 unsafe.Pointer 258 if len(p) > 0 { 259 _p0 = unsafe.Pointer(&p[0]) 260 } else { 261 _p0 = unsafe.Pointer(&_zero) 262 } 263 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) 264 n = int(r0) 265 if e1 != 0 { 266 err = errnoErr(e1) 267 } 268 return 269 } 270 271 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 272 273 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 274 var _p0 *byte 275 _p0, err = BytePtrFromString(oldpath) 276 if err != nil { 277 return 278 } 279 var _p1 *byte 280 _p1, err = BytePtrFromString(newpath) 281 if err != nil { 282 return 283 } 284 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) 285 if e1 != 0 { 286 err = errnoErr(e1) 287 } 288 return 289 } 290 291 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 292 293 func Seek(fd int, offset int64, whence int) (off int64, err error) { 294 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) 295 off = int64(r0) 296 if e1 != 0 { 297 err = errnoErr(e1) 298 } 299 return 300 } 301 302 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 303 304 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { 305 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) 306 written = int(r0) 307 if e1 != 0 { 308 err = errnoErr(e1) 309 } 310 return 311 } 312 313 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 314 315 func setfsgid(gid int) (prev int, err error) { 316 r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) 317 prev = int(r0) 318 if e1 != 0 { 319 err = errnoErr(e1) 320 } 321 return 322 } 323 324 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 325 326 func setfsuid(uid int) (prev int, err error) { 327 r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) 328 prev = int(r0) 329 if e1 != 0 { 330 err = errnoErr(e1) 331 } 332 return 333 } 334 335 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 336 337 func Shutdown(fd int, how int) (err error) { 338 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) 339 if e1 != 0 { 340 err = errnoErr(e1) 341 } 342 return 343 } 344 345 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 346 347 func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { 348 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) 349 n = int64(r0) 350 if e1 != 0 { 351 err = errnoErr(e1) 352 } 353 return 354 } 355 356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 357 358 func Statfs(path string, buf *Statfs_t) (err error) { 359 var _p0 *byte 360 _p0, err = BytePtrFromString(path) 361 if err != nil { 362 return 363 } 364 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) 365 if e1 != 0 { 366 err = errnoErr(e1) 367 } 368 return 369 } 370 371 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 372 373 func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { 374 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) 375 if e1 != 0 { 376 err = errnoErr(e1) 377 } 378 return 379 } 380 381 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 382 383 func Truncate(path string, length int64) (err error) { 384 var _p0 *byte 385 _p0, err = BytePtrFromString(path) 386 if err != nil { 387 return 388 } 389 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) 390 if e1 != 0 { 391 err = errnoErr(e1) 392 } 393 return 394 } 395 396 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 397 398 func Ustat(dev int, ubuf *Ustat_t) (err error) { 399 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 405 406 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 407 408 func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { 409 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) 410 fd = int(r0) 411 if e1 != 0 { 412 err = errnoErr(e1) 413 } 414 return 415 } 416 417 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418 419 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 420 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) 421 if e1 != 0 { 422 err = errnoErr(e1) 423 } 424 return 425 } 426 427 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 428 429 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 430 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) 431 if e1 != 0 { 432 err = errnoErr(e1) 433 } 434 return 435 } 436 437 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 438 439 func getgroups(n int, list *_Gid_t) (nn int, err error) { 440 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) 441 nn = int(r0) 442 if e1 != 0 { 443 err = errnoErr(e1) 444 } 445 return 446 } 447 448 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 449 450 func setgroups(n int, list *_Gid_t) (err error) { 451 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) 452 if e1 != 0 { 453 err = errnoErr(e1) 454 } 455 return 456 } 457 458 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 459 460 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { 461 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 462 if e1 != 0 { 463 err = errnoErr(e1) 464 } 465 return 466 } 467 468 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 469 470 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { 471 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 472 if e1 != 0 { 473 err = errnoErr(e1) 474 } 475 return 476 } 477 478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 479 480 func socket(domain int, typ int, proto int) (fd int, err error) { 481 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) 482 fd = int(r0) 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 socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { 492 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 493 if e1 != 0 { 494 err = errnoErr(e1) 495 } 496 return 497 } 498 499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 500 501 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 502 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 503 if e1 != 0 { 504 err = errnoErr(e1) 505 } 506 return 507 } 508 509 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 510 511 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 512 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 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 recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { 522 var _p0 unsafe.Pointer 523 if len(p) > 0 { 524 _p0 = unsafe.Pointer(&p[0]) 525 } else { 526 _p0 = unsafe.Pointer(&_zero) 527 } 528 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) 529 n = int(r0) 530 if e1 != 0 { 531 err = errnoErr(e1) 532 } 533 return 534 } 535 536 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 537 538 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { 539 var _p0 unsafe.Pointer 540 if len(buf) > 0 { 541 _p0 = unsafe.Pointer(&buf[0]) 542 } else { 543 _p0 = unsafe.Pointer(&_zero) 544 } 545 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 546 if e1 != 0 { 547 err = errnoErr(e1) 548 } 549 return 550 } 551 552 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 553 554 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { 555 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 556 n = int(r0) 557 if e1 != 0 { 558 err = errnoErr(e1) 559 } 560 return 561 } 562 563 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 564 565 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { 566 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 567 n = int(r0) 568 if e1 != 0 { 569 err = errnoErr(e1) 570 } 571 return 572 } 573 574 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 575 576 func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { 577 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) 578 xaddr = uintptr(r0) 579 if e1 != 0 { 580 err = errnoErr(e1) 581 } 582 return 583 } 584 585 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 586 587 func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { 588 var _p0 *byte 589 _p0, err = BytePtrFromString(path) 590 if err != nil { 591 return 592 } 593 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) 594 if e1 != 0 { 595 err = errnoErr(e1) 596 } 597 return 598 } 599 600 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 601 602 func Utime(path string, buf *Utimbuf) (err error) { 603 var _p0 *byte 604 _p0, err = BytePtrFromString(path) 605 if err != nil { 606 return 607 } 608 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) 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 utimes(path string, times *[2]Timeval) (err error) { 618 var _p0 *byte 619 _p0, err = BytePtrFromString(path) 620 if err != nil { 621 return 622 } 623 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) 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 kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { 633 var _p0 *byte 634 _p0, err = BytePtrFromString(cmdline) 635 if err != nil { 636 return 637 } 638 _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 639 if e1 != 0 { 640 err = errnoErr(e1) 641 } 642 return 643 } 644 645 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 646 647 func Alarm(seconds uint) (remaining uint, err error) { 648 r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) 649 remaining = uint(r0) 650 if e1 != 0 { 651 err = errnoErr(e1) 652 } 653 return 654 }