Source file src/syscall/zsyscall_linux_ppc64.go

     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  //go: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 pipe2(p *[2]_C_int, flags int) (err error) {
    79  	_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
    80  	if e1 != 0 {
    81  		err = errnoErr(e1)
    82  	}
    83  	return
    84  }
    85  
    86  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    87  
    88  func readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
    89  	var _p0 *byte
    90  	_p0, err = BytePtrFromString(path)
    91  	if err != nil {
    92  		return
    93  	}
    94  	var _p1 unsafe.Pointer
    95  	if len(buf) > 0 {
    96  		_p1 = unsafe.Pointer(&buf[0])
    97  	} else {
    98  		_p1 = unsafe.Pointer(&_zero)
    99  	}
   100  	r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
   101  	n = int(r0)
   102  	if e1 != 0 {
   103  		err = errnoErr(e1)
   104  	}
   105  	return
   106  }
   107  
   108  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   109  
   110  func symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
   111  	var _p0 *byte
   112  	_p0, err = BytePtrFromString(oldpath)
   113  	if err != nil {
   114  		return
   115  	}
   116  	var _p1 *byte
   117  	_p1, err = BytePtrFromString(newpath)
   118  	if err != nil {
   119  		return
   120  	}
   121  	_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
   122  	if e1 != 0 {
   123  		err = errnoErr(e1)
   124  	}
   125  	return
   126  }
   127  
   128  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   129  
   130  func unlinkat(dirfd int, path string, flags int) (err error) {
   131  	var _p0 *byte
   132  	_p0, err = BytePtrFromString(path)
   133  	if err != nil {
   134  		return
   135  	}
   136  	_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
   137  	if e1 != 0 {
   138  		err = errnoErr(e1)
   139  	}
   140  	return
   141  }
   142  
   143  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   144  
   145  func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
   146  	var _p0 *byte
   147  	_p0, err = BytePtrFromString(path)
   148  	if err != nil {
   149  		return
   150  	}
   151  	_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
   152  	if e1 != 0 {
   153  		err = errnoErr(e1)
   154  	}
   155  	return
   156  }
   157  
   158  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   159  
   160  func Getcwd(buf []byte) (n int, err error) {
   161  	var _p0 unsafe.Pointer
   162  	if len(buf) > 0 {
   163  		_p0 = unsafe.Pointer(&buf[0])
   164  	} else {
   165  		_p0 = unsafe.Pointer(&_zero)
   166  	}
   167  	r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
   168  	n = int(r0)
   169  	if e1 != 0 {
   170  		err = errnoErr(e1)
   171  	}
   172  	return
   173  }
   174  
   175  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   176  
   177  func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
   178  	r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
   179  	wpid = int(r0)
   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 ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
   189  	_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
   190  	if e1 != 0 {
   191  		err = errnoErr(e1)
   192  	}
   193  	return
   194  }
   195  
   196  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   197  
   198  func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
   199  	var _p0 *byte
   200  	_p0, err = BytePtrFromString(arg)
   201  	if err != nil {
   202  		return
   203  	}
   204  	_, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
   205  	if e1 != 0 {
   206  		err = errnoErr(e1)
   207  	}
   208  	return
   209  }
   210  
   211  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   212  
   213  func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
   214  	var _p0 *byte
   215  	_p0, err = BytePtrFromString(source)
   216  	if err != nil {
   217  		return
   218  	}
   219  	var _p1 *byte
   220  	_p1, err = BytePtrFromString(target)
   221  	if err != nil {
   222  		return
   223  	}
   224  	var _p2 *byte
   225  	_p2, err = BytePtrFromString(fstype)
   226  	if err != nil {
   227  		return
   228  	}
   229  	_, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
   230  	if e1 != 0 {
   231  		err = errnoErr(e1)
   232  	}
   233  	return
   234  }
   235  
   236  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   237  
   238  func Acct(path string) (err error) {
   239  	var _p0 *byte
   240  	_p0, err = BytePtrFromString(path)
   241  	if err != nil {
   242  		return
   243  	}
   244  	_, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   245  	if e1 != 0 {
   246  		err = errnoErr(e1)
   247  	}
   248  	return
   249  }
   250  
   251  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   252  
   253  func Adjtimex(buf *Timex) (state int, err error) {
   254  	r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
   255  	state = int(r0)
   256  	if e1 != 0 {
   257  		err = errnoErr(e1)
   258  	}
   259  	return
   260  }
   261  
   262  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   263  
   264  func Chdir(path string) (err error) {
   265  	var _p0 *byte
   266  	_p0, err = BytePtrFromString(path)
   267  	if err != nil {
   268  		return
   269  	}
   270  	_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
   271  	if e1 != 0 {
   272  		err = errnoErr(e1)
   273  	}
   274  	return
   275  }
   276  
   277  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   278  
   279  func Chroot(path string) (err error) {
   280  	var _p0 *byte
   281  	_p0, err = BytePtrFromString(path)
   282  	if err != nil {
   283  		return
   284  	}
   285  	_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 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 Close(fd int) (err error) {
   295  	_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
   296  	if e1 != 0 {
   297  		err = errnoErr(e1)
   298  	}
   299  	return
   300  }
   301  
   302  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   303  
   304  func Dup(oldfd int) (fd int, err error) {
   305  	r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
   306  	fd = int(r0)
   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 Dup3(oldfd int, newfd int, flags int) (err error) {
   316  	_, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
   317  	if e1 != 0 {
   318  		err = errnoErr(e1)
   319  	}
   320  	return
   321  }
   322  
   323  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   324  
   325  func EpollCreate1(flag int) (fd int, err error) {
   326  	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
   327  	fd = int(r0)
   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 EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
   337  	_, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 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 Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
   347  	_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 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 Fchdir(fd int) (err error) {
   357  	_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 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 Fchmod(fd int, mode uint32) (err error) {
   367  	_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
   368  	if e1 != 0 {
   369  		err = errnoErr(e1)
   370  	}
   371  	return
   372  }
   373  
   374  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   375  
   376  func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   377  	var _p0 *byte
   378  	_p0, err = BytePtrFromString(path)
   379  	if err != nil {
   380  		return
   381  	}
   382  	_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   383  	if e1 != 0 {
   384  		err = errnoErr(e1)
   385  	}
   386  	return
   387  }
   388  
   389  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   390  
   391  func fcntl(fd int, cmd int, arg int) (val int, err error) {
   392  	r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
   393  	val = int(r0)
   394  	if e1 != 0 {
   395  		err = errnoErr(e1)
   396  	}
   397  	return
   398  }
   399  
   400  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   401  
   402  func Fdatasync(fd int) (err error) {
   403  	_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 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 Flock(fd int, how int) (err error) {
   413  	_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 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 Fsync(fd int) (err error) {
   423  	_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
   424  	if e1 != 0 {
   425  		err = errnoErr(e1)
   426  	}
   427  	return
   428  }
   429  
   430  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   431  
   432  func Getdents(fd int, buf []byte) (n int, err error) {
   433  	var _p0 unsafe.Pointer
   434  	if len(buf) > 0 {
   435  		_p0 = unsafe.Pointer(&buf[0])
   436  	} else {
   437  		_p0 = unsafe.Pointer(&_zero)
   438  	}
   439  	r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   440  	n = int(r0)
   441  	if e1 != 0 {
   442  		err = errnoErr(e1)
   443  	}
   444  	return
   445  }
   446  
   447  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   448  
   449  func Getpgid(pid int) (pgid int, err error) {
   450  	r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   451  	pgid = int(r0)
   452  	if e1 != 0 {
   453  		err = errnoErr(e1)
   454  	}
   455  	return
   456  }
   457  
   458  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   459  
   460  func Getpid() (pid int) {
   461  	r0, _ := rawSyscallNoError(SYS_GETPID, 0, 0, 0)
   462  	pid = int(r0)
   463  	return
   464  }
   465  
   466  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   467  
   468  func Getppid() (ppid int) {
   469  	r0, _ := rawSyscallNoError(SYS_GETPPID, 0, 0, 0)
   470  	ppid = int(r0)
   471  	return
   472  }
   473  
   474  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   475  
   476  func Getpriority(which int, who int) (prio int, err error) {
   477  	r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
   478  	prio = int(r0)
   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 Getrusage(who int, rusage *Rusage) (err error) {
   488  	_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
   489  	if e1 != 0 {
   490  		err = errnoErr(e1)
   491  	}
   492  	return
   493  }
   494  
   495  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   496  
   497  func Gettid() (tid int) {
   498  	r0, _ := rawSyscallNoError(SYS_GETTID, 0, 0, 0)
   499  	tid = int(r0)
   500  	return
   501  }
   502  
   503  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   504  
   505  func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
   506  	var _p0 *byte
   507  	_p0, err = BytePtrFromString(path)
   508  	if err != nil {
   509  		return
   510  	}
   511  	var _p1 *byte
   512  	_p1, err = BytePtrFromString(attr)
   513  	if err != nil {
   514  		return
   515  	}
   516  	var _p2 unsafe.Pointer
   517  	if len(dest) > 0 {
   518  		_p2 = unsafe.Pointer(&dest[0])
   519  	} else {
   520  		_p2 = unsafe.Pointer(&_zero)
   521  	}
   522  	r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
   523  	sz = int(r0)
   524  	if e1 != 0 {
   525  		err = errnoErr(e1)
   526  	}
   527  	return
   528  }
   529  
   530  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   531  
   532  func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
   533  	var _p0 *byte
   534  	_p0, err = BytePtrFromString(pathname)
   535  	if err != nil {
   536  		return
   537  	}
   538  	r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
   539  	watchdesc = int(r0)
   540  	if e1 != 0 {
   541  		err = errnoErr(e1)
   542  	}
   543  	return
   544  }
   545  
   546  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   547  
   548  func InotifyInit1(flags int) (fd int, err error) {
   549  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
   550  	fd = int(r0)
   551  	if e1 != 0 {
   552  		err = errnoErr(e1)
   553  	}
   554  	return
   555  }
   556  
   557  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   558  
   559  func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
   560  	r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
   561  	success = int(r0)
   562  	if e1 != 0 {
   563  		err = errnoErr(e1)
   564  	}
   565  	return
   566  }
   567  
   568  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   569  
   570  func Kill(pid int, sig Signal) (err error) {
   571  	_, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
   572  	if e1 != 0 {
   573  		err = errnoErr(e1)
   574  	}
   575  	return
   576  }
   577  
   578  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   579  
   580  func Klogctl(typ int, buf []byte) (n int, err error) {
   581  	var _p0 unsafe.Pointer
   582  	if len(buf) > 0 {
   583  		_p0 = unsafe.Pointer(&buf[0])
   584  	} else {
   585  		_p0 = unsafe.Pointer(&_zero)
   586  	}
   587  	r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
   588  	n = int(r0)
   589  	if e1 != 0 {
   590  		err = errnoErr(e1)
   591  	}
   592  	return
   593  }
   594  
   595  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   596  
   597  func Listxattr(path string, dest []byte) (sz int, err error) {
   598  	var _p0 *byte
   599  	_p0, err = BytePtrFromString(path)
   600  	if err != nil {
   601  		return
   602  	}
   603  	var _p1 unsafe.Pointer
   604  	if len(dest) > 0 {
   605  		_p1 = unsafe.Pointer(&dest[0])
   606  	} else {
   607  		_p1 = unsafe.Pointer(&_zero)
   608  	}
   609  	r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
   610  	sz = int(r0)
   611  	if e1 != 0 {
   612  		err = errnoErr(e1)
   613  	}
   614  	return
   615  }
   616  
   617  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   618  
   619  func Mkdirat(dirfd int, path string, mode uint32) (err error) {
   620  	var _p0 *byte
   621  	_p0, err = BytePtrFromString(path)
   622  	if err != nil {
   623  		return
   624  	}
   625  	_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
   626  	if e1 != 0 {
   627  		err = errnoErr(e1)
   628  	}
   629  	return
   630  }
   631  
   632  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   633  
   634  func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
   635  	var _p0 *byte
   636  	_p0, err = BytePtrFromString(path)
   637  	if err != nil {
   638  		return
   639  	}
   640  	_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 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 Nanosleep(time *Timespec, leftover *Timespec) (err error) {
   650  	_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
   651  	if e1 != 0 {
   652  		err = errnoErr(e1)
   653  	}
   654  	return
   655  }
   656  
   657  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   658  
   659  func PivotRoot(newroot string, putold string) (err error) {
   660  	var _p0 *byte
   661  	_p0, err = BytePtrFromString(newroot)
   662  	if err != nil {
   663  		return
   664  	}
   665  	var _p1 *byte
   666  	_p1, err = BytePtrFromString(putold)
   667  	if err != nil {
   668  		return
   669  	}
   670  	_, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 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 prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
   680  	_, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
   681  	if e1 != 0 {
   682  		err = errnoErr(e1)
   683  	}
   684  	return
   685  }
   686  
   687  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   688  
   689  func read(fd int, p []byte) (n int, err error) {
   690  	var _p0 unsafe.Pointer
   691  	if len(p) > 0 {
   692  		_p0 = unsafe.Pointer(&p[0])
   693  	} else {
   694  		_p0 = unsafe.Pointer(&_zero)
   695  	}
   696  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
   697  	n = int(r0)
   698  	if e1 != 0 {
   699  		err = errnoErr(e1)
   700  	}
   701  	return
   702  }
   703  
   704  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   705  
   706  func Removexattr(path string, attr string) (err error) {
   707  	var _p0 *byte
   708  	_p0, err = BytePtrFromString(path)
   709  	if err != nil {
   710  		return
   711  	}
   712  	var _p1 *byte
   713  	_p1, err = BytePtrFromString(attr)
   714  	if err != nil {
   715  		return
   716  	}
   717  	_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   718  	if e1 != 0 {
   719  		err = errnoErr(e1)
   720  	}
   721  	return
   722  }
   723  
   724  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   725  
   726  func Setdomainname(p []byte) (err error) {
   727  	var _p0 unsafe.Pointer
   728  	if len(p) > 0 {
   729  		_p0 = unsafe.Pointer(&p[0])
   730  	} else {
   731  		_p0 = unsafe.Pointer(&_zero)
   732  	}
   733  	_, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
   734  	if e1 != 0 {
   735  		err = errnoErr(e1)
   736  	}
   737  	return
   738  }
   739  
   740  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   741  
   742  func Sethostname(p []byte) (err error) {
   743  	var _p0 unsafe.Pointer
   744  	if len(p) > 0 {
   745  		_p0 = unsafe.Pointer(&p[0])
   746  	} else {
   747  		_p0 = unsafe.Pointer(&_zero)
   748  	}
   749  	_, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 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 Setpgid(pid int, pgid int) (err error) {
   759  	_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
   760  	if e1 != 0 {
   761  		err = errnoErr(e1)
   762  	}
   763  	return
   764  }
   765  
   766  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   767  
   768  func Setsid() (pid int, err error) {
   769  	r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
   770  	pid = int(r0)
   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 Settimeofday(tv *Timeval) (err error) {
   780  	_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
   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 Setpriority(which int, who int, prio int) (err error) {
   790  	_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
   791  	if e1 != 0 {
   792  		err = errnoErr(e1)
   793  	}
   794  	return
   795  }
   796  
   797  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   798  
   799  func Setxattr(path string, attr string, data []byte, flags int) (err error) {
   800  	var _p0 *byte
   801  	_p0, err = BytePtrFromString(path)
   802  	if err != nil {
   803  		return
   804  	}
   805  	var _p1 *byte
   806  	_p1, err = BytePtrFromString(attr)
   807  	if err != nil {
   808  		return
   809  	}
   810  	var _p2 unsafe.Pointer
   811  	if len(data) > 0 {
   812  		_p2 = unsafe.Pointer(&data[0])
   813  	} else {
   814  		_p2 = unsafe.Pointer(&_zero)
   815  	}
   816  	_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
   817  	if e1 != 0 {
   818  		err = errnoErr(e1)
   819  	}
   820  	return
   821  }
   822  
   823  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   824  
   825  func Sync() {
   826  	Syscall(SYS_SYNC, 0, 0, 0)
   827  	return
   828  }
   829  
   830  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   831  
   832  func Sysinfo(info *Sysinfo_t) (err error) {
   833  	_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
   834  	if e1 != 0 {
   835  		err = errnoErr(e1)
   836  	}
   837  	return
   838  }
   839  
   840  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   841  
   842  func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
   843  	r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
   844  	n = int64(r0)
   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 Tgkill(tgid int, tid int, sig Signal) (err error) {
   854  	_, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
   855  	if e1 != 0 {
   856  		err = errnoErr(e1)
   857  	}
   858  	return
   859  }
   860  
   861  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   862  
   863  func Times(tms *Tms) (ticks uintptr, err error) {
   864  	r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
   865  	ticks = uintptr(r0)
   866  	if e1 != 0 {
   867  		err = errnoErr(e1)
   868  	}
   869  	return
   870  }
   871  
   872  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   873  
   874  func Umask(mask int) (oldmask int) {
   875  	r0, _ := rawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
   876  	oldmask = int(r0)
   877  	return
   878  }
   879  
   880  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   881  
   882  func Uname(buf *Utsname) (err error) {
   883  	_, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
   884  	if e1 != 0 {
   885  		err = errnoErr(e1)
   886  	}
   887  	return
   888  }
   889  
   890  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   891  
   892  func Unmount(target string, flags int) (err error) {
   893  	var _p0 *byte
   894  	_p0, err = BytePtrFromString(target)
   895  	if err != nil {
   896  		return
   897  	}
   898  	_, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 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 Unshare(flags int) (err error) {
   908  	_, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
   909  	if e1 != 0 {
   910  		err = errnoErr(e1)
   911  	}
   912  	return
   913  }
   914  
   915  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   916  
   917  func write(fd int, p []byte) (n int, err error) {
   918  	var _p0 unsafe.Pointer
   919  	if len(p) > 0 {
   920  		_p0 = unsafe.Pointer(&p[0])
   921  	} else {
   922  		_p0 = unsafe.Pointer(&_zero)
   923  	}
   924  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
   925  	n = int(r0)
   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 exitThread(code int) (err error) {
   935  	_, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
   936  	if e1 != 0 {
   937  		err = errnoErr(e1)
   938  	}
   939  	return
   940  }
   941  
   942  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   943  
   944  func readlen(fd int, p *byte, np int) (n int, err error) {
   945  	r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
   946  	n = int(r0)
   947  	if e1 != 0 {
   948  		err = errnoErr(e1)
   949  	}
   950  	return
   951  }
   952  
   953  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   954  
   955  func writelen(fd int, p *byte, np int) (n int, err error) {
   956  	r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
   957  	n = int(r0)
   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 munmap(addr uintptr, length uintptr) (err error) {
   967  	_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
   968  	if e1 != 0 {
   969  		err = errnoErr(e1)
   970  	}
   971  	return
   972  }
   973  
   974  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   975  
   976  func Madvise(b []byte, advice int) (err error) {
   977  	var _p0 unsafe.Pointer
   978  	if len(b) > 0 {
   979  		_p0 = unsafe.Pointer(&b[0])
   980  	} else {
   981  		_p0 = unsafe.Pointer(&_zero)
   982  	}
   983  	_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
   984  	if e1 != 0 {
   985  		err = errnoErr(e1)
   986  	}
   987  	return
   988  }
   989  
   990  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   991  
   992  func Mprotect(b []byte, prot int) (err error) {
   993  	var _p0 unsafe.Pointer
   994  	if len(b) > 0 {
   995  		_p0 = unsafe.Pointer(&b[0])
   996  	} else {
   997  		_p0 = unsafe.Pointer(&_zero)
   998  	}
   999  	_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
  1000  	if e1 != 0 {
  1001  		err = errnoErr(e1)
  1002  	}
  1003  	return
  1004  }
  1005  
  1006  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1007  
  1008  func Mlock(b []byte) (err error) {
  1009  	var _p0 unsafe.Pointer
  1010  	if len(b) > 0 {
  1011  		_p0 = unsafe.Pointer(&b[0])
  1012  	} else {
  1013  		_p0 = unsafe.Pointer(&_zero)
  1014  	}
  1015  	_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1016  	if e1 != 0 {
  1017  		err = errnoErr(e1)
  1018  	}
  1019  	return
  1020  }
  1021  
  1022  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1023  
  1024  func Munlock(b []byte) (err error) {
  1025  	var _p0 unsafe.Pointer
  1026  	if len(b) > 0 {
  1027  		_p0 = unsafe.Pointer(&b[0])
  1028  	} else {
  1029  		_p0 = unsafe.Pointer(&_zero)
  1030  	}
  1031  	_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 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 Mlockall(flags int) (err error) {
  1041  	_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 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 Munlockall() (err error) {
  1051  	_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 Dup2(oldfd int, newfd int) (err error) {
  1061  	_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 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 EpollCreate(size int) (fd int, err error) {
  1071  	r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
  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 EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
  1082  	var _p0 unsafe.Pointer
  1083  	if len(events) > 0 {
  1084  		_p0 = unsafe.Pointer(&events[0])
  1085  	} else {
  1086  		_p0 = unsafe.Pointer(&_zero)
  1087  	}
  1088  	r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
  1089  	n = int(r0)
  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 Fchown(fd int, uid int, gid int) (err error) {
  1099  	_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
  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 Fstat(fd int, stat *Stat_t) (err error) {
  1109  	_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  1110  	if e1 != 0 {
  1111  		err = errnoErr(e1)
  1112  	}
  1113  	return
  1114  }
  1115  
  1116  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1117  
  1118  func fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
  1119  	var _p0 *byte
  1120  	_p0, err = BytePtrFromString(path)
  1121  	if err != nil {
  1122  		return
  1123  	}
  1124  	_, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 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 Fstatfs(fd int, buf *Statfs_t) (err error) {
  1134  	_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 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 Ftruncate(fd int, length int64) (err error) {
  1144  	_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
  1145  	if e1 != 0 {
  1146  		err = errnoErr(e1)
  1147  	}
  1148  	return
  1149  }
  1150  
  1151  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1152  
  1153  func Getegid() (egid int) {
  1154  	r0, _ := rawSyscallNoError(SYS_GETEGID, 0, 0, 0)
  1155  	egid = int(r0)
  1156  	return
  1157  }
  1158  
  1159  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1160  
  1161  func Geteuid() (euid int) {
  1162  	r0, _ := rawSyscallNoError(SYS_GETEUID, 0, 0, 0)
  1163  	euid = int(r0)
  1164  	return
  1165  }
  1166  
  1167  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1168  
  1169  func Getgid() (gid int) {
  1170  	r0, _ := rawSyscallNoError(SYS_GETGID, 0, 0, 0)
  1171  	gid = int(r0)
  1172  	return
  1173  }
  1174  
  1175  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1176  
  1177  func Getrlimit(resource int, rlim *Rlimit) (err error) {
  1178  	_, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1179  	if e1 != 0 {
  1180  		err = errnoErr(e1)
  1181  	}
  1182  	return
  1183  }
  1184  
  1185  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1186  
  1187  func Getuid() (uid int) {
  1188  	r0, _ := rawSyscallNoError(SYS_GETUID, 0, 0, 0)
  1189  	uid = int(r0)
  1190  	return
  1191  }
  1192  
  1193  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1194  
  1195  func InotifyInit() (fd int, err error) {
  1196  	r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
  1197  	fd = int(r0)
  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 Ioperm(from int, num int, on int) (err error) {
  1207  	_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
  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 Iopl(level int) (err error) {
  1217  	_, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
  1218  	if e1 != 0 {
  1219  		err = errnoErr(e1)
  1220  	}
  1221  	return
  1222  }
  1223  
  1224  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1225  
  1226  func Lchown(path string, uid int, gid int) (err error) {
  1227  	var _p0 *byte
  1228  	_p0, err = BytePtrFromString(path)
  1229  	if err != nil {
  1230  		return
  1231  	}
  1232  	_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  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 Listen(s int, n int) (err error) {
  1242  	_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
  1243  	if e1 != 0 {
  1244  		err = errnoErr(e1)
  1245  	}
  1246  	return
  1247  }
  1248  
  1249  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1250  
  1251  func Lstat(path string, stat *Stat_t) (err error) {
  1252  	var _p0 *byte
  1253  	_p0, err = BytePtrFromString(path)
  1254  	if err != nil {
  1255  		return
  1256  	}
  1257  	_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 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 Pause() (err error) {
  1267  	_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
  1268  	if e1 != 0 {
  1269  		err = errnoErr(e1)
  1270  	}
  1271  	return
  1272  }
  1273  
  1274  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1275  
  1276  func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1277  	var _p0 unsafe.Pointer
  1278  	if len(p) > 0 {
  1279  		_p0 = unsafe.Pointer(&p[0])
  1280  	} else {
  1281  		_p0 = unsafe.Pointer(&_zero)
  1282  	}
  1283  	r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1284  	n = int(r0)
  1285  	if e1 != 0 {
  1286  		err = errnoErr(e1)
  1287  	}
  1288  	return
  1289  }
  1290  
  1291  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1292  
  1293  func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1294  	var _p0 unsafe.Pointer
  1295  	if len(p) > 0 {
  1296  		_p0 = unsafe.Pointer(&p[0])
  1297  	} else {
  1298  		_p0 = unsafe.Pointer(&_zero)
  1299  	}
  1300  	r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1301  	n = int(r0)
  1302  	if e1 != 0 {
  1303  		err = errnoErr(e1)
  1304  	}
  1305  	return
  1306  }
  1307  
  1308  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1309  
  1310  func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  1311  	var _p0 *byte
  1312  	_p0, err = BytePtrFromString(oldpath)
  1313  	if err != nil {
  1314  		return
  1315  	}
  1316  	var _p1 *byte
  1317  	_p1, err = BytePtrFromString(newpath)
  1318  	if err != nil {
  1319  		return
  1320  	}
  1321  	_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1322  	if e1 != 0 {
  1323  		err = errnoErr(e1)
  1324  	}
  1325  	return
  1326  }
  1327  
  1328  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1329  
  1330  func Seek(fd int, offset int64, whence int) (off int64, err error) {
  1331  	r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
  1332  	off = int64(r0)
  1333  	if e1 != 0 {
  1334  		err = errnoErr(e1)
  1335  	}
  1336  	return
  1337  }
  1338  
  1339  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1340  
  1341  func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  1342  	r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1343  	n = int(r0)
  1344  	if e1 != 0 {
  1345  		err = errnoErr(e1)
  1346  	}
  1347  	return
  1348  }
  1349  
  1350  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1351  
  1352  func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  1353  	r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  1354  	written = int(r0)
  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 Setfsgid(gid int) (err error) {
  1364  	_, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 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 Setfsuid(uid int) (err error) {
  1374  	_, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 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 Setrlimit(resource int, rlim *Rlimit) (err error) {
  1384  	_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  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 Shutdown(fd int, how int) (err error) {
  1394  	_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  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 Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
  1404  	r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
  1405  	n = int64(r0)
  1406  	if e1 != 0 {
  1407  		err = errnoErr(e1)
  1408  	}
  1409  	return
  1410  }
  1411  
  1412  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1413  
  1414  func Stat(path string, stat *Stat_t) (err error) {
  1415  	var _p0 *byte
  1416  	_p0, err = BytePtrFromString(path)
  1417  	if err != nil {
  1418  		return
  1419  	}
  1420  	_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1421  	if e1 != 0 {
  1422  		err = errnoErr(e1)
  1423  	}
  1424  	return
  1425  }
  1426  
  1427  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1428  
  1429  func Statfs(path string, buf *Statfs_t) (err error) {
  1430  	var _p0 *byte
  1431  	_p0, err = BytePtrFromString(path)
  1432  	if err != nil {
  1433  		return
  1434  	}
  1435  	_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  1436  	if e1 != 0 {
  1437  		err = errnoErr(e1)
  1438  	}
  1439  	return
  1440  }
  1441  
  1442  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1443  
  1444  func Truncate(path string, length int64) (err error) {
  1445  	var _p0 *byte
  1446  	_p0, err = BytePtrFromString(path)
  1447  	if err != nil {
  1448  		return
  1449  	}
  1450  	_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 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 Ustat(dev int, ubuf *Ustat_t) (err error) {
  1460  	_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
  1461  	if e1 != 0 {
  1462  		err = errnoErr(e1)
  1463  	}
  1464  	return
  1465  }
  1466  
  1467  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1468  
  1469  func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  1470  	r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1471  	fd = int(r0)
  1472  	if e1 != 0 {
  1473  		err = errnoErr(e1)
  1474  	}
  1475  	return
  1476  }
  1477  
  1478  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1479  
  1480  func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  1481  	r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  1482  	fd = int(r0)
  1483  	if e1 != 0 {
  1484  		err = errnoErr(e1)
  1485  	}
  1486  	return
  1487  }
  1488  
  1489  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1490  
  1491  func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1492  	_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
  1493  	if e1 != 0 {
  1494  		err = errnoErr(e1)
  1495  	}
  1496  	return
  1497  }
  1498  
  1499  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1500  
  1501  func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1502  	_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
  1503  	if e1 != 0 {
  1504  		err = errnoErr(e1)
  1505  	}
  1506  	return
  1507  }
  1508  
  1509  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1510  
  1511  func getgroups(n int, list *_Gid_t) (nn int, err error) {
  1512  	r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  1513  	nn = int(r0)
  1514  	if e1 != 0 {
  1515  		err = errnoErr(e1)
  1516  	}
  1517  	return
  1518  }
  1519  
  1520  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1521  
  1522  func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  1523  	_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  1524  	if e1 != 0 {
  1525  		err = errnoErr(e1)
  1526  	}
  1527  	return
  1528  }
  1529  
  1530  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1531  
  1532  func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  1533  	_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  1534  	if e1 != 0 {
  1535  		err = errnoErr(e1)
  1536  	}
  1537  	return
  1538  }
  1539  
  1540  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1541  
  1542  func socket(domain int, typ int, proto int) (fd int, err error) {
  1543  	r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  1544  	fd = int(r0)
  1545  	if e1 != 0 {
  1546  		err = errnoErr(e1)
  1547  	}
  1548  	return
  1549  }
  1550  
  1551  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1552  
  1553  func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  1554  	_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  1555  	if e1 != 0 {
  1556  		err = errnoErr(e1)
  1557  	}
  1558  	return
  1559  }
  1560  
  1561  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1562  
  1563  func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1564  	_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1565  	if e1 != 0 {
  1566  		err = errnoErr(e1)
  1567  	}
  1568  	return
  1569  }
  1570  
  1571  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1572  
  1573  func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1574  	_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1575  	if e1 != 0 {
  1576  		err = errnoErr(e1)
  1577  	}
  1578  	return
  1579  }
  1580  
  1581  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1582  
  1583  func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  1584  	var _p0 unsafe.Pointer
  1585  	if len(p) > 0 {
  1586  		_p0 = unsafe.Pointer(&p[0])
  1587  	} else {
  1588  		_p0 = unsafe.Pointer(&_zero)
  1589  	}
  1590  	r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  1591  	n = int(r0)
  1592  	if e1 != 0 {
  1593  		err = errnoErr(e1)
  1594  	}
  1595  	return
  1596  }
  1597  
  1598  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1599  
  1600  func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1601  	var _p0 unsafe.Pointer
  1602  	if len(buf) > 0 {
  1603  		_p0 = unsafe.Pointer(&buf[0])
  1604  	} else {
  1605  		_p0 = unsafe.Pointer(&_zero)
  1606  	}
  1607  	_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1608  	if e1 != 0 {
  1609  		err = errnoErr(e1)
  1610  	}
  1611  	return
  1612  }
  1613  
  1614  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1615  
  1616  func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1617  	r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  1618  	n = int(r0)
  1619  	if e1 != 0 {
  1620  		err = errnoErr(e1)
  1621  	}
  1622  	return
  1623  }
  1624  
  1625  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1626  
  1627  func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1628  	r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  1629  	n = int(r0)
  1630  	if e1 != 0 {
  1631  		err = errnoErr(e1)
  1632  	}
  1633  	return
  1634  }
  1635  
  1636  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1637  
  1638  func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
  1639  	r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
  1640  	xaddr = uintptr(r0)
  1641  	if e1 != 0 {
  1642  		err = errnoErr(e1)
  1643  	}
  1644  	return
  1645  }
  1646  
  1647  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1648  
  1649  func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
  1650  	var _p0 *byte
  1651  	_p0, err = BytePtrFromString(path)
  1652  	if err != nil {
  1653  		return
  1654  	}
  1655  	_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
  1656  	if e1 != 0 {
  1657  		err = errnoErr(e1)
  1658  	}
  1659  	return
  1660  }
  1661  
  1662  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1663  
  1664  func Gettimeofday(tv *Timeval) (err error) {
  1665  	_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  1666  	if e1 != 0 {
  1667  		err = errnoErr(e1)
  1668  	}
  1669  	return
  1670  }
  1671  
  1672  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1673  
  1674  func Time(t *Time_t) (tt Time_t, err error) {
  1675  	r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
  1676  	tt = Time_t(r0)
  1677  	if e1 != 0 {
  1678  		err = errnoErr(e1)
  1679  	}
  1680  	return
  1681  }
  1682  
  1683  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1684  
  1685  func Utime(path string, buf *Utimbuf) (err error) {
  1686  	var _p0 *byte
  1687  	_p0, err = BytePtrFromString(path)
  1688  	if err != nil {
  1689  		return
  1690  	}
  1691  	_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  1692  	if e1 != 0 {
  1693  		err = errnoErr(e1)
  1694  	}
  1695  	return
  1696  }
  1697  
  1698  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1699  
  1700  func utimes(path string, times *[2]Timeval) (err error) {
  1701  	var _p0 *byte
  1702  	_p0, err = BytePtrFromString(path)
  1703  	if err != nil {
  1704  		return
  1705  	}
  1706  	_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
  1707  	if e1 != 0 {
  1708  		err = errnoErr(e1)
  1709  	}
  1710  	return
  1711  }
  1712  
  1713  // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1714  
  1715  func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
  1716  	_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0)
  1717  	if e1 != 0 {
  1718  		err = errnoErr(e1)
  1719  	}
  1720  	return
  1721  }
  1722  

View as plain text