...

Source file src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux.go

Documentation: cmd/vendor/golang.org/x/sys/unix

     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 fsconfig(fd int, cmd uint, key *byte, value *byte, aux int) (err error) {
   910  	_, _, e1 := Syscall6(SYS_FSCONFIG, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(key)), uintptr(unsafe.Pointer(value)), uintptr(aux), 0)
   911  	if e1 != 0 {
   912  		err = errnoErr(e1)
   913  	}
   914  	return
   915  }
   916  
   917  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   918  
   919  func Getdents(fd int, buf []byte) (n int, err error) {
   920  	var _p0 unsafe.Pointer
   921  	if len(buf) > 0 {
   922  		_p0 = unsafe.Pointer(&buf[0])
   923  	} else {
   924  		_p0 = unsafe.Pointer(&_zero)
   925  	}
   926  	r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   927  	n = int(r0)
   928  	if e1 != 0 {
   929  		err = errnoErr(e1)
   930  	}
   931  	return
   932  }
   933  
   934  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   935  
   936  func Getpgid(pid int) (pgid int, err error) {
   937  	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   938  	pgid = int(r0)
   939  	if e1 != 0 {
   940  		err = errnoErr(e1)
   941  	}
   942  	return
   943  }
   944  
   945  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   946  
   947  func Getpid() (pid int) {
   948  	r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
   949  	pid = int(r0)
   950  	return
   951  }
   952  
   953  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   954  
   955  func Getppid() (ppid int) {
   956  	r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
   957  	ppid = int(r0)
   958  	return
   959  }
   960  
   961  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   962  
   963  func Getpriority(which int, who int) (prio int, err error) {
   964  	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
   965  	prio = int(r0)
   966  	if e1 != 0 {
   967  		err = errnoErr(e1)
   968  	}
   969  	return
   970  }
   971  
   972  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   973  
   974  func Getrandom(buf []byte, flags int) (n int, err error) {
   975  	var _p0 unsafe.Pointer
   976  	if len(buf) > 0 {
   977  		_p0 = unsafe.Pointer(&buf[0])
   978  	} else {
   979  		_p0 = unsafe.Pointer(&_zero)
   980  	}
   981  	r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags))
   982  	n = int(r0)
   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 Getrusage(who int, rusage *Rusage) (err error) {
   992  	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
   993  	if e1 != 0 {
   994  		err = errnoErr(e1)
   995  	}
   996  	return
   997  }
   998  
   999  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1000  
  1001  func Getsid(pid int) (sid int, err error) {
  1002  	r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
  1003  	sid = int(r0)
  1004  	if e1 != 0 {
  1005  		err = errnoErr(e1)
  1006  	}
  1007  	return
  1008  }
  1009  
  1010  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1011  
  1012  func Gettid() (tid int) {
  1013  	r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
  1014  	tid = int(r0)
  1015  	return
  1016  }
  1017  
  1018  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1019  
  1020  func Getxattr(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_GETXATTR, 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 InitModule(moduleImage []byte, params string) (err error) {
  1048  	var _p0 unsafe.Pointer
  1049  	if len(moduleImage) > 0 {
  1050  		_p0 = unsafe.Pointer(&moduleImage[0])
  1051  	} else {
  1052  		_p0 = unsafe.Pointer(&_zero)
  1053  	}
  1054  	var _p1 *byte
  1055  	_p1, err = BytePtrFromString(params)
  1056  	if err != nil {
  1057  		return
  1058  	}
  1059  	_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
  1060  	if e1 != 0 {
  1061  		err = errnoErr(e1)
  1062  	}
  1063  	return
  1064  }
  1065  
  1066  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1067  
  1068  func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
  1069  	var _p0 *byte
  1070  	_p0, err = BytePtrFromString(pathname)
  1071  	if err != nil {
  1072  		return
  1073  	}
  1074  	r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
  1075  	watchdesc = int(r0)
  1076  	if e1 != 0 {
  1077  		err = errnoErr(e1)
  1078  	}
  1079  	return
  1080  }
  1081  
  1082  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1083  
  1084  func InotifyInit1(flags int) (fd int, err error) {
  1085  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
  1086  	fd = int(r0)
  1087  	if e1 != 0 {
  1088  		err = errnoErr(e1)
  1089  	}
  1090  	return
  1091  }
  1092  
  1093  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1094  
  1095  func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
  1096  	r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
  1097  	success = int(r0)
  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 Kill(pid int, sig syscall.Signal) (err error) {
  1107  	_, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
  1108  	if e1 != 0 {
  1109  		err = errnoErr(e1)
  1110  	}
  1111  	return
  1112  }
  1113  
  1114  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1115  
  1116  func Klogctl(typ int, buf []byte) (n int, err error) {
  1117  	var _p0 unsafe.Pointer
  1118  	if len(buf) > 0 {
  1119  		_p0 = unsafe.Pointer(&buf[0])
  1120  	} else {
  1121  		_p0 = unsafe.Pointer(&_zero)
  1122  	}
  1123  	r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
  1124  	n = int(r0)
  1125  	if e1 != 0 {
  1126  		err = errnoErr(e1)
  1127  	}
  1128  	return
  1129  }
  1130  
  1131  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1132  
  1133  func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
  1134  	var _p0 *byte
  1135  	_p0, err = BytePtrFromString(path)
  1136  	if err != nil {
  1137  		return
  1138  	}
  1139  	var _p1 *byte
  1140  	_p1, err = BytePtrFromString(attr)
  1141  	if err != nil {
  1142  		return
  1143  	}
  1144  	var _p2 unsafe.Pointer
  1145  	if len(dest) > 0 {
  1146  		_p2 = unsafe.Pointer(&dest[0])
  1147  	} else {
  1148  		_p2 = unsafe.Pointer(&_zero)
  1149  	}
  1150  	r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
  1151  	sz = int(r0)
  1152  	if e1 != 0 {
  1153  		err = errnoErr(e1)
  1154  	}
  1155  	return
  1156  }
  1157  
  1158  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1159  
  1160  func Listxattr(path string, dest []byte) (sz int, err error) {
  1161  	var _p0 *byte
  1162  	_p0, err = BytePtrFromString(path)
  1163  	if err != nil {
  1164  		return
  1165  	}
  1166  	var _p1 unsafe.Pointer
  1167  	if len(dest) > 0 {
  1168  		_p1 = unsafe.Pointer(&dest[0])
  1169  	} else {
  1170  		_p1 = unsafe.Pointer(&_zero)
  1171  	}
  1172  	r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
  1173  	sz = int(r0)
  1174  	if e1 != 0 {
  1175  		err = errnoErr(e1)
  1176  	}
  1177  	return
  1178  }
  1179  
  1180  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1181  
  1182  func Llistxattr(path string, dest []byte) (sz int, err error) {
  1183  	var _p0 *byte
  1184  	_p0, err = BytePtrFromString(path)
  1185  	if err != nil {
  1186  		return
  1187  	}
  1188  	var _p1 unsafe.Pointer
  1189  	if len(dest) > 0 {
  1190  		_p1 = unsafe.Pointer(&dest[0])
  1191  	} else {
  1192  		_p1 = unsafe.Pointer(&_zero)
  1193  	}
  1194  	r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
  1195  	sz = 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 Lremovexattr(path string, attr string) (err error) {
  1205  	var _p0 *byte
  1206  	_p0, err = BytePtrFromString(path)
  1207  	if err != nil {
  1208  		return
  1209  	}
  1210  	var _p1 *byte
  1211  	_p1, err = BytePtrFromString(attr)
  1212  	if err != nil {
  1213  		return
  1214  	}
  1215  	_, _, e1 := Syscall(SYS_LREMOVEXATTR, 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 Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
  1225  	var _p0 *byte
  1226  	_p0, err = BytePtrFromString(path)
  1227  	if err != nil {
  1228  		return
  1229  	}
  1230  	var _p1 *byte
  1231  	_p1, err = BytePtrFromString(attr)
  1232  	if err != nil {
  1233  		return
  1234  	}
  1235  	var _p2 unsafe.Pointer
  1236  	if len(data) > 0 {
  1237  		_p2 = unsafe.Pointer(&data[0])
  1238  	} else {
  1239  		_p2 = unsafe.Pointer(&_zero)
  1240  	}
  1241  	_, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  1242  	if e1 != 0 {
  1243  		err = errnoErr(e1)
  1244  	}
  1245  	return
  1246  }
  1247  
  1248  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1249  
  1250  func MemfdCreate(name string, flags int) (fd int, err error) {
  1251  	var _p0 *byte
  1252  	_p0, err = BytePtrFromString(name)
  1253  	if err != nil {
  1254  		return
  1255  	}
  1256  	r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1257  	fd = int(r0)
  1258  	if e1 != 0 {
  1259  		err = errnoErr(e1)
  1260  	}
  1261  	return
  1262  }
  1263  
  1264  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1265  
  1266  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1267  	var _p0 *byte
  1268  	_p0, err = BytePtrFromString(path)
  1269  	if err != nil {
  1270  		return
  1271  	}
  1272  	_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1273  	if e1 != 0 {
  1274  		err = errnoErr(e1)
  1275  	}
  1276  	return
  1277  }
  1278  
  1279  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1280  
  1281  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1282  	var _p0 *byte
  1283  	_p0, err = BytePtrFromString(path)
  1284  	if err != nil {
  1285  		return
  1286  	}
  1287  	_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1288  	if e1 != 0 {
  1289  		err = errnoErr(e1)
  1290  	}
  1291  	return
  1292  }
  1293  
  1294  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1295  
  1296  func MoveMount(fromDirfd int, fromPathName string, toDirfd int, toPathName string, flags int) (err error) {
  1297  	var _p0 *byte
  1298  	_p0, err = BytePtrFromString(fromPathName)
  1299  	if err != nil {
  1300  		return
  1301  	}
  1302  	var _p1 *byte
  1303  	_p1, err = BytePtrFromString(toPathName)
  1304  	if err != nil {
  1305  		return
  1306  	}
  1307  	_, _, e1 := Syscall6(SYS_MOVE_MOUNT, uintptr(fromDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(toDirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 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 Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1317  	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
  1318  	if e1 != 0 {
  1319  		err = errnoErr(e1)
  1320  	}
  1321  	return
  1322  }
  1323  
  1324  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1325  
  1326  func OpenTree(dfd int, fileName string, flags uint) (r int, err error) {
  1327  	var _p0 *byte
  1328  	_p0, err = BytePtrFromString(fileName)
  1329  	if err != nil {
  1330  		return
  1331  	}
  1332  	r0, _, e1 := Syscall(SYS_OPEN_TREE, uintptr(dfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
  1333  	r = int(r0)
  1334  	if e1 != 0 {
  1335  		err = errnoErr(e1)
  1336  	}
  1337  	return
  1338  }
  1339  
  1340  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1341  
  1342  func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
  1343  	r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
  1344  	fd = int(r0)
  1345  	if e1 != 0 {
  1346  		err = errnoErr(e1)
  1347  	}
  1348  	return
  1349  }
  1350  
  1351  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1352  
  1353  func PivotRoot(newroot string, putold string) (err error) {
  1354  	var _p0 *byte
  1355  	_p0, err = BytePtrFromString(newroot)
  1356  	if err != nil {
  1357  		return
  1358  	}
  1359  	var _p1 *byte
  1360  	_p1, err = BytePtrFromString(putold)
  1361  	if err != nil {
  1362  		return
  1363  	}
  1364  	_, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 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 Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
  1374  	_, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
  1375  	if e1 != 0 {
  1376  		err = errnoErr(e1)
  1377  	}
  1378  	return
  1379  }
  1380  
  1381  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1382  
  1383  func pselect6(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_argpack) (n int, err error) {
  1384  	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)))
  1385  	n = int(r0)
  1386  	if e1 != 0 {
  1387  		err = errnoErr(e1)
  1388  	}
  1389  	return
  1390  }
  1391  
  1392  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1393  
  1394  func read(fd int, p []byte) (n int, err error) {
  1395  	var _p0 unsafe.Pointer
  1396  	if len(p) > 0 {
  1397  		_p0 = unsafe.Pointer(&p[0])
  1398  	} else {
  1399  		_p0 = unsafe.Pointer(&_zero)
  1400  	}
  1401  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1402  	n = int(r0)
  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 Removexattr(path string, attr string) (err error) {
  1412  	var _p0 *byte
  1413  	_p0, err = BytePtrFromString(path)
  1414  	if err != nil {
  1415  		return
  1416  	}
  1417  	var _p1 *byte
  1418  	_p1, err = BytePtrFromString(attr)
  1419  	if err != nil {
  1420  		return
  1421  	}
  1422  	_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1423  	if e1 != 0 {
  1424  		err = errnoErr(e1)
  1425  	}
  1426  	return
  1427  }
  1428  
  1429  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1430  
  1431  func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
  1432  	var _p0 *byte
  1433  	_p0, err = BytePtrFromString(oldpath)
  1434  	if err != nil {
  1435  		return
  1436  	}
  1437  	var _p1 *byte
  1438  	_p1, err = BytePtrFromString(newpath)
  1439  	if err != nil {
  1440  		return
  1441  	}
  1442  	_, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
  1443  	if e1 != 0 {
  1444  		err = errnoErr(e1)
  1445  	}
  1446  	return
  1447  }
  1448  
  1449  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1450  
  1451  func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
  1452  	var _p0 *byte
  1453  	_p0, err = BytePtrFromString(keyType)
  1454  	if err != nil {
  1455  		return
  1456  	}
  1457  	var _p1 *byte
  1458  	_p1, err = BytePtrFromString(description)
  1459  	if err != nil {
  1460  		return
  1461  	}
  1462  	var _p2 *byte
  1463  	_p2, err = BytePtrFromString(callback)
  1464  	if err != nil {
  1465  		return
  1466  	}
  1467  	r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
  1468  	id = int(r0)
  1469  	if e1 != 0 {
  1470  		err = errnoErr(e1)
  1471  	}
  1472  	return
  1473  }
  1474  
  1475  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1476  
  1477  func Setdomainname(p []byte) (err error) {
  1478  	var _p0 unsafe.Pointer
  1479  	if len(p) > 0 {
  1480  		_p0 = unsafe.Pointer(&p[0])
  1481  	} else {
  1482  		_p0 = unsafe.Pointer(&_zero)
  1483  	}
  1484  	_, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
  1485  	if e1 != 0 {
  1486  		err = errnoErr(e1)
  1487  	}
  1488  	return
  1489  }
  1490  
  1491  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1492  
  1493  func Sethostname(p []byte) (err error) {
  1494  	var _p0 unsafe.Pointer
  1495  	if len(p) > 0 {
  1496  		_p0 = unsafe.Pointer(&p[0])
  1497  	} else {
  1498  		_p0 = unsafe.Pointer(&_zero)
  1499  	}
  1500  	_, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 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 Setpgid(pid int, pgid int) (err error) {
  1510  	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
  1511  	if e1 != 0 {
  1512  		err = errnoErr(e1)
  1513  	}
  1514  	return
  1515  }
  1516  
  1517  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1518  
  1519  func Setsid() (pid int, err error) {
  1520  	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
  1521  	pid = int(r0)
  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 Settimeofday(tv *Timeval) (err error) {
  1531  	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 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 Setns(fd int, nstype int) (err error) {
  1541  	_, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0)
  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 Setpriority(which int, who int, prio int) (err error) {
  1551  	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
  1552  	if e1 != 0 {
  1553  		err = errnoErr(e1)
  1554  	}
  1555  	return
  1556  }
  1557  
  1558  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1559  
  1560  func Setxattr(path string, attr string, data []byte, flags int) (err error) {
  1561  	var _p0 *byte
  1562  	_p0, err = BytePtrFromString(path)
  1563  	if err != nil {
  1564  		return
  1565  	}
  1566  	var _p1 *byte
  1567  	_p1, err = BytePtrFromString(attr)
  1568  	if err != nil {
  1569  		return
  1570  	}
  1571  	var _p2 unsafe.Pointer
  1572  	if len(data) > 0 {
  1573  		_p2 = unsafe.Pointer(&data[0])
  1574  	} else {
  1575  		_p2 = unsafe.Pointer(&_zero)
  1576  	}
  1577  	_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  1578  	if e1 != 0 {
  1579  		err = errnoErr(e1)
  1580  	}
  1581  	return
  1582  }
  1583  
  1584  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1585  
  1586  func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
  1587  	r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
  1588  	newfd = int(r0)
  1589  	if e1 != 0 {
  1590  		err = errnoErr(e1)
  1591  	}
  1592  	return
  1593  }
  1594  
  1595  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1596  
  1597  func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
  1598  	var _p0 *byte
  1599  	_p0, err = BytePtrFromString(path)
  1600  	if err != nil {
  1601  		return
  1602  	}
  1603  	_, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
  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 Sync() {
  1613  	SyscallNoError(SYS_SYNC, 0, 0, 0)
  1614  	return
  1615  }
  1616  
  1617  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1618  
  1619  func Syncfs(fd int) (err error) {
  1620  	_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 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 Sysinfo(info *Sysinfo_t) (err error) {
  1630  	_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
  1631  	if e1 != 0 {
  1632  		err = errnoErr(e1)
  1633  	}
  1634  	return
  1635  }
  1636  
  1637  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1638  
  1639  func TimerfdCreate(clockid int, flags int) (fd int, err error) {
  1640  	r0, _, e1 := RawSyscall(SYS_TIMERFD_CREATE, uintptr(clockid), uintptr(flags), 0)
  1641  	fd = int(r0)
  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 TimerfdGettime(fd int, currValue *ItimerSpec) (err error) {
  1651  	_, _, e1 := RawSyscall(SYS_TIMERFD_GETTIME, uintptr(fd), uintptr(unsafe.Pointer(currValue)), 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 TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) {
  1661  	_, _, e1 := RawSyscall6(SYS_TIMERFD_SETTIME, uintptr(fd), uintptr(flags), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)), 0, 0)
  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 Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
  1671  	_, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
  1672  	if e1 != 0 {
  1673  		err = errnoErr(e1)
  1674  	}
  1675  	return
  1676  }
  1677  
  1678  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1679  
  1680  func Times(tms *Tms) (ticks uintptr, err error) {
  1681  	r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
  1682  	ticks = uintptr(r0)
  1683  	if e1 != 0 {
  1684  		err = errnoErr(e1)
  1685  	}
  1686  	return
  1687  }
  1688  
  1689  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1690  
  1691  func Umask(mask int) (oldmask int) {
  1692  	r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
  1693  	oldmask = int(r0)
  1694  	return
  1695  }
  1696  
  1697  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1698  
  1699  func Uname(buf *Utsname) (err error) {
  1700  	_, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
  1701  	if e1 != 0 {
  1702  		err = errnoErr(e1)
  1703  	}
  1704  	return
  1705  }
  1706  
  1707  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1708  
  1709  func Unmount(target string, flags int) (err error) {
  1710  	var _p0 *byte
  1711  	_p0, err = BytePtrFromString(target)
  1712  	if err != nil {
  1713  		return
  1714  	}
  1715  	_, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 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 Unshare(flags int) (err error) {
  1725  	_, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
  1726  	if e1 != 0 {
  1727  		err = errnoErr(e1)
  1728  	}
  1729  	return
  1730  }
  1731  
  1732  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1733  
  1734  func write(fd int, p []byte) (n int, err error) {
  1735  	var _p0 unsafe.Pointer
  1736  	if len(p) > 0 {
  1737  		_p0 = unsafe.Pointer(&p[0])
  1738  	} else {
  1739  		_p0 = unsafe.Pointer(&_zero)
  1740  	}
  1741  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1742  	n = int(r0)
  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 exitThread(code int) (err error) {
  1752  	_, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
  1753  	if e1 != 0 {
  1754  		err = errnoErr(e1)
  1755  	}
  1756  	return
  1757  }
  1758  
  1759  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1760  
  1761  func readv(fd int, iovs []Iovec) (n int, err error) {
  1762  	var _p0 unsafe.Pointer
  1763  	if len(iovs) > 0 {
  1764  		_p0 = unsafe.Pointer(&iovs[0])
  1765  	} else {
  1766  		_p0 = unsafe.Pointer(&_zero)
  1767  	}
  1768  	r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
  1769  	n = int(r0)
  1770  	if e1 != 0 {
  1771  		err = errnoErr(e1)
  1772  	}
  1773  	return
  1774  }
  1775  
  1776  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1777  
  1778  func writev(fd int, iovs []Iovec) (n int, err error) {
  1779  	var _p0 unsafe.Pointer
  1780  	if len(iovs) > 0 {
  1781  		_p0 = unsafe.Pointer(&iovs[0])
  1782  	} else {
  1783  		_p0 = unsafe.Pointer(&_zero)
  1784  	}
  1785  	r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
  1786  	n = int(r0)
  1787  	if e1 != 0 {
  1788  		err = errnoErr(e1)
  1789  	}
  1790  	return
  1791  }
  1792  
  1793  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1794  
  1795  func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
  1796  	var _p0 unsafe.Pointer
  1797  	if len(iovs) > 0 {
  1798  		_p0 = unsafe.Pointer(&iovs[0])
  1799  	} else {
  1800  		_p0 = unsafe.Pointer(&_zero)
  1801  	}
  1802  	r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
  1803  	n = int(r0)
  1804  	if e1 != 0 {
  1805  		err = errnoErr(e1)
  1806  	}
  1807  	return
  1808  }
  1809  
  1810  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1811  
  1812  func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
  1813  	var _p0 unsafe.Pointer
  1814  	if len(iovs) > 0 {
  1815  		_p0 = unsafe.Pointer(&iovs[0])
  1816  	} else {
  1817  		_p0 = unsafe.Pointer(&_zero)
  1818  	}
  1819  	r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
  1820  	n = int(r0)
  1821  	if e1 != 0 {
  1822  		err = errnoErr(e1)
  1823  	}
  1824  	return
  1825  }
  1826  
  1827  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1828  
  1829  func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
  1830  	var _p0 unsafe.Pointer
  1831  	if len(iovs) > 0 {
  1832  		_p0 = unsafe.Pointer(&iovs[0])
  1833  	} else {
  1834  		_p0 = unsafe.Pointer(&_zero)
  1835  	}
  1836  	r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
  1837  	n = int(r0)
  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 pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
  1847  	var _p0 unsafe.Pointer
  1848  	if len(iovs) > 0 {
  1849  		_p0 = unsafe.Pointer(&iovs[0])
  1850  	} else {
  1851  		_p0 = unsafe.Pointer(&_zero)
  1852  	}
  1853  	r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
  1854  	n = int(r0)
  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 munmap(addr uintptr, length uintptr) (err error) {
  1864  	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
  1865  	if e1 != 0 {
  1866  		err = errnoErr(e1)
  1867  	}
  1868  	return
  1869  }
  1870  
  1871  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1872  
  1873  func mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error) {
  1874  	r0, _, e1 := Syscall6(SYS_MREMAP, uintptr(oldaddr), uintptr(oldlength), uintptr(newlength), uintptr(flags), uintptr(newaddr), 0)
  1875  	xaddr = uintptr(r0)
  1876  	if e1 != 0 {
  1877  		err = errnoErr(e1)
  1878  	}
  1879  	return
  1880  }
  1881  
  1882  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1883  
  1884  func Madvise(b []byte, advice int) (err error) {
  1885  	var _p0 unsafe.Pointer
  1886  	if len(b) > 0 {
  1887  		_p0 = unsafe.Pointer(&b[0])
  1888  	} else {
  1889  		_p0 = unsafe.Pointer(&_zero)
  1890  	}
  1891  	_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
  1892  	if e1 != 0 {
  1893  		err = errnoErr(e1)
  1894  	}
  1895  	return
  1896  }
  1897  
  1898  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1899  
  1900  func Mprotect(b []byte, prot int) (err error) {
  1901  	var _p0 unsafe.Pointer
  1902  	if len(b) > 0 {
  1903  		_p0 = unsafe.Pointer(&b[0])
  1904  	} else {
  1905  		_p0 = unsafe.Pointer(&_zero)
  1906  	}
  1907  	_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
  1908  	if e1 != 0 {
  1909  		err = errnoErr(e1)
  1910  	}
  1911  	return
  1912  }
  1913  
  1914  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1915  
  1916  func Mlock(b []byte) (err error) {
  1917  	var _p0 unsafe.Pointer
  1918  	if len(b) > 0 {
  1919  		_p0 = unsafe.Pointer(&b[0])
  1920  	} else {
  1921  		_p0 = unsafe.Pointer(&_zero)
  1922  	}
  1923  	_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 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 Mlockall(flags int) (err error) {
  1933  	_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
  1934  	if e1 != 0 {
  1935  		err = errnoErr(e1)
  1936  	}
  1937  	return
  1938  }
  1939  
  1940  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1941  
  1942  func Msync(b []byte, flags int) (err error) {
  1943  	var _p0 unsafe.Pointer
  1944  	if len(b) > 0 {
  1945  		_p0 = unsafe.Pointer(&b[0])
  1946  	} else {
  1947  		_p0 = unsafe.Pointer(&_zero)
  1948  	}
  1949  	_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
  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 Munlock(b []byte) (err error) {
  1959  	var _p0 unsafe.Pointer
  1960  	if len(b) > 0 {
  1961  		_p0 = unsafe.Pointer(&b[0])
  1962  	} else {
  1963  		_p0 = unsafe.Pointer(&_zero)
  1964  	}
  1965  	_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 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 Munlockall() (err error) {
  1975  	_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
  1976  	if e1 != 0 {
  1977  		err = errnoErr(e1)
  1978  	}
  1979  	return
  1980  }
  1981  
  1982  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1983  
  1984  func faccessat(dirfd int, path string, mode uint32) (err error) {
  1985  	var _p0 *byte
  1986  	_p0, err = BytePtrFromString(path)
  1987  	if err != nil {
  1988  		return
  1989  	}
  1990  	_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1991  	if e1 != 0 {
  1992  		err = errnoErr(e1)
  1993  	}
  1994  	return
  1995  }
  1996  
  1997  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1998  
  1999  func Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) {
  2000  	var _p0 *byte
  2001  	_p0, err = BytePtrFromString(path)
  2002  	if err != nil {
  2003  		return
  2004  	}
  2005  	_, _, e1 := Syscall6(SYS_FACCESSAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
  2006  	if e1 != 0 {
  2007  		err = errnoErr(e1)
  2008  	}
  2009  	return
  2010  }
  2011  
  2012  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2013  
  2014  func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
  2015  	var _p0 *byte
  2016  	_p0, err = BytePtrFromString(pathname)
  2017  	if err != nil {
  2018  		return
  2019  	}
  2020  	_, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0)
  2021  	if e1 != 0 {
  2022  		err = errnoErr(e1)
  2023  	}
  2024  	return
  2025  }
  2026  
  2027  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2028  
  2029  func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) {
  2030  	r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags))
  2031  	fd = int(r0)
  2032  	if e1 != 0 {
  2033  		err = errnoErr(e1)
  2034  	}
  2035  	return
  2036  }
  2037  
  2038  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2039  
  2040  func ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
  2041  	var _p0 unsafe.Pointer
  2042  	if len(localIov) > 0 {
  2043  		_p0 = unsafe.Pointer(&localIov[0])
  2044  	} else {
  2045  		_p0 = unsafe.Pointer(&_zero)
  2046  	}
  2047  	var _p1 unsafe.Pointer
  2048  	if len(remoteIov) > 0 {
  2049  		_p1 = unsafe.Pointer(&remoteIov[0])
  2050  	} else {
  2051  		_p1 = unsafe.Pointer(&_zero)
  2052  	}
  2053  	r0, _, e1 := Syscall6(SYS_PROCESS_VM_READV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
  2054  	n = int(r0)
  2055  	if e1 != 0 {
  2056  		err = errnoErr(e1)
  2057  	}
  2058  	return
  2059  }
  2060  
  2061  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2062  
  2063  func ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
  2064  	var _p0 unsafe.Pointer
  2065  	if len(localIov) > 0 {
  2066  		_p0 = unsafe.Pointer(&localIov[0])
  2067  	} else {
  2068  		_p0 = unsafe.Pointer(&_zero)
  2069  	}
  2070  	var _p1 unsafe.Pointer
  2071  	if len(remoteIov) > 0 {
  2072  		_p1 = unsafe.Pointer(&remoteIov[0])
  2073  	} else {
  2074  		_p1 = unsafe.Pointer(&_zero)
  2075  	}
  2076  	r0, _, e1 := Syscall6(SYS_PROCESS_VM_WRITEV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
  2077  	n = int(r0)
  2078  	if e1 != 0 {
  2079  		err = errnoErr(e1)
  2080  	}
  2081  	return
  2082  }
  2083  
  2084  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2085  
  2086  func PidfdOpen(pid int, flags int) (fd int, err error) {
  2087  	r0, _, e1 := Syscall(SYS_PIDFD_OPEN, uintptr(pid), uintptr(flags), 0)
  2088  	fd = int(r0)
  2089  	if e1 != 0 {
  2090  		err = errnoErr(e1)
  2091  	}
  2092  	return
  2093  }
  2094  
  2095  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2096  
  2097  func PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) {
  2098  	r0, _, e1 := Syscall(SYS_PIDFD_GETFD, uintptr(pidfd), uintptr(targetfd), uintptr(flags))
  2099  	fd = int(r0)
  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 PidfdSendSignal(pidfd int, sig Signal, info *Siginfo, flags int) (err error) {
  2109  	_, _, e1 := Syscall6(SYS_PIDFD_SEND_SIGNAL, uintptr(pidfd), uintptr(sig), uintptr(unsafe.Pointer(info)), uintptr(flags), 0, 0)
  2110  	if e1 != 0 {
  2111  		err = errnoErr(e1)
  2112  	}
  2113  	return
  2114  }
  2115  
  2116  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2117  
  2118  func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) {
  2119  	r0, _, e1 := Syscall(SYS_SHMAT, uintptr(id), uintptr(addr), uintptr(flag))
  2120  	ret = uintptr(r0)
  2121  	if e1 != 0 {
  2122  		err = errnoErr(e1)
  2123  	}
  2124  	return
  2125  }
  2126  
  2127  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2128  
  2129  func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) {
  2130  	r0, _, e1 := Syscall(SYS_SHMCTL, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf)))
  2131  	result = int(r0)
  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 shmdt(addr uintptr) (err error) {
  2141  	_, _, e1 := Syscall(SYS_SHMDT, uintptr(addr), 0, 0)
  2142  	if e1 != 0 {
  2143  		err = errnoErr(e1)
  2144  	}
  2145  	return
  2146  }
  2147  
  2148  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2149  
  2150  func shmget(key int, size int, flag int) (id int, err error) {
  2151  	r0, _, e1 := Syscall(SYS_SHMGET, uintptr(key), uintptr(size), uintptr(flag))
  2152  	id = int(r0)
  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 getitimer(which int, currValue *Itimerval) (err error) {
  2162  	_, _, e1 := Syscall(SYS_GETITIMER, uintptr(which), uintptr(unsafe.Pointer(currValue)), 0)
  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 setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) {
  2172  	_, _, e1 := Syscall(SYS_SETITIMER, uintptr(which), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)))
  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 rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) {
  2182  	_, _, e1 := RawSyscall6(SYS_RT_SIGPROCMASK, uintptr(how), uintptr(unsafe.Pointer(set)), uintptr(unsafe.Pointer(oldset)), uintptr(sigsetsize), 0, 0)
  2183  	if e1 != 0 {
  2184  		err = errnoErr(e1)
  2185  	}
  2186  	return
  2187  }
  2188  
  2189  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2190  
  2191  func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
  2192  	RawSyscallNoError(SYS_GETRESUID, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
  2193  	return
  2194  }
  2195  
  2196  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2197  
  2198  func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
  2199  	RawSyscallNoError(SYS_GETRESGID, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
  2200  	return
  2201  }
  2202  
  2203  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2204  
  2205  func schedSetattr(pid int, attr *SchedAttr, flags uint) (err error) {
  2206  	_, _, e1 := Syscall(SYS_SCHED_SETATTR, uintptr(pid), uintptr(unsafe.Pointer(attr)), uintptr(flags))
  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 schedGetattr(pid int, attr *SchedAttr, size uint, flags uint) (err error) {
  2216  	_, _, e1 := Syscall6(SYS_SCHED_GETATTR, uintptr(pid), uintptr(unsafe.Pointer(attr)), uintptr(size), uintptr(flags), 0, 0)
  2217  	if e1 != 0 {
  2218  		err = errnoErr(e1)
  2219  	}
  2220  	return
  2221  }
  2222  
  2223  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2224  
  2225  func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) {
  2226  	_, _, e1 := Syscall6(SYS_CACHESTAT, uintptr(fd), uintptr(unsafe.Pointer(crange)), uintptr(unsafe.Pointer(cstat)), uintptr(flags), 0, 0)
  2227  	if e1 != 0 {
  2228  		err = errnoErr(e1)
  2229  	}
  2230  	return
  2231  }
  2232  

View as plain text