github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/vendor_skip/golang.org/x/sys/unix/zsyscall_linux.go (about)

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