Black Lives Matter. Support the Equal Justice Initiative.

Source file src/syscall/zsyscall_linux_ppc64.go

Documentation: syscall

     1  // mksyscall.pl -tags linux,ppc64 syscall_linux.go syscall_linux_ppc64x.go
     2  // Code generated by the command above; DO NOT EDIT.
     3  
     4  // +build linux,ppc64
     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(len), 0, 0)
   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, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
   834  	n = 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 Dup2(oldfd int, newfd int) (err error) {
  1051  	_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 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 EpollCreate(size int) (fd int, err error) {
  1061  	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
  1062  	fd = int(r0)
  1063  	if e1 != 0 {
  1064  		err = errnoErr(e1)
  1065  	}
  1066  	return
  1067  }
  1068  
  1069  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1070  
  1071  func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
  1072  	var _p0 unsafe.Pointer
  1073  	if len(events) > 0 {
  1074  		_p0 = unsafe.Pointer(&events[0])
  1075  	} else {
  1076  		_p0 = unsafe.Pointer(&_zero)
  1077  	}
  1078  	r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
  1079  	n = int(r0)
  1080  	if e1 != 0 {
  1081  		err = errnoErr(e1)
  1082  	}
  1083  	return
  1084  }
  1085  
  1086  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1087  
  1088  func Fchown(fd int, uid int, gid int) (err error) {
  1089  	_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
  1090  	if e1 != 0 {
  1091  		err = errnoErr(e1)
  1092  	}
  1093  	return
  1094  }
  1095  
  1096  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1097  
  1098  func Fstat(fd int, stat *Stat_t) (err error) {
  1099  	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  1100  	if e1 != 0 {
  1101  		err = errnoErr(e1)
  1102  	}
  1103  	return
  1104  }
  1105  
  1106  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1107  
  1108  func fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
  1109  	var _p0 *byte
  1110  	_p0, err = BytePtrFromString(path)
  1111  	if err != nil {
  1112  		return
  1113  	}
  1114  	_, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  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 Fstatfs(fd int, buf *Statfs_t) (err error) {
  1124  	_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 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 Ftruncate(fd int, length int64) (err error) {
  1134  	_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 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 Getegid() (egid int) {
  1144  	r0, _ := rawSyscallNoError(SYS_GETEGID, 0, 0, 0)
  1145  	egid = int(r0)
  1146  	return
  1147  }
  1148  
  1149  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1150  
  1151  func Geteuid() (euid int) {
  1152  	r0, _ := rawSyscallNoError(SYS_GETEUID, 0, 0, 0)
  1153  	euid = int(r0)
  1154  	return
  1155  }
  1156  
  1157  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1158  
  1159  func Getgid() (gid int) {
  1160  	r0, _ := rawSyscallNoError(SYS_GETGID, 0, 0, 0)
  1161  	gid = int(r0)
  1162  	return
  1163  }
  1164  
  1165  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1166  
  1167  func Getrlimit(resource int, rlim *Rlimit) (err error) {
  1168  	_, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1169  	if e1 != 0 {
  1170  		err = errnoErr(e1)
  1171  	}
  1172  	return
  1173  }
  1174  
  1175  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1176  
  1177  func Getuid() (uid int) {
  1178  	r0, _ := rawSyscallNoError(SYS_GETUID, 0, 0, 0)
  1179  	uid = int(r0)
  1180  	return
  1181  }
  1182  
  1183  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1184  
  1185  func InotifyInit() (fd int, err error) {
  1186  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
  1187  	fd = int(r0)
  1188  	if e1 != 0 {
  1189  		err = errnoErr(e1)
  1190  	}
  1191  	return
  1192  }
  1193  
  1194  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1195  
  1196  func Ioperm(from int, num int, on int) (err error) {
  1197  	_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
  1198  	if e1 != 0 {
  1199  		err = errnoErr(e1)
  1200  	}
  1201  	return
  1202  }
  1203  
  1204  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1205  
  1206  func Iopl(level int) (err error) {
  1207  	_, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
  1208  	if e1 != 0 {
  1209  		err = errnoErr(e1)
  1210  	}
  1211  	return
  1212  }
  1213  
  1214  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1215  
  1216  func Lchown(path string, uid int, gid int) (err error) {
  1217  	var _p0 *byte
  1218  	_p0, err = BytePtrFromString(path)
  1219  	if err != nil {
  1220  		return
  1221  	}
  1222  	_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  1223  	if e1 != 0 {
  1224  		err = errnoErr(e1)
  1225  	}
  1226  	return
  1227  }
  1228  
  1229  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1230  
  1231  func Listen(s int, n int) (err error) {
  1232  	_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
  1233  	if e1 != 0 {
  1234  		err = errnoErr(e1)
  1235  	}
  1236  	return
  1237  }
  1238  
  1239  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1240  
  1241  func Lstat(path string, stat *Stat_t) (err error) {
  1242  	var _p0 *byte
  1243  	_p0, err = BytePtrFromString(path)
  1244  	if err != nil {
  1245  		return
  1246  	}
  1247  	_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1248  	if e1 != 0 {
  1249  		err = errnoErr(e1)
  1250  	}
  1251  	return
  1252  }
  1253  
  1254  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1255  
  1256  func Pause() (err error) {
  1257  	_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
  1258  	if e1 != 0 {
  1259  		err = errnoErr(e1)
  1260  	}
  1261  	return
  1262  }
  1263  
  1264  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1265  
  1266  func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1267  	var _p0 unsafe.Pointer
  1268  	if len(p) > 0 {
  1269  		_p0 = unsafe.Pointer(&p[0])
  1270  	} else {
  1271  		_p0 = unsafe.Pointer(&_zero)
  1272  	}
  1273  	r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1274  	n = int(r0)
  1275  	if e1 != 0 {
  1276  		err = errnoErr(e1)
  1277  	}
  1278  	return
  1279  }
  1280  
  1281  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1282  
  1283  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1284  	var _p0 unsafe.Pointer
  1285  	if len(p) > 0 {
  1286  		_p0 = unsafe.Pointer(&p[0])
  1287  	} else {
  1288  		_p0 = unsafe.Pointer(&_zero)
  1289  	}
  1290  	r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1291  	n = int(r0)
  1292  	if e1 != 0 {
  1293  		err = errnoErr(e1)
  1294  	}
  1295  	return
  1296  }
  1297  
  1298  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1299  
  1300  func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  1301  	var _p0 *byte
  1302  	_p0, err = BytePtrFromString(oldpath)
  1303  	if err != nil {
  1304  		return
  1305  	}
  1306  	var _p1 *byte
  1307  	_p1, err = BytePtrFromString(newpath)
  1308  	if err != nil {
  1309  		return
  1310  	}
  1311  	_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1312  	if e1 != 0 {
  1313  		err = errnoErr(e1)
  1314  	}
  1315  	return
  1316  }
  1317  
  1318  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1319  
  1320  func Seek(fd int, offset int64, whence int) (off int64, err error) {
  1321  	r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
  1322  	off = int64(r0)
  1323  	if e1 != 0 {
  1324  		err = errnoErr(e1)
  1325  	}
  1326  	return
  1327  }
  1328  
  1329  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1330  
  1331  func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  1332  	r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1333  	n = int(r0)
  1334  	if e1 != 0 {
  1335  		err = errnoErr(e1)
  1336  	}
  1337  	return
  1338  }
  1339  
  1340  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1341  
  1342  func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  1343  	r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  1344  	written = int(r0)
  1345  	if e1 != 0 {
  1346  		err = errnoErr(e1)
  1347  	}
  1348  	return
  1349  }
  1350  
  1351  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1352  
  1353  func Setfsgid(gid int) (err error) {
  1354  	_, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
  1355  	if e1 != 0 {
  1356  		err = errnoErr(e1)
  1357  	}
  1358  	return
  1359  }
  1360  
  1361  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1362  
  1363  func Setfsuid(uid int) (err error) {
  1364  	_, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
  1365  	if e1 != 0 {
  1366  		err = errnoErr(e1)
  1367  	}
  1368  	return
  1369  }
  1370  
  1371  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1372  
  1373  func Setregid(rgid int, egid int) (err error) {
  1374  	_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
  1375  	if e1 != 0 {
  1376  		err = errnoErr(e1)
  1377  	}
  1378  	return
  1379  }
  1380  
  1381  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1382  
  1383  func Setresgid(rgid int, egid int, sgid int) (err error) {
  1384  	_, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
  1385  	if e1 != 0 {
  1386  		err = errnoErr(e1)
  1387  	}
  1388  	return
  1389  }
  1390  
  1391  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1392  
  1393  func Setresuid(ruid int, euid int, suid int) (err error) {
  1394  	_, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
  1395  	if e1 != 0 {
  1396  		err = errnoErr(e1)
  1397  	}
  1398  	return
  1399  }
  1400  
  1401  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1402  
  1403  func Setrlimit(resource int, rlim *Rlimit) (err error) {
  1404  	_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1405  	if e1 != 0 {
  1406  		err = errnoErr(e1)
  1407  	}
  1408  	return
  1409  }
  1410  
  1411  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1412  
  1413  func Setreuid(ruid int, euid int) (err error) {
  1414  	_, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
  1415  	if e1 != 0 {
  1416  		err = errnoErr(e1)
  1417  	}
  1418  	return
  1419  }
  1420  
  1421  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1422  
  1423  func Shutdown(fd int, how int) (err error) {
  1424  	_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  1425  	if e1 != 0 {
  1426  		err = errnoErr(e1)
  1427  	}
  1428  	return
  1429  }
  1430  
  1431  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1432  
  1433  func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
  1434  	r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
  1435  	n = int64(r0)
  1436  	if e1 != 0 {
  1437  		err = errnoErr(e1)
  1438  	}
  1439  	return
  1440  }
  1441  
  1442  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1443  
  1444  func Stat(path string, stat *Stat_t) (err error) {
  1445  	var _p0 *byte
  1446  	_p0, err = BytePtrFromString(path)
  1447  	if err != nil {
  1448  		return
  1449  	}
  1450  	_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1451  	if e1 != 0 {
  1452  		err = errnoErr(e1)
  1453  	}
  1454  	return
  1455  }
  1456  
  1457  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1458  
  1459  func Statfs(path string, buf *Statfs_t) (err error) {
  1460  	var _p0 *byte
  1461  	_p0, err = BytePtrFromString(path)
  1462  	if err != nil {
  1463  		return
  1464  	}
  1465  	_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  1466  	if e1 != 0 {
  1467  		err = errnoErr(e1)
  1468  	}
  1469  	return
  1470  }
  1471  
  1472  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1473  
  1474  func Truncate(path string, length int64) (err error) {
  1475  	var _p0 *byte
  1476  	_p0, err = BytePtrFromString(path)
  1477  	if err != nil {
  1478  		return
  1479  	}
  1480  	_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
  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 Ustat(dev int, ubuf *Ustat_t) (err error) {
  1490  	_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
  1491  	if e1 != 0 {
  1492  		err = errnoErr(e1)
  1493  	}
  1494  	return
  1495  }
  1496  
  1497  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1498  
  1499  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  1500  	r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1501  	fd = int(r0)
  1502  	if e1 != 0 {
  1503  		err = errnoErr(e1)
  1504  	}
  1505  	return
  1506  }
  1507  
  1508  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1509  
  1510  func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  1511  	r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  1512  	fd = int(r0)
  1513  	if e1 != 0 {
  1514  		err = errnoErr(e1)
  1515  	}
  1516  	return
  1517  }
  1518  
  1519  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1520  
  1521  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1522  	_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
  1523  	if e1 != 0 {
  1524  		err = errnoErr(e1)
  1525  	}
  1526  	return
  1527  }
  1528  
  1529  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1530  
  1531  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1532  	_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
  1533  	if e1 != 0 {
  1534  		err = errnoErr(e1)
  1535  	}
  1536  	return
  1537  }
  1538  
  1539  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1540  
  1541  func getgroups(n int, list *_Gid_t) (nn int, err error) {
  1542  	r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  1543  	nn = int(r0)
  1544  	if e1 != 0 {
  1545  		err = errnoErr(e1)
  1546  	}
  1547  	return
  1548  }
  1549  
  1550  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1551  
  1552  func setgroups(n int, list *_Gid_t) (err error) {
  1553  	_, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  1554  	if e1 != 0 {
  1555  		err = errnoErr(e1)
  1556  	}
  1557  	return
  1558  }
  1559  
  1560  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1561  
  1562  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  1563  	_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  1564  	if e1 != 0 {
  1565  		err = errnoErr(e1)
  1566  	}
  1567  	return
  1568  }
  1569  
  1570  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1571  
  1572  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  1573  	_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  1574  	if e1 != 0 {
  1575  		err = errnoErr(e1)
  1576  	}
  1577  	return
  1578  }
  1579  
  1580  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1581  
  1582  func socket(domain int, typ int, proto int) (fd int, err error) {
  1583  	r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  1584  	fd = int(r0)
  1585  	if e1 != 0 {
  1586  		err = errnoErr(e1)
  1587  	}
  1588  	return
  1589  }
  1590  
  1591  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1592  
  1593  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  1594  	_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  1595  	if e1 != 0 {
  1596  		err = errnoErr(e1)
  1597  	}
  1598  	return
  1599  }
  1600  
  1601  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1602  
  1603  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1604  	_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1605  	if e1 != 0 {
  1606  		err = errnoErr(e1)
  1607  	}
  1608  	return
  1609  }
  1610  
  1611  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1612  
  1613  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1614  	_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  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 recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  1624  	var _p0 unsafe.Pointer
  1625  	if len(p) > 0 {
  1626  		_p0 = unsafe.Pointer(&p[0])
  1627  	} else {
  1628  		_p0 = unsafe.Pointer(&_zero)
  1629  	}
  1630  	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  1631  	n = int(r0)
  1632  	if e1 != 0 {
  1633  		err = errnoErr(e1)
  1634  	}
  1635  	return
  1636  }
  1637  
  1638  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1639  
  1640  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1641  	var _p0 unsafe.Pointer
  1642  	if len(buf) > 0 {
  1643  		_p0 = unsafe.Pointer(&buf[0])
  1644  	} else {
  1645  		_p0 = unsafe.Pointer(&_zero)
  1646  	}
  1647  	_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1648  	if e1 != 0 {
  1649  		err = errnoErr(e1)
  1650  	}
  1651  	return
  1652  }
  1653  
  1654  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1655  
  1656  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1657  	r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  1658  	n = int(r0)
  1659  	if e1 != 0 {
  1660  		err = errnoErr(e1)
  1661  	}
  1662  	return
  1663  }
  1664  
  1665  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1666  
  1667  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1668  	r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  1669  	n = int(r0)
  1670  	if e1 != 0 {
  1671  		err = errnoErr(e1)
  1672  	}
  1673  	return
  1674  }
  1675  
  1676  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1677  
  1678  func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
  1679  	r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
  1680  	xaddr = uintptr(r0)
  1681  	if e1 != 0 {
  1682  		err = errnoErr(e1)
  1683  	}
  1684  	return
  1685  }
  1686  
  1687  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1688  
  1689  func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
  1690  	var _p0 *byte
  1691  	_p0, err = BytePtrFromString(path)
  1692  	if err != nil {
  1693  		return
  1694  	}
  1695  	_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
  1696  	if e1 != 0 {
  1697  		err = errnoErr(e1)
  1698  	}
  1699  	return
  1700  }
  1701  
  1702  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1703  
  1704  func Gettimeofday(tv *Timeval) (err error) {
  1705  	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  1706  	if e1 != 0 {
  1707  		err = errnoErr(e1)
  1708  	}
  1709  	return
  1710  }
  1711  
  1712  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1713  
  1714  func Time(t *Time_t) (tt Time_t, err error) {
  1715  	r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
  1716  	tt = Time_t(r0)
  1717  	if e1 != 0 {
  1718  		err = errnoErr(e1)
  1719  	}
  1720  	return
  1721  }
  1722  
  1723  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1724  
  1725  func Utime(path string, buf *Utimbuf) (err error) {
  1726  	var _p0 *byte
  1727  	_p0, err = BytePtrFromString(path)
  1728  	if err != nil {
  1729  		return
  1730  	}
  1731  	_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  1732  	if e1 != 0 {
  1733  		err = errnoErr(e1)
  1734  	}
  1735  	return
  1736  }
  1737  
  1738  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1739  
  1740  func utimes(path string, times *[2]Timeval) (err error) {
  1741  	var _p0 *byte
  1742  	_p0, err = BytePtrFromString(path)
  1743  	if err != nil {
  1744  		return
  1745  	}
  1746  	_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
  1747  	if e1 != 0 {
  1748  		err = errnoErr(e1)
  1749  	}
  1750  	return
  1751  }
  1752  
  1753  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1754  
  1755  func pipe2(p *[2]_C_int, flags int) (err error) {
  1756  	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
  1757  	if e1 != 0 {
  1758  		err = errnoErr(e1)
  1759  	}
  1760  	return
  1761  }
  1762  
  1763  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1764  
  1765  func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
  1766  	_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0)
  1767  	if e1 != 0 {
  1768  		err = errnoErr(e1)
  1769  	}
  1770  	return
  1771  }
  1772  

View as plain text