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

     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 ClockSettime(clockid int32, time *Timespec) (err error) {
   596  	_, _, e1 := Syscall(SYS_CLOCK_SETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 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 ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) {
   606  	_, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 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 Close(fd int) (err error) {
   616  	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
   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 CloseRange(first uint, last uint, flags uint) (err error) {
   626  	_, _, e1 := Syscall(SYS_CLOSE_RANGE, uintptr(first), uintptr(last), uintptr(flags))
   627  	if e1 != 0 {
   628  		err = errnoErr(e1)
   629  	}
   630  	return
   631  }
   632  
   633  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   634  
   635  func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
   636  	r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
   637  	n = int(r0)
   638  	if e1 != 0 {
   639  		err = errnoErr(e1)
   640  	}
   641  	return
   642  }
   643  
   644  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   645  
   646  func DeleteModule(name string, flags int) (err error) {
   647  	var _p0 *byte
   648  	_p0, err = BytePtrFromString(name)
   649  	if err != nil {
   650  		return
   651  	}
   652  	_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 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 Dup(oldfd int) (fd int, err error) {
   662  	r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
   663  	fd = int(r0)
   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 Dup3(oldfd int, newfd int, flags int) (err error) {
   673  	_, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
   674  	if e1 != 0 {
   675  		err = errnoErr(e1)
   676  	}
   677  	return
   678  }
   679  
   680  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   681  
   682  func EpollCreate1(flag int) (fd int, err error) {
   683  	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
   684  	fd = int(r0)
   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 EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
   694  	_, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
   695  	if e1 != 0 {
   696  		err = errnoErr(e1)
   697  	}
   698  	return
   699  }
   700  
   701  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   702  
   703  func Eventfd(initval uint, flags int) (fd int, err error) {
   704  	r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
   705  	fd = int(r0)
   706  	if e1 != 0 {
   707  		err = errnoErr(e1)
   708  	}
   709  	return
   710  }
   711  
   712  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   713  
   714  func Exit(code int) {
   715  	SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
   716  	return
   717  }
   718  
   719  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   720  
   721  func Fchdir(fd int) (err error) {
   722  	_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 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 Fchmod(fd int, mode uint32) (err error) {
   732  	_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
   733  	if e1 != 0 {
   734  		err = errnoErr(e1)
   735  	}
   736  	return
   737  }
   738  
   739  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   740  
   741  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   742  	var _p0 *byte
   743  	_p0, err = BytePtrFromString(path)
   744  	if err != nil {
   745  		return
   746  	}
   747  	_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 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 Fdatasync(fd int) (err error) {
   757  	_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
   758  	if e1 != 0 {
   759  		err = errnoErr(e1)
   760  	}
   761  	return
   762  }
   763  
   764  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   765  
   766  func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
   767  	var _p0 *byte
   768  	_p0, err = BytePtrFromString(attr)
   769  	if err != nil {
   770  		return
   771  	}
   772  	var _p1 unsafe.Pointer
   773  	if len(dest) > 0 {
   774  		_p1 = unsafe.Pointer(&dest[0])
   775  	} else {
   776  		_p1 = unsafe.Pointer(&_zero)
   777  	}
   778  	r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
   779  	sz = int(r0)
   780  	if e1 != 0 {
   781  		err = errnoErr(e1)
   782  	}
   783  	return
   784  }
   785  
   786  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   787  
   788  func FinitModule(fd int, params string, flags int) (err error) {
   789  	var _p0 *byte
   790  	_p0, err = BytePtrFromString(params)
   791  	if err != nil {
   792  		return
   793  	}
   794  	_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
   795  	if e1 != 0 {
   796  		err = errnoErr(e1)
   797  	}
   798  	return
   799  }
   800  
   801  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   802  
   803  func Flistxattr(fd int, dest []byte) (sz int, err error) {
   804  	var _p0 unsafe.Pointer
   805  	if len(dest) > 0 {
   806  		_p0 = unsafe.Pointer(&dest[0])
   807  	} else {
   808  		_p0 = unsafe.Pointer(&_zero)
   809  	}
   810  	r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
   811  	sz = int(r0)
   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 Flock(fd int, how int) (err error) {
   821  	_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
   822  	if e1 != 0 {
   823  		err = errnoErr(e1)
   824  	}
   825  	return
   826  }
   827  
   828  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   829  
   830  func Fremovexattr(fd int, attr string) (err error) {
   831  	var _p0 *byte
   832  	_p0, err = BytePtrFromString(attr)
   833  	if err != nil {
   834  		return
   835  	}
   836  	_, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
   837  	if e1 != 0 {
   838  		err = errnoErr(e1)
   839  	}
   840  	return
   841  }
   842  
   843  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   844  
   845  func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
   846  	var _p0 *byte
   847  	_p0, err = BytePtrFromString(attr)
   848  	if err != nil {
   849  		return
   850  	}
   851  	var _p1 unsafe.Pointer
   852  	if len(dest) > 0 {
   853  		_p1 = unsafe.Pointer(&dest[0])
   854  	} else {
   855  		_p1 = unsafe.Pointer(&_zero)
   856  	}
   857  	_, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 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 Fsync(fd int) (err error) {
   867  	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
   868  	if e1 != 0 {
   869  		err = errnoErr(e1)
   870  	}
   871  	return
   872  }
   873  
   874  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   875  
   876  func Fsmount(fd int, flags int, mountAttrs int) (fsfd int, err error) {
   877  	r0, _, e1 := Syscall(SYS_FSMOUNT, uintptr(fd), uintptr(flags), uintptr(mountAttrs))
   878  	fsfd = int(r0)
   879  	if e1 != 0 {
   880  		err = errnoErr(e1)
   881  	}
   882  	return
   883  }
   884  
   885  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   886  
   887  func Fsopen(fsName string, flags int) (fd int, err error) {
   888  	var _p0 *byte
   889  	_p0, err = BytePtrFromString(fsName)
   890  	if err != nil {
   891  		return
   892  	}
   893  	r0, _, e1 := Syscall(SYS_FSOPEN, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   894  	fd = int(r0)
   895  	if e1 != 0 {
   896  		err = errnoErr(e1)
   897  	}
   898  	return
   899  }
   900  
   901  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   902  
   903  func Fspick(dirfd int, pathName string, flags int) (fd int, err error) {
   904  	var _p0 *byte
   905  	_p0, err = BytePtrFromString(pathName)
   906  	if err != nil {
   907  		return
   908  	}
   909  	r0, _, e1 := Syscall(SYS_FSPICK, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
   910  	fd = int(r0)
   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 fsconfig(fd int, cmd uint, key *byte, value *byte, aux int) (err error) {
   920  	_, _, e1 := Syscall6(SYS_FSCONFIG, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(key)), uintptr(unsafe.Pointer(value)), uintptr(aux), 0)
   921  	if e1 != 0 {
   922  		err = errnoErr(e1)
   923  	}
   924  	return
   925  }
   926  
   927  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   928  
   929  func Getdents(fd int, buf []byte) (n int, err error) {
   930  	var _p0 unsafe.Pointer
   931  	if len(buf) > 0 {
   932  		_p0 = unsafe.Pointer(&buf[0])
   933  	} else {
   934  		_p0 = unsafe.Pointer(&_zero)
   935  	}
   936  	r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   937  	n = int(r0)
   938  	if e1 != 0 {
   939  		err = errnoErr(e1)
   940  	}
   941  	return
   942  }
   943  
   944  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   945  
   946  func Getpgid(pid int) (pgid int, err error) {
   947  	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   948  	pgid = int(r0)
   949  	if e1 != 0 {
   950  		err = errnoErr(e1)
   951  	}
   952  	return
   953  }
   954  
   955  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   956  
   957  func Getpid() (pid int) {
   958  	r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
   959  	pid = int(r0)
   960  	return
   961  }
   962  
   963  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   964  
   965  func Getppid() (ppid int) {
   966  	r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
   967  	ppid = int(r0)
   968  	return
   969  }
   970  
   971  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   972  
   973  func Getpriority(which int, who int) (prio int, err error) {
   974  	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
   975  	prio = int(r0)
   976  	if e1 != 0 {
   977  		err = errnoErr(e1)
   978  	}
   979  	return
   980  }
   981  
   982  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   983  
   984  func Getrusage(who int, rusage *Rusage) (err error) {
   985  	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
   986  	if e1 != 0 {
   987  		err = errnoErr(e1)
   988  	}
   989  	return
   990  }
   991  
   992  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   993  
   994  func Getsid(pid int) (sid int, err error) {
   995  	r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
   996  	sid = int(r0)
   997  	if e1 != 0 {
   998  		err = errnoErr(e1)
   999  	}
  1000  	return
  1001  }
  1002  
  1003  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1004  
  1005  func Gettid() (tid int) {
  1006  	r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
  1007  	tid = int(r0)
  1008  	return
  1009  }
  1010  
  1011  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1012  
  1013  func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
  1014  	var _p0 *byte
  1015  	_p0, err = BytePtrFromString(path)
  1016  	if err != nil {
  1017  		return
  1018  	}
  1019  	var _p1 *byte
  1020  	_p1, err = BytePtrFromString(attr)
  1021  	if err != nil {
  1022  		return
  1023  	}
  1024  	var _p2 unsafe.Pointer
  1025  	if len(dest) > 0 {
  1026  		_p2 = unsafe.Pointer(&dest[0])
  1027  	} else {
  1028  		_p2 = unsafe.Pointer(&_zero)
  1029  	}
  1030  	r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
  1031  	sz = int(r0)
  1032  	if e1 != 0 {
  1033  		err = errnoErr(e1)
  1034  	}
  1035  	return
  1036  }
  1037  
  1038  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1039  
  1040  func InitModule(moduleImage []byte, params string) (err error) {
  1041  	var _p0 unsafe.Pointer
  1042  	if len(moduleImage) > 0 {
  1043  		_p0 = unsafe.Pointer(&moduleImage[0])
  1044  	} else {
  1045  		_p0 = unsafe.Pointer(&_zero)
  1046  	}
  1047  	var _p1 *byte
  1048  	_p1, err = BytePtrFromString(params)
  1049  	if err != nil {
  1050  		return
  1051  	}
  1052  	_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
  1053  	if e1 != 0 {
  1054  		err = errnoErr(e1)
  1055  	}
  1056  	return
  1057  }
  1058  
  1059  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1060  
  1061  func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
  1062  	var _p0 *byte
  1063  	_p0, err = BytePtrFromString(pathname)
  1064  	if err != nil {
  1065  		return
  1066  	}
  1067  	r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
  1068  	watchdesc = int(r0)
  1069  	if e1 != 0 {
  1070  		err = errnoErr(e1)
  1071  	}
  1072  	return
  1073  }
  1074  
  1075  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1076  
  1077  func InotifyInit1(flags int) (fd int, err error) {
  1078  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
  1079  	fd = int(r0)
  1080  	if e1 != 0 {
  1081  		err = errnoErr(e1)
  1082  	}
  1083  	return
  1084  }
  1085  
  1086  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1087  
  1088  func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
  1089  	r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
  1090  	success = int(r0)
  1091  	if e1 != 0 {
  1092  		err = errnoErr(e1)
  1093  	}
  1094  	return
  1095  }
  1096  
  1097  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1098  
  1099  func Kill(pid int, sig syscall.Signal) (err error) {
  1100  	_, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
  1101  	if e1 != 0 {
  1102  		err = errnoErr(e1)
  1103  	}
  1104  	return
  1105  }
  1106  
  1107  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1108  
  1109  func Klogctl(typ int, buf []byte) (n int, err error) {
  1110  	var _p0 unsafe.Pointer
  1111  	if len(buf) > 0 {
  1112  		_p0 = unsafe.Pointer(&buf[0])
  1113  	} else {
  1114  		_p0 = unsafe.Pointer(&_zero)
  1115  	}
  1116  	r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
  1117  	n = int(r0)
  1118  	if e1 != 0 {
  1119  		err = errnoErr(e1)
  1120  	}
  1121  	return
  1122  }
  1123  
  1124  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1125  
  1126  func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
  1127  	var _p0 *byte
  1128  	_p0, err = BytePtrFromString(path)
  1129  	if err != nil {
  1130  		return
  1131  	}
  1132  	var _p1 *byte
  1133  	_p1, err = BytePtrFromString(attr)
  1134  	if err != nil {
  1135  		return
  1136  	}
  1137  	var _p2 unsafe.Pointer
  1138  	if len(dest) > 0 {
  1139  		_p2 = unsafe.Pointer(&dest[0])
  1140  	} else {
  1141  		_p2 = unsafe.Pointer(&_zero)
  1142  	}
  1143  	r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
  1144  	sz = 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 Listxattr(path string, dest []byte) (sz int, err error) {
  1154  	var _p0 *byte
  1155  	_p0, err = BytePtrFromString(path)
  1156  	if err != nil {
  1157  		return
  1158  	}
  1159  	var _p1 unsafe.Pointer
  1160  	if len(dest) > 0 {
  1161  		_p1 = unsafe.Pointer(&dest[0])
  1162  	} else {
  1163  		_p1 = unsafe.Pointer(&_zero)
  1164  	}
  1165  	r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
  1166  	sz = int(r0)
  1167  	if e1 != 0 {
  1168  		err = errnoErr(e1)
  1169  	}
  1170  	return
  1171  }
  1172  
  1173  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1174  
  1175  func Llistxattr(path string, dest []byte) (sz int, err error) {
  1176  	var _p0 *byte
  1177  	_p0, err = BytePtrFromString(path)
  1178  	if err != nil {
  1179  		return
  1180  	}
  1181  	var _p1 unsafe.Pointer
  1182  	if len(dest) > 0 {
  1183  		_p1 = unsafe.Pointer(&dest[0])
  1184  	} else {
  1185  		_p1 = unsafe.Pointer(&_zero)
  1186  	}
  1187  	r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
  1188  	sz = int(r0)
  1189  	if e1 != 0 {
  1190  		err = errnoErr(e1)
  1191  	}
  1192  	return
  1193  }
  1194  
  1195  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1196  
  1197  func Lremovexattr(path string, attr string) (err error) {
  1198  	var _p0 *byte
  1199  	_p0, err = BytePtrFromString(path)
  1200  	if err != nil {
  1201  		return
  1202  	}
  1203  	var _p1 *byte
  1204  	_p1, err = BytePtrFromString(attr)
  1205  	if err != nil {
  1206  		return
  1207  	}
  1208  	_, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1209  	if e1 != 0 {
  1210  		err = errnoErr(e1)
  1211  	}
  1212  	return
  1213  }
  1214  
  1215  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1216  
  1217  func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
  1218  	var _p0 *byte
  1219  	_p0, err = BytePtrFromString(path)
  1220  	if err != nil {
  1221  		return
  1222  	}
  1223  	var _p1 *byte
  1224  	_p1, err = BytePtrFromString(attr)
  1225  	if err != nil {
  1226  		return
  1227  	}
  1228  	var _p2 unsafe.Pointer
  1229  	if len(data) > 0 {
  1230  		_p2 = unsafe.Pointer(&data[0])
  1231  	} else {
  1232  		_p2 = unsafe.Pointer(&_zero)
  1233  	}
  1234  	_, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  1235  	if e1 != 0 {
  1236  		err = errnoErr(e1)
  1237  	}
  1238  	return
  1239  }
  1240  
  1241  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1242  
  1243  func MemfdCreate(name string, flags int) (fd int, err error) {
  1244  	var _p0 *byte
  1245  	_p0, err = BytePtrFromString(name)
  1246  	if err != nil {
  1247  		return
  1248  	}
  1249  	r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1250  	fd = int(r0)
  1251  	if e1 != 0 {
  1252  		err = errnoErr(e1)
  1253  	}
  1254  	return
  1255  }
  1256  
  1257  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1258  
  1259  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1260  	var _p0 *byte
  1261  	_p0, err = BytePtrFromString(path)
  1262  	if err != nil {
  1263  		return
  1264  	}
  1265  	_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1266  	if e1 != 0 {
  1267  		err = errnoErr(e1)
  1268  	}
  1269  	return
  1270  }
  1271  
  1272  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1273  
  1274  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1275  	var _p0 *byte
  1276  	_p0, err = BytePtrFromString(path)
  1277  	if err != nil {
  1278  		return
  1279  	}
  1280  	_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1281  	if e1 != 0 {
  1282  		err = errnoErr(e1)
  1283  	}
  1284  	return
  1285  }
  1286  
  1287  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1288  
  1289  func MoveMount(fromDirfd int, fromPathName string, toDirfd int, toPathName string, flags int) (err error) {
  1290  	var _p0 *byte
  1291  	_p0, err = BytePtrFromString(fromPathName)
  1292  	if err != nil {
  1293  		return
  1294  	}
  1295  	var _p1 *byte
  1296  	_p1, err = BytePtrFromString(toPathName)
  1297  	if err != nil {
  1298  		return
  1299  	}
  1300  	_, _, e1 := Syscall6(SYS_MOVE_MOUNT, uintptr(fromDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(toDirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
  1301  	if e1 != 0 {
  1302  		err = errnoErr(e1)
  1303  	}
  1304  	return
  1305  }
  1306  
  1307  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1308  
  1309  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1310  	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
  1311  	if e1 != 0 {
  1312  		err = errnoErr(e1)
  1313  	}
  1314  	return
  1315  }
  1316  
  1317  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1318  
  1319  func OpenTree(dfd int, fileName string, flags uint) (r int, err error) {
  1320  	var _p0 *byte
  1321  	_p0, err = BytePtrFromString(fileName)
  1322  	if err != nil {
  1323  		return
  1324  	}
  1325  	r0, _, e1 := Syscall(SYS_OPEN_TREE, uintptr(dfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
  1326  	r = int(r0)
  1327  	if e1 != 0 {
  1328  		err = errnoErr(e1)
  1329  	}
  1330  	return
  1331  }
  1332  
  1333  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1334  
  1335  func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
  1336  	r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
  1337  	fd = int(r0)
  1338  	if e1 != 0 {
  1339  		err = errnoErr(e1)
  1340  	}
  1341  	return
  1342  }
  1343  
  1344  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1345  
  1346  func PivotRoot(newroot string, putold string) (err error) {
  1347  	var _p0 *byte
  1348  	_p0, err = BytePtrFromString(newroot)
  1349  	if err != nil {
  1350  		return
  1351  	}
  1352  	var _p1 *byte
  1353  	_p1, err = BytePtrFromString(putold)
  1354  	if err != nil {
  1355  		return
  1356  	}
  1357  	_, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1358  	if e1 != 0 {
  1359  		err = errnoErr(e1)
  1360  	}
  1361  	return
  1362  }
  1363  
  1364  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1365  
  1366  func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
  1367  	_, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
  1368  	if e1 != 0 {
  1369  		err = errnoErr(e1)
  1370  	}
  1371  	return
  1372  }
  1373  
  1374  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1375  
  1376  func pselect6(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_argpack) (n int, err error) {
  1377  	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)))
  1378  	n = int(r0)
  1379  	if e1 != 0 {
  1380  		err = errnoErr(e1)
  1381  	}
  1382  	return
  1383  }
  1384  
  1385  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1386  
  1387  func read(fd int, p []byte) (n int, err error) {
  1388  	var _p0 unsafe.Pointer
  1389  	if len(p) > 0 {
  1390  		_p0 = unsafe.Pointer(&p[0])
  1391  	} else {
  1392  		_p0 = unsafe.Pointer(&_zero)
  1393  	}
  1394  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1395  	n = int(r0)
  1396  	if e1 != 0 {
  1397  		err = errnoErr(e1)
  1398  	}
  1399  	return
  1400  }
  1401  
  1402  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1403  
  1404  func Removexattr(path string, attr string) (err error) {
  1405  	var _p0 *byte
  1406  	_p0, err = BytePtrFromString(path)
  1407  	if err != nil {
  1408  		return
  1409  	}
  1410  	var _p1 *byte
  1411  	_p1, err = BytePtrFromString(attr)
  1412  	if err != nil {
  1413  		return
  1414  	}
  1415  	_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1416  	if e1 != 0 {
  1417  		err = errnoErr(e1)
  1418  	}
  1419  	return
  1420  }
  1421  
  1422  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1423  
  1424  func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
  1425  	var _p0 *byte
  1426  	_p0, err = BytePtrFromString(oldpath)
  1427  	if err != nil {
  1428  		return
  1429  	}
  1430  	var _p1 *byte
  1431  	_p1, err = BytePtrFromString(newpath)
  1432  	if err != nil {
  1433  		return
  1434  	}
  1435  	_, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
  1436  	if e1 != 0 {
  1437  		err = errnoErr(e1)
  1438  	}
  1439  	return
  1440  }
  1441  
  1442  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1443  
  1444  func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
  1445  	var _p0 *byte
  1446  	_p0, err = BytePtrFromString(keyType)
  1447  	if err != nil {
  1448  		return
  1449  	}
  1450  	var _p1 *byte
  1451  	_p1, err = BytePtrFromString(description)
  1452  	if err != nil {
  1453  		return
  1454  	}
  1455  	var _p2 *byte
  1456  	_p2, err = BytePtrFromString(callback)
  1457  	if err != nil {
  1458  		return
  1459  	}
  1460  	r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
  1461  	id = int(r0)
  1462  	if e1 != 0 {
  1463  		err = errnoErr(e1)
  1464  	}
  1465  	return
  1466  }
  1467  
  1468  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1469  
  1470  func Setdomainname(p []byte) (err error) {
  1471  	var _p0 unsafe.Pointer
  1472  	if len(p) > 0 {
  1473  		_p0 = unsafe.Pointer(&p[0])
  1474  	} else {
  1475  		_p0 = unsafe.Pointer(&_zero)
  1476  	}
  1477  	_, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
  1478  	if e1 != 0 {
  1479  		err = errnoErr(e1)
  1480  	}
  1481  	return
  1482  }
  1483  
  1484  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1485  
  1486  func Sethostname(p []byte) (err error) {
  1487  	var _p0 unsafe.Pointer
  1488  	if len(p) > 0 {
  1489  		_p0 = unsafe.Pointer(&p[0])
  1490  	} else {
  1491  		_p0 = unsafe.Pointer(&_zero)
  1492  	}
  1493  	_, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
  1494  	if e1 != 0 {
  1495  		err = errnoErr(e1)
  1496  	}
  1497  	return
  1498  }
  1499  
  1500  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1501  
  1502  func Setpgid(pid int, pgid int) (err error) {
  1503  	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
  1504  	if e1 != 0 {
  1505  		err = errnoErr(e1)
  1506  	}
  1507  	return
  1508  }
  1509  
  1510  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1511  
  1512  func Setsid() (pid int, err error) {
  1513  	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
  1514  	pid = int(r0)
  1515  	if e1 != 0 {
  1516  		err = errnoErr(e1)
  1517  	}
  1518  	return
  1519  }
  1520  
  1521  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1522  
  1523  func Settimeofday(tv *Timeval) (err error) {
  1524  	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  1525  	if e1 != 0 {
  1526  		err = errnoErr(e1)
  1527  	}
  1528  	return
  1529  }
  1530  
  1531  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1532  
  1533  func Setns(fd int, nstype int) (err error) {
  1534  	_, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0)
  1535  	if e1 != 0 {
  1536  		err = errnoErr(e1)
  1537  	}
  1538  	return
  1539  }
  1540  
  1541  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1542  
  1543  func Setpriority(which int, who int, prio int) (err error) {
  1544  	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
  1545  	if e1 != 0 {
  1546  		err = errnoErr(e1)
  1547  	}
  1548  	return
  1549  }
  1550  
  1551  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1552  
  1553  func Setxattr(path string, attr string, data []byte, flags int) (err error) {
  1554  	var _p0 *byte
  1555  	_p0, err = BytePtrFromString(path)
  1556  	if err != nil {
  1557  		return
  1558  	}
  1559  	var _p1 *byte
  1560  	_p1, err = BytePtrFromString(attr)
  1561  	if err != nil {
  1562  		return
  1563  	}
  1564  	var _p2 unsafe.Pointer
  1565  	if len(data) > 0 {
  1566  		_p2 = unsafe.Pointer(&data[0])
  1567  	} else {
  1568  		_p2 = unsafe.Pointer(&_zero)
  1569  	}
  1570  	_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  1571  	if e1 != 0 {
  1572  		err = errnoErr(e1)
  1573  	}
  1574  	return
  1575  }
  1576  
  1577  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1578  
  1579  func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
  1580  	r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
  1581  	newfd = int(r0)
  1582  	if e1 != 0 {
  1583  		err = errnoErr(e1)
  1584  	}
  1585  	return
  1586  }
  1587  
  1588  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1589  
  1590  func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
  1591  	var _p0 *byte
  1592  	_p0, err = BytePtrFromString(path)
  1593  	if err != nil {
  1594  		return
  1595  	}
  1596  	_, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
  1597  	if e1 != 0 {
  1598  		err = errnoErr(e1)
  1599  	}
  1600  	return
  1601  }
  1602  
  1603  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1604  
  1605  func Sync() {
  1606  	SyscallNoError(SYS_SYNC, 0, 0, 0)
  1607  	return
  1608  }
  1609  
  1610  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1611  
  1612  func Syncfs(fd int) (err error) {
  1613  	_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 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 Sysinfo(info *Sysinfo_t) (err error) {
  1623  	_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
  1624  	if e1 != 0 {
  1625  		err = errnoErr(e1)
  1626  	}
  1627  	return
  1628  }
  1629  
  1630  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1631  
  1632  func TimerfdCreate(clockid int, flags int) (fd int, err error) {
  1633  	r0, _, e1 := RawSyscall(SYS_TIMERFD_CREATE, uintptr(clockid), uintptr(flags), 0)
  1634  	fd = int(r0)
  1635  	if e1 != 0 {
  1636  		err = errnoErr(e1)
  1637  	}
  1638  	return
  1639  }
  1640  
  1641  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1642  
  1643  func TimerfdGettime(fd int, currValue *ItimerSpec) (err error) {
  1644  	_, _, e1 := RawSyscall(SYS_TIMERFD_GETTIME, uintptr(fd), uintptr(unsafe.Pointer(currValue)), 0)
  1645  	if e1 != 0 {
  1646  		err = errnoErr(e1)
  1647  	}
  1648  	return
  1649  }
  1650  
  1651  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1652  
  1653  func TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) {
  1654  	_, _, e1 := RawSyscall6(SYS_TIMERFD_SETTIME, uintptr(fd), uintptr(flags), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)), 0, 0)
  1655  	if e1 != 0 {
  1656  		err = errnoErr(e1)
  1657  	}
  1658  	return
  1659  }
  1660  
  1661  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1662  
  1663  func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
  1664  	_, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
  1665  	if e1 != 0 {
  1666  		err = errnoErr(e1)
  1667  	}
  1668  	return
  1669  }
  1670  
  1671  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1672  
  1673  func Times(tms *Tms) (ticks uintptr, err error) {
  1674  	r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
  1675  	ticks = uintptr(r0)
  1676  	if e1 != 0 {
  1677  		err = errnoErr(e1)
  1678  	}
  1679  	return
  1680  }
  1681  
  1682  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1683  
  1684  func Umask(mask int) (oldmask int) {
  1685  	r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
  1686  	oldmask = int(r0)
  1687  	return
  1688  }
  1689  
  1690  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1691  
  1692  func Uname(buf *Utsname) (err error) {
  1693  	_, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
  1694  	if e1 != 0 {
  1695  		err = errnoErr(e1)
  1696  	}
  1697  	return
  1698  }
  1699  
  1700  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1701  
  1702  func Unmount(target string, flags int) (err error) {
  1703  	var _p0 *byte
  1704  	_p0, err = BytePtrFromString(target)
  1705  	if err != nil {
  1706  		return
  1707  	}
  1708  	_, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1709  	if e1 != 0 {
  1710  		err = errnoErr(e1)
  1711  	}
  1712  	return
  1713  }
  1714  
  1715  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1716  
  1717  func Unshare(flags int) (err error) {
  1718  	_, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
  1719  	if e1 != 0 {
  1720  		err = errnoErr(e1)
  1721  	}
  1722  	return
  1723  }
  1724  
  1725  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1726  
  1727  func write(fd int, p []byte) (n int, err error) {
  1728  	var _p0 unsafe.Pointer
  1729  	if len(p) > 0 {
  1730  		_p0 = unsafe.Pointer(&p[0])
  1731  	} else {
  1732  		_p0 = unsafe.Pointer(&_zero)
  1733  	}
  1734  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1735  	n = int(r0)
  1736  	if e1 != 0 {
  1737  		err = errnoErr(e1)
  1738  	}
  1739  	return
  1740  }
  1741  
  1742  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1743  
  1744  func exitThread(code int) (err error) {
  1745  	_, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
  1746  	if e1 != 0 {
  1747  		err = errnoErr(e1)
  1748  	}
  1749  	return
  1750  }
  1751  
  1752  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1753  
  1754  func readv(fd int, iovs []Iovec) (n int, err error) {
  1755  	var _p0 unsafe.Pointer
  1756  	if len(iovs) > 0 {
  1757  		_p0 = unsafe.Pointer(&iovs[0])
  1758  	} else {
  1759  		_p0 = unsafe.Pointer(&_zero)
  1760  	}
  1761  	r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
  1762  	n = int(r0)
  1763  	if e1 != 0 {
  1764  		err = errnoErr(e1)
  1765  	}
  1766  	return
  1767  }
  1768  
  1769  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1770  
  1771  func writev(fd int, iovs []Iovec) (n int, err error) {
  1772  	var _p0 unsafe.Pointer
  1773  	if len(iovs) > 0 {
  1774  		_p0 = unsafe.Pointer(&iovs[0])
  1775  	} else {
  1776  		_p0 = unsafe.Pointer(&_zero)
  1777  	}
  1778  	r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
  1779  	n = int(r0)
  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 preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
  1789  	var _p0 unsafe.Pointer
  1790  	if len(iovs) > 0 {
  1791  		_p0 = unsafe.Pointer(&iovs[0])
  1792  	} else {
  1793  		_p0 = unsafe.Pointer(&_zero)
  1794  	}
  1795  	r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
  1796  	n = int(r0)
  1797  	if e1 != 0 {
  1798  		err = errnoErr(e1)
  1799  	}
  1800  	return
  1801  }
  1802  
  1803  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1804  
  1805  func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
  1806  	var _p0 unsafe.Pointer
  1807  	if len(iovs) > 0 {
  1808  		_p0 = unsafe.Pointer(&iovs[0])
  1809  	} else {
  1810  		_p0 = unsafe.Pointer(&_zero)
  1811  	}
  1812  	r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
  1813  	n = int(r0)
  1814  	if e1 != 0 {
  1815  		err = errnoErr(e1)
  1816  	}
  1817  	return
  1818  }
  1819  
  1820  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1821  
  1822  func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
  1823  	var _p0 unsafe.Pointer
  1824  	if len(iovs) > 0 {
  1825  		_p0 = unsafe.Pointer(&iovs[0])
  1826  	} else {
  1827  		_p0 = unsafe.Pointer(&_zero)
  1828  	}
  1829  	r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
  1830  	n = int(r0)
  1831  	if e1 != 0 {
  1832  		err = errnoErr(e1)
  1833  	}
  1834  	return
  1835  }
  1836  
  1837  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1838  
  1839  func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
  1840  	var _p0 unsafe.Pointer
  1841  	if len(iovs) > 0 {
  1842  		_p0 = unsafe.Pointer(&iovs[0])
  1843  	} else {
  1844  		_p0 = unsafe.Pointer(&_zero)
  1845  	}
  1846  	r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
  1847  	n = int(r0)
  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 munmap(addr uintptr, length uintptr) (err error) {
  1857  	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
  1858  	if e1 != 0 {
  1859  		err = errnoErr(e1)
  1860  	}
  1861  	return
  1862  }
  1863  
  1864  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1865  
  1866  func mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error) {
  1867  	r0, _, e1 := Syscall6(SYS_MREMAP, uintptr(oldaddr), uintptr(oldlength), uintptr(newlength), uintptr(flags), uintptr(newaddr), 0)
  1868  	xaddr = uintptr(r0)
  1869  	if e1 != 0 {
  1870  		err = errnoErr(e1)
  1871  	}
  1872  	return
  1873  }
  1874  
  1875  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1876  
  1877  func Madvise(b []byte, advice int) (err error) {
  1878  	var _p0 unsafe.Pointer
  1879  	if len(b) > 0 {
  1880  		_p0 = unsafe.Pointer(&b[0])
  1881  	} else {
  1882  		_p0 = unsafe.Pointer(&_zero)
  1883  	}
  1884  	_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
  1885  	if e1 != 0 {
  1886  		err = errnoErr(e1)
  1887  	}
  1888  	return
  1889  }
  1890  
  1891  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1892  
  1893  func Mprotect(b []byte, prot int) (err error) {
  1894  	var _p0 unsafe.Pointer
  1895  	if len(b) > 0 {
  1896  		_p0 = unsafe.Pointer(&b[0])
  1897  	} else {
  1898  		_p0 = unsafe.Pointer(&_zero)
  1899  	}
  1900  	_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
  1901  	if e1 != 0 {
  1902  		err = errnoErr(e1)
  1903  	}
  1904  	return
  1905  }
  1906  
  1907  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1908  
  1909  func Mlock(b []byte) (err error) {
  1910  	var _p0 unsafe.Pointer
  1911  	if len(b) > 0 {
  1912  		_p0 = unsafe.Pointer(&b[0])
  1913  	} else {
  1914  		_p0 = unsafe.Pointer(&_zero)
  1915  	}
  1916  	_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1917  	if e1 != 0 {
  1918  		err = errnoErr(e1)
  1919  	}
  1920  	return
  1921  }
  1922  
  1923  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1924  
  1925  func Mlockall(flags int) (err error) {
  1926  	_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
  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 Msync(b []byte, flags int) (err error) {
  1936  	var _p0 unsafe.Pointer
  1937  	if len(b) > 0 {
  1938  		_p0 = unsafe.Pointer(&b[0])
  1939  	} else {
  1940  		_p0 = unsafe.Pointer(&_zero)
  1941  	}
  1942  	_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
  1943  	if e1 != 0 {
  1944  		err = errnoErr(e1)
  1945  	}
  1946  	return
  1947  }
  1948  
  1949  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1950  
  1951  func Munlock(b []byte) (err error) {
  1952  	var _p0 unsafe.Pointer
  1953  	if len(b) > 0 {
  1954  		_p0 = unsafe.Pointer(&b[0])
  1955  	} else {
  1956  		_p0 = unsafe.Pointer(&_zero)
  1957  	}
  1958  	_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1959  	if e1 != 0 {
  1960  		err = errnoErr(e1)
  1961  	}
  1962  	return
  1963  }
  1964  
  1965  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1966  
  1967  func Munlockall() (err error) {
  1968  	_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
  1969  	if e1 != 0 {
  1970  		err = errnoErr(e1)
  1971  	}
  1972  	return
  1973  }
  1974  
  1975  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1976  
  1977  func faccessat(dirfd int, path string, mode uint32) (err error) {
  1978  	var _p0 *byte
  1979  	_p0, err = BytePtrFromString(path)
  1980  	if err != nil {
  1981  		return
  1982  	}
  1983  	_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1984  	if e1 != 0 {
  1985  		err = errnoErr(e1)
  1986  	}
  1987  	return
  1988  }
  1989  
  1990  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1991  
  1992  func Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) {
  1993  	var _p0 *byte
  1994  	_p0, err = BytePtrFromString(path)
  1995  	if err != nil {
  1996  		return
  1997  	}
  1998  	_, _, e1 := Syscall6(SYS_FACCESSAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
  1999  	if e1 != 0 {
  2000  		err = errnoErr(e1)
  2001  	}
  2002  	return
  2003  }
  2004  
  2005  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2006  
  2007  func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
  2008  	var _p0 *byte
  2009  	_p0, err = BytePtrFromString(pathname)
  2010  	if err != nil {
  2011  		return
  2012  	}
  2013  	_, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0)
  2014  	if e1 != 0 {
  2015  		err = errnoErr(e1)
  2016  	}
  2017  	return
  2018  }
  2019  
  2020  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2021  
  2022  func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) {
  2023  	r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags))
  2024  	fd = int(r0)
  2025  	if e1 != 0 {
  2026  		err = errnoErr(e1)
  2027  	}
  2028  	return
  2029  }
  2030  
  2031  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2032  
  2033  func ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
  2034  	var _p0 unsafe.Pointer
  2035  	if len(localIov) > 0 {
  2036  		_p0 = unsafe.Pointer(&localIov[0])
  2037  	} else {
  2038  		_p0 = unsafe.Pointer(&_zero)
  2039  	}
  2040  	var _p1 unsafe.Pointer
  2041  	if len(remoteIov) > 0 {
  2042  		_p1 = unsafe.Pointer(&remoteIov[0])
  2043  	} else {
  2044  		_p1 = unsafe.Pointer(&_zero)
  2045  	}
  2046  	r0, _, e1 := Syscall6(SYS_PROCESS_VM_READV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
  2047  	n = int(r0)
  2048  	if e1 != 0 {
  2049  		err = errnoErr(e1)
  2050  	}
  2051  	return
  2052  }
  2053  
  2054  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2055  
  2056  func ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
  2057  	var _p0 unsafe.Pointer
  2058  	if len(localIov) > 0 {
  2059  		_p0 = unsafe.Pointer(&localIov[0])
  2060  	} else {
  2061  		_p0 = unsafe.Pointer(&_zero)
  2062  	}
  2063  	var _p1 unsafe.Pointer
  2064  	if len(remoteIov) > 0 {
  2065  		_p1 = unsafe.Pointer(&remoteIov[0])
  2066  	} else {
  2067  		_p1 = unsafe.Pointer(&_zero)
  2068  	}
  2069  	r0, _, e1 := Syscall6(SYS_PROCESS_VM_WRITEV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
  2070  	n = int(r0)
  2071  	if e1 != 0 {
  2072  		err = errnoErr(e1)
  2073  	}
  2074  	return
  2075  }
  2076  
  2077  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2078  
  2079  func PidfdOpen(pid int, flags int) (fd int, err error) {
  2080  	r0, _, e1 := Syscall(SYS_PIDFD_OPEN, uintptr(pid), uintptr(flags), 0)
  2081  	fd = int(r0)
  2082  	if e1 != 0 {
  2083  		err = errnoErr(e1)
  2084  	}
  2085  	return
  2086  }
  2087  
  2088  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2089  
  2090  func PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) {
  2091  	r0, _, e1 := Syscall(SYS_PIDFD_GETFD, uintptr(pidfd), uintptr(targetfd), uintptr(flags))
  2092  	fd = int(r0)
  2093  	if e1 != 0 {
  2094  		err = errnoErr(e1)
  2095  	}
  2096  	return
  2097  }
  2098  
  2099  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2100  
  2101  func PidfdSendSignal(pidfd int, sig Signal, info *Siginfo, flags int) (err error) {
  2102  	_, _, e1 := Syscall6(SYS_PIDFD_SEND_SIGNAL, uintptr(pidfd), uintptr(sig), uintptr(unsafe.Pointer(info)), uintptr(flags), 0, 0)
  2103  	if e1 != 0 {
  2104  		err = errnoErr(e1)
  2105  	}
  2106  	return
  2107  }
  2108  
  2109  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2110  
  2111  func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) {
  2112  	r0, _, e1 := Syscall(SYS_SHMAT, uintptr(id), uintptr(addr), uintptr(flag))
  2113  	ret = uintptr(r0)
  2114  	if e1 != 0 {
  2115  		err = errnoErr(e1)
  2116  	}
  2117  	return
  2118  }
  2119  
  2120  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2121  
  2122  func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) {
  2123  	r0, _, e1 := Syscall(SYS_SHMCTL, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf)))
  2124  	result = int(r0)
  2125  	if e1 != 0 {
  2126  		err = errnoErr(e1)
  2127  	}
  2128  	return
  2129  }
  2130  
  2131  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2132  
  2133  func shmdt(addr uintptr) (err error) {
  2134  	_, _, e1 := Syscall(SYS_SHMDT, uintptr(addr), 0, 0)
  2135  	if e1 != 0 {
  2136  		err = errnoErr(e1)
  2137  	}
  2138  	return
  2139  }
  2140  
  2141  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2142  
  2143  func shmget(key int, size int, flag int) (id int, err error) {
  2144  	r0, _, e1 := Syscall(SYS_SHMGET, uintptr(key), uintptr(size), uintptr(flag))
  2145  	id = int(r0)
  2146  	if e1 != 0 {
  2147  		err = errnoErr(e1)
  2148  	}
  2149  	return
  2150  }
  2151  
  2152  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2153  
  2154  func getitimer(which int, currValue *Itimerval) (err error) {
  2155  	_, _, e1 := Syscall(SYS_GETITIMER, uintptr(which), uintptr(unsafe.Pointer(currValue)), 0)
  2156  	if e1 != 0 {
  2157  		err = errnoErr(e1)
  2158  	}
  2159  	return
  2160  }
  2161  
  2162  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2163  
  2164  func setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) {
  2165  	_, _, e1 := Syscall(SYS_SETITIMER, uintptr(which), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)))
  2166  	if e1 != 0 {
  2167  		err = errnoErr(e1)
  2168  	}
  2169  	return
  2170  }
  2171  
  2172  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2173  
  2174  func rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) {
  2175  	_, _, e1 := RawSyscall6(SYS_RT_SIGPROCMASK, uintptr(how), uintptr(unsafe.Pointer(set)), uintptr(unsafe.Pointer(oldset)), uintptr(sigsetsize), 0, 0)
  2176  	if e1 != 0 {
  2177  		err = errnoErr(e1)
  2178  	}
  2179  	return
  2180  }
  2181  
  2182  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2183  
  2184  func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) {
  2185  	RawSyscallNoError(SYS_GETRESUID, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid)))
  2186  	return
  2187  }
  2188  
  2189  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2190  
  2191  func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) {
  2192  	RawSyscallNoError(SYS_GETRESGID, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid)))
  2193  	return
  2194  }
  2195  
  2196  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2197  
  2198  func schedSetattr(pid int, attr *SchedAttr, flags uint) (err error) {
  2199  	_, _, e1 := Syscall(SYS_SCHED_SETATTR, uintptr(pid), uintptr(unsafe.Pointer(attr)), uintptr(flags))
  2200  	if e1 != 0 {
  2201  		err = errnoErr(e1)
  2202  	}
  2203  	return
  2204  }
  2205  
  2206  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2207  
  2208  func schedGetattr(pid int, attr *SchedAttr, size uint, flags uint) (err error) {
  2209  	_, _, e1 := Syscall6(SYS_SCHED_GETATTR, uintptr(pid), uintptr(unsafe.Pointer(attr)), uintptr(size), uintptr(flags), 0, 0)
  2210  	if e1 != 0 {
  2211  		err = errnoErr(e1)
  2212  	}
  2213  	return
  2214  }
  2215  
  2216  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2217  
  2218  func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) {
  2219  	_, _, e1 := Syscall6(SYS_CACHESTAT, uintptr(fd), uintptr(unsafe.Pointer(crange)), uintptr(unsafe.Pointer(cstat)), uintptr(flags), 0, 0)
  2220  	if e1 != 0 {
  2221  		err = errnoErr(e1)
  2222  	}
  2223  	return
  2224  }
  2225  
  2226  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2227  
  2228  func Mseal(b []byte, flags uint) (err error) {
  2229  	var _p0 unsafe.Pointer
  2230  	if len(b) > 0 {
  2231  		_p0 = unsafe.Pointer(&b[0])
  2232  	} else {
  2233  		_p0 = unsafe.Pointer(&_zero)
  2234  	}
  2235  	_, _, e1 := Syscall(SYS_MSEAL, uintptr(_p0), uintptr(len(b)), uintptr(flags))
  2236  	if e1 != 0 {
  2237  		err = errnoErr(e1)
  2238  	}
  2239  	return
  2240  }
  2241  

View as plain text