...

Source file src/pkg/syscall/zsyscall_solaris_amd64.go

     1	// mksyscall_libc.pl -solaris -tags solaris,amd64 syscall_solaris.go syscall_solaris_amd64.go
     2	// Code generated by the command above; DO NOT EDIT.
     3	
     4	// +build solaris,amd64
     5	
     6	package syscall
     7	
     8	import "unsafe"
     9	
    10	//go:cgo_import_dynamic libc_Getcwd getcwd "libc.so"
    11	//go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
    12	//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    13	//go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
    14	//go:cgo_import_dynamic libc_accept accept "libsocket.so"
    15	//go:cgo_import_dynamic libc___xnet_sendmsg __xnet_sendmsg "libsocket.so"
    16	//go:cgo_import_dynamic libc_Access access "libc.so"
    17	//go:cgo_import_dynamic libc_Adjtime adjtime "libc.so"
    18	//go:cgo_import_dynamic libc_Chdir chdir "libc.so"
    19	//go:cgo_import_dynamic libc_Chmod chmod "libc.so"
    20	//go:cgo_import_dynamic libc_Chown chown "libc.so"
    21	//go:cgo_import_dynamic libc_Chroot chroot "libc.so"
    22	//go:cgo_import_dynamic libc_Close close "libc.so"
    23	//go:cgo_import_dynamic libc_Dup dup "libc.so"
    24	//go:cgo_import_dynamic libc_Fchdir fchdir "libc.so"
    25	//go:cgo_import_dynamic libc_Fchmod fchmod "libc.so"
    26	//go:cgo_import_dynamic libc_Fchown fchown "libc.so"
    27	//go:cgo_import_dynamic libc_Fpathconf fpathconf "libc.so"
    28	//go:cgo_import_dynamic libc_Fstat fstat "libc.so"
    29	//go:cgo_import_dynamic libc_Getdents getdents "libc.so"
    30	//go:cgo_import_dynamic libc_Getgid getgid "libc.so"
    31	//go:cgo_import_dynamic libc_Getpid getpid "libc.so"
    32	//go:cgo_import_dynamic libc_Geteuid geteuid "libc.so"
    33	//go:cgo_import_dynamic libc_Getegid getegid "libc.so"
    34	//go:cgo_import_dynamic libc_Getppid getppid "libc.so"
    35	//go:cgo_import_dynamic libc_Getpriority getpriority "libc.so"
    36	//go:cgo_import_dynamic libc_Getrlimit getrlimit "libc.so"
    37	//go:cgo_import_dynamic libc_Gettimeofday gettimeofday "libc.so"
    38	//go:cgo_import_dynamic libc_Getuid getuid "libc.so"
    39	//go:cgo_import_dynamic libc_Kill kill "libc.so"
    40	//go:cgo_import_dynamic libc_Lchown lchown "libc.so"
    41	//go:cgo_import_dynamic libc_Link link "libc.so"
    42	//go:cgo_import_dynamic libc___xnet_listen __xnet_listen "libsocket.so"
    43	//go:cgo_import_dynamic libc_Lstat lstat "libc.so"
    44	//go:cgo_import_dynamic libc_Mkdir mkdir "libc.so"
    45	//go:cgo_import_dynamic libc_Mknod mknod "libc.so"
    46	//go:cgo_import_dynamic libc_Nanosleep nanosleep "libc.so"
    47	//go:cgo_import_dynamic libc_Open open "libc.so"
    48	//go:cgo_import_dynamic libc_Pathconf pathconf "libc.so"
    49	//go:cgo_import_dynamic libc_Pread pread "libc.so"
    50	//go:cgo_import_dynamic libc_Pwrite pwrite "libc.so"
    51	//go:cgo_import_dynamic libc_read read "libc.so"
    52	//go:cgo_import_dynamic libc_Readlink readlink "libc.so"
    53	//go:cgo_import_dynamic libc_Rename rename "libc.so"
    54	//go:cgo_import_dynamic libc_Rmdir rmdir "libc.so"
    55	//go:cgo_import_dynamic libc_lseek lseek "libc.so"
    56	//go:cgo_import_dynamic libc_sendfile sendfile "libsendfile.so"
    57	//go:cgo_import_dynamic libc_Setegid setegid "libc.so"
    58	//go:cgo_import_dynamic libc_Seteuid seteuid "libc.so"
    59	//go:cgo_import_dynamic libc_Setgid setgid "libc.so"
    60	//go:cgo_import_dynamic libc_Setpgid setpgid "libc.so"
    61	//go:cgo_import_dynamic libc_Setpriority setpriority "libc.so"
    62	//go:cgo_import_dynamic libc_Setregid setregid "libc.so"
    63	//go:cgo_import_dynamic libc_Setreuid setreuid "libc.so"
    64	//go:cgo_import_dynamic libc_Setrlimit setrlimit "libc.so"
    65	//go:cgo_import_dynamic libc_Setsid setsid "libc.so"
    66	//go:cgo_import_dynamic libc_Setuid setuid "libc.so"
    67	//go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so"
    68	//go:cgo_import_dynamic libc_Stat stat "libc.so"
    69	//go:cgo_import_dynamic libc_Symlink symlink "libc.so"
    70	//go:cgo_import_dynamic libc_Sync sync "libc.so"
    71	//go:cgo_import_dynamic libc_Truncate truncate "libc.so"
    72	//go:cgo_import_dynamic libc_Fsync fsync "libc.so"
    73	//go:cgo_import_dynamic libc_Ftruncate ftruncate "libc.so"
    74	//go:cgo_import_dynamic libc_Umask umask "libc.so"
    75	//go:cgo_import_dynamic libc_Unlink unlink "libc.so"
    76	//go:cgo_import_dynamic libc_utimes utimes "libc.so"
    77	//go:cgo_import_dynamic libc___xnet_bind __xnet_bind "libsocket.so"
    78	//go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so"
    79	//go:cgo_import_dynamic libc_mmap mmap "libc.so"
    80	//go:cgo_import_dynamic libc_munmap munmap "libc.so"
    81	//go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so"
    82	//go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so"
    83	//go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so"
    84	//go:cgo_import_dynamic libc_write write "libc.so"
    85	//go:cgo_import_dynamic libc___xnet_getsockopt __xnet_getsockopt "libsocket.so"
    86	//go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
    87	//go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so"
    88	//go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
    89	//go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
    90	//go:cgo_import_dynamic libc___xnet_recvmsg __xnet_recvmsg "libsocket.so"
    91	//go:cgo_import_dynamic libc_getexecname getexecname "libc.so"
    92	//go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
    93	
    94	//go:linkname libc_Getcwd libc_Getcwd
    95	//go:linkname libc_getgroups libc_getgroups
    96	//go:linkname libc_setgroups libc_setgroups
    97	//go:linkname libc_fcntl libc_fcntl
    98	//go:linkname libc_accept libc_accept
    99	//go:linkname libc___xnet_sendmsg libc___xnet_sendmsg
   100	//go:linkname libc_Access libc_Access
   101	//go:linkname libc_Adjtime libc_Adjtime
   102	//go:linkname libc_Chdir libc_Chdir
   103	//go:linkname libc_Chmod libc_Chmod
   104	//go:linkname libc_Chown libc_Chown
   105	//go:linkname libc_Chroot libc_Chroot
   106	//go:linkname libc_Close libc_Close
   107	//go:linkname libc_Dup libc_Dup
   108	//go:linkname libc_Fchdir libc_Fchdir
   109	//go:linkname libc_Fchmod libc_Fchmod
   110	//go:linkname libc_Fchown libc_Fchown
   111	//go:linkname libc_Fpathconf libc_Fpathconf
   112	//go:linkname libc_Fstat libc_Fstat
   113	//go:linkname libc_Getdents libc_Getdents
   114	//go:linkname libc_Getgid libc_Getgid
   115	//go:linkname libc_Getpid libc_Getpid
   116	//go:linkname libc_Geteuid libc_Geteuid
   117	//go:linkname libc_Getegid libc_Getegid
   118	//go:linkname libc_Getppid libc_Getppid
   119	//go:linkname libc_Getpriority libc_Getpriority
   120	//go:linkname libc_Getrlimit libc_Getrlimit
   121	//go:linkname libc_Gettimeofday libc_Gettimeofday
   122	//go:linkname libc_Getuid libc_Getuid
   123	//go:linkname libc_Kill libc_Kill
   124	//go:linkname libc_Lchown libc_Lchown
   125	//go:linkname libc_Link libc_Link
   126	//go:linkname libc___xnet_listen libc___xnet_listen
   127	//go:linkname libc_Lstat libc_Lstat
   128	//go:linkname libc_Mkdir libc_Mkdir
   129	//go:linkname libc_Mknod libc_Mknod
   130	//go:linkname libc_Nanosleep libc_Nanosleep
   131	//go:linkname libc_Open libc_Open
   132	//go:linkname libc_Pathconf libc_Pathconf
   133	//go:linkname libc_Pread libc_Pread
   134	//go:linkname libc_Pwrite libc_Pwrite
   135	//go:linkname libc_read libc_read
   136	//go:linkname libc_Readlink libc_Readlink
   137	//go:linkname libc_Rename libc_Rename
   138	//go:linkname libc_Rmdir libc_Rmdir
   139	//go:linkname libc_lseek libc_lseek
   140	//go:linkname libc_sendfile libc_sendfile
   141	//go:linkname libc_Setegid libc_Setegid
   142	//go:linkname libc_Seteuid libc_Seteuid
   143	//go:linkname libc_Setgid libc_Setgid
   144	//go:linkname libc_Setpgid libc_Setpgid
   145	//go:linkname libc_Setpriority libc_Setpriority
   146	//go:linkname libc_Setregid libc_Setregid
   147	//go:linkname libc_Setreuid libc_Setreuid
   148	//go:linkname libc_Setrlimit libc_Setrlimit
   149	//go:linkname libc_Setsid libc_Setsid
   150	//go:linkname libc_Setuid libc_Setuid
   151	//go:linkname libc_shutdown libc_shutdown
   152	//go:linkname libc_Stat libc_Stat
   153	//go:linkname libc_Symlink libc_Symlink
   154	//go:linkname libc_Sync libc_Sync
   155	//go:linkname libc_Truncate libc_Truncate
   156	//go:linkname libc_Fsync libc_Fsync
   157	//go:linkname libc_Ftruncate libc_Ftruncate
   158	//go:linkname libc_Umask libc_Umask
   159	//go:linkname libc_Unlink libc_Unlink
   160	//go:linkname libc_utimes libc_utimes
   161	//go:linkname libc___xnet_bind libc___xnet_bind
   162	//go:linkname libc___xnet_connect libc___xnet_connect
   163	//go:linkname libc_mmap libc_mmap
   164	//go:linkname libc_munmap libc_munmap
   165	//go:linkname libc___xnet_sendto libc___xnet_sendto
   166	//go:linkname libc___xnet_socket libc___xnet_socket
   167	//go:linkname libc___xnet_socketpair libc___xnet_socketpair
   168	//go:linkname libc_write libc_write
   169	//go:linkname libc___xnet_getsockopt libc___xnet_getsockopt
   170	//go:linkname libc_getpeername libc_getpeername
   171	//go:linkname libc_getsockname libc_getsockname
   172	//go:linkname libc_setsockopt libc_setsockopt
   173	//go:linkname libc_recvfrom libc_recvfrom
   174	//go:linkname libc___xnet_recvmsg libc___xnet_recvmsg
   175	//go:linkname libc_getexecname libc_getexecname
   176	//go:linkname libc_utimensat libc_utimensat
   177	
   178	type libcFunc uintptr
   179	
   180	var (
   181		libc_Getcwd,
   182		libc_getgroups,
   183		libc_setgroups,
   184		libc_fcntl,
   185		libc_accept,
   186		libc___xnet_sendmsg,
   187		libc_Access,
   188		libc_Adjtime,
   189		libc_Chdir,
   190		libc_Chmod,
   191		libc_Chown,
   192		libc_Chroot,
   193		libc_Close,
   194		libc_Dup,
   195		libc_Fchdir,
   196		libc_Fchmod,
   197		libc_Fchown,
   198		libc_Fpathconf,
   199		libc_Fstat,
   200		libc_Getdents,
   201		libc_Getgid,
   202		libc_Getpid,
   203		libc_Geteuid,
   204		libc_Getegid,
   205		libc_Getppid,
   206		libc_Getpriority,
   207		libc_Getrlimit,
   208		libc_Gettimeofday,
   209		libc_Getuid,
   210		libc_Kill,
   211		libc_Lchown,
   212		libc_Link,
   213		libc___xnet_listen,
   214		libc_Lstat,
   215		libc_Mkdir,
   216		libc_Mknod,
   217		libc_Nanosleep,
   218		libc_Open,
   219		libc_Pathconf,
   220		libc_Pread,
   221		libc_Pwrite,
   222		libc_read,
   223		libc_Readlink,
   224		libc_Rename,
   225		libc_Rmdir,
   226		libc_lseek,
   227		libc_sendfile,
   228		libc_Setegid,
   229		libc_Seteuid,
   230		libc_Setgid,
   231		libc_Setpgid,
   232		libc_Setpriority,
   233		libc_Setregid,
   234		libc_Setreuid,
   235		libc_Setrlimit,
   236		libc_Setsid,
   237		libc_Setuid,
   238		libc_shutdown,
   239		libc_Stat,
   240		libc_Symlink,
   241		libc_Sync,
   242		libc_Truncate,
   243		libc_Fsync,
   244		libc_Ftruncate,
   245		libc_Umask,
   246		libc_Unlink,
   247		libc_utimes,
   248		libc___xnet_bind,
   249		libc___xnet_connect,
   250		libc_mmap,
   251		libc_munmap,
   252		libc___xnet_sendto,
   253		libc___xnet_socket,
   254		libc___xnet_socketpair,
   255		libc_write,
   256		libc___xnet_getsockopt,
   257		libc_getpeername,
   258		libc_getsockname,
   259		libc_setsockopt,
   260		libc_recvfrom,
   261		libc___xnet_recvmsg,
   262		libc_getexecname,
   263		libc_utimensat libcFunc
   264	)
   265	
   266	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   267	
   268	func Getcwd(buf []byte) (n int, err error) {
   269		var _p0 *byte
   270		if len(buf) > 0 {
   271			_p0 = &buf[0]
   272		}
   273		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Getcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
   274		n = int(r0)
   275		if e1 != 0 {
   276			err = errnoErr(e1)
   277		}
   278		return
   279	}
   280	
   281	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   282	
   283	func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
   284		r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_getgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
   285		n = int(r0)
   286		if e1 != 0 {
   287			err = errnoErr(e1)
   288		}
   289		return
   290	}
   291	
   292	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   293	
   294	func setgroups(ngid int, gid *_Gid_t) (err error) {
   295		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_setgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
   296		if e1 != 0 {
   297			err = errnoErr(e1)
   298		}
   299		return
   300	}
   301	
   302	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   303	
   304	func fcntl(fd int, cmd int, arg int) (val int, err error) {
   305		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
   306		val = int(r0)
   307		if e1 != 0 {
   308			err = errnoErr(e1)
   309		}
   310		return
   311	}
   312	
   313	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   314	
   315	func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
   316		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_accept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
   317		fd = int(r0)
   318		if e1 != 0 {
   319			err = errnoErr(e1)
   320		}
   321		return
   322	}
   323	
   324	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   325	
   326	func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
   327		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc___xnet_sendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
   328		n = 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 Access(path string, mode uint32) (err error) {
   338		var _p0 *byte
   339		_p0, err = BytePtrFromString(path)
   340		if err != nil {
   341			return
   342		}
   343		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Access)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   344		if e1 != 0 {
   345			err = errnoErr(e1)
   346		}
   347		return
   348	}
   349	
   350	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   351	
   352	func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
   353		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Adjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0)
   354		if e1 != 0 {
   355			err = errnoErr(e1)
   356		}
   357		return
   358	}
   359	
   360	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   361	
   362	func Chdir(path string) (err error) {
   363		var _p0 *byte
   364		_p0, err = BytePtrFromString(path)
   365		if err != nil {
   366			return
   367		}
   368		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Chdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   369		if e1 != 0 {
   370			err = errnoErr(e1)
   371		}
   372		return
   373	}
   374	
   375	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   376	
   377	func Chmod(path string, mode uint32) (err error) {
   378		var _p0 *byte
   379		_p0, err = BytePtrFromString(path)
   380		if err != nil {
   381			return
   382		}
   383		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Chmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   384		if e1 != 0 {
   385			err = errnoErr(e1)
   386		}
   387		return
   388	}
   389	
   390	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   391	
   392	func Chown(path string, uid int, gid int) (err error) {
   393		var _p0 *byte
   394		_p0, err = BytePtrFromString(path)
   395		if err != nil {
   396			return
   397		}
   398		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Chown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
   399		if e1 != 0 {
   400			err = errnoErr(e1)
   401		}
   402		return
   403	}
   404	
   405	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   406	
   407	func Chroot(path string) (err error) {
   408		var _p0 *byte
   409		_p0, err = BytePtrFromString(path)
   410		if err != nil {
   411			return
   412		}
   413		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Chroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   414		if e1 != 0 {
   415			err = errnoErr(e1)
   416		}
   417		return
   418	}
   419	
   420	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   421	
   422	func Close(fd int) (err error) {
   423		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Close)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   424		if e1 != 0 {
   425			err = errnoErr(e1)
   426		}
   427		return
   428	}
   429	
   430	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   431	
   432	func Dup(fd int) (nfd int, err error) {
   433		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Dup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   434		nfd = int(r0)
   435		if e1 != 0 {
   436			err = errnoErr(e1)
   437		}
   438		return
   439	}
   440	
   441	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   442	
   443	func Fchdir(fd int) (err error) {
   444		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Fchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
   445		if e1 != 0 {
   446			err = errnoErr(e1)
   447		}
   448		return
   449	}
   450	
   451	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   452	
   453	func Fchmod(fd int, mode uint32) (err error) {
   454		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Fchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
   455		if e1 != 0 {
   456			err = errnoErr(e1)
   457		}
   458		return
   459	}
   460	
   461	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   462	
   463	func Fchown(fd int, uid int, gid int) (err error) {
   464		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Fchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
   465		if e1 != 0 {
   466			err = errnoErr(e1)
   467		}
   468		return
   469	}
   470	
   471	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   472	
   473	func Fpathconf(fd int, name int) (val int, err error) {
   474		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Fpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
   475		val = int(r0)
   476		if e1 != 0 {
   477			err = errnoErr(e1)
   478		}
   479		return
   480	}
   481	
   482	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   483	
   484	func Fstat(fd int, stat *Stat_t) (err error) {
   485		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Fstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
   486		if e1 != 0 {
   487			err = errnoErr(e1)
   488		}
   489		return
   490	}
   491	
   492	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   493	
   494	func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) {
   495		var _p0 *byte
   496		if len(buf) > 0 {
   497			_p0 = &buf[0]
   498		}
   499		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Getdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
   500		n = int(r0)
   501		if e1 != 0 {
   502			err = errnoErr(e1)
   503		}
   504		return
   505	}
   506	
   507	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   508	
   509	func Getgid() (gid int) {
   510		r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Getgid)), 0, 0, 0, 0, 0, 0, 0)
   511		gid = int(r0)
   512		return
   513	}
   514	
   515	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   516	
   517	func Getpid() (pid int) {
   518		r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Getpid)), 0, 0, 0, 0, 0, 0, 0)
   519		pid = int(r0)
   520		return
   521	}
   522	
   523	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   524	
   525	func Geteuid() (euid int) {
   526		r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&libc_Geteuid)), 0, 0, 0, 0, 0, 0, 0)
   527		euid = int(r0)
   528		return
   529	}
   530	
   531	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   532	
   533	func Getegid() (egid int) {
   534		r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&libc_Getegid)), 0, 0, 0, 0, 0, 0, 0)
   535		egid = int(r0)
   536		return
   537	}
   538	
   539	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   540	
   541	func Getppid() (ppid int) {
   542		r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&libc_Getppid)), 0, 0, 0, 0, 0, 0, 0)
   543		ppid = int(r0)
   544		return
   545	}
   546	
   547	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   548	
   549	func Getpriority(which int, who int) (n int, err error) {
   550		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Getpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
   551		n = int(r0)
   552		if e1 != 0 {
   553			err = errnoErr(e1)
   554		}
   555		return
   556	}
   557	
   558	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   559	
   560	func Getrlimit(which int, lim *Rlimit) (err error) {
   561		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Getrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
   562		if e1 != 0 {
   563			err = errnoErr(e1)
   564		}
   565		return
   566	}
   567	
   568	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   569	
   570	func Gettimeofday(tv *Timeval) (err error) {
   571		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Gettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0)
   572		if e1 != 0 {
   573			err = errnoErr(e1)
   574		}
   575		return
   576	}
   577	
   578	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   579	
   580	func Getuid() (uid int) {
   581		r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Getuid)), 0, 0, 0, 0, 0, 0, 0)
   582		uid = int(r0)
   583		return
   584	}
   585	
   586	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   587	
   588	func Kill(pid int, signum Signal) (err error) {
   589		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Kill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
   590		if e1 != 0 {
   591			err = errnoErr(e1)
   592		}
   593		return
   594	}
   595	
   596	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   597	
   598	func Lchown(path string, uid int, gid int) (err error) {
   599		var _p0 *byte
   600		_p0, err = BytePtrFromString(path)
   601		if err != nil {
   602			return
   603		}
   604		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Lchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
   605		if e1 != 0 {
   606			err = errnoErr(e1)
   607		}
   608		return
   609	}
   610	
   611	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   612	
   613	func Link(path string, link string) (err error) {
   614		var _p0 *byte
   615		_p0, err = BytePtrFromString(path)
   616		if err != nil {
   617			return
   618		}
   619		var _p1 *byte
   620		_p1, err = BytePtrFromString(link)
   621		if err != nil {
   622			return
   623		}
   624		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Link)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
   625		if e1 != 0 {
   626			err = errnoErr(e1)
   627		}
   628		return
   629	}
   630	
   631	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   632	
   633	func Listen(s int, backlog int) (err error) {
   634		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc___xnet_listen)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
   635		if e1 != 0 {
   636			err = errnoErr(e1)
   637		}
   638		return
   639	}
   640	
   641	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   642	
   643	func Lstat(path string, stat *Stat_t) (err error) {
   644		var _p0 *byte
   645		_p0, err = BytePtrFromString(path)
   646		if err != nil {
   647			return
   648		}
   649		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Lstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
   650		if e1 != 0 {
   651			err = errnoErr(e1)
   652		}
   653		return
   654	}
   655	
   656	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   657	
   658	func Mkdir(path string, mode uint32) (err error) {
   659		var _p0 *byte
   660		_p0, err = BytePtrFromString(path)
   661		if err != nil {
   662			return
   663		}
   664		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Mkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
   665		if e1 != 0 {
   666			err = errnoErr(e1)
   667		}
   668		return
   669	}
   670	
   671	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   672	
   673	func Mknod(path string, mode uint32, dev int) (err error) {
   674		var _p0 *byte
   675		_p0, err = BytePtrFromString(path)
   676		if err != nil {
   677			return
   678		}
   679		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Mknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0)
   680		if e1 != 0 {
   681			err = errnoErr(e1)
   682		}
   683		return
   684	}
   685	
   686	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   687	
   688	func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
   689		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Nanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0)
   690		if e1 != 0 {
   691			err = errnoErr(e1)
   692		}
   693		return
   694	}
   695	
   696	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   697	
   698	func Open(path string, mode int, perm uint32) (fd int, err error) {
   699		var _p0 *byte
   700		_p0, err = BytePtrFromString(path)
   701		if err != nil {
   702			return
   703		}
   704		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Open)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
   705		fd = int(r0)
   706		if e1 != 0 {
   707			err = errnoErr(e1)
   708		}
   709		return
   710	}
   711	
   712	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   713	
   714	func Pathconf(path string, name int) (val int, err error) {
   715		var _p0 *byte
   716		_p0, err = BytePtrFromString(path)
   717		if err != nil {
   718			return
   719		}
   720		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Pathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0)
   721		val = int(r0)
   722		if e1 != 0 {
   723			err = errnoErr(e1)
   724		}
   725		return
   726	}
   727	
   728	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   729	
   730	func Pread(fd int, p []byte, offset int64) (n int, err error) {
   731		var _p0 *byte
   732		if len(p) > 0 {
   733			_p0 = &p[0]
   734		}
   735		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Pread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
   736		n = int(r0)
   737		if e1 != 0 {
   738			err = errnoErr(e1)
   739		}
   740		return
   741	}
   742	
   743	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   744	
   745	func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
   746		var _p0 *byte
   747		if len(p) > 0 {
   748			_p0 = &p[0]
   749		}
   750		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Pwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
   751		n = int(r0)
   752		if e1 != 0 {
   753			err = errnoErr(e1)
   754		}
   755		return
   756	}
   757	
   758	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   759	
   760	func read(fd int, p []byte) (n int, err error) {
   761		var _p0 *byte
   762		if len(p) > 0 {
   763			_p0 = &p[0]
   764		}
   765		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_read)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
   766		n = int(r0)
   767		if e1 != 0 {
   768			err = errnoErr(e1)
   769		}
   770		return
   771	}
   772	
   773	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   774	
   775	func Readlink(path string, buf []byte) (n int, err error) {
   776		var _p0 *byte
   777		_p0, err = BytePtrFromString(path)
   778		if err != nil {
   779			return
   780		}
   781		var _p1 *byte
   782		if len(buf) > 0 {
   783			_p1 = &buf[0]
   784		}
   785		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Readlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0)
   786		n = int(r0)
   787		if e1 != 0 {
   788			err = errnoErr(e1)
   789		}
   790		return
   791	}
   792	
   793	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   794	
   795	func Rename(from string, to string) (err error) {
   796		var _p0 *byte
   797		_p0, err = BytePtrFromString(from)
   798		if err != nil {
   799			return
   800		}
   801		var _p1 *byte
   802		_p1, err = BytePtrFromString(to)
   803		if err != nil {
   804			return
   805		}
   806		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Rename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
   807		if e1 != 0 {
   808			err = errnoErr(e1)
   809		}
   810		return
   811	}
   812	
   813	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   814	
   815	func Rmdir(path string) (err error) {
   816		var _p0 *byte
   817		_p0, err = BytePtrFromString(path)
   818		if err != nil {
   819			return
   820		}
   821		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Rmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
   822		if e1 != 0 {
   823			err = errnoErr(e1)
   824		}
   825		return
   826	}
   827	
   828	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   829	
   830	func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
   831		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_lseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
   832		newoffset = int64(r0)
   833		if e1 != 0 {
   834			err = errnoErr(e1)
   835		}
   836		return
   837	}
   838	
   839	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   840	
   841	func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
   842		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_sendfile)), 4, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
   843		written = int(r0)
   844		if e1 != 0 {
   845			err = errnoErr(e1)
   846		}
   847		return
   848	}
   849	
   850	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   851	
   852	func Setegid(egid int) (err error) {
   853		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Setegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
   854		if e1 != 0 {
   855			err = errnoErr(e1)
   856		}
   857		return
   858	}
   859	
   860	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   861	
   862	func Seteuid(euid int) (err error) {
   863		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Seteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
   864		if e1 != 0 {
   865			err = errnoErr(e1)
   866		}
   867		return
   868	}
   869	
   870	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   871	
   872	func Setgid(gid int) (err error) {
   873		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Setgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
   874		if e1 != 0 {
   875			err = errnoErr(e1)
   876		}
   877		return
   878	}
   879	
   880	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   881	
   882	func Setpgid(pid int, pgid int) (err error) {
   883		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Setpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
   884		if e1 != 0 {
   885			err = errnoErr(e1)
   886		}
   887		return
   888	}
   889	
   890	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   891	
   892	func Setpriority(which int, who int, prio int) (err error) {
   893		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Setpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
   894		if e1 != 0 {
   895			err = errnoErr(e1)
   896		}
   897		return
   898	}
   899	
   900	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   901	
   902	func Setregid(rgid int, egid int) (err error) {
   903		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Setregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
   904		if e1 != 0 {
   905			err = errnoErr(e1)
   906		}
   907		return
   908	}
   909	
   910	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   911	
   912	func Setreuid(ruid int, euid int) (err error) {
   913		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Setreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
   914		if e1 != 0 {
   915			err = errnoErr(e1)
   916		}
   917		return
   918	}
   919	
   920	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   921	
   922	func Setrlimit(which int, lim *Rlimit) (err error) {
   923		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Setrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
   924		if e1 != 0 {
   925			err = errnoErr(e1)
   926		}
   927		return
   928	}
   929	
   930	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   931	
   932	func Setsid() (pid int, err error) {
   933		r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Setsid)), 0, 0, 0, 0, 0, 0, 0)
   934		pid = int(r0)
   935		if e1 != 0 {
   936			err = errnoErr(e1)
   937		}
   938		return
   939	}
   940	
   941	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   942	
   943	func Setuid(uid int) (err error) {
   944		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_Setuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
   945		if e1 != 0 {
   946			err = errnoErr(e1)
   947		}
   948		return
   949	}
   950	
   951	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   952	
   953	func Shutdown(s int, how int) (err error) {
   954		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_shutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
   955		if e1 != 0 {
   956			err = errnoErr(e1)
   957		}
   958		return
   959	}
   960	
   961	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   962	
   963	func Stat(path string, stat *Stat_t) (err error) {
   964		var _p0 *byte
   965		_p0, err = BytePtrFromString(path)
   966		if err != nil {
   967			return
   968		}
   969		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Stat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
   970		if e1 != 0 {
   971			err = errnoErr(e1)
   972		}
   973		return
   974	}
   975	
   976	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   977	
   978	func Symlink(path string, link string) (err error) {
   979		var _p0 *byte
   980		_p0, err = BytePtrFromString(path)
   981		if err != nil {
   982			return
   983		}
   984		var _p1 *byte
   985		_p1, err = BytePtrFromString(link)
   986		if err != nil {
   987			return
   988		}
   989		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Symlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
   990		if e1 != 0 {
   991			err = errnoErr(e1)
   992		}
   993		return
   994	}
   995	
   996	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
   997	
   998	func Sync() (err error) {
   999		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Sync)), 0, 0, 0, 0, 0, 0, 0)
  1000		if e1 != 0 {
  1001			err = errnoErr(e1)
  1002		}
  1003		return
  1004	}
  1005	
  1006	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1007	
  1008	func Truncate(path string, length int64) (err error) {
  1009		var _p0 *byte
  1010		_p0, err = BytePtrFromString(path)
  1011		if err != nil {
  1012			return
  1013		}
  1014		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Truncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
  1015		if e1 != 0 {
  1016			err = errnoErr(e1)
  1017		}
  1018		return
  1019	}
  1020	
  1021	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1022	
  1023	func Fsync(fd int) (err error) {
  1024		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Fsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  1025		if e1 != 0 {
  1026			err = errnoErr(e1)
  1027		}
  1028		return
  1029	}
  1030	
  1031	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1032	
  1033	func Ftruncate(fd int, length int64) (err error) {
  1034		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Ftruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
  1035		if e1 != 0 {
  1036			err = errnoErr(e1)
  1037		}
  1038		return
  1039	}
  1040	
  1041	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1042	
  1043	func Umask(newmask int) (oldmask int) {
  1044		r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&libc_Umask)), 1, uintptr(newmask), 0, 0, 0, 0, 0)
  1045		oldmask = int(r0)
  1046		return
  1047	}
  1048	
  1049	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1050	
  1051	func Unlink(path string) (err error) {
  1052		var _p0 *byte
  1053		_p0, err = BytePtrFromString(path)
  1054		if err != nil {
  1055			return
  1056		}
  1057		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_Unlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1058		if e1 != 0 {
  1059			err = errnoErr(e1)
  1060		}
  1061		return
  1062	}
  1063	
  1064	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1065	
  1066	func utimes(path string, times *[2]Timeval) (err error) {
  1067		var _p0 *byte
  1068		_p0, err = BytePtrFromString(path)
  1069		if err != nil {
  1070			return
  1071		}
  1072		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_utimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
  1073		if e1 != 0 {
  1074			err = errnoErr(e1)
  1075		}
  1076		return
  1077	}
  1078	
  1079	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1080	
  1081	func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1082		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc___xnet_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1083		if e1 != 0 {
  1084			err = errnoErr(e1)
  1085		}
  1086		return
  1087	}
  1088	
  1089	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1090	
  1091	func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1092		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc___xnet_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1093		if e1 != 0 {
  1094			err = errnoErr(e1)
  1095		}
  1096		return
  1097	}
  1098	
  1099	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1100	
  1101	func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1102		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_mmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
  1103		ret = uintptr(r0)
  1104		if e1 != 0 {
  1105			err = errnoErr(e1)
  1106		}
  1107		return
  1108	}
  1109	
  1110	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1111	
  1112	func munmap(addr uintptr, length uintptr) (err error) {
  1113		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_munmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
  1114		if e1 != 0 {
  1115			err = errnoErr(e1)
  1116		}
  1117		return
  1118	}
  1119	
  1120	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1121	
  1122	func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1123		var _p0 *byte
  1124		if len(buf) > 0 {
  1125			_p0 = &buf[0]
  1126		}
  1127		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc___xnet_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1128		if e1 != 0 {
  1129			err = errnoErr(e1)
  1130		}
  1131		return
  1132	}
  1133	
  1134	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1135	
  1136	func socket(domain int, typ int, proto int) (fd int, err error) {
  1137		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc___xnet_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
  1138		fd = int(r0)
  1139		if e1 != 0 {
  1140			err = errnoErr(e1)
  1141		}
  1142		return
  1143	}
  1144	
  1145	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1146	
  1147	func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  1148		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc___xnet_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  1149		if e1 != 0 {
  1150			err = errnoErr(e1)
  1151		}
  1152		return
  1153	}
  1154	
  1155	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1156	
  1157	func write(fd int, p []byte) (n int, err error) {
  1158		var _p0 *byte
  1159		if len(p) > 0 {
  1160			_p0 = &p[0]
  1161		}
  1162		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_write)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1163		n = int(r0)
  1164		if e1 != 0 {
  1165			err = errnoErr(e1)
  1166		}
  1167		return
  1168	}
  1169	
  1170	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1171	
  1172	func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  1173		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc___xnet_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  1174		if e1 != 0 {
  1175			err = errnoErr(e1)
  1176		}
  1177		return
  1178	}
  1179	
  1180	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1181	
  1182	func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1183		_, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&libc_getpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
  1184		if e1 != 0 {
  1185			err = errnoErr(e1)
  1186		}
  1187		return
  1188	}
  1189	
  1190	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1191	
  1192	func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1193		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_getsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
  1194		if e1 != 0 {
  1195			err = errnoErr(e1)
  1196		}
  1197		return
  1198	}
  1199	
  1200	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1201	
  1202	func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  1203		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_setsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  1204		if e1 != 0 {
  1205			err = errnoErr(e1)
  1206		}
  1207		return
  1208	}
  1209	
  1210	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1211	
  1212	func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  1213		var _p0 *byte
  1214		if len(p) > 0 {
  1215			_p0 = &p[0]
  1216		}
  1217		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_recvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  1218		n = int(r0)
  1219		if e1 != 0 {
  1220			err = errnoErr(e1)
  1221		}
  1222		return
  1223	}
  1224	
  1225	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1226	
  1227	func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1228		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc___xnet_recvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
  1229		n = int(r0)
  1230		if e1 != 0 {
  1231			err = errnoErr(e1)
  1232		}
  1233		return
  1234	}
  1235	
  1236	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1237	
  1238	func getexecname() (path unsafe.Pointer, err error) {
  1239		r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_getexecname)), 0, 0, 0, 0, 0, 0, 0)
  1240		path = unsafe.Pointer(r0)
  1241		if e1 != 0 {
  1242			err = errnoErr(e1)
  1243		}
  1244		return
  1245	}
  1246	
  1247	// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1248	
  1249	func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
  1250		var _p0 *byte
  1251		_p0, err = BytePtrFromString(path)
  1252		if err != nil {
  1253			return
  1254		}
  1255		_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&libc_utimensat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
  1256		if e1 != 0 {
  1257			err = errnoErr(e1)
  1258		}
  1259		return
  1260	}
  1261	

View as plain text