gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

zsyscall_linux.go (54417B)


      1 // Code generated by mkmerge; DO NOT EDIT.
      2 
      3 //go:build linux
      4 // +build linux
      5 
      6 package unix
      7 
      8 import (
      9 	"syscall"
     10 	"unsafe"
     11 )
     12 
     13 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     14 
     15 func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
     16 	r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
     17 	fd = int(r0)
     18 	if e1 != 0 {
     19 		err = errnoErr(e1)
     20 	}
     21 	return
     22 }
     23 
     24 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     25 
     26 func fchmodat(dirfd int, path string, mode uint32) (err error) {
     27 	var _p0 *byte
     28 	_p0, err = BytePtrFromString(path)
     29 	if err != nil {
     30 		return
     31 	}
     32 	_, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
     33 	if e1 != 0 {
     34 		err = errnoErr(e1)
     35 	}
     36 	return
     37 }
     38 
     39 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     40 
     41 func ioctl(fd int, req uint, arg uintptr) (err error) {
     42 	_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
     43 	if e1 != 0 {
     44 		err = errnoErr(e1)
     45 	}
     46 	return
     47 }
     48 
     49 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     50 
     51 func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
     52 	_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
     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 Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
     62 	var _p0 *byte
     63 	_p0, err = BytePtrFromString(oldpath)
     64 	if err != nil {
     65 		return
     66 	}
     67 	var _p1 *byte
     68 	_p1, err = BytePtrFromString(newpath)
     69 	if err != nil {
     70 		return
     71 	}
     72 	_, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
     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 openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
     82 	var _p0 *byte
     83 	_p0, err = BytePtrFromString(path)
     84 	if err != nil {
     85 		return
     86 	}
     87 	r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
     88 	fd = int(r0)
     89 	if e1 != 0 {
     90 		err = errnoErr(e1)
     91 	}
     92 	return
     93 }
     94 
     95 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     96 
     97 func openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) {
     98 	var _p0 *byte
     99 	_p0, err = BytePtrFromString(path)
    100 	if err != nil {
    101 		return
    102 	}
    103 	r0, _, e1 := Syscall6(SYS_OPENAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(open_how)), uintptr(size), 0, 0)
    104 	fd = int(r0)
    105 	if e1 != 0 {
    106 		err = errnoErr(e1)
    107 	}
    108 	return
    109 }
    110 
    111 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    112 
    113 func pipe2(p *[2]_C_int, flags int) (err error) {
    114 	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
    115 	if e1 != 0 {
    116 		err = errnoErr(e1)
    117 	}
    118 	return
    119 }
    120 
    121 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    122 
    123 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
    124 	r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
    125 	n = int(r0)
    126 	if e1 != 0 {
    127 		err = errnoErr(e1)
    128 	}
    129 	return
    130 }
    131 
    132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    133 
    134 func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
    135 	var _p0 *byte
    136 	_p0, err = BytePtrFromString(path)
    137 	if err != nil {
    138 		return
    139 	}
    140 	var _p1 unsafe.Pointer
    141 	if len(buf) > 0 {
    142 		_p1 = unsafe.Pointer(&buf[0])
    143 	} else {
    144 		_p1 = unsafe.Pointer(&_zero)
    145 	}
    146 	r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
    147 	n = int(r0)
    148 	if e1 != 0 {
    149 		err = errnoErr(e1)
    150 	}
    151 	return
    152 }
    153 
    154 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    155 
    156 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
    157 	var _p0 *byte
    158 	_p0, err = BytePtrFromString(oldpath)
    159 	if err != nil {
    160 		return
    161 	}
    162 	var _p1 *byte
    163 	_p1, err = BytePtrFromString(newpath)
    164 	if err != nil {
    165 		return
    166 	}
    167 	_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
    168 	if e1 != 0 {
    169 		err = errnoErr(e1)
    170 	}
    171 	return
    172 }
    173 
    174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    175 
    176 func Unlinkat(dirfd int, path string, flags int) (err error) {
    177 	var _p0 *byte
    178 	_p0, err = BytePtrFromString(path)
    179 	if err != nil {
    180 		return
    181 	}
    182 	_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
    183 	if e1 != 0 {
    184 		err = errnoErr(e1)
    185 	}
    186 	return
    187 }
    188 
    189 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    190 
    191 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
    192 	var _p0 *byte
    193 	_p0, err = BytePtrFromString(path)
    194 	if err != nil {
    195 		return
    196 	}
    197 	_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
    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 Getcwd(buf []byte) (n int, err error) {
    207 	var _p0 unsafe.Pointer
    208 	if len(buf) > 0 {
    209 		_p0 = unsafe.Pointer(&buf[0])
    210 	} else {
    211 		_p0 = unsafe.Pointer(&_zero)
    212 	}
    213 	r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
    214 	n = int(r0)
    215 	if e1 != 0 {
    216 		err = errnoErr(e1)
    217 	}
    218 	return
    219 }
    220 
    221 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    222 
    223 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
    224 	r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
    225 	wpid = int(r0)
    226 	if e1 != 0 {
    227 		err = errnoErr(e1)
    228 	}
    229 	return
    230 }
    231 
    232 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    233 
    234 func Waitid(idType int, id int, info *Siginfo, options int, rusage *Rusage) (err error) {
    235 	_, _, e1 := Syscall6(SYS_WAITID, uintptr(idType), uintptr(id), uintptr(unsafe.Pointer(info)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0)
    236 	if e1 != 0 {
    237 		err = errnoErr(e1)
    238 	}
    239 	return
    240 }
    241 
    242 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    243 
    244 func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
    245 	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
    246 	ret = int(r0)
    247 	if e1 != 0 {
    248 		err = errnoErr(e1)
    249 	}
    250 	return
    251 }
    252 
    253 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    254 
    255 func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
    256 	var _p0 unsafe.Pointer
    257 	if len(buf) > 0 {
    258 		_p0 = unsafe.Pointer(&buf[0])
    259 	} else {
    260 		_p0 = unsafe.Pointer(&_zero)
    261 	}
    262 	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
    263 	ret = int(r0)
    264 	if e1 != 0 {
    265 		err = errnoErr(e1)
    266 	}
    267 	return
    268 }
    269 
    270 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    271 
    272 func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
    273 	var _p0 *byte
    274 	_p0, err = BytePtrFromString(arg2)
    275 	if err != nil {
    276 		return
    277 	}
    278 	r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
    279 	ret = int(r0)
    280 	if e1 != 0 {
    281 		err = errnoErr(e1)
    282 	}
    283 	return
    284 }
    285 
    286 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    287 
    288 func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
    289 	var _p0 *byte
    290 	_p0, err = BytePtrFromString(arg3)
    291 	if err != nil {
    292 		return
    293 	}
    294 	var _p1 *byte
    295 	_p1, err = BytePtrFromString(arg4)
    296 	if err != nil {
    297 		return
    298 	}
    299 	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
    300 	ret = int(r0)
    301 	if e1 != 0 {
    302 		err = errnoErr(e1)
    303 	}
    304 	return
    305 }
    306 
    307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    308 
    309 func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
    310 	var _p0 unsafe.Pointer
    311 	if len(payload) > 0 {
    312 		_p0 = unsafe.Pointer(&payload[0])
    313 	} else {
    314 		_p0 = unsafe.Pointer(&_zero)
    315 	}
    316 	_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
    317 	if e1 != 0 {
    318 		err = errnoErr(e1)
    319 	}
    320 	return
    321 }
    322 
    323 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    324 
    325 func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
    326 	var _p0 unsafe.Pointer
    327 	if len(buf) > 0 {
    328 		_p0 = unsafe.Pointer(&buf[0])
    329 	} else {
    330 		_p0 = unsafe.Pointer(&_zero)
    331 	}
    332 	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
    333 	ret = int(r0)
    334 	if e1 != 0 {
    335 		err = errnoErr(e1)
    336 	}
    337 	return
    338 }
    339 
    340 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    341 
    342 func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
    343 	var _p0 *byte
    344 	_p0, err = BytePtrFromString(keyType)
    345 	if err != nil {
    346 		return
    347 	}
    348 	var _p1 *byte
    349 	_p1, err = BytePtrFromString(restriction)
    350 	if err != nil {
    351 		return
    352 	}
    353 	_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
    354 	if e1 != 0 {
    355 		err = errnoErr(e1)
    356 	}
    357 	return
    358 }
    359 
    360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    361 
    362 func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
    363 	_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
    364 	if e1 != 0 {
    365 		err = errnoErr(e1)
    366 	}
    367 	return
    368 }
    369 
    370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    371 
    372 func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
    373 	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
    374 	if e1 != 0 {
    375 		err = errnoErr(e1)
    376 	}
    377 	return
    378 }
    379 
    380 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    381 
    382 func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
    383 	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
    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 reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
    393 	var _p0 *byte
    394 	_p0, err = BytePtrFromString(arg)
    395 	if err != nil {
    396 		return
    397 	}
    398 	_, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
    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 mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
    408 	var _p0 *byte
    409 	_p0, err = BytePtrFromString(source)
    410 	if err != nil {
    411 		return
    412 	}
    413 	var _p1 *byte
    414 	_p1, err = BytePtrFromString(target)
    415 	if err != nil {
    416 		return
    417 	}
    418 	var _p2 *byte
    419 	_p2, err = BytePtrFromString(fstype)
    420 	if err != nil {
    421 		return
    422 	}
    423 	_, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 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 mountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr, size uintptr) (err error) {
    433 	var _p0 *byte
    434 	_p0, err = BytePtrFromString(pathname)
    435 	if err != nil {
    436 		return
    437 	}
    438 	_, _, e1 := Syscall6(SYS_MOUNT_SETATTR, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(unsafe.Pointer(attr)), uintptr(size), 0)
    439 	if e1 != 0 {
    440 		err = errnoErr(e1)
    441 	}
    442 	return
    443 }
    444 
    445 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    446 
    447 func Acct(path string) (err error) {
    448 	var _p0 *byte
    449 	_p0, err = BytePtrFromString(path)
    450 	if err != nil {
    451 		return
    452 	}
    453 	_, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
    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 AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
    463 	var _p0 *byte
    464 	_p0, err = BytePtrFromString(keyType)
    465 	if err != nil {
    466 		return
    467 	}
    468 	var _p1 *byte
    469 	_p1, err = BytePtrFromString(description)
    470 	if err != nil {
    471 		return
    472 	}
    473 	var _p2 unsafe.Pointer
    474 	if len(payload) > 0 {
    475 		_p2 = unsafe.Pointer(&payload[0])
    476 	} else {
    477 		_p2 = unsafe.Pointer(&_zero)
    478 	}
    479 	r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
    480 	id = int(r0)
    481 	if e1 != 0 {
    482 		err = errnoErr(e1)
    483 	}
    484 	return
    485 }
    486 
    487 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    488 
    489 func Adjtimex(buf *Timex) (state int, err error) {
    490 	r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
    491 	state = int(r0)
    492 	if e1 != 0 {
    493 		err = errnoErr(e1)
    494 	}
    495 	return
    496 }
    497 
    498 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    499 
    500 func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
    501 	_, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
    502 	if e1 != 0 {
    503 		err = errnoErr(e1)
    504 	}
    505 	return
    506 }
    507 
    508 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    509 
    510 func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
    511 	_, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
    512 	if e1 != 0 {
    513 		err = errnoErr(e1)
    514 	}
    515 	return
    516 }
    517 
    518 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    519 
    520 func Chdir(path string) (err error) {
    521 	var _p0 *byte
    522 	_p0, err = BytePtrFromString(path)
    523 	if err != nil {
    524 		return
    525 	}
    526 	_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
    527 	if e1 != 0 {
    528 		err = errnoErr(e1)
    529 	}
    530 	return
    531 }
    532 
    533 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    534 
    535 func Chroot(path string) (err error) {
    536 	var _p0 *byte
    537 	_p0, err = BytePtrFromString(path)
    538 	if err != nil {
    539 		return
    540 	}
    541 	_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
    542 	if e1 != 0 {
    543 		err = errnoErr(e1)
    544 	}
    545 	return
    546 }
    547 
    548 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    549 
    550 func ClockAdjtime(clockid int32, buf *Timex) (state int, err error) {
    551 	r0, _, e1 := Syscall(SYS_CLOCK_ADJTIME, uintptr(clockid), uintptr(unsafe.Pointer(buf)), 0)
    552 	state = int(r0)
    553 	if e1 != 0 {
    554 		err = errnoErr(e1)
    555 	}
    556 	return
    557 }
    558 
    559 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    560 
    561 func ClockGetres(clockid int32, res *Timespec) (err error) {
    562 	_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
    563 	if e1 != 0 {
    564 		err = errnoErr(e1)
    565 	}
    566 	return
    567 }
    568 
    569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    570 
    571 func ClockGettime(clockid int32, time *Timespec) (err error) {
    572 	_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
    573 	if e1 != 0 {
    574 		err = errnoErr(e1)
    575 	}
    576 	return
    577 }
    578 
    579 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    580 
    581 func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) {
    582 	_, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0)
    583 	if e1 != 0 {
    584 		err = errnoErr(e1)
    585 	}
    586 	return
    587 }
    588 
    589 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    590 
    591 func Close(fd int) (err error) {
    592 	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
    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 CloseRange(first uint, last uint, flags uint) (err error) {
    602 	_, _, e1 := Syscall(SYS_CLOSE_RANGE, uintptr(first), uintptr(last), uintptr(flags))
    603 	if e1 != 0 {
    604 		err = errnoErr(e1)
    605 	}
    606 	return
    607 }
    608 
    609 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    610 
    611 func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
    612 	r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
    613 	n = int(r0)
    614 	if e1 != 0 {
    615 		err = errnoErr(e1)
    616 	}
    617 	return
    618 }
    619 
    620 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    621 
    622 func DeleteModule(name string, flags int) (err error) {
    623 	var _p0 *byte
    624 	_p0, err = BytePtrFromString(name)
    625 	if err != nil {
    626 		return
    627 	}
    628 	_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
    629 	if e1 != 0 {
    630 		err = errnoErr(e1)
    631 	}
    632 	return
    633 }
    634 
    635 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    636 
    637 func Dup(oldfd int) (fd int, err error) {
    638 	r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
    639 	fd = int(r0)
    640 	if e1 != 0 {
    641 		err = errnoErr(e1)
    642 	}
    643 	return
    644 }
    645 
    646 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    647 
    648 func Dup3(oldfd int, newfd int, flags int) (err error) {
    649 	_, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
    650 	if e1 != 0 {
    651 		err = errnoErr(e1)
    652 	}
    653 	return
    654 }
    655 
    656 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    657 
    658 func EpollCreate1(flag int) (fd int, err error) {
    659 	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
    660 	fd = int(r0)
    661 	if e1 != 0 {
    662 		err = errnoErr(e1)
    663 	}
    664 	return
    665 }
    666 
    667 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    668 
    669 func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
    670 	_, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
    671 	if e1 != 0 {
    672 		err = errnoErr(e1)
    673 	}
    674 	return
    675 }
    676 
    677 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    678 
    679 func Eventfd(initval uint, flags int) (fd int, err error) {
    680 	r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
    681 	fd = int(r0)
    682 	if e1 != 0 {
    683 		err = errnoErr(e1)
    684 	}
    685 	return
    686 }
    687 
    688 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    689 
    690 func Exit(code int) {
    691 	SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
    692 	return
    693 }
    694 
    695 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    696 
    697 func Fchdir(fd int) (err error) {
    698 	_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
    699 	if e1 != 0 {
    700 		err = errnoErr(e1)
    701 	}
    702 	return
    703 }
    704 
    705 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    706 
    707 func Fchmod(fd int, mode uint32) (err error) {
    708 	_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
    709 	if e1 != 0 {
    710 		err = errnoErr(e1)
    711 	}
    712 	return
    713 }
    714 
    715 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    716 
    717 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
    718 	var _p0 *byte
    719 	_p0, err = BytePtrFromString(path)
    720 	if err != nil {
    721 		return
    722 	}
    723 	_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
    724 	if e1 != 0 {
    725 		err = errnoErr(e1)
    726 	}
    727 	return
    728 }
    729 
    730 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    731 
    732 func Fdatasync(fd int) (err error) {
    733 	_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
    734 	if e1 != 0 {
    735 		err = errnoErr(e1)
    736 	}
    737 	return
    738 }
    739 
    740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    741 
    742 func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
    743 	var _p0 *byte
    744 	_p0, err = BytePtrFromString(attr)
    745 	if err != nil {
    746 		return
    747 	}
    748 	var _p1 unsafe.Pointer
    749 	if len(dest) > 0 {
    750 		_p1 = unsafe.Pointer(&dest[0])
    751 	} else {
    752 		_p1 = unsafe.Pointer(&_zero)
    753 	}
    754 	r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
    755 	sz = int(r0)
    756 	if e1 != 0 {
    757 		err = errnoErr(e1)
    758 	}
    759 	return
    760 }
    761 
    762 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    763 
    764 func FinitModule(fd int, params string, flags int) (err error) {
    765 	var _p0 *byte
    766 	_p0, err = BytePtrFromString(params)
    767 	if err != nil {
    768 		return
    769 	}
    770 	_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
    771 	if e1 != 0 {
    772 		err = errnoErr(e1)
    773 	}
    774 	return
    775 }
    776 
    777 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    778 
    779 func Flistxattr(fd int, dest []byte) (sz int, err error) {
    780 	var _p0 unsafe.Pointer
    781 	if len(dest) > 0 {
    782 		_p0 = unsafe.Pointer(&dest[0])
    783 	} else {
    784 		_p0 = unsafe.Pointer(&_zero)
    785 	}
    786 	r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
    787 	sz = int(r0)
    788 	if e1 != 0 {
    789 		err = errnoErr(e1)
    790 	}
    791 	return
    792 }
    793 
    794 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    795 
    796 func Flock(fd int, how int) (err error) {
    797 	_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
    798 	if e1 != 0 {
    799 		err = errnoErr(e1)
    800 	}
    801 	return
    802 }
    803 
    804 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    805 
    806 func Fremovexattr(fd int, attr string) (err error) {
    807 	var _p0 *byte
    808 	_p0, err = BytePtrFromString(attr)
    809 	if err != nil {
    810 		return
    811 	}
    812 	_, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
    813 	if e1 != 0 {
    814 		err = errnoErr(e1)
    815 	}
    816 	return
    817 }
    818 
    819 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    820 
    821 func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
    822 	var _p0 *byte
    823 	_p0, err = BytePtrFromString(attr)
    824 	if err != nil {
    825 		return
    826 	}
    827 	var _p1 unsafe.Pointer
    828 	if len(dest) > 0 {
    829 		_p1 = unsafe.Pointer(&dest[0])
    830 	} else {
    831 		_p1 = unsafe.Pointer(&_zero)
    832 	}
    833 	_, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
    834 	if e1 != 0 {
    835 		err = errnoErr(e1)
    836 	}
    837 	return
    838 }
    839 
    840 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    841 
    842 func Fsync(fd int) (err error) {
    843 	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
    844 	if e1 != 0 {
    845 		err = errnoErr(e1)
    846 	}
    847 	return
    848 }
    849 
    850 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    851 
    852 func Fsmount(fd int, flags int, mountAttrs int) (fsfd int, err error) {
    853 	r0, _, e1 := Syscall(SYS_FSMOUNT, uintptr(fd), uintptr(flags), uintptr(mountAttrs))
    854 	fsfd = int(r0)
    855 	if e1 != 0 {
    856 		err = errnoErr(e1)
    857 	}
    858 	return
    859 }
    860 
    861 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    862 
    863 func Fsopen(fsName string, flags int) (fd int, err error) {
    864 	var _p0 *byte
    865 	_p0, err = BytePtrFromString(fsName)
    866 	if err != nil {
    867 		return
    868 	}
    869 	r0, _, e1 := Syscall(SYS_FSOPEN, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
    870 	fd = int(r0)
    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 Fspick(dirfd int, pathName string, flags int) (fd int, err error) {
    880 	var _p0 *byte
    881 	_p0, err = BytePtrFromString(pathName)
    882 	if err != nil {
    883 		return
    884 	}
    885 	r0, _, e1 := Syscall(SYS_FSPICK, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
    886 	fd = int(r0)
    887 	if e1 != 0 {
    888 		err = errnoErr(e1)
    889 	}
    890 	return
    891 }
    892 
    893 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    894 
    895 func Getdents(fd int, buf []byte) (n int, err error) {
    896 	var _p0 unsafe.Pointer
    897 	if len(buf) > 0 {
    898 		_p0 = unsafe.Pointer(&buf[0])
    899 	} else {
    900 		_p0 = unsafe.Pointer(&_zero)
    901 	}
    902 	r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
    903 	n = int(r0)
    904 	if e1 != 0 {
    905 		err = errnoErr(e1)
    906 	}
    907 	return
    908 }
    909 
    910 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    911 
    912 func Getpgid(pid int) (pgid int, err error) {
    913 	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
    914 	pgid = int(r0)
    915 	if e1 != 0 {
    916 		err = errnoErr(e1)
    917 	}
    918 	return
    919 }
    920 
    921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    922 
    923 func Getpid() (pid int) {
    924 	r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
    925 	pid = int(r0)
    926 	return
    927 }
    928 
    929 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    930 
    931 func Getppid() (ppid int) {
    932 	r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
    933 	ppid = int(r0)
    934 	return
    935 }
    936 
    937 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    938 
    939 func Getpriority(which int, who int) (prio int, err error) {
    940 	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
    941 	prio = int(r0)
    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 Getrandom(buf []byte, flags int) (n int, err error) {
    951 	var _p0 unsafe.Pointer
    952 	if len(buf) > 0 {
    953 		_p0 = unsafe.Pointer(&buf[0])
    954 	} else {
    955 		_p0 = unsafe.Pointer(&_zero)
    956 	}
    957 	r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags))
    958 	n = int(r0)
    959 	if e1 != 0 {
    960 		err = errnoErr(e1)
    961 	}
    962 	return
    963 }
    964 
    965 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    966 
    967 func Getrusage(who int, rusage *Rusage) (err error) {
    968 	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
    969 	if e1 != 0 {
    970 		err = errnoErr(e1)
    971 	}
    972 	return
    973 }
    974 
    975 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    976 
    977 func Getsid(pid int) (sid int, err error) {
    978 	r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
    979 	sid = int(r0)
    980 	if e1 != 0 {
    981 		err = errnoErr(e1)
    982 	}
    983 	return
    984 }
    985 
    986 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    987 
    988 func Gettid() (tid int) {
    989 	r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
    990 	tid = int(r0)
    991 	return
    992 }
    993 
    994 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    995 
    996 func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
    997 	var _p0 *byte
    998 	_p0, err = BytePtrFromString(path)
    999 	if err != nil {
   1000 		return
   1001 	}
   1002 	var _p1 *byte
   1003 	_p1, err = BytePtrFromString(attr)
   1004 	if err != nil {
   1005 		return
   1006 	}
   1007 	var _p2 unsafe.Pointer
   1008 	if len(dest) > 0 {
   1009 		_p2 = unsafe.Pointer(&dest[0])
   1010 	} else {
   1011 		_p2 = unsafe.Pointer(&_zero)
   1012 	}
   1013 	r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
   1014 	sz = int(r0)
   1015 	if e1 != 0 {
   1016 		err = errnoErr(e1)
   1017 	}
   1018 	return
   1019 }
   1020 
   1021 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1022 
   1023 func InitModule(moduleImage []byte, params string) (err error) {
   1024 	var _p0 unsafe.Pointer
   1025 	if len(moduleImage) > 0 {
   1026 		_p0 = unsafe.Pointer(&moduleImage[0])
   1027 	} else {
   1028 		_p0 = unsafe.Pointer(&_zero)
   1029 	}
   1030 	var _p1 *byte
   1031 	_p1, err = BytePtrFromString(params)
   1032 	if err != nil {
   1033 		return
   1034 	}
   1035 	_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
   1036 	if e1 != 0 {
   1037 		err = errnoErr(e1)
   1038 	}
   1039 	return
   1040 }
   1041 
   1042 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1043 
   1044 func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
   1045 	var _p0 *byte
   1046 	_p0, err = BytePtrFromString(pathname)
   1047 	if err != nil {
   1048 		return
   1049 	}
   1050 	r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
   1051 	watchdesc = int(r0)
   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 InotifyInit1(flags int) (fd int, err error) {
   1061 	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
   1062 	fd = int(r0)
   1063 	if e1 != 0 {
   1064 		err = errnoErr(e1)
   1065 	}
   1066 	return
   1067 }
   1068 
   1069 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1070 
   1071 func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
   1072 	r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
   1073 	success = int(r0)
   1074 	if e1 != 0 {
   1075 		err = errnoErr(e1)
   1076 	}
   1077 	return
   1078 }
   1079 
   1080 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1081 
   1082 func Kill(pid int, sig syscall.Signal) (err error) {
   1083 	_, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
   1084 	if e1 != 0 {
   1085 		err = errnoErr(e1)
   1086 	}
   1087 	return
   1088 }
   1089 
   1090 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1091 
   1092 func Klogctl(typ int, buf []byte) (n int, err error) {
   1093 	var _p0 unsafe.Pointer
   1094 	if len(buf) > 0 {
   1095 		_p0 = unsafe.Pointer(&buf[0])
   1096 	} else {
   1097 		_p0 = unsafe.Pointer(&_zero)
   1098 	}
   1099 	r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
   1100 	n = int(r0)
   1101 	if e1 != 0 {
   1102 		err = errnoErr(e1)
   1103 	}
   1104 	return
   1105 }
   1106 
   1107 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1108 
   1109 func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
   1110 	var _p0 *byte
   1111 	_p0, err = BytePtrFromString(path)
   1112 	if err != nil {
   1113 		return
   1114 	}
   1115 	var _p1 *byte
   1116 	_p1, err = BytePtrFromString(attr)
   1117 	if err != nil {
   1118 		return
   1119 	}
   1120 	var _p2 unsafe.Pointer
   1121 	if len(dest) > 0 {
   1122 		_p2 = unsafe.Pointer(&dest[0])
   1123 	} else {
   1124 		_p2 = unsafe.Pointer(&_zero)
   1125 	}
   1126 	r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
   1127 	sz = int(r0)
   1128 	if e1 != 0 {
   1129 		err = errnoErr(e1)
   1130 	}
   1131 	return
   1132 }
   1133 
   1134 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1135 
   1136 func Listxattr(path string, dest []byte) (sz int, err error) {
   1137 	var _p0 *byte
   1138 	_p0, err = BytePtrFromString(path)
   1139 	if err != nil {
   1140 		return
   1141 	}
   1142 	var _p1 unsafe.Pointer
   1143 	if len(dest) > 0 {
   1144 		_p1 = unsafe.Pointer(&dest[0])
   1145 	} else {
   1146 		_p1 = unsafe.Pointer(&_zero)
   1147 	}
   1148 	r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
   1149 	sz = int(r0)
   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 Llistxattr(path string, dest []byte) (sz int, err error) {
   1159 	var _p0 *byte
   1160 	_p0, err = BytePtrFromString(path)
   1161 	if err != nil {
   1162 		return
   1163 	}
   1164 	var _p1 unsafe.Pointer
   1165 	if len(dest) > 0 {
   1166 		_p1 = unsafe.Pointer(&dest[0])
   1167 	} else {
   1168 		_p1 = unsafe.Pointer(&_zero)
   1169 	}
   1170 	r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
   1171 	sz = int(r0)
   1172 	if e1 != 0 {
   1173 		err = errnoErr(e1)
   1174 	}
   1175 	return
   1176 }
   1177 
   1178 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1179 
   1180 func Lremovexattr(path string, attr string) (err error) {
   1181 	var _p0 *byte
   1182 	_p0, err = BytePtrFromString(path)
   1183 	if err != nil {
   1184 		return
   1185 	}
   1186 	var _p1 *byte
   1187 	_p1, err = BytePtrFromString(attr)
   1188 	if err != nil {
   1189 		return
   1190 	}
   1191 	_, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   1192 	if e1 != 0 {
   1193 		err = errnoErr(e1)
   1194 	}
   1195 	return
   1196 }
   1197 
   1198 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1199 
   1200 func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
   1201 	var _p0 *byte
   1202 	_p0, err = BytePtrFromString(path)
   1203 	if err != nil {
   1204 		return
   1205 	}
   1206 	var _p1 *byte
   1207 	_p1, err = BytePtrFromString(attr)
   1208 	if err != nil {
   1209 		return
   1210 	}
   1211 	var _p2 unsafe.Pointer
   1212 	if len(data) > 0 {
   1213 		_p2 = unsafe.Pointer(&data[0])
   1214 	} else {
   1215 		_p2 = unsafe.Pointer(&_zero)
   1216 	}
   1217 	_, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
   1218 	if e1 != 0 {
   1219 		err = errnoErr(e1)
   1220 	}
   1221 	return
   1222 }
   1223 
   1224 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1225 
   1226 func MemfdCreate(name string, flags int) (fd int, err error) {
   1227 	var _p0 *byte
   1228 	_p0, err = BytePtrFromString(name)
   1229 	if err != nil {
   1230 		return
   1231 	}
   1232 	r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   1233 	fd = int(r0)
   1234 	if e1 != 0 {
   1235 		err = errnoErr(e1)
   1236 	}
   1237 	return
   1238 }
   1239 
   1240 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1241 
   1242 func Mkdirat(dirfd int, path string, mode uint32) (err error) {
   1243 	var _p0 *byte
   1244 	_p0, err = BytePtrFromString(path)
   1245 	if err != nil {
   1246 		return
   1247 	}
   1248 	_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
   1249 	if e1 != 0 {
   1250 		err = errnoErr(e1)
   1251 	}
   1252 	return
   1253 }
   1254 
   1255 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1256 
   1257 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
   1258 	var _p0 *byte
   1259 	_p0, err = BytePtrFromString(path)
   1260 	if err != nil {
   1261 		return
   1262 	}
   1263 	_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
   1264 	if e1 != 0 {
   1265 		err = errnoErr(e1)
   1266 	}
   1267 	return
   1268 }
   1269 
   1270 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1271 
   1272 func MoveMount(fromDirfd int, fromPathName string, toDirfd int, toPathName string, flags int) (err error) {
   1273 	var _p0 *byte
   1274 	_p0, err = BytePtrFromString(fromPathName)
   1275 	if err != nil {
   1276 		return
   1277 	}
   1278 	var _p1 *byte
   1279 	_p1, err = BytePtrFromString(toPathName)
   1280 	if err != nil {
   1281 		return
   1282 	}
   1283 	_, _, e1 := Syscall6(SYS_MOVE_MOUNT, uintptr(fromDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(toDirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
   1284 	if e1 != 0 {
   1285 		err = errnoErr(e1)
   1286 	}
   1287 	return
   1288 }
   1289 
   1290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1291 
   1292 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
   1293 	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
   1294 	if e1 != 0 {
   1295 		err = errnoErr(e1)
   1296 	}
   1297 	return
   1298 }
   1299 
   1300 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1301 
   1302 func OpenTree(dfd int, fileName string, flags uint) (r int, err error) {
   1303 	var _p0 *byte
   1304 	_p0, err = BytePtrFromString(fileName)
   1305 	if err != nil {
   1306 		return
   1307 	}
   1308 	r0, _, e1 := Syscall(SYS_OPEN_TREE, uintptr(dfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
   1309 	r = int(r0)
   1310 	if e1 != 0 {
   1311 		err = errnoErr(e1)
   1312 	}
   1313 	return
   1314 }
   1315 
   1316 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1317 
   1318 func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
   1319 	r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
   1320 	fd = int(r0)
   1321 	if e1 != 0 {
   1322 		err = errnoErr(e1)
   1323 	}
   1324 	return
   1325 }
   1326 
   1327 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1328 
   1329 func PivotRoot(newroot string, putold string) (err error) {
   1330 	var _p0 *byte
   1331 	_p0, err = BytePtrFromString(newroot)
   1332 	if err != nil {
   1333 		return
   1334 	}
   1335 	var _p1 *byte
   1336 	_p1, err = BytePtrFromString(putold)
   1337 	if err != nil {
   1338 		return
   1339 	}
   1340 	_, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   1341 	if e1 != 0 {
   1342 		err = errnoErr(e1)
   1343 	}
   1344 	return
   1345 }
   1346 
   1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1348 
   1349 func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
   1350 	_, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
   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 Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
   1360 	r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
   1361 	n = int(r0)
   1362 	if e1 != 0 {
   1363 		err = errnoErr(e1)
   1364 	}
   1365 	return
   1366 }
   1367 
   1368 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1369 
   1370 func read(fd int, p []byte) (n int, err error) {
   1371 	var _p0 unsafe.Pointer
   1372 	if len(p) > 0 {
   1373 		_p0 = unsafe.Pointer(&p[0])
   1374 	} else {
   1375 		_p0 = unsafe.Pointer(&_zero)
   1376 	}
   1377 	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
   1378 	n = int(r0)
   1379 	if e1 != 0 {
   1380 		err = errnoErr(e1)
   1381 	}
   1382 	return
   1383 }
   1384 
   1385 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1386 
   1387 func Removexattr(path string, attr string) (err error) {
   1388 	var _p0 *byte
   1389 	_p0, err = BytePtrFromString(path)
   1390 	if err != nil {
   1391 		return
   1392 	}
   1393 	var _p1 *byte
   1394 	_p1, err = BytePtrFromString(attr)
   1395 	if err != nil {
   1396 		return
   1397 	}
   1398 	_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   1399 	if e1 != 0 {
   1400 		err = errnoErr(e1)
   1401 	}
   1402 	return
   1403 }
   1404 
   1405 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1406 
   1407 func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
   1408 	var _p0 *byte
   1409 	_p0, err = BytePtrFromString(oldpath)
   1410 	if err != nil {
   1411 		return
   1412 	}
   1413 	var _p1 *byte
   1414 	_p1, err = BytePtrFromString(newpath)
   1415 	if err != nil {
   1416 		return
   1417 	}
   1418 	_, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
   1419 	if e1 != 0 {
   1420 		err = errnoErr(e1)
   1421 	}
   1422 	return
   1423 }
   1424 
   1425 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1426 
   1427 func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
   1428 	var _p0 *byte
   1429 	_p0, err = BytePtrFromString(keyType)
   1430 	if err != nil {
   1431 		return
   1432 	}
   1433 	var _p1 *byte
   1434 	_p1, err = BytePtrFromString(description)
   1435 	if err != nil {
   1436 		return
   1437 	}
   1438 	var _p2 *byte
   1439 	_p2, err = BytePtrFromString(callback)
   1440 	if err != nil {
   1441 		return
   1442 	}
   1443 	r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
   1444 	id = int(r0)
   1445 	if e1 != 0 {
   1446 		err = errnoErr(e1)
   1447 	}
   1448 	return
   1449 }
   1450 
   1451 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1452 
   1453 func Setdomainname(p []byte) (err error) {
   1454 	var _p0 unsafe.Pointer
   1455 	if len(p) > 0 {
   1456 		_p0 = unsafe.Pointer(&p[0])
   1457 	} else {
   1458 		_p0 = unsafe.Pointer(&_zero)
   1459 	}
   1460 	_, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
   1461 	if e1 != 0 {
   1462 		err = errnoErr(e1)
   1463 	}
   1464 	return
   1465 }
   1466 
   1467 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1468 
   1469 func Sethostname(p []byte) (err error) {
   1470 	var _p0 unsafe.Pointer
   1471 	if len(p) > 0 {
   1472 		_p0 = unsafe.Pointer(&p[0])
   1473 	} else {
   1474 		_p0 = unsafe.Pointer(&_zero)
   1475 	}
   1476 	_, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
   1477 	if e1 != 0 {
   1478 		err = errnoErr(e1)
   1479 	}
   1480 	return
   1481 }
   1482 
   1483 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1484 
   1485 func Setpgid(pid int, pgid int) (err error) {
   1486 	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
   1487 	if e1 != 0 {
   1488 		err = errnoErr(e1)
   1489 	}
   1490 	return
   1491 }
   1492 
   1493 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1494 
   1495 func Setsid() (pid int, err error) {
   1496 	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
   1497 	pid = int(r0)
   1498 	if e1 != 0 {
   1499 		err = errnoErr(e1)
   1500 	}
   1501 	return
   1502 }
   1503 
   1504 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1505 
   1506 func Settimeofday(tv *Timeval) (err error) {
   1507 	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
   1508 	if e1 != 0 {
   1509 		err = errnoErr(e1)
   1510 	}
   1511 	return
   1512 }
   1513 
   1514 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1515 
   1516 func Setns(fd int, nstype int) (err error) {
   1517 	_, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0)
   1518 	if e1 != 0 {
   1519 		err = errnoErr(e1)
   1520 	}
   1521 	return
   1522 }
   1523 
   1524 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1525 
   1526 func Setpriority(which int, who int, prio int) (err error) {
   1527 	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
   1528 	if e1 != 0 {
   1529 		err = errnoErr(e1)
   1530 	}
   1531 	return
   1532 }
   1533 
   1534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1535 
   1536 func Setxattr(path string, attr string, data []byte, flags int) (err error) {
   1537 	var _p0 *byte
   1538 	_p0, err = BytePtrFromString(path)
   1539 	if err != nil {
   1540 		return
   1541 	}
   1542 	var _p1 *byte
   1543 	_p1, err = BytePtrFromString(attr)
   1544 	if err != nil {
   1545 		return
   1546 	}
   1547 	var _p2 unsafe.Pointer
   1548 	if len(data) > 0 {
   1549 		_p2 = unsafe.Pointer(&data[0])
   1550 	} else {
   1551 		_p2 = unsafe.Pointer(&_zero)
   1552 	}
   1553 	_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
   1554 	if e1 != 0 {
   1555 		err = errnoErr(e1)
   1556 	}
   1557 	return
   1558 }
   1559 
   1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1561 
   1562 func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
   1563 	r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
   1564 	newfd = int(r0)
   1565 	if e1 != 0 {
   1566 		err = errnoErr(e1)
   1567 	}
   1568 	return
   1569 }
   1570 
   1571 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1572 
   1573 func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
   1574 	var _p0 *byte
   1575 	_p0, err = BytePtrFromString(path)
   1576 	if err != nil {
   1577 		return
   1578 	}
   1579 	_, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 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 Sync() {
   1589 	SyscallNoError(SYS_SYNC, 0, 0, 0)
   1590 	return
   1591 }
   1592 
   1593 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1594 
   1595 func Syncfs(fd int) (err error) {
   1596 	_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
   1597 	if e1 != 0 {
   1598 		err = errnoErr(e1)
   1599 	}
   1600 	return
   1601 }
   1602 
   1603 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1604 
   1605 func Sysinfo(info *Sysinfo_t) (err error) {
   1606 	_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
   1607 	if e1 != 0 {
   1608 		err = errnoErr(e1)
   1609 	}
   1610 	return
   1611 }
   1612 
   1613 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1614 
   1615 func TimerfdCreate(clockid int, flags int) (fd int, err error) {
   1616 	r0, _, e1 := RawSyscall(SYS_TIMERFD_CREATE, uintptr(clockid), uintptr(flags), 0)
   1617 	fd = int(r0)
   1618 	if e1 != 0 {
   1619 		err = errnoErr(e1)
   1620 	}
   1621 	return
   1622 }
   1623 
   1624 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1625 
   1626 func TimerfdGettime(fd int, currValue *ItimerSpec) (err error) {
   1627 	_, _, e1 := RawSyscall(SYS_TIMERFD_GETTIME, uintptr(fd), uintptr(unsafe.Pointer(currValue)), 0)
   1628 	if e1 != 0 {
   1629 		err = errnoErr(e1)
   1630 	}
   1631 	return
   1632 }
   1633 
   1634 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1635 
   1636 func TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) {
   1637 	_, _, e1 := RawSyscall6(SYS_TIMERFD_SETTIME, uintptr(fd), uintptr(flags), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)), 0, 0)
   1638 	if e1 != 0 {
   1639 		err = errnoErr(e1)
   1640 	}
   1641 	return
   1642 }
   1643 
   1644 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1645 
   1646 func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
   1647 	_, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
   1648 	if e1 != 0 {
   1649 		err = errnoErr(e1)
   1650 	}
   1651 	return
   1652 }
   1653 
   1654 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1655 
   1656 func Times(tms *Tms) (ticks uintptr, err error) {
   1657 	r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
   1658 	ticks = uintptr(r0)
   1659 	if e1 != 0 {
   1660 		err = errnoErr(e1)
   1661 	}
   1662 	return
   1663 }
   1664 
   1665 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1666 
   1667 func Umask(mask int) (oldmask int) {
   1668 	r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
   1669 	oldmask = int(r0)
   1670 	return
   1671 }
   1672 
   1673 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1674 
   1675 func Uname(buf *Utsname) (err error) {
   1676 	_, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
   1677 	if e1 != 0 {
   1678 		err = errnoErr(e1)
   1679 	}
   1680 	return
   1681 }
   1682 
   1683 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1684 
   1685 func Unmount(target string, flags int) (err error) {
   1686 	var _p0 *byte
   1687 	_p0, err = BytePtrFromString(target)
   1688 	if err != nil {
   1689 		return
   1690 	}
   1691 	_, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   1692 	if e1 != 0 {
   1693 		err = errnoErr(e1)
   1694 	}
   1695 	return
   1696 }
   1697 
   1698 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1699 
   1700 func Unshare(flags int) (err error) {
   1701 	_, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
   1702 	if e1 != 0 {
   1703 		err = errnoErr(e1)
   1704 	}
   1705 	return
   1706 }
   1707 
   1708 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1709 
   1710 func write(fd int, p []byte) (n int, err error) {
   1711 	var _p0 unsafe.Pointer
   1712 	if len(p) > 0 {
   1713 		_p0 = unsafe.Pointer(&p[0])
   1714 	} else {
   1715 		_p0 = unsafe.Pointer(&_zero)
   1716 	}
   1717 	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
   1718 	n = int(r0)
   1719 	if e1 != 0 {
   1720 		err = errnoErr(e1)
   1721 	}
   1722 	return
   1723 }
   1724 
   1725 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1726 
   1727 func exitThread(code int) (err error) {
   1728 	_, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
   1729 	if e1 != 0 {
   1730 		err = errnoErr(e1)
   1731 	}
   1732 	return
   1733 }
   1734 
   1735 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1736 
   1737 func readlen(fd int, p *byte, np int) (n int, err error) {
   1738 	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
   1739 	n = int(r0)
   1740 	if e1 != 0 {
   1741 		err = errnoErr(e1)
   1742 	}
   1743 	return
   1744 }
   1745 
   1746 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1747 
   1748 func writelen(fd int, p *byte, np int) (n int, err error) {
   1749 	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
   1750 	n = int(r0)
   1751 	if e1 != 0 {
   1752 		err = errnoErr(e1)
   1753 	}
   1754 	return
   1755 }
   1756 
   1757 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1758 
   1759 func readv(fd int, iovs []Iovec) (n int, err error) {
   1760 	var _p0 unsafe.Pointer
   1761 	if len(iovs) > 0 {
   1762 		_p0 = unsafe.Pointer(&iovs[0])
   1763 	} else {
   1764 		_p0 = unsafe.Pointer(&_zero)
   1765 	}
   1766 	r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
   1767 	n = int(r0)
   1768 	if e1 != 0 {
   1769 		err = errnoErr(e1)
   1770 	}
   1771 	return
   1772 }
   1773 
   1774 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1775 
   1776 func writev(fd int, iovs []Iovec) (n int, err error) {
   1777 	var _p0 unsafe.Pointer
   1778 	if len(iovs) > 0 {
   1779 		_p0 = unsafe.Pointer(&iovs[0])
   1780 	} else {
   1781 		_p0 = unsafe.Pointer(&_zero)
   1782 	}
   1783 	r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
   1784 	n = int(r0)
   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 preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
   1794 	var _p0 unsafe.Pointer
   1795 	if len(iovs) > 0 {
   1796 		_p0 = unsafe.Pointer(&iovs[0])
   1797 	} else {
   1798 		_p0 = unsafe.Pointer(&_zero)
   1799 	}
   1800 	r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
   1801 	n = int(r0)
   1802 	if e1 != 0 {
   1803 		err = errnoErr(e1)
   1804 	}
   1805 	return
   1806 }
   1807 
   1808 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1809 
   1810 func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
   1811 	var _p0 unsafe.Pointer
   1812 	if len(iovs) > 0 {
   1813 		_p0 = unsafe.Pointer(&iovs[0])
   1814 	} else {
   1815 		_p0 = unsafe.Pointer(&_zero)
   1816 	}
   1817 	r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
   1818 	n = int(r0)
   1819 	if e1 != 0 {
   1820 		err = errnoErr(e1)
   1821 	}
   1822 	return
   1823 }
   1824 
   1825 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1826 
   1827 func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
   1828 	var _p0 unsafe.Pointer
   1829 	if len(iovs) > 0 {
   1830 		_p0 = unsafe.Pointer(&iovs[0])
   1831 	} else {
   1832 		_p0 = unsafe.Pointer(&_zero)
   1833 	}
   1834 	r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
   1835 	n = int(r0)
   1836 	if e1 != 0 {
   1837 		err = errnoErr(e1)
   1838 	}
   1839 	return
   1840 }
   1841 
   1842 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1843 
   1844 func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
   1845 	var _p0 unsafe.Pointer
   1846 	if len(iovs) > 0 {
   1847 		_p0 = unsafe.Pointer(&iovs[0])
   1848 	} else {
   1849 		_p0 = unsafe.Pointer(&_zero)
   1850 	}
   1851 	r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
   1852 	n = int(r0)
   1853 	if e1 != 0 {
   1854 		err = errnoErr(e1)
   1855 	}
   1856 	return
   1857 }
   1858 
   1859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1860 
   1861 func munmap(addr uintptr, length uintptr) (err error) {
   1862 	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
   1863 	if e1 != 0 {
   1864 		err = errnoErr(e1)
   1865 	}
   1866 	return
   1867 }
   1868 
   1869 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1870 
   1871 func Madvise(b []byte, advice int) (err error) {
   1872 	var _p0 unsafe.Pointer
   1873 	if len(b) > 0 {
   1874 		_p0 = unsafe.Pointer(&b[0])
   1875 	} else {
   1876 		_p0 = unsafe.Pointer(&_zero)
   1877 	}
   1878 	_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
   1879 	if e1 != 0 {
   1880 		err = errnoErr(e1)
   1881 	}
   1882 	return
   1883 }
   1884 
   1885 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1886 
   1887 func Mprotect(b []byte, prot int) (err error) {
   1888 	var _p0 unsafe.Pointer
   1889 	if len(b) > 0 {
   1890 		_p0 = unsafe.Pointer(&b[0])
   1891 	} else {
   1892 		_p0 = unsafe.Pointer(&_zero)
   1893 	}
   1894 	_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
   1895 	if e1 != 0 {
   1896 		err = errnoErr(e1)
   1897 	}
   1898 	return
   1899 }
   1900 
   1901 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1902 
   1903 func Mlock(b []byte) (err error) {
   1904 	var _p0 unsafe.Pointer
   1905 	if len(b) > 0 {
   1906 		_p0 = unsafe.Pointer(&b[0])
   1907 	} else {
   1908 		_p0 = unsafe.Pointer(&_zero)
   1909 	}
   1910 	_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
   1911 	if e1 != 0 {
   1912 		err = errnoErr(e1)
   1913 	}
   1914 	return
   1915 }
   1916 
   1917 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1918 
   1919 func Mlockall(flags int) (err error) {
   1920 	_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
   1921 	if e1 != 0 {
   1922 		err = errnoErr(e1)
   1923 	}
   1924 	return
   1925 }
   1926 
   1927 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1928 
   1929 func Msync(b []byte, flags int) (err error) {
   1930 	var _p0 unsafe.Pointer
   1931 	if len(b) > 0 {
   1932 		_p0 = unsafe.Pointer(&b[0])
   1933 	} else {
   1934 		_p0 = unsafe.Pointer(&_zero)
   1935 	}
   1936 	_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
   1937 	if e1 != 0 {
   1938 		err = errnoErr(e1)
   1939 	}
   1940 	return
   1941 }
   1942 
   1943 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1944 
   1945 func Munlock(b []byte) (err error) {
   1946 	var _p0 unsafe.Pointer
   1947 	if len(b) > 0 {
   1948 		_p0 = unsafe.Pointer(&b[0])
   1949 	} else {
   1950 		_p0 = unsafe.Pointer(&_zero)
   1951 	}
   1952 	_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
   1953 	if e1 != 0 {
   1954 		err = errnoErr(e1)
   1955 	}
   1956 	return
   1957 }
   1958 
   1959 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1960 
   1961 func Munlockall() (err error) {
   1962 	_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
   1963 	if e1 != 0 {
   1964 		err = errnoErr(e1)
   1965 	}
   1966 	return
   1967 }
   1968 
   1969 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1970 
   1971 func faccessat(dirfd int, path string, mode uint32) (err error) {
   1972 	var _p0 *byte
   1973 	_p0, err = BytePtrFromString(path)
   1974 	if err != nil {
   1975 		return
   1976 	}
   1977 	_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
   1978 	if e1 != 0 {
   1979 		err = errnoErr(e1)
   1980 	}
   1981 	return
   1982 }
   1983 
   1984 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   1985 
   1986 func Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) {
   1987 	var _p0 *byte
   1988 	_p0, err = BytePtrFromString(path)
   1989 	if err != nil {
   1990 		return
   1991 	}
   1992 	_, _, e1 := Syscall6(SYS_FACCESSAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   1993 	if e1 != 0 {
   1994 		err = errnoErr(e1)
   1995 	}
   1996 	return
   1997 }
   1998 
   1999 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2000 
   2001 func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
   2002 	var _p0 *byte
   2003 	_p0, err = BytePtrFromString(pathname)
   2004 	if err != nil {
   2005 		return
   2006 	}
   2007 	_, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0)
   2008 	if e1 != 0 {
   2009 		err = errnoErr(e1)
   2010 	}
   2011 	return
   2012 }
   2013 
   2014 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2015 
   2016 func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) {
   2017 	r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags))
   2018 	fd = int(r0)
   2019 	if e1 != 0 {
   2020 		err = errnoErr(e1)
   2021 	}
   2022 	return
   2023 }
   2024 
   2025 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2026 
   2027 func ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
   2028 	var _p0 unsafe.Pointer
   2029 	if len(localIov) > 0 {
   2030 		_p0 = unsafe.Pointer(&localIov[0])
   2031 	} else {
   2032 		_p0 = unsafe.Pointer(&_zero)
   2033 	}
   2034 	var _p1 unsafe.Pointer
   2035 	if len(remoteIov) > 0 {
   2036 		_p1 = unsafe.Pointer(&remoteIov[0])
   2037 	} else {
   2038 		_p1 = unsafe.Pointer(&_zero)
   2039 	}
   2040 	r0, _, e1 := Syscall6(SYS_PROCESS_VM_READV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
   2041 	n = int(r0)
   2042 	if e1 != 0 {
   2043 		err = errnoErr(e1)
   2044 	}
   2045 	return
   2046 }
   2047 
   2048 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2049 
   2050 func ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
   2051 	var _p0 unsafe.Pointer
   2052 	if len(localIov) > 0 {
   2053 		_p0 = unsafe.Pointer(&localIov[0])
   2054 	} else {
   2055 		_p0 = unsafe.Pointer(&_zero)
   2056 	}
   2057 	var _p1 unsafe.Pointer
   2058 	if len(remoteIov) > 0 {
   2059 		_p1 = unsafe.Pointer(&remoteIov[0])
   2060 	} else {
   2061 		_p1 = unsafe.Pointer(&_zero)
   2062 	}
   2063 	r0, _, e1 := Syscall6(SYS_PROCESS_VM_WRITEV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
   2064 	n = int(r0)
   2065 	if e1 != 0 {
   2066 		err = errnoErr(e1)
   2067 	}
   2068 	return
   2069 }
   2070 
   2071 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2072 
   2073 func PidfdOpen(pid int, flags int) (fd int, err error) {
   2074 	r0, _, e1 := Syscall(SYS_PIDFD_OPEN, uintptr(pid), uintptr(flags), 0)
   2075 	fd = int(r0)
   2076 	if e1 != 0 {
   2077 		err = errnoErr(e1)
   2078 	}
   2079 	return
   2080 }
   2081 
   2082 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2083 
   2084 func PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) {
   2085 	r0, _, e1 := Syscall(SYS_PIDFD_GETFD, uintptr(pidfd), uintptr(targetfd), uintptr(flags))
   2086 	fd = int(r0)
   2087 	if e1 != 0 {
   2088 		err = errnoErr(e1)
   2089 	}
   2090 	return
   2091 }
   2092 
   2093 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2094 
   2095 func PidfdSendSignal(pidfd int, sig Signal, info *Siginfo, flags int) (err error) {
   2096 	_, _, e1 := Syscall6(SYS_PIDFD_SEND_SIGNAL, uintptr(pidfd), uintptr(sig), uintptr(unsafe.Pointer(info)), uintptr(flags), 0, 0)
   2097 	if e1 != 0 {
   2098 		err = errnoErr(e1)
   2099 	}
   2100 	return
   2101 }
   2102 
   2103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2104 
   2105 func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) {
   2106 	r0, _, e1 := Syscall(SYS_SHMAT, uintptr(id), uintptr(addr), uintptr(flag))
   2107 	ret = uintptr(r0)
   2108 	if e1 != 0 {
   2109 		err = errnoErr(e1)
   2110 	}
   2111 	return
   2112 }
   2113 
   2114 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2115 
   2116 func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) {
   2117 	r0, _, e1 := Syscall(SYS_SHMCTL, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf)))
   2118 	result = int(r0)
   2119 	if e1 != 0 {
   2120 		err = errnoErr(e1)
   2121 	}
   2122 	return
   2123 }
   2124 
   2125 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2126 
   2127 func shmdt(addr uintptr) (err error) {
   2128 	_, _, e1 := Syscall(SYS_SHMDT, uintptr(addr), 0, 0)
   2129 	if e1 != 0 {
   2130 		err = errnoErr(e1)
   2131 	}
   2132 	return
   2133 }
   2134 
   2135 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2136 
   2137 func shmget(key int, size int, flag int) (id int, err error) {
   2138 	r0, _, e1 := Syscall(SYS_SHMGET, uintptr(key), uintptr(size), uintptr(flag))
   2139 	id = int(r0)
   2140 	if e1 != 0 {
   2141 		err = errnoErr(e1)
   2142 	}
   2143 	return
   2144 }
   2145 
   2146 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2147 
   2148 func getitimer(which int, currValue *Itimerval) (err error) {
   2149 	_, _, e1 := Syscall(SYS_GETITIMER, uintptr(which), uintptr(unsafe.Pointer(currValue)), 0)
   2150 	if e1 != 0 {
   2151 		err = errnoErr(e1)
   2152 	}
   2153 	return
   2154 }
   2155 
   2156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2157 
   2158 func setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) {
   2159 	_, _, e1 := Syscall(SYS_SETITIMER, uintptr(which), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)))
   2160 	if e1 != 0 {
   2161 		err = errnoErr(e1)
   2162 	}
   2163 	return
   2164 }
   2165 
   2166 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2167 
   2168 func rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) {
   2169 	_, _, e1 := RawSyscall6(SYS_RT_SIGPROCMASK, uintptr(how), uintptr(unsafe.Pointer(set)), uintptr(unsafe.Pointer(oldset)), uintptr(sigsetsize), 0, 0)
   2170 	if e1 != 0 {
   2171 		err = errnoErr(e1)
   2172 	}
   2173 	return
   2174 }
   2175 
   2176 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2177 
   2178 func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
   2179 	RawSyscallNoError(SYS_GETRESUID, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
   2180 	return
   2181 }
   2182 
   2183 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   2184 
   2185 func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
   2186 	RawSyscallNoError(SYS_GETRESGID, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
   2187 	return
   2188 }