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

View as plain text