github.com/Andyfoo/golang/x/sys@v0.0.0-20190901054642-57c1bf301704/unix/zsyscall_linux_arm64.go (about)

     1  // go run mksyscall.go -tags linux,arm64 syscall_linux.go syscall_linux_arm64.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  // +build linux,arm64
     5  
     6  package unix
     7  
     8  import (
     9  	"syscall"
    10  	"unsafe"
    11  )
    12  
    13  var _ syscall.Errno
    14  
    15  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16  
    17  func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
    18  	r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
    19  	fd = int(r0)
    20  	if e1 != 0 {
    21  		err = errnoErr(e1)
    22  	}
    23  	return
    24  }
    25  
    26  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    27  
    28  func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
    29  	_, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
    30  	if e1 != 0 {
    31  		err = errnoErr(e1)
    32  	}
    33  	return
    34  }
    35  
    36  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    37  
    38  func fchmodat(dirfd int, path string, mode uint32) (err error) {
    39  	var _p0 *byte
    40  	_p0, err = BytePtrFromString(path)
    41  	if err != nil {
    42  		return
    43  	}
    44  	_, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
    45  	if e1 != 0 {
    46  		err = errnoErr(e1)
    47  	}
    48  	return
    49  }
    50  
    51  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    52  
    53  func ioctl(fd int, req uint, arg uintptr) (err error) {
    54  	_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
    55  	if e1 != 0 {
    56  		err = errnoErr(e1)
    57  	}
    58  	return
    59  }
    60  
    61  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    62  
    63  func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
    64  	var _p0 *byte
    65  	_p0, err = BytePtrFromString(oldpath)
    66  	if err != nil {
    67  		return
    68  	}
    69  	var _p1 *byte
    70  	_p1, err = BytePtrFromString(newpath)
    71  	if err != nil {
    72  		return
    73  	}
    74  	_, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
    75  	if e1 != 0 {
    76  		err = errnoErr(e1)
    77  	}
    78  	return
    79  }
    80  
    81  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    82  
    83  func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
    84  	var _p0 *byte
    85  	_p0, err = BytePtrFromString(path)
    86  	if err != nil {
    87  		return
    88  	}
    89  	r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
    90  	fd = int(r0)
    91  	if e1 != 0 {
    92  		err = errnoErr(e1)
    93  	}
    94  	return
    95  }
    96  
    97  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    98  
    99  func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
   100  	r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
   101  	n = int(r0)
   102  	if e1 != 0 {
   103  		err = errnoErr(e1)
   104  	}
   105  	return
   106  }
   107  
   108  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   109  
   110  func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
   111  	var _p0 *byte
   112  	_p0, err = BytePtrFromString(path)
   113  	if err != nil {
   114  		return
   115  	}
   116  	var _p1 unsafe.Pointer
   117  	if len(buf) > 0 {
   118  		_p1 = unsafe.Pointer(&buf[0])
   119  	} else {
   120  		_p1 = unsafe.Pointer(&_zero)
   121  	}
   122  	r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
   123  	n = int(r0)
   124  	if e1 != 0 {
   125  		err = errnoErr(e1)
   126  	}
   127  	return
   128  }
   129  
   130  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   131  
   132  func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
   133  	var _p0 *byte
   134  	_p0, err = BytePtrFromString(oldpath)
   135  	if err != nil {
   136  		return
   137  	}
   138  	var _p1 *byte
   139  	_p1, err = BytePtrFromString(newpath)
   140  	if err != nil {
   141  		return
   142  	}
   143  	_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
   144  	if e1 != 0 {
   145  		err = errnoErr(e1)
   146  	}
   147  	return
   148  }
   149  
   150  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   151  
   152  func Unlinkat(dirfd int, path string, flags int) (err error) {
   153  	var _p0 *byte
   154  	_p0, err = BytePtrFromString(path)
   155  	if err != nil {
   156  		return
   157  	}
   158  	_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
   159  	if e1 != 0 {
   160  		err = errnoErr(e1)
   161  	}
   162  	return
   163  }
   164  
   165  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   166  
   167  func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
   168  	var _p0 *byte
   169  	_p0, err = BytePtrFromString(path)
   170  	if err != nil {
   171  		return
   172  	}
   173  	_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
   174  	if e1 != 0 {
   175  		err = errnoErr(e1)
   176  	}
   177  	return
   178  }
   179  
   180  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   181  
   182  func Getcwd(buf []byte) (n int, err error) {
   183  	var _p0 unsafe.Pointer
   184  	if len(buf) > 0 {
   185  		_p0 = unsafe.Pointer(&buf[0])
   186  	} else {
   187  		_p0 = unsafe.Pointer(&_zero)
   188  	}
   189  	r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
   190  	n = int(r0)
   191  	if e1 != 0 {
   192  		err = errnoErr(e1)
   193  	}
   194  	return
   195  }
   196  
   197  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   198  
   199  func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
   200  	r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
   201  	wpid = int(r0)
   202  	if e1 != 0 {
   203  		err = errnoErr(e1)
   204  	}
   205  	return
   206  }
   207  
   208  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   209  
   210  func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
   211  	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
   212  	ret = int(r0)
   213  	if e1 != 0 {
   214  		err = errnoErr(e1)
   215  	}
   216  	return
   217  }
   218  
   219  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   220  
   221  func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
   222  	var _p0 unsafe.Pointer
   223  	if len(buf) > 0 {
   224  		_p0 = unsafe.Pointer(&buf[0])
   225  	} else {
   226  		_p0 = unsafe.Pointer(&_zero)
   227  	}
   228  	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
   229  	ret = int(r0)
   230  	if e1 != 0 {
   231  		err = errnoErr(e1)
   232  	}
   233  	return
   234  }
   235  
   236  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   237  
   238  func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
   239  	var _p0 *byte
   240  	_p0, err = BytePtrFromString(arg2)
   241  	if err != nil {
   242  		return
   243  	}
   244  	r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
   245  	ret = int(r0)
   246  	if e1 != 0 {
   247  		err = errnoErr(e1)
   248  	}
   249  	return
   250  }
   251  
   252  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   253  
   254  func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
   255  	var _p0 *byte
   256  	_p0, err = BytePtrFromString(arg3)
   257  	if err != nil {
   258  		return
   259  	}
   260  	var _p1 *byte
   261  	_p1, err = BytePtrFromString(arg4)
   262  	if err != nil {
   263  		return
   264  	}
   265  	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
   266  	ret = int(r0)
   267  	if e1 != 0 {
   268  		err = errnoErr(e1)
   269  	}
   270  	return
   271  }
   272  
   273  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   274  
   275  func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
   276  	var _p0 unsafe.Pointer
   277  	if len(payload) > 0 {
   278  		_p0 = unsafe.Pointer(&payload[0])
   279  	} else {
   280  		_p0 = unsafe.Pointer(&_zero)
   281  	}
   282  	_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
   283  	if e1 != 0 {
   284  		err = errnoErr(e1)
   285  	}
   286  	return
   287  }
   288  
   289  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   290  
   291  func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
   292  	var _p0 unsafe.Pointer
   293  	if len(buf) > 0 {
   294  		_p0 = unsafe.Pointer(&buf[0])
   295  	} else {
   296  		_p0 = unsafe.Pointer(&_zero)
   297  	}
   298  	r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
   299  	ret = int(r0)
   300  	if e1 != 0 {
   301  		err = errnoErr(e1)
   302  	}
   303  	return
   304  }
   305  
   306  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   307  
   308  func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
   309  	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
   310  	if e1 != 0 {
   311  		err = errnoErr(e1)
   312  	}
   313  	return
   314  }
   315  
   316  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   317  
   318  func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
   319  	var _p0 *byte
   320  	_p0, err = BytePtrFromString(arg)
   321  	if err != nil {
   322  		return
   323  	}
   324  	_, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
   325  	if e1 != 0 {
   326  		err = errnoErr(e1)
   327  	}
   328  	return
   329  }
   330  
   331  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   332  
   333  func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
   334  	var _p0 *byte
   335  	_p0, err = BytePtrFromString(source)
   336  	if err != nil {
   337  		return
   338  	}
   339  	var _p1 *byte
   340  	_p1, err = BytePtrFromString(target)
   341  	if err != nil {
   342  		return
   343  	}
   344  	var _p2 *byte
   345  	_p2, err = BytePtrFromString(fstype)
   346  	if err != nil {
   347  		return
   348  	}
   349  	_, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
   350  	if e1 != 0 {
   351  		err = errnoErr(e1)
   352  	}
   353  	return
   354  }
   355  
   356  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   357  
   358  func Acct(path string) (err error) {
   359  	var _p0 *byte
   360  	_p0, err = BytePtrFromString(path)
   361  	if err != nil {
   362  		return
   363  	}
   364  	_, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   365  	if e1 != 0 {
   366  		err = errnoErr(e1)
   367  	}
   368  	return
   369  }
   370  
   371  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   372  
   373  func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
   374  	var _p0 *byte
   375  	_p0, err = BytePtrFromString(keyType)
   376  	if err != nil {
   377  		return
   378  	}
   379  	var _p1 *byte
   380  	_p1, err = BytePtrFromString(description)
   381  	if err != nil {
   382  		return
   383  	}
   384  	var _p2 unsafe.Pointer
   385  	if len(payload) > 0 {
   386  		_p2 = unsafe.Pointer(&payload[0])
   387  	} else {
   388  		_p2 = unsafe.Pointer(&_zero)
   389  	}
   390  	r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
   391  	id = int(r0)
   392  	if e1 != 0 {
   393  		err = errnoErr(e1)
   394  	}
   395  	return
   396  }
   397  
   398  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   399  
   400  func Adjtimex(buf *Timex) (state int, err error) {
   401  	r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
   402  	state = int(r0)
   403  	if e1 != 0 {
   404  		err = errnoErr(e1)
   405  	}
   406  	return
   407  }
   408  
   409  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   410  
   411  func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
   412  	_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 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 Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
   422  	_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
   423  	if e1 != 0 {
   424  		err = errnoErr(e1)
   425  	}
   426  	return
   427  }
   428  
   429  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   430  
   431  func Chdir(path string) (err error) {
   432  	var _p0 *byte
   433  	_p0, err = BytePtrFromString(path)
   434  	if err != nil {
   435  		return
   436  	}
   437  	_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 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 Chroot(path string) (err error) {
   447  	var _p0 *byte
   448  	_p0, err = BytePtrFromString(path)
   449  	if err != nil {
   450  		return
   451  	}
   452  	_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 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 ClockGetres(clockid int32, res *Timespec) (err error) {
   462  	_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
   463  	if e1 != 0 {
   464  		err = errnoErr(e1)
   465  	}
   466  	return
   467  }
   468  
   469  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   470  
   471  func ClockGettime(clockid int32, time *Timespec) (err error) {
   472  	_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
   473  	if e1 != 0 {
   474  		err = errnoErr(e1)
   475  	}
   476  	return
   477  }
   478  
   479  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   480  
   481  func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) {
   482  	_, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0)
   483  	if e1 != 0 {
   484  		err = errnoErr(e1)
   485  	}
   486  	return
   487  }
   488  
   489  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   490  
   491  func Close(fd int) (err error) {
   492  	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
   493  	if e1 != 0 {
   494  		err = errnoErr(e1)
   495  	}
   496  	return
   497  }
   498  
   499  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   500  
   501  func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
   502  	r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
   503  	n = int(r0)
   504  	if e1 != 0 {
   505  		err = errnoErr(e1)
   506  	}
   507  	return
   508  }
   509  
   510  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   511  
   512  func DeleteModule(name string, flags int) (err error) {
   513  	var _p0 *byte
   514  	_p0, err = BytePtrFromString(name)
   515  	if err != nil {
   516  		return
   517  	}
   518  	_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   519  	if e1 != 0 {
   520  		err = errnoErr(e1)
   521  	}
   522  	return
   523  }
   524  
   525  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   526  
   527  func Dup(oldfd int) (fd int, err error) {
   528  	r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
   529  	fd = int(r0)
   530  	if e1 != 0 {
   531  		err = errnoErr(e1)
   532  	}
   533  	return
   534  }
   535  
   536  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   537  
   538  func Dup3(oldfd int, newfd int, flags int) (err error) {
   539  	_, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
   540  	if e1 != 0 {
   541  		err = errnoErr(e1)
   542  	}
   543  	return
   544  }
   545  
   546  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   547  
   548  func EpollCreate1(flag int) (fd int, err error) {
   549  	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
   550  	fd = int(r0)
   551  	if e1 != 0 {
   552  		err = errnoErr(e1)
   553  	}
   554  	return
   555  }
   556  
   557  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   558  
   559  func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
   560  	_, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
   561  	if e1 != 0 {
   562  		err = errnoErr(e1)
   563  	}
   564  	return
   565  }
   566  
   567  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   568  
   569  func Eventfd(initval uint, flags int) (fd int, err error) {
   570  	r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
   571  	fd = int(r0)
   572  	if e1 != 0 {
   573  		err = errnoErr(e1)
   574  	}
   575  	return
   576  }
   577  
   578  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   579  
   580  func Exit(code int) {
   581  	SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
   582  	return
   583  }
   584  
   585  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   586  
   587  func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
   588  	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
   589  	if e1 != 0 {
   590  		err = errnoErr(e1)
   591  	}
   592  	return
   593  }
   594  
   595  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   596  
   597  func Fchdir(fd int) (err error) {
   598  	_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
   599  	if e1 != 0 {
   600  		err = errnoErr(e1)
   601  	}
   602  	return
   603  }
   604  
   605  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   606  
   607  func Fchmod(fd int, mode uint32) (err error) {
   608  	_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
   609  	if e1 != 0 {
   610  		err = errnoErr(e1)
   611  	}
   612  	return
   613  }
   614  
   615  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   616  
   617  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   618  	var _p0 *byte
   619  	_p0, err = BytePtrFromString(path)
   620  	if err != nil {
   621  		return
   622  	}
   623  	_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   624  	if e1 != 0 {
   625  		err = errnoErr(e1)
   626  	}
   627  	return
   628  }
   629  
   630  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   631  
   632  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   633  	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
   634  	val = int(r0)
   635  	if e1 != 0 {
   636  		err = errnoErr(e1)
   637  	}
   638  	return
   639  }
   640  
   641  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   642  
   643  func Fdatasync(fd int) (err error) {
   644  	_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
   645  	if e1 != 0 {
   646  		err = errnoErr(e1)
   647  	}
   648  	return
   649  }
   650  
   651  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   652  
   653  func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
   654  	var _p0 *byte
   655  	_p0, err = BytePtrFromString(attr)
   656  	if err != nil {
   657  		return
   658  	}
   659  	var _p1 unsafe.Pointer
   660  	if len(dest) > 0 {
   661  		_p1 = unsafe.Pointer(&dest[0])
   662  	} else {
   663  		_p1 = unsafe.Pointer(&_zero)
   664  	}
   665  	r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
   666  	sz = int(r0)
   667  	if e1 != 0 {
   668  		err = errnoErr(e1)
   669  	}
   670  	return
   671  }
   672  
   673  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   674  
   675  func FinitModule(fd int, params string, flags int) (err error) {
   676  	var _p0 *byte
   677  	_p0, err = BytePtrFromString(params)
   678  	if err != nil {
   679  		return
   680  	}
   681  	_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
   682  	if e1 != 0 {
   683  		err = errnoErr(e1)
   684  	}
   685  	return
   686  }
   687  
   688  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   689  
   690  func Flistxattr(fd int, dest []byte) (sz int, err error) {
   691  	var _p0 unsafe.Pointer
   692  	if len(dest) > 0 {
   693  		_p0 = unsafe.Pointer(&dest[0])
   694  	} else {
   695  		_p0 = unsafe.Pointer(&_zero)
   696  	}
   697  	r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
   698  	sz = int(r0)
   699  	if e1 != 0 {
   700  		err = errnoErr(e1)
   701  	}
   702  	return
   703  }
   704  
   705  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   706  
   707  func Flock(fd int, how int) (err error) {
   708  	_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
   709  	if e1 != 0 {
   710  		err = errnoErr(e1)
   711  	}
   712  	return
   713  }
   714  
   715  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   716  
   717  func Fremovexattr(fd int, attr string) (err error) {
   718  	var _p0 *byte
   719  	_p0, err = BytePtrFromString(attr)
   720  	if err != nil {
   721  		return
   722  	}
   723  	_, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
   724  	if e1 != 0 {
   725  		err = errnoErr(e1)
   726  	}
   727  	return
   728  }
   729  
   730  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   731  
   732  func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
   733  	var _p0 *byte
   734  	_p0, err = BytePtrFromString(attr)
   735  	if err != nil {
   736  		return
   737  	}
   738  	var _p1 unsafe.Pointer
   739  	if len(dest) > 0 {
   740  		_p1 = unsafe.Pointer(&dest[0])
   741  	} else {
   742  		_p1 = unsafe.Pointer(&_zero)
   743  	}
   744  	_, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
   745  	if e1 != 0 {
   746  		err = errnoErr(e1)
   747  	}
   748  	return
   749  }
   750  
   751  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   752  
   753  func Fsync(fd int) (err error) {
   754  	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
   755  	if e1 != 0 {
   756  		err = errnoErr(e1)
   757  	}
   758  	return
   759  }
   760  
   761  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   762  
   763  func Getdents(fd int, buf []byte) (n int, err error) {
   764  	var _p0 unsafe.Pointer
   765  	if len(buf) > 0 {
   766  		_p0 = unsafe.Pointer(&buf[0])
   767  	} else {
   768  		_p0 = unsafe.Pointer(&_zero)
   769  	}
   770  	r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   771  	n = int(r0)
   772  	if e1 != 0 {
   773  		err = errnoErr(e1)
   774  	}
   775  	return
   776  }
   777  
   778  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   779  
   780  func Getpgid(pid int) (pgid int, err error) {
   781  	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   782  	pgid = int(r0)
   783  	if e1 != 0 {
   784  		err = errnoErr(e1)
   785  	}
   786  	return
   787  }
   788  
   789  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   790  
   791  func Getpid() (pid int) {
   792  	r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
   793  	pid = int(r0)
   794  	return
   795  }
   796  
   797  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   798  
   799  func Getppid() (ppid int) {
   800  	r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
   801  	ppid = int(r0)
   802  	return
   803  }
   804  
   805  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   806  
   807  func Getpriority(which int, who int) (prio int, err error) {
   808  	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
   809  	prio = int(r0)
   810  	if e1 != 0 {
   811  		err = errnoErr(e1)
   812  	}
   813  	return
   814  }
   815  
   816  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   817  
   818  func Getrandom(buf []byte, flags int) (n int, err error) {
   819  	var _p0 unsafe.Pointer
   820  	if len(buf) > 0 {
   821  		_p0 = unsafe.Pointer(&buf[0])
   822  	} else {
   823  		_p0 = unsafe.Pointer(&_zero)
   824  	}
   825  	r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags))
   826  	n = int(r0)
   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 Getrusage(who int, rusage *Rusage) (err error) {
   836  	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 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 Getsid(pid int) (sid int, err error) {
   846  	r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
   847  	sid = int(r0)
   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 Gettid() (tid int) {
   857  	r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
   858  	tid = int(r0)
   859  	return
   860  }
   861  
   862  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   863  
   864  func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
   865  	var _p0 *byte
   866  	_p0, err = BytePtrFromString(path)
   867  	if err != nil {
   868  		return
   869  	}
   870  	var _p1 *byte
   871  	_p1, err = BytePtrFromString(attr)
   872  	if err != nil {
   873  		return
   874  	}
   875  	var _p2 unsafe.Pointer
   876  	if len(dest) > 0 {
   877  		_p2 = unsafe.Pointer(&dest[0])
   878  	} else {
   879  		_p2 = unsafe.Pointer(&_zero)
   880  	}
   881  	r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
   882  	sz = int(r0)
   883  	if e1 != 0 {
   884  		err = errnoErr(e1)
   885  	}
   886  	return
   887  }
   888  
   889  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   890  
   891  func InitModule(moduleImage []byte, params string) (err error) {
   892  	var _p0 unsafe.Pointer
   893  	if len(moduleImage) > 0 {
   894  		_p0 = unsafe.Pointer(&moduleImage[0])
   895  	} else {
   896  		_p0 = unsafe.Pointer(&_zero)
   897  	}
   898  	var _p1 *byte
   899  	_p1, err = BytePtrFromString(params)
   900  	if err != nil {
   901  		return
   902  	}
   903  	_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
   904  	if e1 != 0 {
   905  		err = errnoErr(e1)
   906  	}
   907  	return
   908  }
   909  
   910  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   911  
   912  func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
   913  	var _p0 *byte
   914  	_p0, err = BytePtrFromString(pathname)
   915  	if err != nil {
   916  		return
   917  	}
   918  	r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
   919  	watchdesc = int(r0)
   920  	if e1 != 0 {
   921  		err = errnoErr(e1)
   922  	}
   923  	return
   924  }
   925  
   926  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   927  
   928  func InotifyInit1(flags int) (fd int, err error) {
   929  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
   930  	fd = int(r0)
   931  	if e1 != 0 {
   932  		err = errnoErr(e1)
   933  	}
   934  	return
   935  }
   936  
   937  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   938  
   939  func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
   940  	r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
   941  	success = int(r0)
   942  	if e1 != 0 {
   943  		err = errnoErr(e1)
   944  	}
   945  	return
   946  }
   947  
   948  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   949  
   950  func Kill(pid int, sig syscall.Signal) (err error) {
   951  	_, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
   952  	if e1 != 0 {
   953  		err = errnoErr(e1)
   954  	}
   955  	return
   956  }
   957  
   958  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   959  
   960  func Klogctl(typ int, buf []byte) (n int, err error) {
   961  	var _p0 unsafe.Pointer
   962  	if len(buf) > 0 {
   963  		_p0 = unsafe.Pointer(&buf[0])
   964  	} else {
   965  		_p0 = unsafe.Pointer(&_zero)
   966  	}
   967  	r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
   968  	n = int(r0)
   969  	if e1 != 0 {
   970  		err = errnoErr(e1)
   971  	}
   972  	return
   973  }
   974  
   975  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   976  
   977  func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
   978  	var _p0 *byte
   979  	_p0, err = BytePtrFromString(path)
   980  	if err != nil {
   981  		return
   982  	}
   983  	var _p1 *byte
   984  	_p1, err = BytePtrFromString(attr)
   985  	if err != nil {
   986  		return
   987  	}
   988  	var _p2 unsafe.Pointer
   989  	if len(dest) > 0 {
   990  		_p2 = unsafe.Pointer(&dest[0])
   991  	} else {
   992  		_p2 = unsafe.Pointer(&_zero)
   993  	}
   994  	r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
   995  	sz = int(r0)
   996  	if e1 != 0 {
   997  		err = errnoErr(e1)
   998  	}
   999  	return
  1000  }
  1001  
  1002  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1003  
  1004  func Listxattr(path string, dest []byte) (sz int, err error) {
  1005  	var _p0 *byte
  1006  	_p0, err = BytePtrFromString(path)
  1007  	if err != nil {
  1008  		return
  1009  	}
  1010  	var _p1 unsafe.Pointer
  1011  	if len(dest) > 0 {
  1012  		_p1 = unsafe.Pointer(&dest[0])
  1013  	} else {
  1014  		_p1 = unsafe.Pointer(&_zero)
  1015  	}
  1016  	r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
  1017  	sz = int(r0)
  1018  	if e1 != 0 {
  1019  		err = errnoErr(e1)
  1020  	}
  1021  	return
  1022  }
  1023  
  1024  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1025  
  1026  func Llistxattr(path string, dest []byte) (sz int, err error) {
  1027  	var _p0 *byte
  1028  	_p0, err = BytePtrFromString(path)
  1029  	if err != nil {
  1030  		return
  1031  	}
  1032  	var _p1 unsafe.Pointer
  1033  	if len(dest) > 0 {
  1034  		_p1 = unsafe.Pointer(&dest[0])
  1035  	} else {
  1036  		_p1 = unsafe.Pointer(&_zero)
  1037  	}
  1038  	r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
  1039  	sz = int(r0)
  1040  	if e1 != 0 {
  1041  		err = errnoErr(e1)
  1042  	}
  1043  	return
  1044  }
  1045  
  1046  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1047  
  1048  func Lremovexattr(path string, attr string) (err error) {
  1049  	var _p0 *byte
  1050  	_p0, err = BytePtrFromString(path)
  1051  	if err != nil {
  1052  		return
  1053  	}
  1054  	var _p1 *byte
  1055  	_p1, err = BytePtrFromString(attr)
  1056  	if err != nil {
  1057  		return
  1058  	}
  1059  	_, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  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 Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
  1069  	var _p0 *byte
  1070  	_p0, err = BytePtrFromString(path)
  1071  	if err != nil {
  1072  		return
  1073  	}
  1074  	var _p1 *byte
  1075  	_p1, err = BytePtrFromString(attr)
  1076  	if err != nil {
  1077  		return
  1078  	}
  1079  	var _p2 unsafe.Pointer
  1080  	if len(data) > 0 {
  1081  		_p2 = unsafe.Pointer(&data[0])
  1082  	} else {
  1083  		_p2 = unsafe.Pointer(&_zero)
  1084  	}
  1085  	_, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  1086  	if e1 != 0 {
  1087  		err = errnoErr(e1)
  1088  	}
  1089  	return
  1090  }
  1091  
  1092  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1093  
  1094  func MemfdCreate(name string, flags int) (fd int, err error) {
  1095  	var _p0 *byte
  1096  	_p0, err = BytePtrFromString(name)
  1097  	if err != nil {
  1098  		return
  1099  	}
  1100  	r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1101  	fd = int(r0)
  1102  	if e1 != 0 {
  1103  		err = errnoErr(e1)
  1104  	}
  1105  	return
  1106  }
  1107  
  1108  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1109  
  1110  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  1111  	var _p0 *byte
  1112  	_p0, err = BytePtrFromString(path)
  1113  	if err != nil {
  1114  		return
  1115  	}
  1116  	_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1117  	if e1 != 0 {
  1118  		err = errnoErr(e1)
  1119  	}
  1120  	return
  1121  }
  1122  
  1123  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1124  
  1125  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1126  	var _p0 *byte
  1127  	_p0, err = BytePtrFromString(path)
  1128  	if err != nil {
  1129  		return
  1130  	}
  1131  	_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1132  	if e1 != 0 {
  1133  		err = errnoErr(e1)
  1134  	}
  1135  	return
  1136  }
  1137  
  1138  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1139  
  1140  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1141  	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
  1142  	if e1 != 0 {
  1143  		err = errnoErr(e1)
  1144  	}
  1145  	return
  1146  }
  1147  
  1148  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1149  
  1150  func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
  1151  	r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
  1152  	fd = int(r0)
  1153  	if e1 != 0 {
  1154  		err = errnoErr(e1)
  1155  	}
  1156  	return
  1157  }
  1158  
  1159  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1160  
  1161  func PivotRoot(newroot string, putold string) (err error) {
  1162  	var _p0 *byte
  1163  	_p0, err = BytePtrFromString(newroot)
  1164  	if err != nil {
  1165  		return
  1166  	}
  1167  	var _p1 *byte
  1168  	_p1, err = BytePtrFromString(putold)
  1169  	if err != nil {
  1170  		return
  1171  	}
  1172  	_, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1173  	if e1 != 0 {
  1174  		err = errnoErr(e1)
  1175  	}
  1176  	return
  1177  }
  1178  
  1179  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1180  
  1181  func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
  1182  	_, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
  1183  	if e1 != 0 {
  1184  		err = errnoErr(e1)
  1185  	}
  1186  	return
  1187  }
  1188  
  1189  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1190  
  1191  func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
  1192  	_, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
  1193  	if e1 != 0 {
  1194  		err = errnoErr(e1)
  1195  	}
  1196  	return
  1197  }
  1198  
  1199  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1200  
  1201  func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
  1202  	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)))
  1203  	n = int(r0)
  1204  	if e1 != 0 {
  1205  		err = errnoErr(e1)
  1206  	}
  1207  	return
  1208  }
  1209  
  1210  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1211  
  1212  func read(fd int, p []byte) (n int, err error) {
  1213  	var _p0 unsafe.Pointer
  1214  	if len(p) > 0 {
  1215  		_p0 = unsafe.Pointer(&p[0])
  1216  	} else {
  1217  		_p0 = unsafe.Pointer(&_zero)
  1218  	}
  1219  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1220  	n = int(r0)
  1221  	if e1 != 0 {
  1222  		err = errnoErr(e1)
  1223  	}
  1224  	return
  1225  }
  1226  
  1227  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1228  
  1229  func Removexattr(path string, attr string) (err error) {
  1230  	var _p0 *byte
  1231  	_p0, err = BytePtrFromString(path)
  1232  	if err != nil {
  1233  		return
  1234  	}
  1235  	var _p1 *byte
  1236  	_p1, err = BytePtrFromString(attr)
  1237  	if err != nil {
  1238  		return
  1239  	}
  1240  	_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1241  	if e1 != 0 {
  1242  		err = errnoErr(e1)
  1243  	}
  1244  	return
  1245  }
  1246  
  1247  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1248  
  1249  func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
  1250  	var _p0 *byte
  1251  	_p0, err = BytePtrFromString(oldpath)
  1252  	if err != nil {
  1253  		return
  1254  	}
  1255  	var _p1 *byte
  1256  	_p1, err = BytePtrFromString(newpath)
  1257  	if err != nil {
  1258  		return
  1259  	}
  1260  	_, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
  1261  	if e1 != 0 {
  1262  		err = errnoErr(e1)
  1263  	}
  1264  	return
  1265  }
  1266  
  1267  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1268  
  1269  func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
  1270  	var _p0 *byte
  1271  	_p0, err = BytePtrFromString(keyType)
  1272  	if err != nil {
  1273  		return
  1274  	}
  1275  	var _p1 *byte
  1276  	_p1, err = BytePtrFromString(description)
  1277  	if err != nil {
  1278  		return
  1279  	}
  1280  	var _p2 *byte
  1281  	_p2, err = BytePtrFromString(callback)
  1282  	if err != nil {
  1283  		return
  1284  	}
  1285  	r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
  1286  	id = int(r0)
  1287  	if e1 != 0 {
  1288  		err = errnoErr(e1)
  1289  	}
  1290  	return
  1291  }
  1292  
  1293  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1294  
  1295  func Setdomainname(p []byte) (err error) {
  1296  	var _p0 unsafe.Pointer
  1297  	if len(p) > 0 {
  1298  		_p0 = unsafe.Pointer(&p[0])
  1299  	} else {
  1300  		_p0 = unsafe.Pointer(&_zero)
  1301  	}
  1302  	_, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
  1303  	if e1 != 0 {
  1304  		err = errnoErr(e1)
  1305  	}
  1306  	return
  1307  }
  1308  
  1309  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1310  
  1311  func Sethostname(p []byte) (err error) {
  1312  	var _p0 unsafe.Pointer
  1313  	if len(p) > 0 {
  1314  		_p0 = unsafe.Pointer(&p[0])
  1315  	} else {
  1316  		_p0 = unsafe.Pointer(&_zero)
  1317  	}
  1318  	_, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
  1319  	if e1 != 0 {
  1320  		err = errnoErr(e1)
  1321  	}
  1322  	return
  1323  }
  1324  
  1325  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1326  
  1327  func Setpgid(pid int, pgid int) (err error) {
  1328  	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
  1329  	if e1 != 0 {
  1330  		err = errnoErr(e1)
  1331  	}
  1332  	return
  1333  }
  1334  
  1335  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1336  
  1337  func Setsid() (pid int, err error) {
  1338  	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
  1339  	pid = int(r0)
  1340  	if e1 != 0 {
  1341  		err = errnoErr(e1)
  1342  	}
  1343  	return
  1344  }
  1345  
  1346  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1347  
  1348  func Settimeofday(tv *Timeval) (err error) {
  1349  	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  1350  	if e1 != 0 {
  1351  		err = errnoErr(e1)
  1352  	}
  1353  	return
  1354  }
  1355  
  1356  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1357  
  1358  func Setns(fd int, nstype int) (err error) {
  1359  	_, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0)
  1360  	if e1 != 0 {
  1361  		err = errnoErr(e1)
  1362  	}
  1363  	return
  1364  }
  1365  
  1366  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1367  
  1368  func Setpriority(which int, who int, prio int) (err error) {
  1369  	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
  1370  	if e1 != 0 {
  1371  		err = errnoErr(e1)
  1372  	}
  1373  	return
  1374  }
  1375  
  1376  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1377  
  1378  func Setxattr(path string, attr string, data []byte, flags int) (err error) {
  1379  	var _p0 *byte
  1380  	_p0, err = BytePtrFromString(path)
  1381  	if err != nil {
  1382  		return
  1383  	}
  1384  	var _p1 *byte
  1385  	_p1, err = BytePtrFromString(attr)
  1386  	if err != nil {
  1387  		return
  1388  	}
  1389  	var _p2 unsafe.Pointer
  1390  	if len(data) > 0 {
  1391  		_p2 = unsafe.Pointer(&data[0])
  1392  	} else {
  1393  		_p2 = unsafe.Pointer(&_zero)
  1394  	}
  1395  	_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  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 signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
  1405  	r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
  1406  	newfd = int(r0)
  1407  	if e1 != 0 {
  1408  		err = errnoErr(e1)
  1409  	}
  1410  	return
  1411  }
  1412  
  1413  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1414  
  1415  func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
  1416  	var _p0 *byte
  1417  	_p0, err = BytePtrFromString(path)
  1418  	if err != nil {
  1419  		return
  1420  	}
  1421  	_, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
  1422  	if e1 != 0 {
  1423  		err = errnoErr(e1)
  1424  	}
  1425  	return
  1426  }
  1427  
  1428  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1429  
  1430  func Sync() {
  1431  	SyscallNoError(SYS_SYNC, 0, 0, 0)
  1432  	return
  1433  }
  1434  
  1435  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1436  
  1437  func Syncfs(fd int) (err error) {
  1438  	_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
  1439  	if e1 != 0 {
  1440  		err = errnoErr(e1)
  1441  	}
  1442  	return
  1443  }
  1444  
  1445  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1446  
  1447  func Sysinfo(info *Sysinfo_t) (err error) {
  1448  	_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
  1449  	if e1 != 0 {
  1450  		err = errnoErr(e1)
  1451  	}
  1452  	return
  1453  }
  1454  
  1455  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1456  
  1457  func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
  1458  	r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
  1459  	n = int64(r0)
  1460  	if e1 != 0 {
  1461  		err = errnoErr(e1)
  1462  	}
  1463  	return
  1464  }
  1465  
  1466  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1467  
  1468  func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
  1469  	_, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
  1470  	if e1 != 0 {
  1471  		err = errnoErr(e1)
  1472  	}
  1473  	return
  1474  }
  1475  
  1476  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1477  
  1478  func Times(tms *Tms) (ticks uintptr, err error) {
  1479  	r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
  1480  	ticks = uintptr(r0)
  1481  	if e1 != 0 {
  1482  		err = errnoErr(e1)
  1483  	}
  1484  	return
  1485  }
  1486  
  1487  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1488  
  1489  func Umask(mask int) (oldmask int) {
  1490  	r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
  1491  	oldmask = int(r0)
  1492  	return
  1493  }
  1494  
  1495  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1496  
  1497  func Uname(buf *Utsname) (err error) {
  1498  	_, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
  1499  	if e1 != 0 {
  1500  		err = errnoErr(e1)
  1501  	}
  1502  	return
  1503  }
  1504  
  1505  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1506  
  1507  func Unmount(target string, flags int) (err error) {
  1508  	var _p0 *byte
  1509  	_p0, err = BytePtrFromString(target)
  1510  	if err != nil {
  1511  		return
  1512  	}
  1513  	_, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1514  	if e1 != 0 {
  1515  		err = errnoErr(e1)
  1516  	}
  1517  	return
  1518  }
  1519  
  1520  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1521  
  1522  func Unshare(flags int) (err error) {
  1523  	_, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
  1524  	if e1 != 0 {
  1525  		err = errnoErr(e1)
  1526  	}
  1527  	return
  1528  }
  1529  
  1530  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1531  
  1532  func write(fd int, p []byte) (n int, err error) {
  1533  	var _p0 unsafe.Pointer
  1534  	if len(p) > 0 {
  1535  		_p0 = unsafe.Pointer(&p[0])
  1536  	} else {
  1537  		_p0 = unsafe.Pointer(&_zero)
  1538  	}
  1539  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1540  	n = int(r0)
  1541  	if e1 != 0 {
  1542  		err = errnoErr(e1)
  1543  	}
  1544  	return
  1545  }
  1546  
  1547  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1548  
  1549  func exitThread(code int) (err error) {
  1550  	_, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
  1551  	if e1 != 0 {
  1552  		err = errnoErr(e1)
  1553  	}
  1554  	return
  1555  }
  1556  
  1557  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1558  
  1559  func readlen(fd int, p *byte, np int) (n int, err error) {
  1560  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
  1561  	n = int(r0)
  1562  	if e1 != 0 {
  1563  		err = errnoErr(e1)
  1564  	}
  1565  	return
  1566  }
  1567  
  1568  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1569  
  1570  func writelen(fd int, p *byte, np int) (n int, err error) {
  1571  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
  1572  	n = int(r0)
  1573  	if e1 != 0 {
  1574  		err = errnoErr(e1)
  1575  	}
  1576  	return
  1577  }
  1578  
  1579  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1580  
  1581  func munmap(addr uintptr, length uintptr) (err error) {
  1582  	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
  1583  	if e1 != 0 {
  1584  		err = errnoErr(e1)
  1585  	}
  1586  	return
  1587  }
  1588  
  1589  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1590  
  1591  func Madvise(b []byte, advice int) (err error) {
  1592  	var _p0 unsafe.Pointer
  1593  	if len(b) > 0 {
  1594  		_p0 = unsafe.Pointer(&b[0])
  1595  	} else {
  1596  		_p0 = unsafe.Pointer(&_zero)
  1597  	}
  1598  	_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
  1599  	if e1 != 0 {
  1600  		err = errnoErr(e1)
  1601  	}
  1602  	return
  1603  }
  1604  
  1605  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1606  
  1607  func Mprotect(b []byte, prot int) (err error) {
  1608  	var _p0 unsafe.Pointer
  1609  	if len(b) > 0 {
  1610  		_p0 = unsafe.Pointer(&b[0])
  1611  	} else {
  1612  		_p0 = unsafe.Pointer(&_zero)
  1613  	}
  1614  	_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
  1615  	if e1 != 0 {
  1616  		err = errnoErr(e1)
  1617  	}
  1618  	return
  1619  }
  1620  
  1621  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1622  
  1623  func Mlock(b []byte) (err error) {
  1624  	var _p0 unsafe.Pointer
  1625  	if len(b) > 0 {
  1626  		_p0 = unsafe.Pointer(&b[0])
  1627  	} else {
  1628  		_p0 = unsafe.Pointer(&_zero)
  1629  	}
  1630  	_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 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 Mlockall(flags int) (err error) {
  1640  	_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
  1641  	if e1 != 0 {
  1642  		err = errnoErr(e1)
  1643  	}
  1644  	return
  1645  }
  1646  
  1647  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1648  
  1649  func Msync(b []byte, flags int) (err error) {
  1650  	var _p0 unsafe.Pointer
  1651  	if len(b) > 0 {
  1652  		_p0 = unsafe.Pointer(&b[0])
  1653  	} else {
  1654  		_p0 = unsafe.Pointer(&_zero)
  1655  	}
  1656  	_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
  1657  	if e1 != 0 {
  1658  		err = errnoErr(e1)
  1659  	}
  1660  	return
  1661  }
  1662  
  1663  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1664  
  1665  func Munlock(b []byte) (err error) {
  1666  	var _p0 unsafe.Pointer
  1667  	if len(b) > 0 {
  1668  		_p0 = unsafe.Pointer(&b[0])
  1669  	} else {
  1670  		_p0 = unsafe.Pointer(&_zero)
  1671  	}
  1672  	_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1673  	if e1 != 0 {
  1674  		err = errnoErr(e1)
  1675  	}
  1676  	return
  1677  }
  1678  
  1679  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1680  
  1681  func Munlockall() (err error) {
  1682  	_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
  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 faccessat(dirfd int, path string, mode uint32) (err error) {
  1692  	var _p0 *byte
  1693  	_p0, err = BytePtrFromString(path)
  1694  	if err != nil {
  1695  		return
  1696  	}
  1697  	_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
  1698  	if e1 != 0 {
  1699  		err = errnoErr(e1)
  1700  	}
  1701  	return
  1702  }
  1703  
  1704  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1705  
  1706  func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
  1707  	var _p0 *byte
  1708  	_p0, err = BytePtrFromString(pathname)
  1709  	if err != nil {
  1710  		return
  1711  	}
  1712  	_, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0)
  1713  	if e1 != 0 {
  1714  		err = errnoErr(e1)
  1715  	}
  1716  	return
  1717  }
  1718  
  1719  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1720  
  1721  func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) {
  1722  	r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags))
  1723  	fd = int(r0)
  1724  	if e1 != 0 {
  1725  		err = errnoErr(e1)
  1726  	}
  1727  	return
  1728  }
  1729  
  1730  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1731  
  1732  func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
  1733  	var _p0 unsafe.Pointer
  1734  	if len(events) > 0 {
  1735  		_p0 = unsafe.Pointer(&events[0])
  1736  	} else {
  1737  		_p0 = unsafe.Pointer(&_zero)
  1738  	}
  1739  	r0, _, e1 := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
  1740  	n = int(r0)
  1741  	if e1 != 0 {
  1742  		err = errnoErr(e1)
  1743  	}
  1744  	return
  1745  }
  1746  
  1747  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1748  
  1749  func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
  1750  	_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
  1751  	if e1 != 0 {
  1752  		err = errnoErr(e1)
  1753  	}
  1754  	return
  1755  }
  1756  
  1757  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1758  
  1759  func Fchown(fd int, uid int, gid int) (err error) {
  1760  	_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
  1761  	if e1 != 0 {
  1762  		err = errnoErr(e1)
  1763  	}
  1764  	return
  1765  }
  1766  
  1767  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1768  
  1769  func Fstat(fd int, stat *Stat_t) (err error) {
  1770  	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  1771  	if e1 != 0 {
  1772  		err = errnoErr(e1)
  1773  	}
  1774  	return
  1775  }
  1776  
  1777  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1778  
  1779  func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
  1780  	var _p0 *byte
  1781  	_p0, err = BytePtrFromString(path)
  1782  	if err != nil {
  1783  		return
  1784  	}
  1785  	_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  1786  	if e1 != 0 {
  1787  		err = errnoErr(e1)
  1788  	}
  1789  	return
  1790  }
  1791  
  1792  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1793  
  1794  func Fstatfs(fd int, buf *Statfs_t) (err error) {
  1795  	_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
  1796  	if e1 != 0 {
  1797  		err = errnoErr(e1)
  1798  	}
  1799  	return
  1800  }
  1801  
  1802  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1803  
  1804  func Ftruncate(fd int, length int64) (err error) {
  1805  	_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
  1806  	if e1 != 0 {
  1807  		err = errnoErr(e1)
  1808  	}
  1809  	return
  1810  }
  1811  
  1812  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1813  
  1814  func Getegid() (egid int) {
  1815  	r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
  1816  	egid = int(r0)
  1817  	return
  1818  }
  1819  
  1820  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1821  
  1822  func Geteuid() (euid int) {
  1823  	r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
  1824  	euid = int(r0)
  1825  	return
  1826  }
  1827  
  1828  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1829  
  1830  func Getgid() (gid int) {
  1831  	r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
  1832  	gid = int(r0)
  1833  	return
  1834  }
  1835  
  1836  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1837  
  1838  func Getrlimit(resource int, rlim *Rlimit) (err error) {
  1839  	_, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1840  	if e1 != 0 {
  1841  		err = errnoErr(e1)
  1842  	}
  1843  	return
  1844  }
  1845  
  1846  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1847  
  1848  func Getuid() (uid int) {
  1849  	r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
  1850  	uid = int(r0)
  1851  	return
  1852  }
  1853  
  1854  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1855  
  1856  func Listen(s int, n int) (err error) {
  1857  	_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 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 Pread(fd int, p []byte, offset int64) (n int, err error) {
  1867  	var _p0 unsafe.Pointer
  1868  	if len(p) > 0 {
  1869  		_p0 = unsafe.Pointer(&p[0])
  1870  	} else {
  1871  		_p0 = unsafe.Pointer(&_zero)
  1872  	}
  1873  	r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1874  	n = int(r0)
  1875  	if e1 != 0 {
  1876  		err = errnoErr(e1)
  1877  	}
  1878  	return
  1879  }
  1880  
  1881  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1882  
  1883  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1884  	var _p0 unsafe.Pointer
  1885  	if len(p) > 0 {
  1886  		_p0 = unsafe.Pointer(&p[0])
  1887  	} else {
  1888  		_p0 = unsafe.Pointer(&_zero)
  1889  	}
  1890  	r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1891  	n = int(r0)
  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 Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  1901  	var _p0 *byte
  1902  	_p0, err = BytePtrFromString(oldpath)
  1903  	if err != nil {
  1904  		return
  1905  	}
  1906  	var _p1 *byte
  1907  	_p1, err = BytePtrFromString(newpath)
  1908  	if err != nil {
  1909  		return
  1910  	}
  1911  	_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1912  	if e1 != 0 {
  1913  		err = errnoErr(e1)
  1914  	}
  1915  	return
  1916  }
  1917  
  1918  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1919  
  1920  func Seek(fd int, offset int64, whence int) (off int64, err error) {
  1921  	r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
  1922  	off = int64(r0)
  1923  	if e1 != 0 {
  1924  		err = errnoErr(e1)
  1925  	}
  1926  	return
  1927  }
  1928  
  1929  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1930  
  1931  func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  1932  	r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  1933  	written = int(r0)
  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 Setfsgid(gid int) (err error) {
  1943  	_, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
  1944  	if e1 != 0 {
  1945  		err = errnoErr(e1)
  1946  	}
  1947  	return
  1948  }
  1949  
  1950  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1951  
  1952  func Setfsuid(uid int) (err error) {
  1953  	_, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
  1954  	if e1 != 0 {
  1955  		err = errnoErr(e1)
  1956  	}
  1957  	return
  1958  }
  1959  
  1960  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1961  
  1962  func Setregid(rgid int, egid int) (err error) {
  1963  	_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
  1964  	if e1 != 0 {
  1965  		err = errnoErr(e1)
  1966  	}
  1967  	return
  1968  }
  1969  
  1970  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1971  
  1972  func Setresgid(rgid int, egid int, sgid int) (err error) {
  1973  	_, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
  1974  	if e1 != 0 {
  1975  		err = errnoErr(e1)
  1976  	}
  1977  	return
  1978  }
  1979  
  1980  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1981  
  1982  func Setresuid(ruid int, euid int, suid int) (err error) {
  1983  	_, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
  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 Setrlimit(resource int, rlim *Rlimit) (err error) {
  1993  	_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1994  	if e1 != 0 {
  1995  		err = errnoErr(e1)
  1996  	}
  1997  	return
  1998  }
  1999  
  2000  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2001  
  2002  func Setreuid(ruid int, euid int) (err error) {
  2003  	_, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
  2004  	if e1 != 0 {
  2005  		err = errnoErr(e1)
  2006  	}
  2007  	return
  2008  }
  2009  
  2010  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2011  
  2012  func Shutdown(fd int, how int) (err error) {
  2013  	_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 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 Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
  2023  	r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
  2024  	n = int64(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 Statfs(path string, buf *Statfs_t) (err error) {
  2034  	var _p0 *byte
  2035  	_p0, err = BytePtrFromString(path)
  2036  	if err != nil {
  2037  		return
  2038  	}
  2039  	_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  2040  	if e1 != 0 {
  2041  		err = errnoErr(e1)
  2042  	}
  2043  	return
  2044  }
  2045  
  2046  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2047  
  2048  func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
  2049  	_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
  2050  	if e1 != 0 {
  2051  		err = errnoErr(e1)
  2052  	}
  2053  	return
  2054  }
  2055  
  2056  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2057  
  2058  func Truncate(path string, length int64) (err error) {
  2059  	var _p0 *byte
  2060  	_p0, err = BytePtrFromString(path)
  2061  	if err != nil {
  2062  		return
  2063  	}
  2064  	_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
  2065  	if e1 != 0 {
  2066  		err = errnoErr(e1)
  2067  	}
  2068  	return
  2069  }
  2070  
  2071  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2072  
  2073  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  2074  	r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  2075  	fd = int(r0)
  2076  	if e1 != 0 {
  2077  		err = errnoErr(e1)
  2078  	}
  2079  	return
  2080  }
  2081  
  2082  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2083  
  2084  func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  2085  	r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  2086  	fd = int(r0)
  2087  	if e1 != 0 {
  2088  		err = errnoErr(e1)
  2089  	}
  2090  	return
  2091  }
  2092  
  2093  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2094  
  2095  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  2096  	_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
  2097  	if e1 != 0 {
  2098  		err = errnoErr(e1)
  2099  	}
  2100  	return
  2101  }
  2102  
  2103  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2104  
  2105  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  2106  	_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
  2107  	if e1 != 0 {
  2108  		err = errnoErr(e1)
  2109  	}
  2110  	return
  2111  }
  2112  
  2113  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2114  
  2115  func getgroups(n int, list *_Gid_t) (nn int, err error) {
  2116  	r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  2117  	nn = int(r0)
  2118  	if e1 != 0 {
  2119  		err = errnoErr(e1)
  2120  	}
  2121  	return
  2122  }
  2123  
  2124  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2125  
  2126  func setgroups(n int, list *_Gid_t) (err error) {
  2127  	_, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  2128  	if e1 != 0 {
  2129  		err = errnoErr(e1)
  2130  	}
  2131  	return
  2132  }
  2133  
  2134  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2135  
  2136  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  2137  	_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  2138  	if e1 != 0 {
  2139  		err = errnoErr(e1)
  2140  	}
  2141  	return
  2142  }
  2143  
  2144  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2145  
  2146  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  2147  	_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  2148  	if e1 != 0 {
  2149  		err = errnoErr(e1)
  2150  	}
  2151  	return
  2152  }
  2153  
  2154  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2155  
  2156  func socket(domain int, typ int, proto int) (fd int, err error) {
  2157  	r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  2158  	fd = int(r0)
  2159  	if e1 != 0 {
  2160  		err = errnoErr(e1)
  2161  	}
  2162  	return
  2163  }
  2164  
  2165  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2166  
  2167  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  2168  	_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  2169  	if e1 != 0 {
  2170  		err = errnoErr(e1)
  2171  	}
  2172  	return
  2173  }
  2174  
  2175  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2176  
  2177  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  2178  	_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  2179  	if e1 != 0 {
  2180  		err = errnoErr(e1)
  2181  	}
  2182  	return
  2183  }
  2184  
  2185  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2186  
  2187  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  2188  	_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  2189  	if e1 != 0 {
  2190  		err = errnoErr(e1)
  2191  	}
  2192  	return
  2193  }
  2194  
  2195  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2196  
  2197  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  2198  	var _p0 unsafe.Pointer
  2199  	if len(p) > 0 {
  2200  		_p0 = unsafe.Pointer(&p[0])
  2201  	} else {
  2202  		_p0 = unsafe.Pointer(&_zero)
  2203  	}
  2204  	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  2205  	n = int(r0)
  2206  	if e1 != 0 {
  2207  		err = errnoErr(e1)
  2208  	}
  2209  	return
  2210  }
  2211  
  2212  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2213  
  2214  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  2215  	var _p0 unsafe.Pointer
  2216  	if len(buf) > 0 {
  2217  		_p0 = unsafe.Pointer(&buf[0])
  2218  	} else {
  2219  		_p0 = unsafe.Pointer(&_zero)
  2220  	}
  2221  	_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  2222  	if e1 != 0 {
  2223  		err = errnoErr(e1)
  2224  	}
  2225  	return
  2226  }
  2227  
  2228  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2229  
  2230  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  2231  	r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  2232  	n = int(r0)
  2233  	if e1 != 0 {
  2234  		err = errnoErr(e1)
  2235  	}
  2236  	return
  2237  }
  2238  
  2239  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2240  
  2241  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  2242  	r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  2243  	n = int(r0)
  2244  	if e1 != 0 {
  2245  		err = errnoErr(e1)
  2246  	}
  2247  	return
  2248  }
  2249  
  2250  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2251  
  2252  func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
  2253  	r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
  2254  	xaddr = uintptr(r0)
  2255  	if e1 != 0 {
  2256  		err = errnoErr(e1)
  2257  	}
  2258  	return
  2259  }
  2260  
  2261  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2262  
  2263  func Gettimeofday(tv *Timeval) (err error) {
  2264  	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  2265  	if e1 != 0 {
  2266  		err = errnoErr(e1)
  2267  	}
  2268  	return
  2269  }
  2270  
  2271  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2272  
  2273  func pipe2(p *[2]_C_int, flags int) (err error) {
  2274  	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
  2275  	if e1 != 0 {
  2276  		err = errnoErr(e1)
  2277  	}
  2278  	return
  2279  }
  2280  
  2281  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  2282  
  2283  func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
  2284  	var _p0 *byte
  2285  	_p0, err = BytePtrFromString(cmdline)
  2286  	if err != nil {
  2287  		return
  2288  	}
  2289  	_, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  2290  	if e1 != 0 {
  2291  		err = errnoErr(e1)
  2292  	}
  2293  	return
  2294  }