...
Run Format

Source file src/syscall/zsyscall_linux_amd64.go

     1	// mksyscall.pl syscall_linux.go syscall_linux_amd64.go
     2	// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
     3	
     4	package syscall
     5	
     6	import "unsafe"
     7	
     8	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     9	
    10	func open(path string, mode int, perm uint32) (fd int, err error) {
    11		var _p0 *byte
    12		_p0, err = BytePtrFromString(path)
    13		if err != nil {
    14			return
    15		}
    16		r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
    17		use(unsafe.Pointer(_p0))
    18		fd = int(r0)
    19		if e1 != 0 {
    20			err = e1
    21		}
    22		return
    23	}
    24	
    25	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    26	
    27	func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
    28		var _p0 *byte
    29		_p0, err = BytePtrFromString(path)
    30		if err != nil {
    31			return
    32		}
    33		r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
    34		use(unsafe.Pointer(_p0))
    35		fd = int(r0)
    36		if e1 != 0 {
    37			err = e1
    38		}
    39		return
    40	}
    41	
    42	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    43	
    44	func pipe(p *[2]_C_int) (err error) {
    45		_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
    46		if e1 != 0 {
    47			err = e1
    48		}
    49		return
    50	}
    51	
    52	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    53	
    54	func pipe2(p *[2]_C_int, flags int) (err error) {
    55		_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
    56		if e1 != 0 {
    57			err = e1
    58		}
    59		return
    60	}
    61	
    62	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    63	
    64	func utimes(path string, times *[2]Timeval) (err error) {
    65		var _p0 *byte
    66		_p0, err = BytePtrFromString(path)
    67		if err != nil {
    68			return
    69		}
    70		_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
    71		use(unsafe.Pointer(_p0))
    72		if e1 != 0 {
    73			err = e1
    74		}
    75		return
    76	}
    77	
    78	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    79	
    80	func utimensat(dirfd int, path string, times *[2]Timespec) (err error) {
    81		var _p0 *byte
    82		_p0, err = BytePtrFromString(path)
    83		if err != nil {
    84			return
    85		}
    86		_, _, e1 := Syscall(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
    87		use(unsafe.Pointer(_p0))
    88		if e1 != 0 {
    89			err = e1
    90		}
    91		return
    92	}
    93	
    94	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    95	
    96	func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
    97		_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
    98		if e1 != 0 {
    99			err = e1
   100		}
   101		return
   102	}
   103	
   104	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   105	
   106	func Getcwd(buf []byte) (n int, err error) {
   107		var _p0 unsafe.Pointer
   108		if len(buf) > 0 {
   109			_p0 = unsafe.Pointer(&buf[0])
   110		} else {
   111			_p0 = unsafe.Pointer(&_zero)
   112		}
   113		r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
   114		n = int(r0)
   115		if e1 != 0 {
   116			err = e1
   117		}
   118		return
   119	}
   120	
   121	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   122	
   123	func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
   124		r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
   125		wpid = int(r0)
   126		if e1 != 0 {
   127			err = e1
   128		}
   129		return
   130	}
   131	
   132	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   133	
   134	func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
   135		_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
   136		if e1 != 0 {
   137			err = e1
   138		}
   139		return
   140	}
   141	
   142	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   143	
   144	func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
   145		var _p0 *byte
   146		_p0, err = BytePtrFromString(arg)
   147		if err != nil {
   148			return
   149		}
   150		_, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
   151		use(unsafe.Pointer(_p0))
   152		if e1 != 0 {
   153			err = e1
   154		}
   155		return
   156	}
   157	
   158	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   159	
   160	func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
   161		var _p0 *byte
   162		_p0, err = BytePtrFromString(source)
   163		if err != nil {
   164			return
   165		}
   166		var _p1 *byte
   167		_p1, err = BytePtrFromString(target)
   168		if err != nil {
   169			return
   170		}
   171		var _p2 *byte
   172		_p2, err = BytePtrFromString(fstype)
   173		if err != nil {
   174			return
   175		}
   176		_, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
   177		use(unsafe.Pointer(_p0))
   178		use(unsafe.Pointer(_p1))
   179		use(unsafe.Pointer(_p2))
   180		if e1 != 0 {
   181			err = e1
   182		}
   183		return
   184	}
   185	
   186	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   187	
   188	func Access(path string, mode uint32) (err error) {
   189		var _p0 *byte
   190		_p0, err = BytePtrFromString(path)
   191		if err != nil {
   192			return
   193		}
   194		_, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   195		use(unsafe.Pointer(_p0))
   196		if e1 != 0 {
   197			err = e1
   198		}
   199		return
   200	}
   201	
   202	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   203	
   204	func Acct(path string) (err error) {
   205		var _p0 *byte
   206		_p0, err = BytePtrFromString(path)
   207		if err != nil {
   208			return
   209		}
   210		_, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   211		use(unsafe.Pointer(_p0))
   212		if e1 != 0 {
   213			err = e1
   214		}
   215		return
   216	}
   217	
   218	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   219	
   220	func Adjtimex(buf *Timex) (state int, err error) {
   221		r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
   222		state = int(r0)
   223		if e1 != 0 {
   224			err = e1
   225		}
   226		return
   227	}
   228	
   229	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   230	
   231	func Chdir(path string) (err error) {
   232		var _p0 *byte
   233		_p0, err = BytePtrFromString(path)
   234		if err != nil {
   235			return
   236		}
   237		_, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
   238		use(unsafe.Pointer(_p0))
   239		if e1 != 0 {
   240			err = e1
   241		}
   242		return
   243	}
   244	
   245	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   246	
   247	func Chmod(path string, mode uint32) (err error) {
   248		var _p0 *byte
   249		_p0, err = BytePtrFromString(path)
   250		if err != nil {
   251			return
   252		}
   253		_, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   254		use(unsafe.Pointer(_p0))
   255		if e1 != 0 {
   256			err = e1
   257		}
   258		return
   259	}
   260	
   261	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   262	
   263	func Chroot(path string) (err error) {
   264		var _p0 *byte
   265		_p0, err = BytePtrFromString(path)
   266		if err != nil {
   267			return
   268		}
   269		_, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
   270		use(unsafe.Pointer(_p0))
   271		if e1 != 0 {
   272			err = e1
   273		}
   274		return
   275	}
   276	
   277	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   278	
   279	func Close(fd int) (err error) {
   280		_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
   281		if e1 != 0 {
   282			err = e1
   283		}
   284		return
   285	}
   286	
   287	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   288	
   289	func Creat(path string, mode uint32) (fd int, err error) {
   290		var _p0 *byte
   291		_p0, err = BytePtrFromString(path)
   292		if err != nil {
   293			return
   294		}
   295		r0, _, e1 := Syscall(SYS_CREAT, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   296		use(unsafe.Pointer(_p0))
   297		fd = int(r0)
   298		if e1 != 0 {
   299			err = e1
   300		}
   301		return
   302	}
   303	
   304	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   305	
   306	func Dup(oldfd int) (fd int, err error) {
   307		r0, _, e1 := RawSyscall(SYS_DUP, uintptr(oldfd), 0, 0)
   308		fd = int(r0)
   309		if e1 != 0 {
   310			err = e1
   311		}
   312		return
   313	}
   314	
   315	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   316	
   317	func Dup2(oldfd int, newfd int) (err error) {
   318		_, _, e1 := RawSyscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
   319		if e1 != 0 {
   320			err = e1
   321		}
   322		return
   323	}
   324	
   325	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   326	
   327	func Dup3(oldfd int, newfd int, flags int) (err error) {
   328		_, _, e1 := RawSyscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
   329		if e1 != 0 {
   330			err = e1
   331		}
   332		return
   333	}
   334	
   335	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   336	
   337	func EpollCreate(size int) (fd int, err error) {
   338		r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
   339		fd = int(r0)
   340		if e1 != 0 {
   341			err = e1
   342		}
   343		return
   344	}
   345	
   346	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   347	
   348	func EpollCreate1(flag int) (fd int, err error) {
   349		r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
   350		fd = int(r0)
   351		if e1 != 0 {
   352			err = e1
   353		}
   354		return
   355	}
   356	
   357	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   358	
   359	func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
   360		_, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
   361		if e1 != 0 {
   362			err = e1
   363		}
   364		return
   365	}
   366	
   367	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   368	
   369	func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
   370		var _p0 unsafe.Pointer
   371		if len(events) > 0 {
   372			_p0 = unsafe.Pointer(&events[0])
   373		} else {
   374			_p0 = unsafe.Pointer(&_zero)
   375		}
   376		r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
   377		n = int(r0)
   378		if e1 != 0 {
   379			err = e1
   380		}
   381		return
   382	}
   383	
   384	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   385	
   386	func Exit(code int) {
   387		Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0)
   388		return
   389	}
   390	
   391	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   392	
   393	func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
   394		var _p0 *byte
   395		_p0, err = BytePtrFromString(path)
   396		if err != nil {
   397			return
   398		}
   399		_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   400		use(unsafe.Pointer(_p0))
   401		if e1 != 0 {
   402			err = e1
   403		}
   404		return
   405	}
   406	
   407	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   408	
   409	func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
   410		_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
   411		if e1 != 0 {
   412			err = e1
   413		}
   414		return
   415	}
   416	
   417	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   418	
   419	func Fchdir(fd int) (err error) {
   420		_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
   421		if e1 != 0 {
   422			err = e1
   423		}
   424		return
   425	}
   426	
   427	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   428	
   429	func Fchmod(fd int, mode uint32) (err error) {
   430		_, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
   431		if e1 != 0 {
   432			err = e1
   433		}
   434		return
   435	}
   436	
   437	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   438	
   439	func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
   440		var _p0 *byte
   441		_p0, err = BytePtrFromString(path)
   442		if err != nil {
   443			return
   444		}
   445		_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
   446		use(unsafe.Pointer(_p0))
   447		if e1 != 0 {
   448			err = e1
   449		}
   450		return
   451	}
   452	
   453	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   454	
   455	func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
   456		var _p0 *byte
   457		_p0, err = BytePtrFromString(path)
   458		if err != nil {
   459			return
   460		}
   461		_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
   462		use(unsafe.Pointer(_p0))
   463		if e1 != 0 {
   464			err = e1
   465		}
   466		return
   467	}
   468	
   469	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   470	
   471	func fcntl(fd int, cmd int, arg int) (val int, err error) {
   472		r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
   473		val = int(r0)
   474		if e1 != 0 {
   475			err = e1
   476		}
   477		return
   478	}
   479	
   480	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   481	
   482	func Fdatasync(fd int) (err error) {
   483		_, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
   484		if e1 != 0 {
   485			err = e1
   486		}
   487		return
   488	}
   489	
   490	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   491	
   492	func Flock(fd int, how int) (err error) {
   493		_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
   494		if e1 != 0 {
   495			err = e1
   496		}
   497		return
   498	}
   499	
   500	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   501	
   502	func Fsync(fd int) (err error) {
   503		_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
   504		if e1 != 0 {
   505			err = e1
   506		}
   507		return
   508	}
   509	
   510	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   511	
   512	func Getdents(fd int, buf []byte) (n int, err error) {
   513		var _p0 unsafe.Pointer
   514		if len(buf) > 0 {
   515			_p0 = unsafe.Pointer(&buf[0])
   516		} else {
   517			_p0 = unsafe.Pointer(&_zero)
   518		}
   519		r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
   520		n = int(r0)
   521		if e1 != 0 {
   522			err = e1
   523		}
   524		return
   525	}
   526	
   527	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   528	
   529	func Getpgid(pid int) (pgid int, err error) {
   530		r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
   531		pgid = int(r0)
   532		if e1 != 0 {
   533			err = e1
   534		}
   535		return
   536	}
   537	
   538	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   539	
   540	func Getpgrp() (pid int) {
   541		r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
   542		pid = int(r0)
   543		return
   544	}
   545	
   546	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   547	
   548	func Getpid() (pid int) {
   549		r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
   550		pid = int(r0)
   551		return
   552	}
   553	
   554	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   555	
   556	func Getppid() (ppid int) {
   557		r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
   558		ppid = int(r0)
   559		return
   560	}
   561	
   562	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   563	
   564	func Getpriority(which int, who int) (prio int, err error) {
   565		r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
   566		prio = int(r0)
   567		if e1 != 0 {
   568			err = e1
   569		}
   570		return
   571	}
   572	
   573	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   574	
   575	func Getrusage(who int, rusage *Rusage) (err error) {
   576		_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
   577		if e1 != 0 {
   578			err = e1
   579		}
   580		return
   581	}
   582	
   583	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   584	
   585	func Gettid() (tid int) {
   586		r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0)
   587		tid = int(r0)
   588		return
   589	}
   590	
   591	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   592	
   593	func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
   594		var _p0 *byte
   595		_p0, err = BytePtrFromString(path)
   596		if err != nil {
   597			return
   598		}
   599		var _p1 *byte
   600		_p1, err = BytePtrFromString(attr)
   601		if err != nil {
   602			return
   603		}
   604		var _p2 unsafe.Pointer
   605		if len(dest) > 0 {
   606			_p2 = unsafe.Pointer(&dest[0])
   607		} else {
   608			_p2 = unsafe.Pointer(&_zero)
   609		}
   610		r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
   611		use(unsafe.Pointer(_p0))
   612		use(unsafe.Pointer(_p1))
   613		sz = int(r0)
   614		if e1 != 0 {
   615			err = e1
   616		}
   617		return
   618	}
   619	
   620	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   621	
   622	func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
   623		var _p0 *byte
   624		_p0, err = BytePtrFromString(pathname)
   625		if err != nil {
   626			return
   627		}
   628		r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
   629		use(unsafe.Pointer(_p0))
   630		watchdesc = int(r0)
   631		if e1 != 0 {
   632			err = e1
   633		}
   634		return
   635	}
   636	
   637	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   638	
   639	func InotifyInit() (fd int, err error) {
   640		r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
   641		fd = int(r0)
   642		if e1 != 0 {
   643			err = e1
   644		}
   645		return
   646	}
   647	
   648	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   649	
   650	func InotifyInit1(flags int) (fd int, err error) {
   651		r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
   652		fd = int(r0)
   653		if e1 != 0 {
   654			err = e1
   655		}
   656		return
   657	}
   658	
   659	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   660	
   661	func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
   662		r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
   663		success = int(r0)
   664		if e1 != 0 {
   665			err = e1
   666		}
   667		return
   668	}
   669	
   670	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   671	
   672	func Kill(pid int, sig Signal) (err error) {
   673		_, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
   674		if e1 != 0 {
   675			err = e1
   676		}
   677		return
   678	}
   679	
   680	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   681	
   682	func Klogctl(typ int, buf []byte) (n int, err error) {
   683		var _p0 unsafe.Pointer
   684		if len(buf) > 0 {
   685			_p0 = unsafe.Pointer(&buf[0])
   686		} else {
   687			_p0 = unsafe.Pointer(&_zero)
   688		}
   689		r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
   690		n = int(r0)
   691		if e1 != 0 {
   692			err = e1
   693		}
   694		return
   695	}
   696	
   697	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   698	
   699	func Link(oldpath string, newpath string) (err error) {
   700		var _p0 *byte
   701		_p0, err = BytePtrFromString(oldpath)
   702		if err != nil {
   703			return
   704		}
   705		var _p1 *byte
   706		_p1, err = BytePtrFromString(newpath)
   707		if err != nil {
   708			return
   709		}
   710		_, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   711		use(unsafe.Pointer(_p0))
   712		use(unsafe.Pointer(_p1))
   713		if e1 != 0 {
   714			err = e1
   715		}
   716		return
   717	}
   718	
   719	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   720	
   721	func Listxattr(path string, dest []byte) (sz int, err error) {
   722		var _p0 *byte
   723		_p0, err = BytePtrFromString(path)
   724		if err != nil {
   725			return
   726		}
   727		var _p1 unsafe.Pointer
   728		if len(dest) > 0 {
   729			_p1 = unsafe.Pointer(&dest[0])
   730		} else {
   731			_p1 = unsafe.Pointer(&_zero)
   732		}
   733		r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
   734		use(unsafe.Pointer(_p0))
   735		sz = int(r0)
   736		if e1 != 0 {
   737			err = e1
   738		}
   739		return
   740	}
   741	
   742	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   743	
   744	func Mkdir(path string, mode uint32) (err error) {
   745		var _p0 *byte
   746		_p0, err = BytePtrFromString(path)
   747		if err != nil {
   748			return
   749		}
   750		_, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
   751		use(unsafe.Pointer(_p0))
   752		if e1 != 0 {
   753			err = e1
   754		}
   755		return
   756	}
   757	
   758	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   759	
   760	func Mkdirat(dirfd int, path string, mode uint32) (err error) {
   761		var _p0 *byte
   762		_p0, err = BytePtrFromString(path)
   763		if err != nil {
   764			return
   765		}
   766		_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
   767		use(unsafe.Pointer(_p0))
   768		if e1 != 0 {
   769			err = e1
   770		}
   771		return
   772	}
   773	
   774	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   775	
   776	func Mknod(path string, mode uint32, dev int) (err error) {
   777		var _p0 *byte
   778		_p0, err = BytePtrFromString(path)
   779		if err != nil {
   780			return
   781		}
   782		_, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
   783		use(unsafe.Pointer(_p0))
   784		if e1 != 0 {
   785			err = e1
   786		}
   787		return
   788	}
   789	
   790	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   791	
   792	func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
   793		var _p0 *byte
   794		_p0, err = BytePtrFromString(path)
   795		if err != nil {
   796			return
   797		}
   798		_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
   799		use(unsafe.Pointer(_p0))
   800		if e1 != 0 {
   801			err = e1
   802		}
   803		return
   804	}
   805	
   806	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   807	
   808	func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
   809		_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
   810		if e1 != 0 {
   811			err = e1
   812		}
   813		return
   814	}
   815	
   816	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   817	
   818	func Pause() (err error) {
   819		_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
   820		if e1 != 0 {
   821			err = e1
   822		}
   823		return
   824	}
   825	
   826	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   827	
   828	func PivotRoot(newroot string, putold string) (err error) {
   829		var _p0 *byte
   830		_p0, err = BytePtrFromString(newroot)
   831		if err != nil {
   832			return
   833		}
   834		var _p1 *byte
   835		_p1, err = BytePtrFromString(putold)
   836		if err != nil {
   837			return
   838		}
   839		_, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   840		use(unsafe.Pointer(_p0))
   841		use(unsafe.Pointer(_p1))
   842		if e1 != 0 {
   843			err = e1
   844		}
   845		return
   846	}
   847	
   848	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   849	
   850	func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
   851		_, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
   852		if e1 != 0 {
   853			err = e1
   854		}
   855		return
   856	}
   857	
   858	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   859	
   860	func read(fd int, p []byte) (n int, err error) {
   861		var _p0 unsafe.Pointer
   862		if len(p) > 0 {
   863			_p0 = unsafe.Pointer(&p[0])
   864		} else {
   865			_p0 = unsafe.Pointer(&_zero)
   866		}
   867		r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
   868		n = int(r0)
   869		if e1 != 0 {
   870			err = e1
   871		}
   872		return
   873	}
   874	
   875	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   876	
   877	func Readlink(path string, buf []byte) (n int, err error) {
   878		var _p0 *byte
   879		_p0, err = BytePtrFromString(path)
   880		if err != nil {
   881			return
   882		}
   883		var _p1 unsafe.Pointer
   884		if len(buf) > 0 {
   885			_p1 = unsafe.Pointer(&buf[0])
   886		} else {
   887			_p1 = unsafe.Pointer(&_zero)
   888		}
   889		r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
   890		use(unsafe.Pointer(_p0))
   891		n = int(r0)
   892		if e1 != 0 {
   893			err = e1
   894		}
   895		return
   896	}
   897	
   898	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   899	
   900	func Removexattr(path string, attr string) (err error) {
   901		var _p0 *byte
   902		_p0, err = BytePtrFromString(path)
   903		if err != nil {
   904			return
   905		}
   906		var _p1 *byte
   907		_p1, err = BytePtrFromString(attr)
   908		if err != nil {
   909			return
   910		}
   911		_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   912		use(unsafe.Pointer(_p0))
   913		use(unsafe.Pointer(_p1))
   914		if e1 != 0 {
   915			err = e1
   916		}
   917		return
   918	}
   919	
   920	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   921	
   922	func Rename(oldpath string, newpath string) (err error) {
   923		var _p0 *byte
   924		_p0, err = BytePtrFromString(oldpath)
   925		if err != nil {
   926			return
   927		}
   928		var _p1 *byte
   929		_p1, err = BytePtrFromString(newpath)
   930		if err != nil {
   931			return
   932		}
   933		_, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
   934		use(unsafe.Pointer(_p0))
   935		use(unsafe.Pointer(_p1))
   936		if e1 != 0 {
   937			err = e1
   938		}
   939		return
   940	}
   941	
   942	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   943	
   944	func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
   945		var _p0 *byte
   946		_p0, err = BytePtrFromString(oldpath)
   947		if err != nil {
   948			return
   949		}
   950		var _p1 *byte
   951		_p1, err = BytePtrFromString(newpath)
   952		if err != nil {
   953			return
   954		}
   955		_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
   956		use(unsafe.Pointer(_p0))
   957		use(unsafe.Pointer(_p1))
   958		if e1 != 0 {
   959			err = e1
   960		}
   961		return
   962	}
   963	
   964	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   965	
   966	func Rmdir(path string) (err error) {
   967		var _p0 *byte
   968		_p0, err = BytePtrFromString(path)
   969		if err != nil {
   970			return
   971		}
   972		_, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
   973		use(unsafe.Pointer(_p0))
   974		if e1 != 0 {
   975			err = e1
   976		}
   977		return
   978	}
   979	
   980	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   981	
   982	func Setdomainname(p []byte) (err error) {
   983		var _p0 unsafe.Pointer
   984		if len(p) > 0 {
   985			_p0 = unsafe.Pointer(&p[0])
   986		} else {
   987			_p0 = unsafe.Pointer(&_zero)
   988		}
   989		_, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
   990		if e1 != 0 {
   991			err = e1
   992		}
   993		return
   994	}
   995	
   996	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   997	
   998	func Sethostname(p []byte) (err error) {
   999		var _p0 unsafe.Pointer
  1000		if len(p) > 0 {
  1001			_p0 = unsafe.Pointer(&p[0])
  1002		} else {
  1003			_p0 = unsafe.Pointer(&_zero)
  1004		}
  1005		_, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
  1006		if e1 != 0 {
  1007			err = e1
  1008		}
  1009		return
  1010	}
  1011	
  1012	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1013	
  1014	func Setpgid(pid int, pgid int) (err error) {
  1015		_, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
  1016		if e1 != 0 {
  1017			err = e1
  1018		}
  1019		return
  1020	}
  1021	
  1022	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1023	
  1024	func Setsid() (pid int, err error) {
  1025		r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
  1026		pid = int(r0)
  1027		if e1 != 0 {
  1028			err = e1
  1029		}
  1030		return
  1031	}
  1032	
  1033	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1034	
  1035	func Settimeofday(tv *Timeval) (err error) {
  1036		_, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  1037		if e1 != 0 {
  1038			err = e1
  1039		}
  1040		return
  1041	}
  1042	
  1043	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1044	
  1045	func Setpriority(which int, who int, prio int) (err error) {
  1046		_, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
  1047		if e1 != 0 {
  1048			err = e1
  1049		}
  1050		return
  1051	}
  1052	
  1053	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1054	
  1055	func Setxattr(path string, attr string, data []byte, flags int) (err error) {
  1056		var _p0 *byte
  1057		_p0, err = BytePtrFromString(path)
  1058		if err != nil {
  1059			return
  1060		}
  1061		var _p1 *byte
  1062		_p1, err = BytePtrFromString(attr)
  1063		if err != nil {
  1064			return
  1065		}
  1066		var _p2 unsafe.Pointer
  1067		if len(data) > 0 {
  1068			_p2 = unsafe.Pointer(&data[0])
  1069		} else {
  1070			_p2 = unsafe.Pointer(&_zero)
  1071		}
  1072		_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
  1073		use(unsafe.Pointer(_p0))
  1074		use(unsafe.Pointer(_p1))
  1075		if e1 != 0 {
  1076			err = e1
  1077		}
  1078		return
  1079	}
  1080	
  1081	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1082	
  1083	func Symlink(oldpath string, newpath string) (err error) {
  1084		var _p0 *byte
  1085		_p0, err = BytePtrFromString(oldpath)
  1086		if err != nil {
  1087			return
  1088		}
  1089		var _p1 *byte
  1090		_p1, err = BytePtrFromString(newpath)
  1091		if err != nil {
  1092			return
  1093		}
  1094		_, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  1095		use(unsafe.Pointer(_p0))
  1096		use(unsafe.Pointer(_p1))
  1097		if e1 != 0 {
  1098			err = e1
  1099		}
  1100		return
  1101	}
  1102	
  1103	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1104	
  1105	func Sync() {
  1106		Syscall(SYS_SYNC, 0, 0, 0)
  1107		return
  1108	}
  1109	
  1110	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1111	
  1112	func Sysinfo(info *Sysinfo_t) (err error) {
  1113		_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
  1114		if e1 != 0 {
  1115			err = e1
  1116		}
  1117		return
  1118	}
  1119	
  1120	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1121	
  1122	func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
  1123		r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
  1124		n = int64(r0)
  1125		if e1 != 0 {
  1126			err = e1
  1127		}
  1128		return
  1129	}
  1130	
  1131	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1132	
  1133	func Tgkill(tgid int, tid int, sig Signal) (err error) {
  1134		_, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
  1135		if e1 != 0 {
  1136			err = e1
  1137		}
  1138		return
  1139	}
  1140	
  1141	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1142	
  1143	func Times(tms *Tms) (ticks uintptr, err error) {
  1144		r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
  1145		ticks = uintptr(r0)
  1146		if e1 != 0 {
  1147			err = e1
  1148		}
  1149		return
  1150	}
  1151	
  1152	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1153	
  1154	func Umask(mask int) (oldmask int) {
  1155		r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0)
  1156		oldmask = int(r0)
  1157		return
  1158	}
  1159	
  1160	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1161	
  1162	func Uname(buf *Utsname) (err error) {
  1163		_, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
  1164		if e1 != 0 {
  1165			err = e1
  1166		}
  1167		return
  1168	}
  1169	
  1170	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1171	
  1172	func Unlink(path string) (err error) {
  1173		var _p0 *byte
  1174		_p0, err = BytePtrFromString(path)
  1175		if err != nil {
  1176			return
  1177		}
  1178		_, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0)
  1179		use(unsafe.Pointer(_p0))
  1180		if e1 != 0 {
  1181			err = e1
  1182		}
  1183		return
  1184	}
  1185	
  1186	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1187	
  1188	func Unlinkat(dirfd int, path string) (err error) {
  1189		var _p0 *byte
  1190		_p0, err = BytePtrFromString(path)
  1191		if err != nil {
  1192			return
  1193		}
  1194		_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), 0)
  1195		use(unsafe.Pointer(_p0))
  1196		if e1 != 0 {
  1197			err = e1
  1198		}
  1199		return
  1200	}
  1201	
  1202	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1203	
  1204	func Unmount(target string, flags int) (err error) {
  1205		var _p0 *byte
  1206		_p0, err = BytePtrFromString(target)
  1207		if err != nil {
  1208			return
  1209		}
  1210		_, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  1211		use(unsafe.Pointer(_p0))
  1212		if e1 != 0 {
  1213			err = e1
  1214		}
  1215		return
  1216	}
  1217	
  1218	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1219	
  1220	func Unshare(flags int) (err error) {
  1221		_, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
  1222		if e1 != 0 {
  1223			err = e1
  1224		}
  1225		return
  1226	}
  1227	
  1228	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1229	
  1230	func Ustat(dev int, ubuf *Ustat_t) (err error) {
  1231		_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
  1232		if e1 != 0 {
  1233			err = e1
  1234		}
  1235		return
  1236	}
  1237	
  1238	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1239	
  1240	func Utime(path string, buf *Utimbuf) (err error) {
  1241		var _p0 *byte
  1242		_p0, err = BytePtrFromString(path)
  1243		if err != nil {
  1244			return
  1245		}
  1246		_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  1247		use(unsafe.Pointer(_p0))
  1248		if e1 != 0 {
  1249			err = e1
  1250		}
  1251		return
  1252	}
  1253	
  1254	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1255	
  1256	func write(fd int, p []byte) (n int, err error) {
  1257		var _p0 unsafe.Pointer
  1258		if len(p) > 0 {
  1259			_p0 = unsafe.Pointer(&p[0])
  1260		} else {
  1261			_p0 = unsafe.Pointer(&_zero)
  1262		}
  1263		r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  1264		n = int(r0)
  1265		if e1 != 0 {
  1266			err = e1
  1267		}
  1268		return
  1269	}
  1270	
  1271	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1272	
  1273	func exitThread(code int) (err error) {
  1274		_, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
  1275		if e1 != 0 {
  1276			err = e1
  1277		}
  1278		return
  1279	}
  1280	
  1281	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1282	
  1283	func readlen(fd int, p *byte, np int) (n int, err error) {
  1284		r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
  1285		n = int(r0)
  1286		if e1 != 0 {
  1287			err = e1
  1288		}
  1289		return
  1290	}
  1291	
  1292	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1293	
  1294	func writelen(fd int, p *byte, np int) (n int, err error) {
  1295		r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
  1296		n = int(r0)
  1297		if e1 != 0 {
  1298			err = e1
  1299		}
  1300		return
  1301	}
  1302	
  1303	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1304	
  1305	func munmap(addr uintptr, length uintptr) (err error) {
  1306		_, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
  1307		if e1 != 0 {
  1308			err = e1
  1309		}
  1310		return
  1311	}
  1312	
  1313	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1314	
  1315	func Madvise(b []byte, advice int) (err error) {
  1316		var _p0 unsafe.Pointer
  1317		if len(b) > 0 {
  1318			_p0 = unsafe.Pointer(&b[0])
  1319		} else {
  1320			_p0 = unsafe.Pointer(&_zero)
  1321		}
  1322		_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
  1323		if e1 != 0 {
  1324			err = e1
  1325		}
  1326		return
  1327	}
  1328	
  1329	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1330	
  1331	func Mprotect(b []byte, prot int) (err error) {
  1332		var _p0 unsafe.Pointer
  1333		if len(b) > 0 {
  1334			_p0 = unsafe.Pointer(&b[0])
  1335		} else {
  1336			_p0 = unsafe.Pointer(&_zero)
  1337		}
  1338		_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
  1339		if e1 != 0 {
  1340			err = e1
  1341		}
  1342		return
  1343	}
  1344	
  1345	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1346	
  1347	func Mlock(b []byte) (err error) {
  1348		var _p0 unsafe.Pointer
  1349		if len(b) > 0 {
  1350			_p0 = unsafe.Pointer(&b[0])
  1351		} else {
  1352			_p0 = unsafe.Pointer(&_zero)
  1353		}
  1354		_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1355		if e1 != 0 {
  1356			err = e1
  1357		}
  1358		return
  1359	}
  1360	
  1361	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1362	
  1363	func Munlock(b []byte) (err error) {
  1364		var _p0 unsafe.Pointer
  1365		if len(b) > 0 {
  1366			_p0 = unsafe.Pointer(&b[0])
  1367		} else {
  1368			_p0 = unsafe.Pointer(&_zero)
  1369		}
  1370		_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
  1371		if e1 != 0 {
  1372			err = e1
  1373		}
  1374		return
  1375	}
  1376	
  1377	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1378	
  1379	func Mlockall(flags int) (err error) {
  1380		_, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
  1381		if e1 != 0 {
  1382			err = e1
  1383		}
  1384		return
  1385	}
  1386	
  1387	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1388	
  1389	func Munlockall() (err error) {
  1390		_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
  1391		if e1 != 0 {
  1392			err = e1
  1393		}
  1394		return
  1395	}
  1396	
  1397	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1398	
  1399	func Chown(path string, uid int, gid int) (err error) {
  1400		var _p0 *byte
  1401		_p0, err = BytePtrFromString(path)
  1402		if err != nil {
  1403			return
  1404		}
  1405		_, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  1406		use(unsafe.Pointer(_p0))
  1407		if e1 != 0 {
  1408			err = e1
  1409		}
  1410		return
  1411	}
  1412	
  1413	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1414	
  1415	func Fchown(fd int, uid int, gid int) (err error) {
  1416		_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
  1417		if e1 != 0 {
  1418			err = e1
  1419		}
  1420		return
  1421	}
  1422	
  1423	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1424	
  1425	func Fstat(fd int, stat *Stat_t) (err error) {
  1426		_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  1427		if e1 != 0 {
  1428			err = e1
  1429		}
  1430		return
  1431	}
  1432	
  1433	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1434	
  1435	func Fstatfs(fd int, buf *Statfs_t) (err error) {
  1436		_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
  1437		if e1 != 0 {
  1438			err = e1
  1439		}
  1440		return
  1441	}
  1442	
  1443	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1444	
  1445	func Ftruncate(fd int, length int64) (err error) {
  1446		_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
  1447		if e1 != 0 {
  1448			err = e1
  1449		}
  1450		return
  1451	}
  1452	
  1453	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1454	
  1455	func Getegid() (egid int) {
  1456		r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
  1457		egid = int(r0)
  1458		return
  1459	}
  1460	
  1461	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1462	
  1463	func Geteuid() (euid int) {
  1464		r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
  1465		euid = int(r0)
  1466		return
  1467	}
  1468	
  1469	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1470	
  1471	func Getgid() (gid int) {
  1472		r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
  1473		gid = int(r0)
  1474		return
  1475	}
  1476	
  1477	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1478	
  1479	func Getrlimit(resource int, rlim *Rlimit) (err error) {
  1480		_, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1481		if e1 != 0 {
  1482			err = e1
  1483		}
  1484		return
  1485	}
  1486	
  1487	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1488	
  1489	func Getuid() (uid int) {
  1490		r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
  1491		uid = int(r0)
  1492		return
  1493	}
  1494	
  1495	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1496	
  1497	func Ioperm(from int, num int, on int) (err error) {
  1498		_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
  1499		if e1 != 0 {
  1500			err = e1
  1501		}
  1502		return
  1503	}
  1504	
  1505	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1506	
  1507	func Iopl(level int) (err error) {
  1508		_, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
  1509		if e1 != 0 {
  1510			err = e1
  1511		}
  1512		return
  1513	}
  1514	
  1515	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1516	
  1517	func Lchown(path string, uid int, gid int) (err error) {
  1518		var _p0 *byte
  1519		_p0, err = BytePtrFromString(path)
  1520		if err != nil {
  1521			return
  1522		}
  1523		_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  1524		use(unsafe.Pointer(_p0))
  1525		if e1 != 0 {
  1526			err = e1
  1527		}
  1528		return
  1529	}
  1530	
  1531	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1532	
  1533	func Listen(s int, n int) (err error) {
  1534		_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
  1535		if e1 != 0 {
  1536			err = e1
  1537		}
  1538		return
  1539	}
  1540	
  1541	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1542	
  1543	func Lstat(path string, stat *Stat_t) (err error) {
  1544		var _p0 *byte
  1545		_p0, err = BytePtrFromString(path)
  1546		if err != nil {
  1547			return
  1548		}
  1549		_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1550		use(unsafe.Pointer(_p0))
  1551		if e1 != 0 {
  1552			err = e1
  1553		}
  1554		return
  1555	}
  1556	
  1557	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1558	
  1559	func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1560		var _p0 unsafe.Pointer
  1561		if len(p) > 0 {
  1562			_p0 = unsafe.Pointer(&p[0])
  1563		} else {
  1564			_p0 = unsafe.Pointer(&_zero)
  1565		}
  1566		r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1567		n = int(r0)
  1568		if e1 != 0 {
  1569			err = e1
  1570		}
  1571		return
  1572	}
  1573	
  1574	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1575	
  1576	func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1577		var _p0 unsafe.Pointer
  1578		if len(p) > 0 {
  1579			_p0 = unsafe.Pointer(&p[0])
  1580		} else {
  1581			_p0 = unsafe.Pointer(&_zero)
  1582		}
  1583		r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  1584		n = int(r0)
  1585		if e1 != 0 {
  1586			err = e1
  1587		}
  1588		return
  1589	}
  1590	
  1591	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1592	
  1593	func Seek(fd int, offset int64, whence int) (off int64, err error) {
  1594		r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
  1595		off = int64(r0)
  1596		if e1 != 0 {
  1597			err = e1
  1598		}
  1599		return
  1600	}
  1601	
  1602	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1603	
  1604	func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  1605		r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1606		n = int(r0)
  1607		if e1 != 0 {
  1608			err = e1
  1609		}
  1610		return
  1611	}
  1612	
  1613	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1614	
  1615	func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  1616		r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  1617		written = int(r0)
  1618		if e1 != 0 {
  1619			err = e1
  1620		}
  1621		return
  1622	}
  1623	
  1624	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1625	
  1626	func Setfsgid(gid int) (err error) {
  1627		_, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
  1628		if e1 != 0 {
  1629			err = e1
  1630		}
  1631		return
  1632	}
  1633	
  1634	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1635	
  1636	func Setfsuid(uid int) (err error) {
  1637		_, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
  1638		if e1 != 0 {
  1639			err = e1
  1640		}
  1641		return
  1642	}
  1643	
  1644	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1645	
  1646	func Setregid(rgid int, egid int) (err error) {
  1647		_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
  1648		if e1 != 0 {
  1649			err = e1
  1650		}
  1651		return
  1652	}
  1653	
  1654	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1655	
  1656	func Setresgid(rgid int, egid int, sgid int) (err error) {
  1657		_, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
  1658		if e1 != 0 {
  1659			err = e1
  1660		}
  1661		return
  1662	}
  1663	
  1664	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1665	
  1666	func Setresuid(ruid int, euid int, suid int) (err error) {
  1667		_, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
  1668		if e1 != 0 {
  1669			err = e1
  1670		}
  1671		return
  1672	}
  1673	
  1674	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1675	
  1676	func Setrlimit(resource int, rlim *Rlimit) (err error) {
  1677		_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  1678		if e1 != 0 {
  1679			err = e1
  1680		}
  1681		return
  1682	}
  1683	
  1684	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1685	
  1686	func Setreuid(ruid int, euid int) (err error) {
  1687		_, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
  1688		if e1 != 0 {
  1689			err = e1
  1690		}
  1691		return
  1692	}
  1693	
  1694	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1695	
  1696	func Shutdown(fd int, how int) (err error) {
  1697		_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  1698		if e1 != 0 {
  1699			err = e1
  1700		}
  1701		return
  1702	}
  1703	
  1704	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1705	
  1706	func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
  1707		r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
  1708		n = int64(r0)
  1709		if e1 != 0 {
  1710			err = e1
  1711		}
  1712		return
  1713	}
  1714	
  1715	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1716	
  1717	func Stat(path string, stat *Stat_t) (err error) {
  1718		var _p0 *byte
  1719		_p0, err = BytePtrFromString(path)
  1720		if err != nil {
  1721			return
  1722		}
  1723		_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  1724		use(unsafe.Pointer(_p0))
  1725		if e1 != 0 {
  1726			err = e1
  1727		}
  1728		return
  1729	}
  1730	
  1731	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1732	
  1733	func Statfs(path string, buf *Statfs_t) (err error) {
  1734		var _p0 *byte
  1735		_p0, err = BytePtrFromString(path)
  1736		if err != nil {
  1737			return
  1738		}
  1739		_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  1740		use(unsafe.Pointer(_p0))
  1741		if e1 != 0 {
  1742			err = e1
  1743		}
  1744		return
  1745	}
  1746	
  1747	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1748	
  1749	func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
  1750		_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
  1751		if e1 != 0 {
  1752			err = e1
  1753		}
  1754		return
  1755	}
  1756	
  1757	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1758	
  1759	func Truncate(path string, length int64) (err error) {
  1760		var _p0 *byte
  1761		_p0, err = BytePtrFromString(path)
  1762		if err != nil {
  1763			return
  1764		}
  1765		_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
  1766		use(unsafe.Pointer(_p0))
  1767		if e1 != 0 {
  1768			err = e1
  1769		}
  1770		return
  1771	}
  1772	
  1773	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1774	
  1775	func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  1776		r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1777		fd = int(r0)
  1778		if e1 != 0 {
  1779			err = e1
  1780		}
  1781		return
  1782	}
  1783	
  1784	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1785	
  1786	func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  1787		r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  1788		fd = int(r0)
  1789		if e1 != 0 {
  1790			err = e1
  1791		}
  1792		return
  1793	}
  1794	
  1795	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1796	
  1797	func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1798		_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
  1799		if e1 != 0 {
  1800			err = e1
  1801		}
  1802		return
  1803	}
  1804	
  1805	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1806	
  1807	func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1808		_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
  1809		if e1 != 0 {
  1810			err = e1
  1811		}
  1812		return
  1813	}
  1814	
  1815	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1816	
  1817	func getgroups(n int, list *_Gid_t) (nn int, err error) {
  1818		r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  1819		nn = int(r0)
  1820		if e1 != 0 {
  1821			err = e1
  1822		}
  1823		return
  1824	}
  1825	
  1826	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1827	
  1828	func setgroups(n int, list *_Gid_t) (err error) {
  1829		_, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  1830		if e1 != 0 {
  1831			err = e1
  1832		}
  1833		return
  1834	}
  1835	
  1836	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1837	
  1838	func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  1839		_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  1840		if e1 != 0 {
  1841			err = e1
  1842		}
  1843		return
  1844	}
  1845	
  1846	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1847	
  1848	func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  1849		_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  1850		if e1 != 0 {
  1851			err = e1
  1852		}
  1853		return
  1854	}
  1855	
  1856	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1857	
  1858	func socket(domain int, typ int, proto int) (fd int, err error) {
  1859		r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  1860		fd = int(r0)
  1861		if e1 != 0 {
  1862			err = e1
  1863		}
  1864		return
  1865	}
  1866	
  1867	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1868	
  1869	func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  1870		_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  1871		if e1 != 0 {
  1872			err = e1
  1873		}
  1874		return
  1875	}
  1876	
  1877	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1878	
  1879	func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1880		_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1881		if e1 != 0 {
  1882			err = e1
  1883		}
  1884		return
  1885	}
  1886	
  1887	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1888	
  1889	func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1890		_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  1891		if e1 != 0 {
  1892			err = e1
  1893		}
  1894		return
  1895	}
  1896	
  1897	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1898	
  1899	func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  1900		var _p0 unsafe.Pointer
  1901		if len(p) > 0 {
  1902			_p0 = unsafe.Pointer(&p[0])
  1903		} else {
  1904			_p0 = unsafe.Pointer(&_zero)
  1905		}
  1906		r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  1907		n = int(r0)
  1908		if e1 != 0 {
  1909			err = e1
  1910		}
  1911		return
  1912	}
  1913	
  1914	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1915	
  1916	func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1917		var _p0 unsafe.Pointer
  1918		if len(buf) > 0 {
  1919			_p0 = unsafe.Pointer(&buf[0])
  1920		} else {
  1921			_p0 = unsafe.Pointer(&_zero)
  1922		}
  1923		_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1924		if e1 != 0 {
  1925			err = e1
  1926		}
  1927		return
  1928	}
  1929	
  1930	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1931	
  1932	func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1933		r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  1934		n = int(r0)
  1935		if e1 != 0 {
  1936			err = e1
  1937		}
  1938		return
  1939	}
  1940	
  1941	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1942	
  1943	func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1944		r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  1945		n = int(r0)
  1946		if e1 != 0 {
  1947			err = e1
  1948		}
  1949		return
  1950	}
  1951	
  1952	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1953	
  1954	func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
  1955		r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
  1956		xaddr = uintptr(r0)
  1957		if e1 != 0 {
  1958			err = e1
  1959		}
  1960		return
  1961	}
  1962	

View as plain text