Run Format

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

View as plain text