github.com/giovannyortegon/go@v0.0.0-20220115155912-8890063f5bdd/src/pkg/mod/golang.org/x/sys@v0.0.0-20210927094055-39ccf1dd6fa6/unix/zsyscall_linux.go (about)

     1  // Code generated by mkmerge.go; 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 KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
   235  	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
   236  	ret = int(r0)
   237  	if e1 != 0 {
   238  		err = errnoErr(e1)
   239  	}
   240  	return
   241  }
   242  
   243  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   244  
   245  func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
   246  	var _p0 unsafe.Pointer
   247  	if len(buf) > 0 {
   248  		_p0 = unsafe.Pointer(&buf[0])
   249  	} else {
   250  		_p0 = unsafe.Pointer(&_zero)
   251  	}
   252  	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
   253  	ret = int(r0)
   254  	if e1 != 0 {
   255  		err = errnoErr(e1)
   256  	}
   257  	return
   258  }
   259  
   260  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   261  
   262  func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
   263  	var _p0 *byte
   264  	_p0, err = BytePtrFromString(arg2)
   265  	if err != nil {
   266  		return
   267  	}
   268  	r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
   269  	ret = int(r0)
   270  	if e1 != 0 {
   271  		err = errnoErr(e1)
   272  	}
   273  	return
   274  }
   275  
   276  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   277  
   278  func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
   279  	var _p0 *byte
   280  	_p0, err = BytePtrFromString(arg3)
   281  	if err != nil {
   282  		return
   283  	}
   284  	var _p1 *byte
   285  	_p1, err = BytePtrFromString(arg4)
   286  	if err != nil {
   287  		return
   288  	}
   289  	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
   290  	ret = int(r0)
   291  	if e1 != 0 {
   292  		err = errnoErr(e1)
   293  	}
   294  	return
   295  }
   296  
   297  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   298  
   299  func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
   300  	var _p0 unsafe.Pointer
   301  	if len(payload) > 0 {
   302  		_p0 = unsafe.Pointer(&payload[0])
   303  	} else {
   304  		_p0 = unsafe.Pointer(&_zero)
   305  	}
   306  	_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
   307  	if e1 != 0 {
   308  		err = errnoErr(e1)
   309  	}
   310  	return
   311  }
   312  
   313  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   314  
   315  func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
   316  	var _p0 unsafe.Pointer
   317  	if len(buf) > 0 {
   318  		_p0 = unsafe.Pointer(&buf[0])
   319  	} else {
   320  		_p0 = unsafe.Pointer(&_zero)
   321  	}
   322  	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
   323  	ret = int(r0)
   324  	if e1 != 0 {
   325  		err = errnoErr(e1)
   326  	}
   327  	return
   328  }
   329  
   330  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   331  
   332  func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
   333  	var _p0 *byte
   334  	_p0, err = BytePtrFromString(keyType)
   335  	if err != nil {
   336  		return
   337  	}
   338  	var _p1 *byte
   339  	_p1, err = BytePtrFromString(restriction)
   340  	if err != nil {
   341  		return
   342  	}
   343  	_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
   344  	if e1 != 0 {
   345  		err = errnoErr(e1)
   346  	}
   347  	return
   348  }
   349  
   350  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   351  
   352  func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
   353  	_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 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 ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
   363  	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 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 reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
   373  	var _p0 *byte
   374  	_p0, err = BytePtrFromString(arg)
   375  	if err != nil {
   376  		return
   377  	}
   378  	_, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
   379  	if e1 != 0 {
   380  		err = errnoErr(e1)
   381  	}
   382  	return
   383  }
   384  
   385  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   386  
   387  func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
   388  	var _p0 *byte
   389  	_p0, err = BytePtrFromString(source)
   390  	if err != nil {
   391  		return
   392  	}
   393  	var _p1 *byte
   394  	_p1, err = BytePtrFromString(target)
   395  	if err != nil {
   396  		return
   397  	}
   398  	var _p2 *byte
   399  	_p2, err = BytePtrFromString(fstype)
   400  	if err != nil {
   401  		return
   402  	}
   403  	_, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
   404  	if e1 != 0 {
   405  		err = errnoErr(e1)
   406  	}
   407  	return
   408  }
   409  
   410  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   411  
   412  func Acct(path string) (err error) {
   413  	var _p0 *byte
   414  	_p0, err = BytePtrFromString(path)
   415  	if err != nil {
   416  		return
   417  	}
   418  	_, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   419  	if e1 != 0 {
   420  		err = errnoErr(e1)
   421  	}
   422  	return
   423  }
   424  
   425  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   426  
   427  func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
   428  	var _p0 *byte
   429  	_p0, err = BytePtrFromString(keyType)
   430  	if err != nil {
   431  		return
   432  	}
   433  	var _p1 *byte
   434  	_p1, err = BytePtrFromString(description)
   435  	if err != nil {
   436  		return
   437  	}
   438  	var _p2 unsafe.Pointer
   439  	if len(payload) > 0 {
   440  		_p2 = unsafe.Pointer(&payload[0])
   441  	} else {
   442  		_p2 = unsafe.Pointer(&_zero)
   443  	}
   444  	r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
   445  	id = int(r0)
   446  	if e1 != 0 {
   447  		err = errnoErr(e1)
   448  	}
   449  	return
   450  }
   451  
   452  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   453  
   454  func Adjtimex(buf *Timex) (state int, err error) {
   455  	r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
   456  	state = int(r0)
   457  	if e1 != 0 {
   458  		err = errnoErr(e1)
   459  	}
   460  	return
   461  }
   462  
   463  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   464  
   465  func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
   466  	_, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
   467  	if e1 != 0 {
   468  		err = errnoErr(e1)
   469  	}
   470  	return
   471  }
   472  
   473  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   474  
   475  func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
   476  	_, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
   477  	if e1 != 0 {
   478  		err = errnoErr(e1)
   479  	}
   480  	return
   481  }
   482  
   483  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   484  
   485  func Chdir(path string) (err error) {
   486  	var _p0 *byte
   487  	_p0, err = BytePtrFromString(path)
   488  	if err != nil {
   489  		return
   490  	}
   491  	_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
   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 Chroot(path string) (err error) {
   501  	var _p0 *byte
   502  	_p0, err = BytePtrFromString(path)
   503  	if err != nil {
   504  		return
   505  	}
   506  	_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   507  	if e1 != 0 {
   508  		err = errnoErr(e1)
   509  	}
   510  	return
   511  }
   512  
   513  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   514  
   515  func ClockGetres(clockid int32, res *Timespec) (err error) {
   516  	_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
   517  	if e1 != 0 {
   518  		err = errnoErr(e1)
   519  	}
   520  	return
   521  }
   522  
   523  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   524  
   525  func ClockGettime(clockid int32, time *Timespec) (err error) {
   526  	_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 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 ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) {
   536  	_, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0)
   537  	if e1 != 0 {
   538  		err = errnoErr(e1)
   539  	}
   540  	return
   541  }
   542  
   543  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   544  
   545  func Close(fd int) (err error) {
   546  	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
   547  	if e1 != 0 {
   548  		err = errnoErr(e1)
   549  	}
   550  	return
   551  }
   552  
   553  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   554  
   555  func CloseRange(first uint, last uint, flags uint) (err error) {
   556  	_, _, e1 := Syscall(SYS_CLOSE_RANGE, uintptr(first), uintptr(last), uintptr(flags))
   557  	if e1 != 0 {
   558  		err = errnoErr(e1)
   559  	}
   560  	return
   561  }
   562  
   563  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   564  
   565  func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
   566  	r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
   567  	n = int(r0)
   568  	if e1 != 0 {
   569  		err = errnoErr(e1)
   570  	}
   571  	return
   572  }
   573  
   574  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   575  
   576  func DeleteModule(name string, flags int) (err error) {
   577  	var _p0 *byte
   578  	_p0, err = BytePtrFromString(name)
   579  	if err != nil {
   580  		return
   581  	}
   582  	_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 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 Dup(oldfd int) (fd int, err error) {
   592  	r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
   593  	fd = int(r0)
   594  	if e1 != 0 {
   595  		err = errnoErr(e1)
   596  	}
   597  	return
   598  }
   599  
   600  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   601  
   602  func Dup3(oldfd int, newfd int, flags int) (err error) {
   603  	_, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
   604  	if e1 != 0 {
   605  		err = errnoErr(e1)
   606  	}
   607  	return
   608  }
   609  
   610  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   611  
   612  func EpollCreate1(flag int) (fd int, err error) {
   613  	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
   614  	fd = int(r0)
   615  	if e1 != 0 {
   616  		err = errnoErr(e1)
   617  	}
   618  	return
   619  }
   620  
   621  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   622  
   623  func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
   624  	_, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
   625  	if e1 != 0 {
   626  		err = errnoErr(e1)
   627  	}
   628  	return
   629  }
   630  
   631  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   632  
   633  func Eventfd(initval uint, flags int) (fd int, err error) {
   634  	r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
   635  	fd = int(r0)
   636  	if e1 != 0 {
   637  		err = errnoErr(e1)
   638  	}
   639  	return
   640  }
   641  
   642  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   643  
   644  func Exit(code int) {
   645  	SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
   646  	return
   647  }
   648  
   649  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   650  
   651  func Fchdir(fd int) (err error) {
   652  	_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
   653  	if e1 != 0 {
   654  		err = errnoErr(e1)
   655  	}
   656  	return
   657  }
   658  
   659  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   660  
   661  func Fchmod(fd int, mode uint32) (err error) {
   662  	_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
   663  	if e1 != 0 {
   664  		err = errnoErr(e1)
   665  	}
   666  	return
   667  }
   668  
   669  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   670  
   671  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   672  	var _p0 *byte
   673  	_p0, err = BytePtrFromString(path)
   674  	if err != nil {
   675  		return
   676  	}
   677  	_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   678  	if e1 != 0 {
   679  		err = errnoErr(e1)
   680  	}
   681  	return
   682  }
   683  
   684  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   685  
   686  func Fdatasync(fd int) (err error) {
   687  	_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
   688  	if e1 != 0 {
   689  		err = errnoErr(e1)
   690  	}
   691  	return
   692  }
   693  
   694  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   695  
   696  func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
   697  	var _p0 *byte
   698  	_p0, err = BytePtrFromString(attr)
   699  	if err != nil {
   700  		return
   701  	}
   702  	var _p1 unsafe.Pointer
   703  	if len(dest) > 0 {
   704  		_p1 = unsafe.Pointer(&dest[0])
   705  	} else {
   706  		_p1 = unsafe.Pointer(&_zero)
   707  	}
   708  	r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
   709  	sz = int(r0)
   710  	if e1 != 0 {
   711  		err = errnoErr(e1)
   712  	}
   713  	return
   714  }
   715  
   716  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   717  
   718  func FinitModule(fd int, params string, flags int) (err error) {
   719  	var _p0 *byte
   720  	_p0, err = BytePtrFromString(params)
   721  	if err != nil {
   722  		return
   723  	}
   724  	_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
   725  	if e1 != 0 {
   726  		err = errnoErr(e1)
   727  	}
   728  	return
   729  }
   730  
   731  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   732  
   733  func Flistxattr(fd int, dest []byte) (sz int, err error) {
   734  	var _p0 unsafe.Pointer
   735  	if len(dest) > 0 {
   736  		_p0 = unsafe.Pointer(&dest[0])
   737  	} else {
   738  		_p0 = unsafe.Pointer(&_zero)
   739  	}
   740  	r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
   741  	sz = int(r0)
   742  	if e1 != 0 {
   743  		err = errnoErr(e1)
   744  	}
   745  	return
   746  }
   747  
   748  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   749  
   750  func Flock(fd int, how int) (err error) {
   751  	_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
   752  	if e1 != 0 {
   753  		err = errnoErr(e1)
   754  	}
   755  	return
   756  }
   757  
   758  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   759  
   760  func Fremovexattr(fd int, attr string) (err error) {
   761  	var _p0 *byte
   762  	_p0, err = BytePtrFromString(attr)
   763  	if err != nil {
   764  		return
   765  	}
   766  	_, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
   767  	if e1 != 0 {
   768  		err = errnoErr(e1)
   769  	}
   770  	return
   771  }
   772  
   773  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   774  
   775  func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
   776  	var _p0 *byte
   777  	_p0, err = BytePtrFromString(attr)
   778  	if err != nil {
   779  		return
   780  	}
   781  	var _p1 unsafe.Pointer
   782  	if len(dest) > 0 {
   783  		_p1 = unsafe.Pointer(&dest[0])
   784  	} else {
   785  		_p1 = unsafe.Pointer(&_zero)
   786  	}
   787  	_, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
   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 Fsync(fd int) (err error) {
   797  	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 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 Getdents(fd int, buf []byte) (n int, err error) {
   807  	var _p0 unsafe.Pointer
   808  	if len(buf) > 0 {
   809  		_p0 = unsafe.Pointer(&buf[0])
   810  	} else {
   811  		_p0 = unsafe.Pointer(&_zero)
   812  	}
   813  	r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   814  	n = int(r0)
   815  	if e1 != 0 {
   816  		err = errnoErr(e1)
   817  	}
   818  	return
   819  }
   820  
   821  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   822  
   823  func Getpgid(pid int) (pgid int, err error) {
   824  	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   825  	pgid = int(r0)
   826  	if e1 != 0 {
   827  		err = errnoErr(e1)
   828  	}
   829  	return
   830  }
   831  
   832  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   833  
   834  func Getpid() (pid int) {
   835  	r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
   836  	pid = int(r0)
   837  	return
   838  }
   839  
   840  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   841  
   842  func Getppid() (ppid int) {
   843  	r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
   844  	ppid = int(r0)
   845  	return
   846  }
   847  
   848  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   849  
   850  func Getpriority(which int, who int) (prio int, err error) {
   851  	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
   852  	prio = int(r0)
   853  	if e1 != 0 {
   854  		err = errnoErr(e1)
   855  	}
   856  	return
   857  }
   858  
   859  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   860  
   861  func Getrandom(buf []byte, flags int) (n int, err error) {
   862  	var _p0 unsafe.Pointer
   863  	if len(buf) > 0 {
   864  		_p0 = unsafe.Pointer(&buf[0])
   865  	} else {
   866  		_p0 = unsafe.Pointer(&_zero)
   867  	}
   868  	r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags))
   869  	n = int(r0)
   870  	if e1 != 0 {
   871  		err = errnoErr(e1)
   872  	}
   873  	return
   874  }
   875  
   876  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   877  
   878  func Getrusage(who int, rusage *Rusage) (err error) {
   879  	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
   880  	if e1 != 0 {
   881  		err = errnoErr(e1)
   882  	}
   883  	return
   884  }
   885  
   886  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   887  
   888  func Getsid(pid int) (sid int, err error) {
   889  	r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
   890  	sid = int(r0)
   891  	if e1 != 0 {
   892  		err = errnoErr(e1)
   893  	}
   894  	return
   895  }
   896  
   897  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   898  
   899  func Gettid() (tid int) {
   900  	r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
   901  	tid = int(r0)
   902  	return
   903  }
   904  
   905  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   906  
   907  func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
   908  	var _p0 *byte
   909  	_p0, err = BytePtrFromString(path)
   910  	if err != nil {
   911  		return
   912  	}
   913  	var _p1 *byte
   914  	_p1, err = BytePtrFromString(attr)
   915  	if err != nil {
   916  		return
   917  	}
   918  	var _p2 unsafe.Pointer
   919  	if len(dest) > 0 {
   920  		_p2 = unsafe.Pointer(&dest[0])
   921  	} else {
   922  		_p2 = unsafe.Pointer(&_zero)
   923  	}
   924  	r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
   925  	sz = int(r0)
   926  	if e1 != 0 {
   927  		err = errnoErr(e1)
   928  	}
   929  	return
   930  }
   931  
   932  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   933  
   934  func InitModule(moduleImage []byte, params string) (err error) {
   935  	var _p0 unsafe.Pointer
   936  	if len(moduleImage) > 0 {
   937  		_p0 = unsafe.Pointer(&moduleImage[0])
   938  	} else {
   939  		_p0 = unsafe.Pointer(&_zero)
   940  	}
   941  	var _p1 *byte
   942  	_p1, err = BytePtrFromString(params)
   943  	if err != nil {
   944  		return
   945  	}
   946  	_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
   947  	if e1 != 0 {
   948  		err = errnoErr(e1)
   949  	}
   950  	return
   951  }
   952  
   953  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   954  
   955  func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
   956  	var _p0 *byte
   957  	_p0, err = BytePtrFromString(pathname)
   958  	if err != nil {
   959  		return
   960  	}
   961  	r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
   962  	watchdesc = int(r0)
   963  	if e1 != 0 {
   964  		err = errnoErr(e1)
   965  	}
   966  	return
   967  }
   968  
   969  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   970  
   971  func InotifyInit1(flags int) (fd int, err error) {
   972  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
   973  	fd = int(r0)
   974  	if e1 != 0 {
   975  		err = errnoErr(e1)
   976  	}
   977  	return
   978  }
   979  
   980  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   981  
   982  func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
   983  	r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
   984  	success = int(r0)
   985  	if e1 != 0 {
   986  		err = errnoErr(e1)
   987  	}
   988  	return
   989  }
   990  
   991  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   992  
   993  func Kill(pid int, sig syscall.Signal) (err error) {
   994  	_, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
   995  	if e1 != 0 {
   996  		err = errnoErr(e1)
   997  	}
   998  	return
   999  }
  1000  
  1001  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1002  
  1003  func Klogctl(typ int, buf []byte) (n int, err error) {
  1004  	var _p0 unsafe.Pointer
  1005  	if len(buf) > 0 {
  1006  		_p0 = unsafe.Pointer(&buf[0])
  1007  	} else {
  1008  		_p0 = unsafe.Pointer(&_zero)
  1009  	}
  1010  	r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
  1011  	n = int(r0)
  1012  	if e1 != 0 {
  1013  		err = errnoErr(e1)
  1014  	}
  1015  	return
  1016  }
  1017  
  1018  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1019  
  1020  func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
  1021  	var _p0 *byte
  1022  	_p0, err = BytePtrFromString(path)
  1023  	if err != nil {
  1024  		return
  1025  	}
  1026  	var _p1 *byte
  1027  	_p1, err = BytePtrFromString(attr)
  1028  	if err != nil {
  1029  		return
  1030  	}
  1031  	var _p2 unsafe.Pointer
  1032  	if len(dest) > 0 {
  1033  		_p2 = unsafe.Pointer(&dest[0])
  1034  	} else {
  1035  		_p2 = unsafe.Pointer(&_zero)
  1036  	}
  1037  	r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
  1038  	sz = int(r0)
  1039  	if e1 != 0 {
  1040  		err = errnoErr(e1)
  1041  	}
  1042  	return
  1043  }
  1044  
  1045  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1046  
  1047  func Listxattr(path string, dest []byte) (sz int, err error) {
  1048  	var _p0 *byte
  1049  	_p0, err = BytePtrFromString(path)
  1050  	if err != nil {
  1051  		return
  1052  	}
  1053  	var _p1 unsafe.Pointer
  1054  	if len(dest) > 0 {
  1055  		_p1 = unsafe.Pointer(&dest[0])
  1056  	} else {
  1057  		_p1 = unsafe.Pointer(&_zero)
  1058  	}
  1059  	r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
  1060  	sz = int(r0)
  1061  	if e1 != 0 {
  1062  		err = errnoErr(e1)
  1063  	}
  1064  	return
  1065  }
  1066  
  1067  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1068  
  1069  func Llistxattr(path string, dest []byte) (sz int, err error) {
  1070  	var _p0 *byte
  1071  	_p0, err = BytePtrFromString(path)
  1072  	if err != nil {
  1073  		return
  1074  	}
  1075  	var _p1 unsafe.Pointer
  1076  	if len(dest) > 0 {
  1077  		_p1 = unsafe.Pointer(&dest[0])
  1078  	} else {
  1079  		_p1 = unsafe.Pointer(&_zero)
  1080  	}
  1081  	r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
  1082  	sz = int(r0)
  1083  	if e1 != 0 {
  1084  		err = errnoErr(e1)
  1085  	}
  1086  	return
  1087  }
  1088  
  1089  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1090  
  1091  func Lremovexattr(path string, attr string) (err error) {
  1092  	var _p0 *byte
  1093  	_p0, err = BytePtrFromString(path)
  1094  	if err != nil {
  1095  		return
  1096  	}
  1097  	var _p1 *byte
  1098  	_p1, err = BytePtrFromString(attr)
  1099  	if err != nil {
  1100  		return
  1101  	}
  1102  	_, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1103  	if e1 != 0 {
  1104  		err = errnoErr(e1)
  1105  	}
  1106  	return
  1107  }
  1108  
  1109  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1110  
  1111  func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
  1112  	var _p0 *byte
  1113  	_p0, err = BytePtrFromString(path)
  1114  	if err != nil {
  1115  		return
  1116  	}
  1117  	var _p1 *byte
  1118  	_p1, err = BytePtrFromString(attr)
  1119  	if err != nil {
  1120  		return
  1121  	}
  1122  	var _p2 unsafe.Pointer
  1123  	if len(data) > 0 {
  1124  		_p2 = unsafe.Pointer(&data[0])
  1125  	} else {
  1126  		_p2 = unsafe.Pointer(&_zero)
  1127  	}
  1128  	_, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  1129  	if e1 != 0 {
  1130  		err = errnoErr(e1)
  1131  	}
  1132  	return
  1133  }
  1134  
  1135  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1136  
  1137  func MemfdCreate(name string, flags int) (fd int, err error) {
  1138  	var _p0 *byte
  1139  	_p0, err = BytePtrFromString(name)
  1140  	if err != nil {
  1141  		return
  1142  	}
  1143  	r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1144  	fd = int(r0)
  1145  	if e1 != 0 {
  1146  		err = errnoErr(e1)
  1147  	}
  1148  	return
  1149  }
  1150  
  1151  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1152  
  1153  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1154  	var _p0 *byte
  1155  	_p0, err = BytePtrFromString(path)
  1156  	if err != nil {
  1157  		return
  1158  	}
  1159  	_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1160  	if e1 != 0 {
  1161  		err = errnoErr(e1)
  1162  	}
  1163  	return
  1164  }
  1165  
  1166  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1167  
  1168  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1169  	var _p0 *byte
  1170  	_p0, err = BytePtrFromString(path)
  1171  	if err != nil {
  1172  		return
  1173  	}
  1174  	_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1175  	if e1 != 0 {
  1176  		err = errnoErr(e1)
  1177  	}
  1178  	return
  1179  }
  1180  
  1181  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1182  
  1183  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1184  	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
  1185  	if e1 != 0 {
  1186  		err = errnoErr(e1)
  1187  	}
  1188  	return
  1189  }
  1190  
  1191  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1192  
  1193  func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
  1194  	r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
  1195  	fd = int(r0)
  1196  	if e1 != 0 {
  1197  		err = errnoErr(e1)
  1198  	}
  1199  	return
  1200  }
  1201  
  1202  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1203  
  1204  func PivotRoot(newroot string, putold string) (err error) {
  1205  	var _p0 *byte
  1206  	_p0, err = BytePtrFromString(newroot)
  1207  	if err != nil {
  1208  		return
  1209  	}
  1210  	var _p1 *byte
  1211  	_p1, err = BytePtrFromString(putold)
  1212  	if err != nil {
  1213  		return
  1214  	}
  1215  	_, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1216  	if e1 != 0 {
  1217  		err = errnoErr(e1)
  1218  	}
  1219  	return
  1220  }
  1221  
  1222  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1223  
  1224  func Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
  1225  	_, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
  1226  	if e1 != 0 {
  1227  		err = errnoErr(e1)
  1228  	}
  1229  	return
  1230  }
  1231  
  1232  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1233  
  1234  func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
  1235  	_, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
  1236  	if e1 != 0 {
  1237  		err = errnoErr(e1)
  1238  	}
  1239  	return
  1240  }
  1241  
  1242  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1243  
  1244  func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
  1245  	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)))
  1246  	n = int(r0)
  1247  	if e1 != 0 {
  1248  		err = errnoErr(e1)
  1249  	}
  1250  	return
  1251  }
  1252  
  1253  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1254  
  1255  func read(fd int, p []byte) (n int, err error) {
  1256  	var _p0 unsafe.Pointer
  1257  	if len(p) > 0 {
  1258  		_p0 = unsafe.Pointer(&p[0])
  1259  	} else {
  1260  		_p0 = unsafe.Pointer(&_zero)
  1261  	}
  1262  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1263  	n = int(r0)
  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 Removexattr(path string, attr string) (err error) {
  1273  	var _p0 *byte
  1274  	_p0, err = BytePtrFromString(path)
  1275  	if err != nil {
  1276  		return
  1277  	}
  1278  	var _p1 *byte
  1279  	_p1, err = BytePtrFromString(attr)
  1280  	if err != nil {
  1281  		return
  1282  	}
  1283  	_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 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 Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
  1293  	var _p0 *byte
  1294  	_p0, err = BytePtrFromString(oldpath)
  1295  	if err != nil {
  1296  		return
  1297  	}
  1298  	var _p1 *byte
  1299  	_p1, err = BytePtrFromString(newpath)
  1300  	if err != nil {
  1301  		return
  1302  	}
  1303  	_, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
  1304  	if e1 != 0 {
  1305  		err = errnoErr(e1)
  1306  	}
  1307  	return
  1308  }
  1309  
  1310  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1311  
  1312  func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
  1313  	var _p0 *byte
  1314  	_p0, err = BytePtrFromString(keyType)
  1315  	if err != nil {
  1316  		return
  1317  	}
  1318  	var _p1 *byte
  1319  	_p1, err = BytePtrFromString(description)
  1320  	if err != nil {
  1321  		return
  1322  	}
  1323  	var _p2 *byte
  1324  	_p2, err = BytePtrFromString(callback)
  1325  	if err != nil {
  1326  		return
  1327  	}
  1328  	r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
  1329  	id = int(r0)
  1330  	if e1 != 0 {
  1331  		err = errnoErr(e1)
  1332  	}
  1333  	return
  1334  }
  1335  
  1336  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1337  
  1338  func Setdomainname(p []byte) (err error) {
  1339  	var _p0 unsafe.Pointer
  1340  	if len(p) > 0 {
  1341  		_p0 = unsafe.Pointer(&p[0])
  1342  	} else {
  1343  		_p0 = unsafe.Pointer(&_zero)
  1344  	}
  1345  	_, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
  1346  	if e1 != 0 {
  1347  		err = errnoErr(e1)
  1348  	}
  1349  	return
  1350  }
  1351  
  1352  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1353  
  1354  func Sethostname(p []byte) (err error) {
  1355  	var _p0 unsafe.Pointer
  1356  	if len(p) > 0 {
  1357  		_p0 = unsafe.Pointer(&p[0])
  1358  	} else {
  1359  		_p0 = unsafe.Pointer(&_zero)
  1360  	}
  1361  	_, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
  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 Setpgid(pid int, pgid int) (err error) {
  1371  	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
  1372  	if e1 != 0 {
  1373  		err = errnoErr(e1)
  1374  	}
  1375  	return
  1376  }
  1377  
  1378  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1379  
  1380  func Setsid() (pid int, err error) {
  1381  	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
  1382  	pid = int(r0)
  1383  	if e1 != 0 {
  1384  		err = errnoErr(e1)
  1385  	}
  1386  	return
  1387  }
  1388  
  1389  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1390  
  1391  func Settimeofday(tv *Timeval) (err error) {
  1392  	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  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 Setns(fd int, nstype int) (err error) {
  1402  	_, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0)
  1403  	if e1 != 0 {
  1404  		err = errnoErr(e1)
  1405  	}
  1406  	return
  1407  }
  1408  
  1409  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1410  
  1411  func Setpriority(which int, who int, prio int) (err error) {
  1412  	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
  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 Setxattr(path string, attr string, data []byte, flags int) (err error) {
  1422  	var _p0 *byte
  1423  	_p0, err = BytePtrFromString(path)
  1424  	if err != nil {
  1425  		return
  1426  	}
  1427  	var _p1 *byte
  1428  	_p1, err = BytePtrFromString(attr)
  1429  	if err != nil {
  1430  		return
  1431  	}
  1432  	var _p2 unsafe.Pointer
  1433  	if len(data) > 0 {
  1434  		_p2 = unsafe.Pointer(&data[0])
  1435  	} else {
  1436  		_p2 = unsafe.Pointer(&_zero)
  1437  	}
  1438  	_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  1439  	if e1 != 0 {
  1440  		err = errnoErr(e1)
  1441  	}
  1442  	return
  1443  }
  1444  
  1445  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1446  
  1447  func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
  1448  	r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
  1449  	newfd = int(r0)
  1450  	if e1 != 0 {
  1451  		err = errnoErr(e1)
  1452  	}
  1453  	return
  1454  }
  1455  
  1456  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1457  
  1458  func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
  1459  	var _p0 *byte
  1460  	_p0, err = BytePtrFromString(path)
  1461  	if err != nil {
  1462  		return
  1463  	}
  1464  	_, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
  1465  	if e1 != 0 {
  1466  		err = errnoErr(e1)
  1467  	}
  1468  	return
  1469  }
  1470  
  1471  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1472  
  1473  func Sync() {
  1474  	SyscallNoError(SYS_SYNC, 0, 0, 0)
  1475  	return
  1476  }
  1477  
  1478  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1479  
  1480  func Syncfs(fd int) (err error) {
  1481  	_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
  1482  	if e1 != 0 {
  1483  		err = errnoErr(e1)
  1484  	}
  1485  	return
  1486  }
  1487  
  1488  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1489  
  1490  func Sysinfo(info *Sysinfo_t) (err error) {
  1491  	_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
  1492  	if e1 != 0 {
  1493  		err = errnoErr(e1)
  1494  	}
  1495  	return
  1496  }
  1497  
  1498  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1499  
  1500  func TimerfdCreate(clockid int, flags int) (fd int, err error) {
  1501  	r0, _, e1 := RawSyscall(SYS_TIMERFD_CREATE, uintptr(clockid), uintptr(flags), 0)
  1502  	fd = int(r0)
  1503  	if e1 != 0 {
  1504  		err = errnoErr(e1)
  1505  	}
  1506  	return
  1507  }
  1508  
  1509  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1510  
  1511  func TimerfdGettime(fd int, currValue *ItimerSpec) (err error) {
  1512  	_, _, e1 := RawSyscall(SYS_TIMERFD_GETTIME, uintptr(fd), uintptr(unsafe.Pointer(currValue)), 0)
  1513  	if e1 != 0 {
  1514  		err = errnoErr(e1)
  1515  	}
  1516  	return
  1517  }
  1518  
  1519  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1520  
  1521  func TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) {
  1522  	_, _, e1 := RawSyscall6(SYS_TIMERFD_SETTIME, uintptr(fd), uintptr(flags), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)), 0, 0)
  1523  	if e1 != 0 {
  1524  		err = errnoErr(e1)
  1525  	}
  1526  	return
  1527  }
  1528  
  1529  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1530  
  1531  func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
  1532  	_, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
  1533  	if e1 != 0 {
  1534  		err = errnoErr(e1)
  1535  	}
  1536  	return
  1537  }
  1538  
  1539  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1540  
  1541  func Times(tms *Tms) (ticks uintptr, err error) {
  1542  	r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
  1543  	ticks = uintptr(r0)
  1544  	if e1 != 0 {
  1545  		err = errnoErr(e1)
  1546  	}
  1547  	return
  1548  }
  1549  
  1550  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1551  
  1552  func Umask(mask int) (oldmask int) {
  1553  	r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
  1554  	oldmask = int(r0)
  1555  	return
  1556  }
  1557  
  1558  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1559  
  1560  func Uname(buf *Utsname) (err error) {
  1561  	_, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
  1562  	if e1 != 0 {
  1563  		err = errnoErr(e1)
  1564  	}
  1565  	return
  1566  }
  1567  
  1568  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1569  
  1570  func Unmount(target string, flags int) (err error) {
  1571  	var _p0 *byte
  1572  	_p0, err = BytePtrFromString(target)
  1573  	if err != nil {
  1574  		return
  1575  	}
  1576  	_, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1577  	if e1 != 0 {
  1578  		err = errnoErr(e1)
  1579  	}
  1580  	return
  1581  }
  1582  
  1583  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1584  
  1585  func Unshare(flags int) (err error) {
  1586  	_, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
  1587  	if e1 != 0 {
  1588  		err = errnoErr(e1)
  1589  	}
  1590  	return
  1591  }
  1592  
  1593  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1594  
  1595  func write(fd int, p []byte) (n int, err error) {
  1596  	var _p0 unsafe.Pointer
  1597  	if len(p) > 0 {
  1598  		_p0 = unsafe.Pointer(&p[0])
  1599  	} else {
  1600  		_p0 = unsafe.Pointer(&_zero)
  1601  	}
  1602  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1603  	n = int(r0)
  1604  	if e1 != 0 {
  1605  		err = errnoErr(e1)
  1606  	}
  1607  	return
  1608  }
  1609  
  1610  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1611  
  1612  func exitThread(code int) (err error) {
  1613  	_, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
  1614  	if e1 != 0 {
  1615  		err = errnoErr(e1)
  1616  	}
  1617  	return
  1618  }
  1619  
  1620  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1621  
  1622  func readlen(fd int, p *byte, np int) (n int, err error) {
  1623  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
  1624  	n = int(r0)
  1625  	if e1 != 0 {
  1626  		err = errnoErr(e1)
  1627  	}
  1628  	return
  1629  }
  1630  
  1631  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1632  
  1633  func writelen(fd int, p *byte, np int) (n int, err error) {
  1634  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
  1635  	n = int(r0)
  1636  	if e1 != 0 {
  1637  		err = errnoErr(e1)
  1638  	}
  1639  	return
  1640  }
  1641  
  1642  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1643  
  1644  func readv(fd int, iovs []Iovec) (n int, err error) {
  1645  	var _p0 unsafe.Pointer
  1646  	if len(iovs) > 0 {
  1647  		_p0 = unsafe.Pointer(&iovs[0])
  1648  	} else {
  1649  		_p0 = unsafe.Pointer(&_zero)
  1650  	}
  1651  	r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
  1652  	n = int(r0)
  1653  	if e1 != 0 {
  1654  		err = errnoErr(e1)
  1655  	}
  1656  	return
  1657  }
  1658  
  1659  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1660  
  1661  func writev(fd int, iovs []Iovec) (n int, err error) {
  1662  	var _p0 unsafe.Pointer
  1663  	if len(iovs) > 0 {
  1664  		_p0 = unsafe.Pointer(&iovs[0])
  1665  	} else {
  1666  		_p0 = unsafe.Pointer(&_zero)
  1667  	}
  1668  	r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
  1669  	n = int(r0)
  1670  	if e1 != 0 {
  1671  		err = errnoErr(e1)
  1672  	}
  1673  	return
  1674  }
  1675  
  1676  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1677  
  1678  func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
  1679  	var _p0 unsafe.Pointer
  1680  	if len(iovs) > 0 {
  1681  		_p0 = unsafe.Pointer(&iovs[0])
  1682  	} else {
  1683  		_p0 = unsafe.Pointer(&_zero)
  1684  	}
  1685  	r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
  1686  	n = int(r0)
  1687  	if e1 != 0 {
  1688  		err = errnoErr(e1)
  1689  	}
  1690  	return
  1691  }
  1692  
  1693  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1694  
  1695  func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
  1696  	var _p0 unsafe.Pointer
  1697  	if len(iovs) > 0 {
  1698  		_p0 = unsafe.Pointer(&iovs[0])
  1699  	} else {
  1700  		_p0 = unsafe.Pointer(&_zero)
  1701  	}
  1702  	r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
  1703  	n = int(r0)
  1704  	if e1 != 0 {
  1705  		err = errnoErr(e1)
  1706  	}
  1707  	return
  1708  }
  1709  
  1710  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1711  
  1712  func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
  1713  	var _p0 unsafe.Pointer
  1714  	if len(iovs) > 0 {
  1715  		_p0 = unsafe.Pointer(&iovs[0])
  1716  	} else {
  1717  		_p0 = unsafe.Pointer(&_zero)
  1718  	}
  1719  	r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
  1720  	n = int(r0)
  1721  	if e1 != 0 {
  1722  		err = errnoErr(e1)
  1723  	}
  1724  	return
  1725  }
  1726  
  1727  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1728  
  1729  func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
  1730  	var _p0 unsafe.Pointer
  1731  	if len(iovs) > 0 {
  1732  		_p0 = unsafe.Pointer(&iovs[0])
  1733  	} else {
  1734  		_p0 = unsafe.Pointer(&_zero)
  1735  	}
  1736  	r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
  1737  	n = int(r0)
  1738  	if e1 != 0 {
  1739  		err = errnoErr(e1)
  1740  	}
  1741  	return
  1742  }
  1743  
  1744  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1745  
  1746  func munmap(addr uintptr, length uintptr) (err error) {
  1747  	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
  1748  	if e1 != 0 {
  1749  		err = errnoErr(e1)
  1750  	}
  1751  	return
  1752  }
  1753  
  1754  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1755  
  1756  func Madvise(b []byte, advice int) (err error) {
  1757  	var _p0 unsafe.Pointer
  1758  	if len(b) > 0 {
  1759  		_p0 = unsafe.Pointer(&b[0])
  1760  	} else {
  1761  		_p0 = unsafe.Pointer(&_zero)
  1762  	}
  1763  	_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
  1764  	if e1 != 0 {
  1765  		err = errnoErr(e1)
  1766  	}
  1767  	return
  1768  }
  1769  
  1770  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1771  
  1772  func Mprotect(b []byte, prot int) (err error) {
  1773  	var _p0 unsafe.Pointer
  1774  	if len(b) > 0 {
  1775  		_p0 = unsafe.Pointer(&b[0])
  1776  	} else {
  1777  		_p0 = unsafe.Pointer(&_zero)
  1778  	}
  1779  	_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
  1780  	if e1 != 0 {
  1781  		err = errnoErr(e1)
  1782  	}
  1783  	return
  1784  }
  1785  
  1786  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1787  
  1788  func Mlock(b []byte) (err error) {
  1789  	var _p0 unsafe.Pointer
  1790  	if len(b) > 0 {
  1791  		_p0 = unsafe.Pointer(&b[0])
  1792  	} else {
  1793  		_p0 = unsafe.Pointer(&_zero)
  1794  	}
  1795  	_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1796  	if e1 != 0 {
  1797  		err = errnoErr(e1)
  1798  	}
  1799  	return
  1800  }
  1801  
  1802  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1803  
  1804  func Mlockall(flags int) (err error) {
  1805  	_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
  1806  	if e1 != 0 {
  1807  		err = errnoErr(e1)
  1808  	}
  1809  	return
  1810  }
  1811  
  1812  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1813  
  1814  func Msync(b []byte, flags int) (err error) {
  1815  	var _p0 unsafe.Pointer
  1816  	if len(b) > 0 {
  1817  		_p0 = unsafe.Pointer(&b[0])
  1818  	} else {
  1819  		_p0 = unsafe.Pointer(&_zero)
  1820  	}
  1821  	_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
  1822  	if e1 != 0 {
  1823  		err = errnoErr(e1)
  1824  	}
  1825  	return
  1826  }
  1827  
  1828  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1829  
  1830  func Munlock(b []byte) (err error) {
  1831  	var _p0 unsafe.Pointer
  1832  	if len(b) > 0 {
  1833  		_p0 = unsafe.Pointer(&b[0])
  1834  	} else {
  1835  		_p0 = unsafe.Pointer(&_zero)
  1836  	}
  1837  	_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1838  	if e1 != 0 {
  1839  		err = errnoErr(e1)
  1840  	}
  1841  	return
  1842  }
  1843  
  1844  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1845  
  1846  func Munlockall() (err error) {
  1847  	_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
  1848  	if e1 != 0 {
  1849  		err = errnoErr(e1)
  1850  	}
  1851  	return
  1852  }
  1853  
  1854  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1855  
  1856  func faccessat(dirfd int, path string, mode uint32) (err error) {
  1857  	var _p0 *byte
  1858  	_p0, err = BytePtrFromString(path)
  1859  	if err != nil {
  1860  		return
  1861  	}
  1862  	_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  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 Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) {
  1872  	var _p0 *byte
  1873  	_p0, err = BytePtrFromString(path)
  1874  	if err != nil {
  1875  		return
  1876  	}
  1877  	_, _, e1 := Syscall6(SYS_FACCESSAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
  1878  	if e1 != 0 {
  1879  		err = errnoErr(e1)
  1880  	}
  1881  	return
  1882  }
  1883  
  1884  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1885  
  1886  func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
  1887  	var _p0 *byte
  1888  	_p0, err = BytePtrFromString(pathname)
  1889  	if err != nil {
  1890  		return
  1891  	}
  1892  	_, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0)
  1893  	if e1 != 0 {
  1894  		err = errnoErr(e1)
  1895  	}
  1896  	return
  1897  }
  1898  
  1899  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1900  
  1901  func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) {
  1902  	r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags))
  1903  	fd = int(r0)
  1904  	if e1 != 0 {
  1905  		err = errnoErr(e1)
  1906  	}
  1907  	return
  1908  }
  1909  
  1910  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1911  
  1912  func ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
  1913  	var _p0 unsafe.Pointer
  1914  	if len(localIov) > 0 {
  1915  		_p0 = unsafe.Pointer(&localIov[0])
  1916  	} else {
  1917  		_p0 = unsafe.Pointer(&_zero)
  1918  	}
  1919  	var _p1 unsafe.Pointer
  1920  	if len(remoteIov) > 0 {
  1921  		_p1 = unsafe.Pointer(&remoteIov[0])
  1922  	} else {
  1923  		_p1 = unsafe.Pointer(&_zero)
  1924  	}
  1925  	r0, _, e1 := Syscall6(SYS_PROCESS_VM_READV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
  1926  	n = int(r0)
  1927  	if e1 != 0 {
  1928  		err = errnoErr(e1)
  1929  	}
  1930  	return
  1931  }
  1932  
  1933  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1934  
  1935  func ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
  1936  	var _p0 unsafe.Pointer
  1937  	if len(localIov) > 0 {
  1938  		_p0 = unsafe.Pointer(&localIov[0])
  1939  	} else {
  1940  		_p0 = unsafe.Pointer(&_zero)
  1941  	}
  1942  	var _p1 unsafe.Pointer
  1943  	if len(remoteIov) > 0 {
  1944  		_p1 = unsafe.Pointer(&remoteIov[0])
  1945  	} else {
  1946  		_p1 = unsafe.Pointer(&_zero)
  1947  	}
  1948  	r0, _, e1 := Syscall6(SYS_PROCESS_VM_WRITEV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
  1949  	n = int(r0)
  1950  	if e1 != 0 {
  1951  		err = errnoErr(e1)
  1952  	}
  1953  	return
  1954  }
  1955  
  1956  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1957  
  1958  func PidfdOpen(pid int, flags int) (fd int, err error) {
  1959  	r0, _, e1 := Syscall(SYS_PIDFD_OPEN, uintptr(pid), uintptr(flags), 0)
  1960  	fd = int(r0)
  1961  	if e1 != 0 {
  1962  		err = errnoErr(e1)
  1963  	}
  1964  	return
  1965  }
  1966  
  1967  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1968  
  1969  func PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) {
  1970  	r0, _, e1 := Syscall(SYS_PIDFD_GETFD, uintptr(pidfd), uintptr(targetfd), uintptr(flags))
  1971  	fd = int(r0)
  1972  	if e1 != 0 {
  1973  		err = errnoErr(e1)
  1974  	}
  1975  	return
  1976  }