github.com/rafaeltorres324/go/src@v0.0.0-20210519164414-9fdf653a9838/syscall/zsyscall_linux_arm.go (about)

     1  // mksyscall.pl -l32 -arm -tags linux,arm syscall_linux.go syscall_linux_arm.go
     2  // Code generated by the command above; DO NOT EDIT.
     3  
     4  // +build linux,arm
     5  
     6  package syscall
     7  
     8  import "unsafe"
     9  
    10  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    11  
    12  func faccessat(dirfd int, path string, mode uint32) (err error) {
    13  	var _p0 *byte
    14  	_p0, err = BytePtrFromString(path)
    15  	if err != nil {
    16  		return
    17  	}
    18  	_, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
    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 fchmodat(dirfd int, path string, mode uint32) (err error) {
    28  	var _p0 *byte
    29  	_p0, err = BytePtrFromString(path)
    30  	if err != nil {
    31  		return
    32  	}
    33  	_, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
    34  	if e1 != 0 {
    35  		err = errnoErr(e1)
    36  	}
    37  	return
    38  }
    39  
    40  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    41  
    42  func linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
    43  	var _p0 *byte
    44  	_p0, err = BytePtrFromString(oldpath)
    45  	if err != nil {
    46  		return
    47  	}
    48  	var _p1 *byte
    49  	_p1, err = BytePtrFromString(newpath)
    50  	if err != nil {
    51  		return
    52  	}
    53  	_, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
    54  	if e1 != 0 {
    55  		err = errnoErr(e1)
    56  	}
    57  	return
    58  }
    59  
    60  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    61  
    62  func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
    63  	var _p0 *byte
    64  	_p0, err = BytePtrFromString(path)
    65  	if err != nil {
    66  		return
    67  	}
    68  	r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
    69  	fd = int(r0)
    70  	if e1 != 0 {
    71  		err = errnoErr(e1)
    72  	}
    73  	return
    74  }
    75  
    76  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    77  
    78  func readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
    79  	var _p0 *byte
    80  	_p0, err = BytePtrFromString(path)
    81  	if err != nil {
    82  		return
    83  	}
    84  	var _p1 unsafe.Pointer
    85  	if len(buf) > 0 {
    86  		_p1 = unsafe.Pointer(&buf[0])
    87  	} else {
    88  		_p1 = unsafe.Pointer(&_zero)
    89  	}
    90  	r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
    91  	n = int(r0)
    92  	if e1 != 0 {
    93  		err = errnoErr(e1)
    94  	}
    95  	return
    96  }
    97  
    98  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    99  
   100  func symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
   101  	var _p0 *byte
   102  	_p0, err = BytePtrFromString(oldpath)
   103  	if err != nil {
   104  		return
   105  	}
   106  	var _p1 *byte
   107  	_p1, err = BytePtrFromString(newpath)
   108  	if err != nil {
   109  		return
   110  	}
   111  	_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
   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 unlinkat(dirfd int, path string, flags int) (err error) {
   121  	var _p0 *byte
   122  	_p0, err = BytePtrFromString(path)
   123  	if err != nil {
   124  		return
   125  	}
   126  	_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
   127  	if e1 != 0 {
   128  		err = errnoErr(e1)
   129  	}
   130  	return
   131  }
   132  
   133  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   134  
   135  func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
   136  	var _p0 *byte
   137  	_p0, err = BytePtrFromString(path)
   138  	if err != nil {
   139  		return
   140  	}
   141  	_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
   142  	if e1 != 0 {
   143  		err = errnoErr(e1)
   144  	}
   145  	return
   146  }
   147  
   148  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   149  
   150  func Getcwd(buf []byte) (n int, err error) {
   151  	var _p0 unsafe.Pointer
   152  	if len(buf) > 0 {
   153  		_p0 = unsafe.Pointer(&buf[0])
   154  	} else {
   155  		_p0 = unsafe.Pointer(&_zero)
   156  	}
   157  	r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
   158  	n = int(r0)
   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 wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
   168  	r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
   169  	wpid = int(r0)
   170  	if e1 != 0 {
   171  		err = errnoErr(e1)
   172  	}
   173  	return
   174  }
   175  
   176  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   177  
   178  func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
   179  	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
   180  	if e1 != 0 {
   181  		err = errnoErr(e1)
   182  	}
   183  	return
   184  }
   185  
   186  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   187  
   188  func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
   189  	var _p0 *byte
   190  	_p0, err = BytePtrFromString(arg)
   191  	if err != nil {
   192  		return
   193  	}
   194  	_, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
   195  	if e1 != 0 {
   196  		err = errnoErr(e1)
   197  	}
   198  	return
   199  }
   200  
   201  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   202  
   203  func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
   204  	var _p0 *byte
   205  	_p0, err = BytePtrFromString(source)
   206  	if err != nil {
   207  		return
   208  	}
   209  	var _p1 *byte
   210  	_p1, err = BytePtrFromString(target)
   211  	if err != nil {
   212  		return
   213  	}
   214  	var _p2 *byte
   215  	_p2, err = BytePtrFromString(fstype)
   216  	if err != nil {
   217  		return
   218  	}
   219  	_, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
   220  	if e1 != 0 {
   221  		err = errnoErr(e1)
   222  	}
   223  	return
   224  }
   225  
   226  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   227  
   228  func Acct(path string) (err error) {
   229  	var _p0 *byte
   230  	_p0, err = BytePtrFromString(path)
   231  	if err != nil {
   232  		return
   233  	}
   234  	_, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   235  	if e1 != 0 {
   236  		err = errnoErr(e1)
   237  	}
   238  	return
   239  }
   240  
   241  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   242  
   243  func Adjtimex(buf *Timex) (state int, err error) {
   244  	r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
   245  	state = 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 Chdir(path string) (err error) {
   255  	var _p0 *byte
   256  	_p0, err = BytePtrFromString(path)
   257  	if err != nil {
   258  		return
   259  	}
   260  	_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
   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 Chroot(path string) (err error) {
   270  	var _p0 *byte
   271  	_p0, err = BytePtrFromString(path)
   272  	if err != nil {
   273  		return
   274  	}
   275  	_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   276  	if e1 != 0 {
   277  		err = errnoErr(e1)
   278  	}
   279  	return
   280  }
   281  
   282  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   283  
   284  func Close(fd int) (err error) {
   285  	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
   286  	if e1 != 0 {
   287  		err = errnoErr(e1)
   288  	}
   289  	return
   290  }
   291  
   292  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   293  
   294  func Dup(oldfd int) (fd int, err error) {
   295  	r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
   296  	fd = int(r0)
   297  	if e1 != 0 {
   298  		err = errnoErr(e1)
   299  	}
   300  	return
   301  }
   302  
   303  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   304  
   305  func Dup3(oldfd int, newfd int, flags int) (err error) {
   306  	_, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
   307  	if e1 != 0 {
   308  		err = errnoErr(e1)
   309  	}
   310  	return
   311  }
   312  
   313  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   314  
   315  func EpollCreate1(flag int) (fd int, err error) {
   316  	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
   317  	fd = int(r0)
   318  	if e1 != 0 {
   319  		err = errnoErr(e1)
   320  	}
   321  	return
   322  }
   323  
   324  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   325  
   326  func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
   327  	_, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
   328  	if e1 != 0 {
   329  		err = errnoErr(e1)
   330  	}
   331  	return
   332  }
   333  
   334  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   335  
   336  func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
   337  	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
   338  	if e1 != 0 {
   339  		err = errnoErr(e1)
   340  	}
   341  	return
   342  }
   343  
   344  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   345  
   346  func Fchdir(fd int) (err error) {
   347  	_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
   348  	if e1 != 0 {
   349  		err = errnoErr(e1)
   350  	}
   351  	return
   352  }
   353  
   354  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   355  
   356  func Fchmod(fd int, mode uint32) (err error) {
   357  	_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   367  	var _p0 *byte
   368  	_p0, err = BytePtrFromString(path)
   369  	if err != nil {
   370  		return
   371  	}
   372  	_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   373  	if e1 != 0 {
   374  		err = errnoErr(e1)
   375  	}
   376  	return
   377  }
   378  
   379  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   380  
   381  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   382  	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
   383  	val = int(r0)
   384  	if e1 != 0 {
   385  		err = errnoErr(e1)
   386  	}
   387  	return
   388  }
   389  
   390  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   391  
   392  func Fdatasync(fd int) (err error) {
   393  	_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
   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 Flock(fd int, how int) (err error) {
   403  	_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
   404  	if e1 != 0 {
   405  		err = errnoErr(e1)
   406  	}
   407  	return
   408  }
   409  
   410  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   411  
   412  func Fsync(fd int) (err error) {
   413  	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
   414  	if e1 != 0 {
   415  		err = errnoErr(e1)
   416  	}
   417  	return
   418  }
   419  
   420  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   421  
   422  func Getdents(fd int, buf []byte) (n int, err error) {
   423  	var _p0 unsafe.Pointer
   424  	if len(buf) > 0 {
   425  		_p0 = unsafe.Pointer(&buf[0])
   426  	} else {
   427  		_p0 = unsafe.Pointer(&_zero)
   428  	}
   429  	r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   430  	n = int(r0)
   431  	if e1 != 0 {
   432  		err = errnoErr(e1)
   433  	}
   434  	return
   435  }
   436  
   437  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   438  
   439  func Getpgid(pid int) (pgid int, err error) {
   440  	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   441  	pgid = int(r0)
   442  	if e1 != 0 {
   443  		err = errnoErr(e1)
   444  	}
   445  	return
   446  }
   447  
   448  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   449  
   450  func Getpid() (pid int) {
   451  	r0, _ := rawSyscallNoError(SYS_GETPID, 0, 0, 0)
   452  	pid = int(r0)
   453  	return
   454  }
   455  
   456  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   457  
   458  func Getppid() (ppid int) {
   459  	r0, _ := rawSyscallNoError(SYS_GETPPID, 0, 0, 0)
   460  	ppid = int(r0)
   461  	return
   462  }
   463  
   464  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   465  
   466  func Getpriority(which int, who int) (prio int, err error) {
   467  	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
   468  	prio = int(r0)
   469  	if e1 != 0 {
   470  		err = errnoErr(e1)
   471  	}
   472  	return
   473  }
   474  
   475  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   476  
   477  func Getrusage(who int, rusage *Rusage) (err error) {
   478  	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
   479  	if e1 != 0 {
   480  		err = errnoErr(e1)
   481  	}
   482  	return
   483  }
   484  
   485  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   486  
   487  func Gettid() (tid int) {
   488  	r0, _ := rawSyscallNoError(SYS_GETTID, 0, 0, 0)
   489  	tid = int(r0)
   490  	return
   491  }
   492  
   493  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   494  
   495  func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
   496  	var _p0 *byte
   497  	_p0, err = BytePtrFromString(path)
   498  	if err != nil {
   499  		return
   500  	}
   501  	var _p1 *byte
   502  	_p1, err = BytePtrFromString(attr)
   503  	if err != nil {
   504  		return
   505  	}
   506  	var _p2 unsafe.Pointer
   507  	if len(dest) > 0 {
   508  		_p2 = unsafe.Pointer(&dest[0])
   509  	} else {
   510  		_p2 = unsafe.Pointer(&_zero)
   511  	}
   512  	r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
   513  	sz = int(r0)
   514  	if e1 != 0 {
   515  		err = errnoErr(e1)
   516  	}
   517  	return
   518  }
   519  
   520  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   521  
   522  func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
   523  	var _p0 *byte
   524  	_p0, err = BytePtrFromString(pathname)
   525  	if err != nil {
   526  		return
   527  	}
   528  	r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
   529  	watchdesc = 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 InotifyInit1(flags int) (fd int, err error) {
   539  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
   540  	fd = int(r0)
   541  	if e1 != 0 {
   542  		err = errnoErr(e1)
   543  	}
   544  	return
   545  }
   546  
   547  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   548  
   549  func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
   550  	r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
   551  	success = int(r0)
   552  	if e1 != 0 {
   553  		err = errnoErr(e1)
   554  	}
   555  	return
   556  }
   557  
   558  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   559  
   560  func Kill(pid int, sig Signal) (err error) {
   561  	_, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
   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 Klogctl(typ int, buf []byte) (n int, err error) {
   571  	var _p0 unsafe.Pointer
   572  	if len(buf) > 0 {
   573  		_p0 = unsafe.Pointer(&buf[0])
   574  	} else {
   575  		_p0 = unsafe.Pointer(&_zero)
   576  	}
   577  	r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
   578  	n = int(r0)
   579  	if e1 != 0 {
   580  		err = errnoErr(e1)
   581  	}
   582  	return
   583  }
   584  
   585  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   586  
   587  func Listxattr(path string, dest []byte) (sz int, err error) {
   588  	var _p0 *byte
   589  	_p0, err = BytePtrFromString(path)
   590  	if err != nil {
   591  		return
   592  	}
   593  	var _p1 unsafe.Pointer
   594  	if len(dest) > 0 {
   595  		_p1 = unsafe.Pointer(&dest[0])
   596  	} else {
   597  		_p1 = unsafe.Pointer(&_zero)
   598  	}
   599  	r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
   600  	sz = int(r0)
   601  	if e1 != 0 {
   602  		err = errnoErr(e1)
   603  	}
   604  	return
   605  }
   606  
   607  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   608  
   609  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
   610  	var _p0 *byte
   611  	_p0, err = BytePtrFromString(path)
   612  	if err != nil {
   613  		return
   614  	}
   615  	_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
   616  	if e1 != 0 {
   617  		err = errnoErr(e1)
   618  	}
   619  	return
   620  }
   621  
   622  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   623  
   624  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
   625  	var _p0 *byte
   626  	_p0, err = BytePtrFromString(path)
   627  	if err != nil {
   628  		return
   629  	}
   630  	_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
   631  	if e1 != 0 {
   632  		err = errnoErr(e1)
   633  	}
   634  	return
   635  }
   636  
   637  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   638  
   639  func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
   640  	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
   641  	if e1 != 0 {
   642  		err = errnoErr(e1)
   643  	}
   644  	return
   645  }
   646  
   647  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   648  
   649  func PivotRoot(newroot string, putold string) (err error) {
   650  	var _p0 *byte
   651  	_p0, err = BytePtrFromString(newroot)
   652  	if err != nil {
   653  		return
   654  	}
   655  	var _p1 *byte
   656  	_p1, err = BytePtrFromString(putold)
   657  	if err != nil {
   658  		return
   659  	}
   660  	_, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   661  	if e1 != 0 {
   662  		err = errnoErr(e1)
   663  	}
   664  	return
   665  }
   666  
   667  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   668  
   669  func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
   670  	_, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
   671  	if e1 != 0 {
   672  		err = errnoErr(e1)
   673  	}
   674  	return
   675  }
   676  
   677  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   678  
   679  func read(fd int, p []byte) (n int, err error) {
   680  	var _p0 unsafe.Pointer
   681  	if len(p) > 0 {
   682  		_p0 = unsafe.Pointer(&p[0])
   683  	} else {
   684  		_p0 = unsafe.Pointer(&_zero)
   685  	}
   686  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
   687  	n = int(r0)
   688  	if e1 != 0 {
   689  		err = errnoErr(e1)
   690  	}
   691  	return
   692  }
   693  
   694  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   695  
   696  func Removexattr(path string, attr string) (err error) {
   697  	var _p0 *byte
   698  	_p0, err = BytePtrFromString(path)
   699  	if err != nil {
   700  		return
   701  	}
   702  	var _p1 *byte
   703  	_p1, err = BytePtrFromString(attr)
   704  	if err != nil {
   705  		return
   706  	}
   707  	_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   708  	if e1 != 0 {
   709  		err = errnoErr(e1)
   710  	}
   711  	return
   712  }
   713  
   714  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   715  
   716  func Setdomainname(p []byte) (err error) {
   717  	var _p0 unsafe.Pointer
   718  	if len(p) > 0 {
   719  		_p0 = unsafe.Pointer(&p[0])
   720  	} else {
   721  		_p0 = unsafe.Pointer(&_zero)
   722  	}
   723  	_, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 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 Sethostname(p []byte) (err error) {
   733  	var _p0 unsafe.Pointer
   734  	if len(p) > 0 {
   735  		_p0 = unsafe.Pointer(&p[0])
   736  	} else {
   737  		_p0 = unsafe.Pointer(&_zero)
   738  	}
   739  	_, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
   740  	if e1 != 0 {
   741  		err = errnoErr(e1)
   742  	}
   743  	return
   744  }
   745  
   746  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   747  
   748  func Setpgid(pid int, pgid int) (err error) {
   749  	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
   750  	if e1 != 0 {
   751  		err = errnoErr(e1)
   752  	}
   753  	return
   754  }
   755  
   756  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   757  
   758  func Setsid() (pid int, err error) {
   759  	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
   760  	pid = int(r0)
   761  	if e1 != 0 {
   762  		err = errnoErr(e1)
   763  	}
   764  	return
   765  }
   766  
   767  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   768  
   769  func Settimeofday(tv *Timeval) (err error) {
   770  	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
   771  	if e1 != 0 {
   772  		err = errnoErr(e1)
   773  	}
   774  	return
   775  }
   776  
   777  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   778  
   779  func Setpriority(which int, who int, prio int) (err error) {
   780  	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
   781  	if e1 != 0 {
   782  		err = errnoErr(e1)
   783  	}
   784  	return
   785  }
   786  
   787  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   788  
   789  func Setxattr(path string, attr string, data []byte, flags int) (err error) {
   790  	var _p0 *byte
   791  	_p0, err = BytePtrFromString(path)
   792  	if err != nil {
   793  		return
   794  	}
   795  	var _p1 *byte
   796  	_p1, err = BytePtrFromString(attr)
   797  	if err != nil {
   798  		return
   799  	}
   800  	var _p2 unsafe.Pointer
   801  	if len(data) > 0 {
   802  		_p2 = unsafe.Pointer(&data[0])
   803  	} else {
   804  		_p2 = unsafe.Pointer(&_zero)
   805  	}
   806  	_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
   807  	if e1 != 0 {
   808  		err = errnoErr(e1)
   809  	}
   810  	return
   811  }
   812  
   813  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   814  
   815  func Sync() {
   816  	Syscall(SYS_SYNC, 0, 0, 0)
   817  	return
   818  }
   819  
   820  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   821  
   822  func Sysinfo(info *Sysinfo_t) (err error) {
   823  	_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
   824  	if e1 != 0 {
   825  		err = errnoErr(e1)
   826  	}
   827  	return
   828  }
   829  
   830  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   831  
   832  func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
   833  	r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
   834  	n = int64(int64(r1)<<32 | int64(r0))
   835  	if e1 != 0 {
   836  		err = errnoErr(e1)
   837  	}
   838  	return
   839  }
   840  
   841  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   842  
   843  func Tgkill(tgid int, tid int, sig Signal) (err error) {
   844  	_, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
   845  	if e1 != 0 {
   846  		err = errnoErr(e1)
   847  	}
   848  	return
   849  }
   850  
   851  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   852  
   853  func Times(tms *Tms) (ticks uintptr, err error) {
   854  	r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
   855  	ticks = uintptr(r0)
   856  	if e1 != 0 {
   857  		err = errnoErr(e1)
   858  	}
   859  	return
   860  }
   861  
   862  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   863  
   864  func Umask(mask int) (oldmask int) {
   865  	r0, _ := rawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
   866  	oldmask = int(r0)
   867  	return
   868  }
   869  
   870  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   871  
   872  func Uname(buf *Utsname) (err error) {
   873  	_, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
   874  	if e1 != 0 {
   875  		err = errnoErr(e1)
   876  	}
   877  	return
   878  }
   879  
   880  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   881  
   882  func Unmount(target string, flags int) (err error) {
   883  	var _p0 *byte
   884  	_p0, err = BytePtrFromString(target)
   885  	if err != nil {
   886  		return
   887  	}
   888  	_, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
   889  	if e1 != 0 {
   890  		err = errnoErr(e1)
   891  	}
   892  	return
   893  }
   894  
   895  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   896  
   897  func Unshare(flags int) (err error) {
   898  	_, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
   899  	if e1 != 0 {
   900  		err = errnoErr(e1)
   901  	}
   902  	return
   903  }
   904  
   905  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   906  
   907  func write(fd int, p []byte) (n int, err error) {
   908  	var _p0 unsafe.Pointer
   909  	if len(p) > 0 {
   910  		_p0 = unsafe.Pointer(&p[0])
   911  	} else {
   912  		_p0 = unsafe.Pointer(&_zero)
   913  	}
   914  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
   915  	n = int(r0)
   916  	if e1 != 0 {
   917  		err = errnoErr(e1)
   918  	}
   919  	return
   920  }
   921  
   922  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   923  
   924  func exitThread(code int) (err error) {
   925  	_, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
   926  	if e1 != 0 {
   927  		err = errnoErr(e1)
   928  	}
   929  	return
   930  }
   931  
   932  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   933  
   934  func readlen(fd int, p *byte, np int) (n int, err error) {
   935  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
   936  	n = int(r0)
   937  	if e1 != 0 {
   938  		err = errnoErr(e1)
   939  	}
   940  	return
   941  }
   942  
   943  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   944  
   945  func writelen(fd int, p *byte, np int) (n int, err error) {
   946  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
   947  	n = int(r0)
   948  	if e1 != 0 {
   949  		err = errnoErr(e1)
   950  	}
   951  	return
   952  }
   953  
   954  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   955  
   956  func munmap(addr uintptr, length uintptr) (err error) {
   957  	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
   958  	if e1 != 0 {
   959  		err = errnoErr(e1)
   960  	}
   961  	return
   962  }
   963  
   964  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   965  
   966  func Madvise(b []byte, advice int) (err error) {
   967  	var _p0 unsafe.Pointer
   968  	if len(b) > 0 {
   969  		_p0 = unsafe.Pointer(&b[0])
   970  	} else {
   971  		_p0 = unsafe.Pointer(&_zero)
   972  	}
   973  	_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
   974  	if e1 != 0 {
   975  		err = errnoErr(e1)
   976  	}
   977  	return
   978  }
   979  
   980  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   981  
   982  func Mprotect(b []byte, prot int) (err error) {
   983  	var _p0 unsafe.Pointer
   984  	if len(b) > 0 {
   985  		_p0 = unsafe.Pointer(&b[0])
   986  	} else {
   987  		_p0 = unsafe.Pointer(&_zero)
   988  	}
   989  	_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
   990  	if e1 != 0 {
   991  		err = errnoErr(e1)
   992  	}
   993  	return
   994  }
   995  
   996  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   997  
   998  func Mlock(b []byte) (err error) {
   999  	var _p0 unsafe.Pointer
  1000  	if len(b) > 0 {
  1001  		_p0 = unsafe.Pointer(&b[0])
  1002  	} else {
  1003  		_p0 = unsafe.Pointer(&_zero)
  1004  	}
  1005  	_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1006  	if e1 != 0 {
  1007  		err = errnoErr(e1)
  1008  	}
  1009  	return
  1010  }
  1011  
  1012  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1013  
  1014  func Munlock(b []byte) (err error) {
  1015  	var _p0 unsafe.Pointer
  1016  	if len(b) > 0 {
  1017  		_p0 = unsafe.Pointer(&b[0])
  1018  	} else {
  1019  		_p0 = unsafe.Pointer(&_zero)
  1020  	}
  1021  	_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1022  	if e1 != 0 {
  1023  		err = errnoErr(e1)
  1024  	}
  1025  	return
  1026  }
  1027  
  1028  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1029  
  1030  func Mlockall(flags int) (err error) {
  1031  	_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
  1032  	if e1 != 0 {
  1033  		err = errnoErr(e1)
  1034  	}
  1035  	return
  1036  }
  1037  
  1038  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1039  
  1040  func Munlockall() (err error) {
  1041  	_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
  1042  	if e1 != 0 {
  1043  		err = errnoErr(e1)
  1044  	}
  1045  	return
  1046  }
  1047  
  1048  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1049  
  1050  func pipe(p *[2]_C_int) (err error) {
  1051  	_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
  1052  	if e1 != 0 {
  1053  		err = errnoErr(e1)
  1054  	}
  1055  	return
  1056  }
  1057  
  1058  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1059  
  1060  func pipe2(p *[2]_C_int, flags int) (err error) {
  1061  	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
  1062  	if e1 != 0 {
  1063  		err = errnoErr(e1)
  1064  	}
  1065  	return
  1066  }
  1067  
  1068  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1069  
  1070  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  1071  	r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1072  	fd = int(r0)
  1073  	if e1 != 0 {
  1074  		err = errnoErr(e1)
  1075  	}
  1076  	return
  1077  }
  1078  
  1079  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1080  
  1081  func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  1082  	r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  1083  	fd = int(r0)
  1084  	if e1 != 0 {
  1085  		err = errnoErr(e1)
  1086  	}
  1087  	return
  1088  }
  1089  
  1090  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1091  
  1092  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1093  	_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
  1094  	if e1 != 0 {
  1095  		err = errnoErr(e1)
  1096  	}
  1097  	return
  1098  }
  1099  
  1100  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1101  
  1102  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1103  	_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
  1104  	if e1 != 0 {
  1105  		err = errnoErr(e1)
  1106  	}
  1107  	return
  1108  }
  1109  
  1110  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1111  
  1112  func getgroups(n int, list *_Gid_t) (nn int, err error) {
  1113  	r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  1114  	nn = int(r0)
  1115  	if e1 != 0 {
  1116  		err = errnoErr(e1)
  1117  	}
  1118  	return
  1119  }
  1120  
  1121  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1122  
  1123  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  1124  	_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  1125  	if e1 != 0 {
  1126  		err = errnoErr(e1)
  1127  	}
  1128  	return
  1129  }
  1130  
  1131  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1132  
  1133  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  1134  	_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  1135  	if e1 != 0 {
  1136  		err = errnoErr(e1)
  1137  	}
  1138  	return
  1139  }
  1140  
  1141  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1142  
  1143  func socket(domain int, typ int, proto int) (fd int, err error) {
  1144  	r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  1145  	fd = int(r0)
  1146  	if e1 != 0 {
  1147  		err = errnoErr(e1)
  1148  	}
  1149  	return
  1150  }
  1151  
  1152  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1153  
  1154  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1155  	_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1156  	if e1 != 0 {
  1157  		err = errnoErr(e1)
  1158  	}
  1159  	return
  1160  }
  1161  
  1162  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1163  
  1164  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1165  	_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1166  	if e1 != 0 {
  1167  		err = errnoErr(e1)
  1168  	}
  1169  	return
  1170  }
  1171  
  1172  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1173  
  1174  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  1175  	var _p0 unsafe.Pointer
  1176  	if len(p) > 0 {
  1177  		_p0 = unsafe.Pointer(&p[0])
  1178  	} else {
  1179  		_p0 = unsafe.Pointer(&_zero)
  1180  	}
  1181  	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  1182  	n = int(r0)
  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 sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1192  	var _p0 unsafe.Pointer
  1193  	if len(buf) > 0 {
  1194  		_p0 = unsafe.Pointer(&buf[0])
  1195  	} else {
  1196  		_p0 = unsafe.Pointer(&_zero)
  1197  	}
  1198  	_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1199  	if e1 != 0 {
  1200  		err = errnoErr(e1)
  1201  	}
  1202  	return
  1203  }
  1204  
  1205  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1206  
  1207  func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) {
  1208  	_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0)
  1209  	if e1 != 0 {
  1210  		err = errnoErr(e1)
  1211  	}
  1212  	return
  1213  }
  1214  
  1215  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1216  
  1217  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1218  	r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  1219  	n = int(r0)
  1220  	if e1 != 0 {
  1221  		err = errnoErr(e1)
  1222  	}
  1223  	return
  1224  }
  1225  
  1226  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1227  
  1228  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1229  	r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  1230  	n = int(r0)
  1231  	if e1 != 0 {
  1232  		err = errnoErr(e1)
  1233  	}
  1234  	return
  1235  }
  1236  
  1237  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1238  
  1239  func Dup2(oldfd int, newfd int) (err error) {
  1240  	_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 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 EpollCreate(size int) (fd int, err error) {
  1250  	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
  1251  	fd = int(r0)
  1252  	if e1 != 0 {
  1253  		err = errnoErr(e1)
  1254  	}
  1255  	return
  1256  }
  1257  
  1258  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1259  
  1260  func Fchown(fd int, uid int, gid int) (err error) {
  1261  	_, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid))
  1262  	if e1 != 0 {
  1263  		err = errnoErr(e1)
  1264  	}
  1265  	return
  1266  }
  1267  
  1268  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1269  
  1270  func Fstat(fd int, stat *Stat_t) (err error) {
  1271  	_, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  1272  	if e1 != 0 {
  1273  		err = errnoErr(e1)
  1274  	}
  1275  	return
  1276  }
  1277  
  1278  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1279  
  1280  func fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
  1281  	var _p0 *byte
  1282  	_p0, err = BytePtrFromString(path)
  1283  	if err != nil {
  1284  		return
  1285  	}
  1286  	_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  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 Getegid() (egid int) {
  1296  	r0, _ := rawSyscallNoError(SYS_GETEGID32, 0, 0, 0)
  1297  	egid = int(r0)
  1298  	return
  1299  }
  1300  
  1301  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1302  
  1303  func Geteuid() (euid int) {
  1304  	r0, _ := rawSyscallNoError(SYS_GETEUID32, 0, 0, 0)
  1305  	euid = int(r0)
  1306  	return
  1307  }
  1308  
  1309  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1310  
  1311  func Getgid() (gid int) {
  1312  	r0, _ := rawSyscallNoError(SYS_GETGID32, 0, 0, 0)
  1313  	gid = int(r0)
  1314  	return
  1315  }
  1316  
  1317  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1318  
  1319  func Getuid() (uid int) {
  1320  	r0, _ := rawSyscallNoError(SYS_GETUID32, 0, 0, 0)
  1321  	uid = int(r0)
  1322  	return
  1323  }
  1324  
  1325  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1326  
  1327  func InotifyInit() (fd int, err error) {
  1328  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
  1329  	fd = int(r0)
  1330  	if e1 != 0 {
  1331  		err = errnoErr(e1)
  1332  	}
  1333  	return
  1334  }
  1335  
  1336  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1337  
  1338  func Listen(s int, n int) (err error) {
  1339  	_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
  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 Pause() (err error) {
  1349  	_, _, e1 := Syscall(SYS_PAUSE, 0, 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 Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  1359  	var _p0 *byte
  1360  	_p0, err = BytePtrFromString(oldpath)
  1361  	if err != nil {
  1362  		return
  1363  	}
  1364  	var _p1 *byte
  1365  	_p1, err = BytePtrFromString(newpath)
  1366  	if err != nil {
  1367  		return
  1368  	}
  1369  	_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  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 sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  1379  	r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  1380  	written = int(r0)
  1381  	if e1 != 0 {
  1382  		err = errnoErr(e1)
  1383  	}
  1384  	return
  1385  }
  1386  
  1387  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1388  
  1389  func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  1390  	r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1391  	n = int(r0)
  1392  	if e1 != 0 {
  1393  		err = errnoErr(e1)
  1394  	}
  1395  	return
  1396  }
  1397  
  1398  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1399  
  1400  func Setfsgid(gid int) (err error) {
  1401  	_, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
  1402  	if e1 != 0 {
  1403  		err = errnoErr(e1)
  1404  	}
  1405  	return
  1406  }
  1407  
  1408  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1409  
  1410  func Setfsuid(uid int) (err error) {
  1411  	_, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0)
  1412  	if e1 != 0 {
  1413  		err = errnoErr(e1)
  1414  	}
  1415  	return
  1416  }
  1417  
  1418  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1419  
  1420  func Shutdown(fd int, how int) (err error) {
  1421  	_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 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 Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
  1431  	r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
  1432  	n = int(r0)
  1433  	if e1 != 0 {
  1434  		err = errnoErr(e1)
  1435  	}
  1436  	return
  1437  }
  1438  
  1439  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1440  
  1441  func Ustat(dev int, ubuf *Ustat_t) (err error) {
  1442  	_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
  1443  	if e1 != 0 {
  1444  		err = errnoErr(e1)
  1445  	}
  1446  	return
  1447  }
  1448  
  1449  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1450  
  1451  func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
  1452  	var _p0 *byte
  1453  	_p0, err = BytePtrFromString(path)
  1454  	if err != nil {
  1455  		return
  1456  	}
  1457  	_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
  1458  	if e1 != 0 {
  1459  		err = errnoErr(e1)
  1460  	}
  1461  	return
  1462  }
  1463  
  1464  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1465  
  1466  func Gettimeofday(tv *Timeval) (err error) {
  1467  	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  1468  	if e1 != 0 {
  1469  		err = errnoErr(e1)
  1470  	}
  1471  	return
  1472  }
  1473  
  1474  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1475  
  1476  func Time(t *Time_t) (tt Time_t, err error) {
  1477  	r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
  1478  	tt = Time_t(r0)
  1479  	if e1 != 0 {
  1480  		err = errnoErr(e1)
  1481  	}
  1482  	return
  1483  }
  1484  
  1485  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1486  
  1487  func Utime(path string, buf *Utimbuf) (err error) {
  1488  	var _p0 *byte
  1489  	_p0, err = BytePtrFromString(path)
  1490  	if err != nil {
  1491  		return
  1492  	}
  1493  	_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  1494  	if e1 != 0 {
  1495  		err = errnoErr(e1)
  1496  	}
  1497  	return
  1498  }
  1499  
  1500  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1501  
  1502  func utimes(path string, times *[2]Timeval) (err error) {
  1503  	var _p0 *byte
  1504  	_p0, err = BytePtrFromString(path)
  1505  	if err != nil {
  1506  		return
  1507  	}
  1508  	_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
  1509  	if e1 != 0 {
  1510  		err = errnoErr(e1)
  1511  	}
  1512  	return
  1513  }
  1514  
  1515  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1516  
  1517  func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1518  	var _p0 unsafe.Pointer
  1519  	if len(p) > 0 {
  1520  		_p0 = unsafe.Pointer(&p[0])
  1521  	} else {
  1522  		_p0 = unsafe.Pointer(&_zero)
  1523  	}
  1524  	r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
  1525  	n = int(r0)
  1526  	if e1 != 0 {
  1527  		err = errnoErr(e1)
  1528  	}
  1529  	return
  1530  }
  1531  
  1532  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1533  
  1534  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1535  	var _p0 unsafe.Pointer
  1536  	if len(p) > 0 {
  1537  		_p0 = unsafe.Pointer(&p[0])
  1538  	} else {
  1539  		_p0 = unsafe.Pointer(&_zero)
  1540  	}
  1541  	r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
  1542  	n = int(r0)
  1543  	if e1 != 0 {
  1544  		err = errnoErr(e1)
  1545  	}
  1546  	return
  1547  }
  1548  
  1549  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1550  
  1551  func Truncate(path string, length int64) (err error) {
  1552  	var _p0 *byte
  1553  	_p0, err = BytePtrFromString(path)
  1554  	if err != nil {
  1555  		return
  1556  	}
  1557  	_, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
  1558  	if e1 != 0 {
  1559  		err = errnoErr(e1)
  1560  	}
  1561  	return
  1562  }
  1563  
  1564  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1565  
  1566  func Ftruncate(fd int, length int64) (err error) {
  1567  	_, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
  1568  	if e1 != 0 {
  1569  		err = errnoErr(e1)
  1570  	}
  1571  	return
  1572  }
  1573  
  1574  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1575  
  1576  func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
  1577  	r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
  1578  	xaddr = uintptr(r0)
  1579  	if e1 != 0 {
  1580  		err = errnoErr(e1)
  1581  	}
  1582  	return
  1583  }
  1584  
  1585  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1586  
  1587  func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
  1588  	var _p0 unsafe.Pointer
  1589  	if len(events) > 0 {
  1590  		_p0 = unsafe.Pointer(&events[0])
  1591  	} else {
  1592  		_p0 = unsafe.Pointer(&_zero)
  1593  	}
  1594  	r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
  1595  	n = int(r0)
  1596  	if e1 != 0 {
  1597  		err = errnoErr(e1)
  1598  	}
  1599  	return
  1600  }
  1601  
  1602  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1603  
  1604  func getrlimit(resource int, rlim *rlimit32) (err error) {
  1605  	_, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1606  	if e1 != 0 {
  1607  		err = errnoErr(e1)
  1608  	}
  1609  	return
  1610  }
  1611  
  1612  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1613  
  1614  func setrlimit(resource int, rlim *rlimit32) (err error) {
  1615  	_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1616  	if e1 != 0 {
  1617  		err = errnoErr(e1)
  1618  	}
  1619  	return
  1620  }