github.com/xingly-cn/shorturl-go@v0.0.0-20220110130535-e21de4659f74/pkg/mod/golang.org/x/sys@v0.0.0-20200323222414-85ca7c5b95cd/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 fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
    18  	_, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
    19  	if e1 != 0 {
    20  		err = errnoErr(e1)
    21  	}
    22  	return
    23  }
    24  
    25  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    26  
    27  func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
    28  	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
    29  	if e1 != 0 {
    30  		err = errnoErr(e1)
    31  	}
    32  	return
    33  }
    34  
    35  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    36  
    37  func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
    38  	r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
    39  	n = int64(r0)
    40  	if e1 != 0 {
    41  		err = errnoErr(e1)
    42  	}
    43  	return
    44  }
    45  
    46  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    47  
    48  func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
    49  	var _p0 unsafe.Pointer
    50  	if len(events) > 0 {
    51  		_p0 = unsafe.Pointer(&events[0])
    52  	} else {
    53  		_p0 = unsafe.Pointer(&_zero)
    54  	}
    55  	r0, _, e1 := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
    56  	n = int(r0)
    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 Fadvise(fd int, offset int64, length int64, advice int) (err error) {
    66  	_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
    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 Fchown(fd int, uid int, gid int) (err error) {
    76  	_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
    77  	if e1 != 0 {
    78  		err = errnoErr(e1)
    79  	}
    80  	return
    81  }
    82  
    83  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    84  
    85  func Fstat(fd int, stat *Stat_t) (err error) {
    86  	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 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 Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
    96  	var _p0 *byte
    97  	_p0, err = BytePtrFromString(path)
    98  	if err != nil {
    99  		return
   100  	}
   101  	_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
   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 Fstatfs(fd int, buf *Statfs_t) (err error) {
   111  	_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
   112  	if e1 != 0 {
   113  		err = errnoErr(e1)
   114  	}
   115  	return
   116  }
   117  
   118  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   119  
   120  func Ftruncate(fd int, length int64) (err error) {
   121  	_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
   122  	if e1 != 0 {
   123  		err = errnoErr(e1)
   124  	}
   125  	return
   126  }
   127  
   128  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   129  
   130  func Getegid() (egid int) {
   131  	r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
   132  	egid = int(r0)
   133  	return
   134  }
   135  
   136  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   137  
   138  func Geteuid() (euid int) {
   139  	r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
   140  	euid = int(r0)
   141  	return
   142  }
   143  
   144  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   145  
   146  func Getgid() (gid int) {
   147  	r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
   148  	gid = int(r0)
   149  	return
   150  }
   151  
   152  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   153  
   154  func Getrlimit(resource int, rlim *Rlimit) (err error) {
   155  	_, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
   156  	if e1 != 0 {
   157  		err = errnoErr(e1)
   158  	}
   159  	return
   160  }
   161  
   162  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   163  
   164  func Getuid() (uid int) {
   165  	r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
   166  	uid = int(r0)
   167  	return
   168  }
   169  
   170  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   171  
   172  func Listen(s int, n int) (err error) {
   173  	_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 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 Pread(fd int, p []byte, offset int64) (n int, err error) {
   183  	var _p0 unsafe.Pointer
   184  	if len(p) > 0 {
   185  		_p0 = unsafe.Pointer(&p[0])
   186  	} else {
   187  		_p0 = unsafe.Pointer(&_zero)
   188  	}
   189  	r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 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 Pwrite(fd int, p []byte, offset int64) (n int, err error) {
   200  	var _p0 unsafe.Pointer
   201  	if len(p) > 0 {
   202  		_p0 = unsafe.Pointer(&p[0])
   203  	} else {
   204  		_p0 = unsafe.Pointer(&_zero)
   205  	}
   206  	r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
   207  	n = int(r0)
   208  	if e1 != 0 {
   209  		err = errnoErr(e1)
   210  	}
   211  	return
   212  }
   213  
   214  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   215  
   216  func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
   217  	var _p0 *byte
   218  	_p0, err = BytePtrFromString(oldpath)
   219  	if err != nil {
   220  		return
   221  	}
   222  	var _p1 *byte
   223  	_p1, err = BytePtrFromString(newpath)
   224  	if err != nil {
   225  		return
   226  	}
   227  	_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
   228  	if e1 != 0 {
   229  		err = errnoErr(e1)
   230  	}
   231  	return
   232  }
   233  
   234  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   235  
   236  func Seek(fd int, offset int64, whence int) (off int64, err error) {
   237  	r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
   238  	off = int64(r0)
   239  	if e1 != 0 {
   240  		err = errnoErr(e1)
   241  	}
   242  	return
   243  }
   244  
   245  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   246  
   247  func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
   248  	r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
   249  	written = int(r0)
   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 setfsgid(gid int) (prev int, err error) {
   259  	r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
   260  	prev = 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 setfsuid(uid int) (prev int, err error) {
   270  	r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
   271  	prev = int(r0)
   272  	if e1 != 0 {
   273  		err = errnoErr(e1)
   274  	}
   275  	return
   276  }
   277  
   278  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   279  
   280  func Setregid(rgid int, egid int) (err error) {
   281  	_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
   282  	if e1 != 0 {
   283  		err = errnoErr(e1)
   284  	}
   285  	return
   286  }
   287  
   288  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   289  
   290  func Setresgid(rgid int, egid int, sgid int) (err error) {
   291  	_, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
   292  	if e1 != 0 {
   293  		err = errnoErr(e1)
   294  	}
   295  	return
   296  }
   297  
   298  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   299  
   300  func Setresuid(ruid int, euid int, suid int) (err error) {
   301  	_, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
   302  	if e1 != 0 {
   303  		err = errnoErr(e1)
   304  	}
   305  	return
   306  }
   307  
   308  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   309  
   310  func Setrlimit(resource int, rlim *Rlimit) (err error) {
   311  	_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
   312  	if e1 != 0 {
   313  		err = errnoErr(e1)
   314  	}
   315  	return
   316  }
   317  
   318  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   319  
   320  func Setreuid(ruid int, euid int) (err error) {
   321  	_, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
   322  	if e1 != 0 {
   323  		err = errnoErr(e1)
   324  	}
   325  	return
   326  }
   327  
   328  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   329  
   330  func Shutdown(fd int, how int) (err error) {
   331  	_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
   332  	if e1 != 0 {
   333  		err = errnoErr(e1)
   334  	}
   335  	return
   336  }
   337  
   338  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   339  
   340  func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
   341  	r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
   342  	n = int64(r0)
   343  	if e1 != 0 {
   344  		err = errnoErr(e1)
   345  	}
   346  	return
   347  }
   348  
   349  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   350  
   351  func Statfs(path string, buf *Statfs_t) (err error) {
   352  	var _p0 *byte
   353  	_p0, err = BytePtrFromString(path)
   354  	if err != nil {
   355  		return
   356  	}
   357  	_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
   358  	if e1 != 0 {
   359  		err = errnoErr(e1)
   360  	}
   361  	return
   362  }
   363  
   364  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   365  
   366  func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
   367  	_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 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 Truncate(path string, length int64) (err error) {
   377  	var _p0 *byte
   378  	_p0, err = BytePtrFromString(path)
   379  	if err != nil {
   380  		return
   381  	}
   382  	_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
   383  	if e1 != 0 {
   384  		err = errnoErr(e1)
   385  	}
   386  	return
   387  }
   388  
   389  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   390  
   391  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
   392  	r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   393  	fd = int(r0)
   394  	if e1 != 0 {
   395  		err = errnoErr(e1)
   396  	}
   397  	return
   398  }
   399  
   400  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   401  
   402  func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
   403  	r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
   404  	fd = int(r0)
   405  	if e1 != 0 {
   406  		err = errnoErr(e1)
   407  	}
   408  	return
   409  }
   410  
   411  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   412  
   413  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
   414  	_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
   415  	if e1 != 0 {
   416  		err = errnoErr(e1)
   417  	}
   418  	return
   419  }
   420  
   421  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   422  
   423  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
   424  	_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
   425  	if e1 != 0 {
   426  		err = errnoErr(e1)
   427  	}
   428  	return
   429  }
   430  
   431  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   432  
   433  func getgroups(n int, list *_Gid_t) (nn int, err error) {
   434  	r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
   435  	nn = int(r0)
   436  	if e1 != 0 {
   437  		err = errnoErr(e1)
   438  	}
   439  	return
   440  }
   441  
   442  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   443  
   444  func setgroups(n int, list *_Gid_t) (err error) {
   445  	_, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
   446  	if e1 != 0 {
   447  		err = errnoErr(e1)
   448  	}
   449  	return
   450  }
   451  
   452  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   453  
   454  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
   455  	_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
   456  	if e1 != 0 {
   457  		err = errnoErr(e1)
   458  	}
   459  	return
   460  }
   461  
   462  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   463  
   464  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
   465  	_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
   466  	if e1 != 0 {
   467  		err = errnoErr(e1)
   468  	}
   469  	return
   470  }
   471  
   472  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   473  
   474  func socket(domain int, typ int, proto int) (fd int, err error) {
   475  	r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
   476  	fd = int(r0)
   477  	if e1 != 0 {
   478  		err = errnoErr(e1)
   479  	}
   480  	return
   481  }
   482  
   483  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   484  
   485  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
   486  	_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
   487  	if e1 != 0 {
   488  		err = errnoErr(e1)
   489  	}
   490  	return
   491  }
   492  
   493  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   494  
   495  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   496  	_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   497  	if e1 != 0 {
   498  		err = errnoErr(e1)
   499  	}
   500  	return
   501  }
   502  
   503  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   504  
   505  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
   506  	_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
   507  	if e1 != 0 {
   508  		err = errnoErr(e1)
   509  	}
   510  	return
   511  }
   512  
   513  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   514  
   515  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
   516  	var _p0 unsafe.Pointer
   517  	if len(p) > 0 {
   518  		_p0 = unsafe.Pointer(&p[0])
   519  	} else {
   520  		_p0 = unsafe.Pointer(&_zero)
   521  	}
   522  	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
   523  	n = int(r0)
   524  	if e1 != 0 {
   525  		err = errnoErr(e1)
   526  	}
   527  	return
   528  }
   529  
   530  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   531  
   532  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
   533  	var _p0 unsafe.Pointer
   534  	if len(buf) > 0 {
   535  		_p0 = unsafe.Pointer(&buf[0])
   536  	} else {
   537  		_p0 = unsafe.Pointer(&_zero)
   538  	}
   539  	_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
   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 recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   549  	r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   550  	n = 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 sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   560  	r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
   561  	n = int(r0)
   562  	if e1 != 0 {
   563  		err = errnoErr(e1)
   564  	}
   565  	return
   566  }
   567  
   568  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   569  
   570  func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
   571  	r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
   572  	xaddr = uintptr(r0)
   573  	if e1 != 0 {
   574  		err = errnoErr(e1)
   575  	}
   576  	return
   577  }
   578  
   579  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   580  
   581  func Gettimeofday(tv *Timeval) (err error) {
   582  	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
   583  	if e1 != 0 {
   584  		err = errnoErr(e1)
   585  	}
   586  	return
   587  }
   588  
   589  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   590  
   591  func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
   592  	var _p0 *byte
   593  	_p0, err = BytePtrFromString(cmdline)
   594  	if err != nil {
   595  		return
   596  	}
   597  	_, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   598  	if e1 != 0 {
   599  		err = errnoErr(e1)
   600  	}
   601  	return
   602  }