zsyscall_solaris_amd64.go 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954
  1. // go run mksyscall_solaris.go -tags solaris,amd64 syscall_solaris.go syscall_solaris_amd64.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build solaris,amd64
  4. package unix
  5. import (
  6. "syscall"
  7. "unsafe"
  8. )
  9. //go:cgo_import_dynamic libc_pipe pipe "libc.so"
  10. //go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so"
  11. //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
  12. //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
  13. //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
  14. //go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
  15. //go:cgo_import_dynamic libc_gethostname gethostname "libc.so"
  16. //go:cgo_import_dynamic libc_utimes utimes "libc.so"
  17. //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"
  18. //go:cgo_import_dynamic libc_fcntl fcntl "libc.so"
  19. //go:cgo_import_dynamic libc_futimesat futimesat "libc.so"
  20. //go:cgo_import_dynamic libc_accept accept "libsocket.so"
  21. //go:cgo_import_dynamic libc___xnet_recvmsg __xnet_recvmsg "libsocket.so"
  22. //go:cgo_import_dynamic libc___xnet_sendmsg __xnet_sendmsg "libsocket.so"
  23. //go:cgo_import_dynamic libc_acct acct "libc.so"
  24. //go:cgo_import_dynamic libc___makedev __makedev "libc.so"
  25. //go:cgo_import_dynamic libc___major __major "libc.so"
  26. //go:cgo_import_dynamic libc___minor __minor "libc.so"
  27. //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
  28. //go:cgo_import_dynamic libc_poll poll "libc.so"
  29. //go:cgo_import_dynamic libc_access access "libc.so"
  30. //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
  31. //go:cgo_import_dynamic libc_chdir chdir "libc.so"
  32. //go:cgo_import_dynamic libc_chmod chmod "libc.so"
  33. //go:cgo_import_dynamic libc_chown chown "libc.so"
  34. //go:cgo_import_dynamic libc_chroot chroot "libc.so"
  35. //go:cgo_import_dynamic libc_close close "libc.so"
  36. //go:cgo_import_dynamic libc_creat creat "libc.so"
  37. //go:cgo_import_dynamic libc_dup dup "libc.so"
  38. //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
  39. //go:cgo_import_dynamic libc_exit exit "libc.so"
  40. //go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
  41. //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
  42. //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
  43. //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
  44. //go:cgo_import_dynamic libc_fchown fchown "libc.so"
  45. //go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
  46. //go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so"
  47. //go:cgo_import_dynamic libc_flock flock "libc.so"
  48. //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
  49. //go:cgo_import_dynamic libc_fstat fstat "libc.so"
  50. //go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
  51. //go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so"
  52. //go:cgo_import_dynamic libc_getdents getdents "libc.so"
  53. //go:cgo_import_dynamic libc_getgid getgid "libc.so"
  54. //go:cgo_import_dynamic libc_getpid getpid "libc.so"
  55. //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
  56. //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
  57. //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
  58. //go:cgo_import_dynamic libc_getegid getegid "libc.so"
  59. //go:cgo_import_dynamic libc_getppid getppid "libc.so"
  60. //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
  61. //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
  62. //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
  63. //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
  64. //go:cgo_import_dynamic libc_getuid getuid "libc.so"
  65. //go:cgo_import_dynamic libc_kill kill "libc.so"
  66. //go:cgo_import_dynamic libc_lchown lchown "libc.so"
  67. //go:cgo_import_dynamic libc_link link "libc.so"
  68. //go:cgo_import_dynamic libc___xnet_llisten __xnet_llisten "libsocket.so"
  69. //go:cgo_import_dynamic libc_lstat lstat "libc.so"
  70. //go:cgo_import_dynamic libc_madvise madvise "libc.so"
  71. //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
  72. //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
  73. //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
  74. //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
  75. //go:cgo_import_dynamic libc_mknod mknod "libc.so"
  76. //go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
  77. //go:cgo_import_dynamic libc_mlock mlock "libc.so"
  78. //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
  79. //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
  80. //go:cgo_import_dynamic libc_msync msync "libc.so"
  81. //go:cgo_import_dynamic libc_munlock munlock "libc.so"
  82. //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
  83. //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
  84. //go:cgo_import_dynamic libc_open open "libc.so"
  85. //go:cgo_import_dynamic libc_openat openat "libc.so"
  86. //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
  87. //go:cgo_import_dynamic libc_pause pause "libc.so"
  88. //go:cgo_import_dynamic libc_pread pread "libc.so"
  89. //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
  90. //go:cgo_import_dynamic libc_read read "libc.so"
  91. //go:cgo_import_dynamic libc_readlink readlink "libc.so"
  92. //go:cgo_import_dynamic libc_rename rename "libc.so"
  93. //go:cgo_import_dynamic libc_renameat renameat "libc.so"
  94. //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
  95. //go:cgo_import_dynamic libc_lseek lseek "libc.so"
  96. //go:cgo_import_dynamic libc_select select "libc.so"
  97. //go:cgo_import_dynamic libc_setegid setegid "libc.so"
  98. //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
  99. //go:cgo_import_dynamic libc_setgid setgid "libc.so"
  100. //go:cgo_import_dynamic libc_sethostname sethostname "libc.so"
  101. //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
  102. //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
  103. //go:cgo_import_dynamic libc_setregid setregid "libc.so"
  104. //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
  105. //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
  106. //go:cgo_import_dynamic libc_setsid setsid "libc.so"
  107. //go:cgo_import_dynamic libc_setuid setuid "libc.so"
  108. //go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so"
  109. //go:cgo_import_dynamic libc_stat stat "libc.so"
  110. //go:cgo_import_dynamic libc_statvfs statvfs "libc.so"
  111. //go:cgo_import_dynamic libc_symlink symlink "libc.so"
  112. //go:cgo_import_dynamic libc_sync sync "libc.so"
  113. //go:cgo_import_dynamic libc_times times "libc.so"
  114. //go:cgo_import_dynamic libc_truncate truncate "libc.so"
  115. //go:cgo_import_dynamic libc_fsync fsync "libc.so"
  116. //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
  117. //go:cgo_import_dynamic libc_umask umask "libc.so"
  118. //go:cgo_import_dynamic libc_uname uname "libc.so"
  119. //go:cgo_import_dynamic libc_umount umount "libc.so"
  120. //go:cgo_import_dynamic libc_unlink unlink "libc.so"
  121. //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
  122. //go:cgo_import_dynamic libc_ustat ustat "libc.so"
  123. //go:cgo_import_dynamic libc_utime utime "libc.so"
  124. //go:cgo_import_dynamic libc___xnet_bind __xnet_bind "libsocket.so"
  125. //go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so"
  126. //go:cgo_import_dynamic libc_mmap mmap "libc.so"
  127. //go:cgo_import_dynamic libc_munmap munmap "libc.so"
  128. //go:cgo_import_dynamic libc_sendfile sendfile "libsendfile.so"
  129. //go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so"
  130. //go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so"
  131. //go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so"
  132. //go:cgo_import_dynamic libc_write write "libc.so"
  133. //go:cgo_import_dynamic libc___xnet_getsockopt __xnet_getsockopt "libsocket.so"
  134. //go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
  135. //go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
  136. //go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
  137. //go:linkname procpipe libc_pipe
  138. //go:linkname procgetsockname libc_getsockname
  139. //go:linkname procGetcwd libc_getcwd
  140. //go:linkname procgetgroups libc_getgroups
  141. //go:linkname procsetgroups libc_setgroups
  142. //go:linkname procwait4 libc_wait4
  143. //go:linkname procgethostname libc_gethostname
  144. //go:linkname procutimes libc_utimes
  145. //go:linkname procutimensat libc_utimensat
  146. //go:linkname procfcntl libc_fcntl
  147. //go:linkname procfutimesat libc_futimesat
  148. //go:linkname procaccept libc_accept
  149. //go:linkname proc__xnet_recvmsg libc___xnet_recvmsg
  150. //go:linkname proc__xnet_sendmsg libc___xnet_sendmsg
  151. //go:linkname procacct libc_acct
  152. //go:linkname proc__makedev libc___makedev
  153. //go:linkname proc__major libc___major
  154. //go:linkname proc__minor libc___minor
  155. //go:linkname procioctl libc_ioctl
  156. //go:linkname procpoll libc_poll
  157. //go:linkname procAccess libc_access
  158. //go:linkname procAdjtime libc_adjtime
  159. //go:linkname procChdir libc_chdir
  160. //go:linkname procChmod libc_chmod
  161. //go:linkname procChown libc_chown
  162. //go:linkname procChroot libc_chroot
  163. //go:linkname procClose libc_close
  164. //go:linkname procCreat libc_creat
  165. //go:linkname procDup libc_dup
  166. //go:linkname procDup2 libc_dup2
  167. //go:linkname procExit libc_exit
  168. //go:linkname procFaccessat libc_faccessat
  169. //go:linkname procFchdir libc_fchdir
  170. //go:linkname procFchmod libc_fchmod
  171. //go:linkname procFchmodat libc_fchmodat
  172. //go:linkname procFchown libc_fchown
  173. //go:linkname procFchownat libc_fchownat
  174. //go:linkname procFdatasync libc_fdatasync
  175. //go:linkname procFlock libc_flock
  176. //go:linkname procFpathconf libc_fpathconf
  177. //go:linkname procFstat libc_fstat
  178. //go:linkname procFstatat libc_fstatat
  179. //go:linkname procFstatvfs libc_fstatvfs
  180. //go:linkname procGetdents libc_getdents
  181. //go:linkname procGetgid libc_getgid
  182. //go:linkname procGetpid libc_getpid
  183. //go:linkname procGetpgid libc_getpgid
  184. //go:linkname procGetpgrp libc_getpgrp
  185. //go:linkname procGeteuid libc_geteuid
  186. //go:linkname procGetegid libc_getegid
  187. //go:linkname procGetppid libc_getppid
  188. //go:linkname procGetpriority libc_getpriority
  189. //go:linkname procGetrlimit libc_getrlimit
  190. //go:linkname procGetrusage libc_getrusage
  191. //go:linkname procGettimeofday libc_gettimeofday
  192. //go:linkname procGetuid libc_getuid
  193. //go:linkname procKill libc_kill
  194. //go:linkname procLchown libc_lchown
  195. //go:linkname procLink libc_link
  196. //go:linkname proc__xnet_llisten libc___xnet_llisten
  197. //go:linkname procLstat libc_lstat
  198. //go:linkname procMadvise libc_madvise
  199. //go:linkname procMkdir libc_mkdir
  200. //go:linkname procMkdirat libc_mkdirat
  201. //go:linkname procMkfifo libc_mkfifo
  202. //go:linkname procMkfifoat libc_mkfifoat
  203. //go:linkname procMknod libc_mknod
  204. //go:linkname procMknodat libc_mknodat
  205. //go:linkname procMlock libc_mlock
  206. //go:linkname procMlockall libc_mlockall
  207. //go:linkname procMprotect libc_mprotect
  208. //go:linkname procMsync libc_msync
  209. //go:linkname procMunlock libc_munlock
  210. //go:linkname procMunlockall libc_munlockall
  211. //go:linkname procNanosleep libc_nanosleep
  212. //go:linkname procOpen libc_open
  213. //go:linkname procOpenat libc_openat
  214. //go:linkname procPathconf libc_pathconf
  215. //go:linkname procPause libc_pause
  216. //go:linkname procPread libc_pread
  217. //go:linkname procPwrite libc_pwrite
  218. //go:linkname procread libc_read
  219. //go:linkname procReadlink libc_readlink
  220. //go:linkname procRename libc_rename
  221. //go:linkname procRenameat libc_renameat
  222. //go:linkname procRmdir libc_rmdir
  223. //go:linkname proclseek libc_lseek
  224. //go:linkname procSelect libc_select
  225. //go:linkname procSetegid libc_setegid
  226. //go:linkname procSeteuid libc_seteuid
  227. //go:linkname procSetgid libc_setgid
  228. //go:linkname procSethostname libc_sethostname
  229. //go:linkname procSetpgid libc_setpgid
  230. //go:linkname procSetpriority libc_setpriority
  231. //go:linkname procSetregid libc_setregid
  232. //go:linkname procSetreuid libc_setreuid
  233. //go:linkname procSetrlimit libc_setrlimit
  234. //go:linkname procSetsid libc_setsid
  235. //go:linkname procSetuid libc_setuid
  236. //go:linkname procshutdown libc_shutdown
  237. //go:linkname procStat libc_stat
  238. //go:linkname procStatvfs libc_statvfs
  239. //go:linkname procSymlink libc_symlink
  240. //go:linkname procSync libc_sync
  241. //go:linkname procTimes libc_times
  242. //go:linkname procTruncate libc_truncate
  243. //go:linkname procFsync libc_fsync
  244. //go:linkname procFtruncate libc_ftruncate
  245. //go:linkname procUmask libc_umask
  246. //go:linkname procUname libc_uname
  247. //go:linkname procumount libc_umount
  248. //go:linkname procUnlink libc_unlink
  249. //go:linkname procUnlinkat libc_unlinkat
  250. //go:linkname procUstat libc_ustat
  251. //go:linkname procUtime libc_utime
  252. //go:linkname proc__xnet_bind libc___xnet_bind
  253. //go:linkname proc__xnet_connect libc___xnet_connect
  254. //go:linkname procmmap libc_mmap
  255. //go:linkname procmunmap libc_munmap
  256. //go:linkname procsendfile libc_sendfile
  257. //go:linkname proc__xnet_sendto libc___xnet_sendto
  258. //go:linkname proc__xnet_socket libc___xnet_socket
  259. //go:linkname proc__xnet_socketpair libc___xnet_socketpair
  260. //go:linkname procwrite libc_write
  261. //go:linkname proc__xnet_getsockopt libc___xnet_getsockopt
  262. //go:linkname procgetpeername libc_getpeername
  263. //go:linkname procsetsockopt libc_setsockopt
  264. //go:linkname procrecvfrom libc_recvfrom
  265. var (
  266. procpipe,
  267. procgetsockname,
  268. procGetcwd,
  269. procgetgroups,
  270. procsetgroups,
  271. procwait4,
  272. procgethostname,
  273. procutimes,
  274. procutimensat,
  275. procfcntl,
  276. procfutimesat,
  277. procaccept,
  278. proc__xnet_recvmsg,
  279. proc__xnet_sendmsg,
  280. procacct,
  281. proc__makedev,
  282. proc__major,
  283. proc__minor,
  284. procioctl,
  285. procpoll,
  286. procAccess,
  287. procAdjtime,
  288. procChdir,
  289. procChmod,
  290. procChown,
  291. procChroot,
  292. procClose,
  293. procCreat,
  294. procDup,
  295. procDup2,
  296. procExit,
  297. procFaccessat,
  298. procFchdir,
  299. procFchmod,
  300. procFchmodat,
  301. procFchown,
  302. procFchownat,
  303. procFdatasync,
  304. procFlock,
  305. procFpathconf,
  306. procFstat,
  307. procFstatat,
  308. procFstatvfs,
  309. procGetdents,
  310. procGetgid,
  311. procGetpid,
  312. procGetpgid,
  313. procGetpgrp,
  314. procGeteuid,
  315. procGetegid,
  316. procGetppid,
  317. procGetpriority,
  318. procGetrlimit,
  319. procGetrusage,
  320. procGettimeofday,
  321. procGetuid,
  322. procKill,
  323. procLchown,
  324. procLink,
  325. proc__xnet_llisten,
  326. procLstat,
  327. procMadvise,
  328. procMkdir,
  329. procMkdirat,
  330. procMkfifo,
  331. procMkfifoat,
  332. procMknod,
  333. procMknodat,
  334. procMlock,
  335. procMlockall,
  336. procMprotect,
  337. procMsync,
  338. procMunlock,
  339. procMunlockall,
  340. procNanosleep,
  341. procOpen,
  342. procOpenat,
  343. procPathconf,
  344. procPause,
  345. procPread,
  346. procPwrite,
  347. procread,
  348. procReadlink,
  349. procRename,
  350. procRenameat,
  351. procRmdir,
  352. proclseek,
  353. procSelect,
  354. procSetegid,
  355. procSeteuid,
  356. procSetgid,
  357. procSethostname,
  358. procSetpgid,
  359. procSetpriority,
  360. procSetregid,
  361. procSetreuid,
  362. procSetrlimit,
  363. procSetsid,
  364. procSetuid,
  365. procshutdown,
  366. procStat,
  367. procStatvfs,
  368. procSymlink,
  369. procSync,
  370. procTimes,
  371. procTruncate,
  372. procFsync,
  373. procFtruncate,
  374. procUmask,
  375. procUname,
  376. procumount,
  377. procUnlink,
  378. procUnlinkat,
  379. procUstat,
  380. procUtime,
  381. proc__xnet_bind,
  382. proc__xnet_connect,
  383. procmmap,
  384. procmunmap,
  385. procsendfile,
  386. proc__xnet_sendto,
  387. proc__xnet_socket,
  388. proc__xnet_socketpair,
  389. procwrite,
  390. proc__xnet_getsockopt,
  391. procgetpeername,
  392. procsetsockopt,
  393. procrecvfrom syscallFunc
  394. )
  395. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  396. func pipe(p *[2]_C_int) (n int, err error) {
  397. r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe)), 1, uintptr(unsafe.Pointer(p)), 0, 0, 0, 0, 0)
  398. n = int(r0)
  399. if e1 != 0 {
  400. err = e1
  401. }
  402. return
  403. }
  404. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  405. func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  406. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
  407. if e1 != 0 {
  408. err = e1
  409. }
  410. return
  411. }
  412. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  413. func Getcwd(buf []byte) (n int, err error) {
  414. var _p0 *byte
  415. if len(buf) > 0 {
  416. _p0 = &buf[0]
  417. }
  418. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
  419. n = int(r0)
  420. if e1 != 0 {
  421. err = e1
  422. }
  423. return
  424. }
  425. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  426. func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
  427. r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
  428. n = int(r0)
  429. if e1 != 0 {
  430. err = e1
  431. }
  432. return
  433. }
  434. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  435. func setgroups(ngid int, gid *_Gid_t) (err error) {
  436. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
  437. if e1 != 0 {
  438. err = e1
  439. }
  440. return
  441. }
  442. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  443. func wait4(pid int32, statusp *_C_int, options int, rusage *Rusage) (wpid int32, err error) {
  444. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwait4)), 4, uintptr(pid), uintptr(unsafe.Pointer(statusp)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
  445. wpid = int32(r0)
  446. if e1 != 0 {
  447. err = e1
  448. }
  449. return
  450. }
  451. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  452. func gethostname(buf []byte) (n int, err error) {
  453. var _p0 *byte
  454. if len(buf) > 0 {
  455. _p0 = &buf[0]
  456. }
  457. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0)
  458. n = int(r0)
  459. if e1 != 0 {
  460. err = e1
  461. }
  462. return
  463. }
  464. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  465. func utimes(path string, times *[2]Timeval) (err error) {
  466. var _p0 *byte
  467. _p0, err = BytePtrFromString(path)
  468. if err != nil {
  469. return
  470. }
  471. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0)
  472. if e1 != 0 {
  473. err = e1
  474. }
  475. return
  476. }
  477. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  478. func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) {
  479. var _p0 *byte
  480. _p0, err = BytePtrFromString(path)
  481. if err != nil {
  482. return
  483. }
  484. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0)
  485. if e1 != 0 {
  486. err = e1
  487. }
  488. return
  489. }
  490. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  491. func fcntl(fd int, cmd int, arg int) (val int, err error) {
  492. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
  493. val = int(r0)
  494. if e1 != 0 {
  495. err = e1
  496. }
  497. return
  498. }
  499. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  500. func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) {
  501. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0)
  502. if e1 != 0 {
  503. err = e1
  504. }
  505. return
  506. }
  507. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  508. func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  509. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
  510. fd = int(r0)
  511. if e1 != 0 {
  512. err = e1
  513. }
  514. return
  515. }
  516. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  517. func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  518. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_recvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
  519. n = int(r0)
  520. if e1 != 0 {
  521. err = e1
  522. }
  523. return
  524. }
  525. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  526. func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  527. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0)
  528. n = int(r0)
  529. if e1 != 0 {
  530. err = e1
  531. }
  532. return
  533. }
  534. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  535. func acct(path *byte) (err error) {
  536. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0)
  537. if e1 != 0 {
  538. err = e1
  539. }
  540. return
  541. }
  542. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  543. func __makedev(version int, major uint, minor uint) (val uint64) {
  544. r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__makedev)), 3, uintptr(version), uintptr(major), uintptr(minor), 0, 0, 0)
  545. val = uint64(r0)
  546. return
  547. }
  548. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  549. func __major(version int, dev uint64) (val uint) {
  550. r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__major)), 2, uintptr(version), uintptr(dev), 0, 0, 0, 0)
  551. val = uint(r0)
  552. return
  553. }
  554. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  555. func __minor(version int, dev uint64) (val uint) {
  556. r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__minor)), 2, uintptr(version), uintptr(dev), 0, 0, 0, 0)
  557. val = uint(r0)
  558. return
  559. }
  560. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  561. func ioctl(fd int, req uint, arg uintptr) (err error) {
  562. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0)
  563. if e1 != 0 {
  564. err = e1
  565. }
  566. return
  567. }
  568. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  569. func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
  570. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpoll)), 3, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout), 0, 0, 0)
  571. n = int(r0)
  572. if e1 != 0 {
  573. err = e1
  574. }
  575. return
  576. }
  577. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  578. func Access(path string, mode uint32) (err error) {
  579. var _p0 *byte
  580. _p0, err = BytePtrFromString(path)
  581. if err != nil {
  582. return
  583. }
  584. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
  585. if e1 != 0 {
  586. err = e1
  587. }
  588. return
  589. }
  590. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  591. func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
  592. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0)
  593. if e1 != 0 {
  594. err = e1
  595. }
  596. return
  597. }
  598. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  599. func Chdir(path string) (err error) {
  600. var _p0 *byte
  601. _p0, err = BytePtrFromString(path)
  602. if err != nil {
  603. return
  604. }
  605. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  606. if e1 != 0 {
  607. err = e1
  608. }
  609. return
  610. }
  611. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  612. func Chmod(path string, mode uint32) (err error) {
  613. var _p0 *byte
  614. _p0, err = BytePtrFromString(path)
  615. if err != nil {
  616. return
  617. }
  618. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
  619. if e1 != 0 {
  620. err = e1
  621. }
  622. return
  623. }
  624. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  625. func Chown(path string, uid int, gid int) (err error) {
  626. var _p0 *byte
  627. _p0, err = BytePtrFromString(path)
  628. if err != nil {
  629. return
  630. }
  631. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
  632. if e1 != 0 {
  633. err = e1
  634. }
  635. return
  636. }
  637. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  638. func Chroot(path string) (err error) {
  639. var _p0 *byte
  640. _p0, err = BytePtrFromString(path)
  641. if err != nil {
  642. return
  643. }
  644. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  645. if e1 != 0 {
  646. err = e1
  647. }
  648. return
  649. }
  650. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  651. func Close(fd int) (err error) {
  652. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  653. if e1 != 0 {
  654. err = e1
  655. }
  656. return
  657. }
  658. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  659. func Creat(path string, mode uint32) (fd int, err error) {
  660. var _p0 *byte
  661. _p0, err = BytePtrFromString(path)
  662. if err != nil {
  663. return
  664. }
  665. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
  666. fd = int(r0)
  667. if e1 != 0 {
  668. err = e1
  669. }
  670. return
  671. }
  672. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  673. func Dup(fd int) (nfd int, err error) {
  674. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  675. nfd = int(r0)
  676. if e1 != 0 {
  677. err = e1
  678. }
  679. return
  680. }
  681. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  682. func Dup2(oldfd int, newfd int) (err error) {
  683. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0)
  684. if e1 != 0 {
  685. err = e1
  686. }
  687. return
  688. }
  689. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  690. func Exit(code int) {
  691. sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0)
  692. return
  693. }
  694. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  695. func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
  696. var _p0 *byte
  697. _p0, err = BytePtrFromString(path)
  698. if err != nil {
  699. return
  700. }
  701. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFaccessat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
  702. if e1 != 0 {
  703. err = e1
  704. }
  705. return
  706. }
  707. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  708. func Fchdir(fd int) (err error) {
  709. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  710. if e1 != 0 {
  711. err = e1
  712. }
  713. return
  714. }
  715. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  716. func Fchmod(fd int, mode uint32) (err error) {
  717. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0)
  718. if e1 != 0 {
  719. err = e1
  720. }
  721. return
  722. }
  723. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  724. func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
  725. var _p0 *byte
  726. _p0, err = BytePtrFromString(path)
  727. if err != nil {
  728. return
  729. }
  730. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
  731. if e1 != 0 {
  732. err = e1
  733. }
  734. return
  735. }
  736. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  737. func Fchown(fd int, uid int, gid int) (err error) {
  738. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0)
  739. if e1 != 0 {
  740. err = e1
  741. }
  742. return
  743. }
  744. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  745. func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
  746. var _p0 *byte
  747. _p0, err = BytePtrFromString(path)
  748. if err != nil {
  749. return
  750. }
  751. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
  752. if e1 != 0 {
  753. err = e1
  754. }
  755. return
  756. }
  757. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  758. func Fdatasync(fd int) (err error) {
  759. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  760. if e1 != 0 {
  761. err = e1
  762. }
  763. return
  764. }
  765. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  766. func Flock(fd int, how int) (err error) {
  767. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFlock)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0)
  768. if e1 != 0 {
  769. err = e1
  770. }
  771. return
  772. }
  773. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  774. func Fpathconf(fd int, name int) (val int, err error) {
  775. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
  776. val = int(r0)
  777. if e1 != 0 {
  778. err = e1
  779. }
  780. return
  781. }
  782. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  783. func Fstat(fd int, stat *Stat_t) (err error) {
  784. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
  785. if e1 != 0 {
  786. err = e1
  787. }
  788. return
  789. }
  790. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  791. func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
  792. var _p0 *byte
  793. _p0, err = BytePtrFromString(path)
  794. if err != nil {
  795. return
  796. }
  797. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  798. if e1 != 0 {
  799. err = e1
  800. }
  801. return
  802. }
  803. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  804. func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) {
  805. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0)
  806. if e1 != 0 {
  807. err = e1
  808. }
  809. return
  810. }
  811. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  812. func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) {
  813. var _p0 *byte
  814. if len(buf) > 0 {
  815. _p0 = &buf[0]
  816. }
  817. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
  818. n = int(r0)
  819. if e1 != 0 {
  820. err = e1
  821. }
  822. return
  823. }
  824. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  825. func Getgid() (gid int) {
  826. r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0)
  827. gid = int(r0)
  828. return
  829. }
  830. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  831. func Getpid() (pid int) {
  832. r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0)
  833. pid = int(r0)
  834. return
  835. }
  836. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  837. func Getpgid(pid int) (pgid int, err error) {
  838. r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0)
  839. pgid = int(r0)
  840. if e1 != 0 {
  841. err = e1
  842. }
  843. return
  844. }
  845. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  846. func Getpgrp() (pgid int, err error) {
  847. r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0)
  848. pgid = int(r0)
  849. if e1 != 0 {
  850. err = e1
  851. }
  852. return
  853. }
  854. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  855. func Geteuid() (euid int) {
  856. r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0)
  857. euid = int(r0)
  858. return
  859. }
  860. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  861. func Getegid() (egid int) {
  862. r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0)
  863. egid = int(r0)
  864. return
  865. }
  866. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  867. func Getppid() (ppid int) {
  868. r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0)
  869. ppid = int(r0)
  870. return
  871. }
  872. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  873. func Getpriority(which int, who int) (n int, err error) {
  874. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0)
  875. n = int(r0)
  876. if e1 != 0 {
  877. err = e1
  878. }
  879. return
  880. }
  881. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  882. func Getrlimit(which int, lim *Rlimit) (err error) {
  883. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
  884. if e1 != 0 {
  885. err = e1
  886. }
  887. return
  888. }
  889. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  890. func Getrusage(who int, rusage *Rusage) (err error) {
  891. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0)
  892. if e1 != 0 {
  893. err = e1
  894. }
  895. return
  896. }
  897. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  898. func Gettimeofday(tv *Timeval) (err error) {
  899. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0)
  900. if e1 != 0 {
  901. err = e1
  902. }
  903. return
  904. }
  905. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  906. func Getuid() (uid int) {
  907. r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0)
  908. uid = int(r0)
  909. return
  910. }
  911. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  912. func Kill(pid int, signum syscall.Signal) (err error) {
  913. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0)
  914. if e1 != 0 {
  915. err = e1
  916. }
  917. return
  918. }
  919. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  920. func Lchown(path string, uid int, gid int) (err error) {
  921. var _p0 *byte
  922. _p0, err = BytePtrFromString(path)
  923. if err != nil {
  924. return
  925. }
  926. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0)
  927. if e1 != 0 {
  928. err = e1
  929. }
  930. return
  931. }
  932. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  933. func Link(path string, link string) (err error) {
  934. var _p0 *byte
  935. _p0, err = BytePtrFromString(path)
  936. if err != nil {
  937. return
  938. }
  939. var _p1 *byte
  940. _p1, err = BytePtrFromString(link)
  941. if err != nil {
  942. return
  943. }
  944. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  945. if e1 != 0 {
  946. err = e1
  947. }
  948. return
  949. }
  950. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  951. func Listen(s int, backlog int) (err error) {
  952. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_llisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0)
  953. if e1 != 0 {
  954. err = e1
  955. }
  956. return
  957. }
  958. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  959. func Lstat(path string, stat *Stat_t) (err error) {
  960. var _p0 *byte
  961. _p0, err = BytePtrFromString(path)
  962. if err != nil {
  963. return
  964. }
  965. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
  966. if e1 != 0 {
  967. err = e1
  968. }
  969. return
  970. }
  971. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  972. func Madvise(b []byte, advice int) (err error) {
  973. var _p0 *byte
  974. if len(b) > 0 {
  975. _p0 = &b[0]
  976. }
  977. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0)
  978. if e1 != 0 {
  979. err = e1
  980. }
  981. return
  982. }
  983. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  984. func Mkdir(path string, mode uint32) (err error) {
  985. var _p0 *byte
  986. _p0, err = BytePtrFromString(path)
  987. if err != nil {
  988. return
  989. }
  990. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
  991. if e1 != 0 {
  992. err = e1
  993. }
  994. return
  995. }
  996. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  997. func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  998. var _p0 *byte
  999. _p0, err = BytePtrFromString(path)
  1000. if err != nil {
  1001. return
  1002. }
  1003. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
  1004. if e1 != 0 {
  1005. err = e1
  1006. }
  1007. return
  1008. }
  1009. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1010. func Mkfifo(path string, mode uint32) (err error) {
  1011. var _p0 *byte
  1012. _p0, err = BytePtrFromString(path)
  1013. if err != nil {
  1014. return
  1015. }
  1016. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0)
  1017. if e1 != 0 {
  1018. err = e1
  1019. }
  1020. return
  1021. }
  1022. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1023. func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
  1024. var _p0 *byte
  1025. _p0, err = BytePtrFromString(path)
  1026. if err != nil {
  1027. return
  1028. }
  1029. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0)
  1030. if e1 != 0 {
  1031. err = e1
  1032. }
  1033. return
  1034. }
  1035. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1036. func Mknod(path string, mode uint32, dev int) (err error) {
  1037. var _p0 *byte
  1038. _p0, err = BytePtrFromString(path)
  1039. if err != nil {
  1040. return
  1041. }
  1042. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0)
  1043. if e1 != 0 {
  1044. err = e1
  1045. }
  1046. return
  1047. }
  1048. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1049. func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  1050. var _p0 *byte
  1051. _p0, err = BytePtrFromString(path)
  1052. if err != nil {
  1053. return
  1054. }
  1055. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
  1056. if e1 != 0 {
  1057. err = e1
  1058. }
  1059. return
  1060. }
  1061. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1062. func Mlock(b []byte) (err error) {
  1063. var _p0 *byte
  1064. if len(b) > 0 {
  1065. _p0 = &b[0]
  1066. }
  1067. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
  1068. if e1 != 0 {
  1069. err = e1
  1070. }
  1071. return
  1072. }
  1073. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1074. func Mlockall(flags int) (err error) {
  1075. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0)
  1076. if e1 != 0 {
  1077. err = e1
  1078. }
  1079. return
  1080. }
  1081. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1082. func Mprotect(b []byte, prot int) (err error) {
  1083. var _p0 *byte
  1084. if len(b) > 0 {
  1085. _p0 = &b[0]
  1086. }
  1087. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0)
  1088. if e1 != 0 {
  1089. err = e1
  1090. }
  1091. return
  1092. }
  1093. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1094. func Msync(b []byte, flags int) (err error) {
  1095. var _p0 *byte
  1096. if len(b) > 0 {
  1097. _p0 = &b[0]
  1098. }
  1099. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMsync)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(flags), 0, 0, 0)
  1100. if e1 != 0 {
  1101. err = e1
  1102. }
  1103. return
  1104. }
  1105. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1106. func Munlock(b []byte) (err error) {
  1107. var _p0 *byte
  1108. if len(b) > 0 {
  1109. _p0 = &b[0]
  1110. }
  1111. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0)
  1112. if e1 != 0 {
  1113. err = e1
  1114. }
  1115. return
  1116. }
  1117. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1118. func Munlockall() (err error) {
  1119. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0)
  1120. if e1 != 0 {
  1121. err = e1
  1122. }
  1123. return
  1124. }
  1125. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1126. func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  1127. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0)
  1128. if e1 != 0 {
  1129. err = e1
  1130. }
  1131. return
  1132. }
  1133. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1134. func Open(path string, mode int, perm uint32) (fd int, err error) {
  1135. var _p0 *byte
  1136. _p0, err = BytePtrFromString(path)
  1137. if err != nil {
  1138. return
  1139. }
  1140. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0)
  1141. fd = int(r0)
  1142. if e1 != 0 {
  1143. err = e1
  1144. }
  1145. return
  1146. }
  1147. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1148. func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
  1149. var _p0 *byte
  1150. _p0, err = BytePtrFromString(path)
  1151. if err != nil {
  1152. return
  1153. }
  1154. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
  1155. fd = int(r0)
  1156. if e1 != 0 {
  1157. err = e1
  1158. }
  1159. return
  1160. }
  1161. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1162. func Pathconf(path string, name int) (val int, err error) {
  1163. var _p0 *byte
  1164. _p0, err = BytePtrFromString(path)
  1165. if err != nil {
  1166. return
  1167. }
  1168. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0)
  1169. val = int(r0)
  1170. if e1 != 0 {
  1171. err = e1
  1172. }
  1173. return
  1174. }
  1175. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1176. func Pause() (err error) {
  1177. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0)
  1178. if e1 != 0 {
  1179. err = e1
  1180. }
  1181. return
  1182. }
  1183. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1184. func Pread(fd int, p []byte, offset int64) (n int, err error) {
  1185. var _p0 *byte
  1186. if len(p) > 0 {
  1187. _p0 = &p[0]
  1188. }
  1189. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
  1190. n = int(r0)
  1191. if e1 != 0 {
  1192. err = e1
  1193. }
  1194. return
  1195. }
  1196. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1197. func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  1198. var _p0 *byte
  1199. if len(p) > 0 {
  1200. _p0 = &p[0]
  1201. }
  1202. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0)
  1203. n = int(r0)
  1204. if e1 != 0 {
  1205. err = e1
  1206. }
  1207. return
  1208. }
  1209. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1210. func read(fd int, p []byte) (n int, err error) {
  1211. var _p0 *byte
  1212. if len(p) > 0 {
  1213. _p0 = &p[0]
  1214. }
  1215. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1216. n = int(r0)
  1217. if e1 != 0 {
  1218. err = e1
  1219. }
  1220. return
  1221. }
  1222. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1223. func Readlink(path string, buf []byte) (n int, err error) {
  1224. var _p0 *byte
  1225. _p0, err = BytePtrFromString(path)
  1226. if err != nil {
  1227. return
  1228. }
  1229. var _p1 *byte
  1230. if len(buf) > 0 {
  1231. _p1 = &buf[0]
  1232. }
  1233. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0)
  1234. n = int(r0)
  1235. if e1 != 0 {
  1236. err = e1
  1237. }
  1238. return
  1239. }
  1240. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1241. func Rename(from string, to string) (err error) {
  1242. var _p0 *byte
  1243. _p0, err = BytePtrFromString(from)
  1244. if err != nil {
  1245. return
  1246. }
  1247. var _p1 *byte
  1248. _p1, err = BytePtrFromString(to)
  1249. if err != nil {
  1250. return
  1251. }
  1252. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1253. if e1 != 0 {
  1254. err = e1
  1255. }
  1256. return
  1257. }
  1258. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1259. func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  1260. var _p0 *byte
  1261. _p0, err = BytePtrFromString(oldpath)
  1262. if err != nil {
  1263. return
  1264. }
  1265. var _p1 *byte
  1266. _p1, err = BytePtrFromString(newpath)
  1267. if err != nil {
  1268. return
  1269. }
  1270. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  1271. if e1 != 0 {
  1272. err = e1
  1273. }
  1274. return
  1275. }
  1276. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1277. func Rmdir(path string) (err error) {
  1278. var _p0 *byte
  1279. _p0, err = BytePtrFromString(path)
  1280. if err != nil {
  1281. return
  1282. }
  1283. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1284. if e1 != 0 {
  1285. err = e1
  1286. }
  1287. return
  1288. }
  1289. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1290. func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
  1291. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0)
  1292. newoffset = int64(r0)
  1293. if e1 != 0 {
  1294. err = e1
  1295. }
  1296. return
  1297. }
  1298. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1299. func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  1300. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSelect)), 5, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1301. n = int(r0)
  1302. if e1 != 0 {
  1303. err = e1
  1304. }
  1305. return
  1306. }
  1307. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1308. func Setegid(egid int) (err error) {
  1309. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
  1310. if e1 != 0 {
  1311. err = e1
  1312. }
  1313. return
  1314. }
  1315. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1316. func Seteuid(euid int) (err error) {
  1317. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
  1318. if e1 != 0 {
  1319. err = e1
  1320. }
  1321. return
  1322. }
  1323. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1324. func Setgid(gid int) (err error) {
  1325. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
  1326. if e1 != 0 {
  1327. err = e1
  1328. }
  1329. return
  1330. }
  1331. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1332. func Sethostname(p []byte) (err error) {
  1333. var _p0 *byte
  1334. if len(p) > 0 {
  1335. _p0 = &p[0]
  1336. }
  1337. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0)
  1338. if e1 != 0 {
  1339. err = e1
  1340. }
  1341. return
  1342. }
  1343. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1344. func Setpgid(pid int, pgid int) (err error) {
  1345. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
  1346. if e1 != 0 {
  1347. err = e1
  1348. }
  1349. return
  1350. }
  1351. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1352. func Setpriority(which int, who int, prio int) (err error) {
  1353. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
  1354. if e1 != 0 {
  1355. err = e1
  1356. }
  1357. return
  1358. }
  1359. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1360. func Setregid(rgid int, egid int) (err error) {
  1361. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
  1362. if e1 != 0 {
  1363. err = e1
  1364. }
  1365. return
  1366. }
  1367. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1368. func Setreuid(ruid int, euid int) (err error) {
  1369. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0)
  1370. if e1 != 0 {
  1371. err = e1
  1372. }
  1373. return
  1374. }
  1375. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1376. func Setrlimit(which int, lim *Rlimit) (err error) {
  1377. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0)
  1378. if e1 != 0 {
  1379. err = e1
  1380. }
  1381. return
  1382. }
  1383. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1384. func Setsid() (pid int, err error) {
  1385. r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0)
  1386. pid = int(r0)
  1387. if e1 != 0 {
  1388. err = e1
  1389. }
  1390. return
  1391. }
  1392. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1393. func Setuid(uid int) (err error) {
  1394. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
  1395. if e1 != 0 {
  1396. err = e1
  1397. }
  1398. return
  1399. }
  1400. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1401. func Shutdown(s int, how int) (err error) {
  1402. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
  1403. if e1 != 0 {
  1404. err = e1
  1405. }
  1406. return
  1407. }
  1408. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1409. func Stat(path string, stat *Stat_t) (err error) {
  1410. var _p0 *byte
  1411. _p0, err = BytePtrFromString(path)
  1412. if err != nil {
  1413. return
  1414. }
  1415. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
  1416. if e1 != 0 {
  1417. err = e1
  1418. }
  1419. return
  1420. }
  1421. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1422. func Statvfs(path string, vfsstat *Statvfs_t) (err error) {
  1423. var _p0 *byte
  1424. _p0, err = BytePtrFromString(path)
  1425. if err != nil {
  1426. return
  1427. }
  1428. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStatvfs)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0)
  1429. if e1 != 0 {
  1430. err = e1
  1431. }
  1432. return
  1433. }
  1434. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1435. func Symlink(path string, link string) (err error) {
  1436. var _p0 *byte
  1437. _p0, err = BytePtrFromString(path)
  1438. if err != nil {
  1439. return
  1440. }
  1441. var _p1 *byte
  1442. _p1, err = BytePtrFromString(link)
  1443. if err != nil {
  1444. return
  1445. }
  1446. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1447. if e1 != 0 {
  1448. err = e1
  1449. }
  1450. return
  1451. }
  1452. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1453. func Sync() (err error) {
  1454. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0)
  1455. if e1 != 0 {
  1456. err = e1
  1457. }
  1458. return
  1459. }
  1460. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1461. func Times(tms *Tms) (ticks uintptr, err error) {
  1462. r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0)
  1463. ticks = uintptr(r0)
  1464. if e1 != 0 {
  1465. err = e1
  1466. }
  1467. return
  1468. }
  1469. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1470. func Truncate(path string, length int64) (err error) {
  1471. var _p0 *byte
  1472. _p0, err = BytePtrFromString(path)
  1473. if err != nil {
  1474. return
  1475. }
  1476. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
  1477. if e1 != 0 {
  1478. err = e1
  1479. }
  1480. return
  1481. }
  1482. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1483. func Fsync(fd int) (err error) {
  1484. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  1485. if e1 != 0 {
  1486. err = e1
  1487. }
  1488. return
  1489. }
  1490. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1491. func Ftruncate(fd int, length int64) (err error) {
  1492. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
  1493. if e1 != 0 {
  1494. err = e1
  1495. }
  1496. return
  1497. }
  1498. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1499. func Umask(mask int) (oldmask int) {
  1500. r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
  1501. oldmask = int(r0)
  1502. return
  1503. }
  1504. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1505. func Uname(buf *Utsname) (err error) {
  1506. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
  1507. if e1 != 0 {
  1508. err = e1
  1509. }
  1510. return
  1511. }
  1512. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1513. func Unmount(target string, flags int) (err error) {
  1514. var _p0 *byte
  1515. _p0, err = BytePtrFromString(target)
  1516. if err != nil {
  1517. return
  1518. }
  1519. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0)
  1520. if e1 != 0 {
  1521. err = e1
  1522. }
  1523. return
  1524. }
  1525. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1526. func Unlink(path string) (err error) {
  1527. var _p0 *byte
  1528. _p0, err = BytePtrFromString(path)
  1529. if err != nil {
  1530. return
  1531. }
  1532. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1533. if e1 != 0 {
  1534. err = e1
  1535. }
  1536. return
  1537. }
  1538. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1539. func Unlinkat(dirfd int, path string, flags int) (err error) {
  1540. var _p0 *byte
  1541. _p0, err = BytePtrFromString(path)
  1542. if err != nil {
  1543. return
  1544. }
  1545. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0)
  1546. if e1 != 0 {
  1547. err = e1
  1548. }
  1549. return
  1550. }
  1551. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1552. func Ustat(dev int, ubuf *Ustat_t) (err error) {
  1553. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0)
  1554. if e1 != 0 {
  1555. err = e1
  1556. }
  1557. return
  1558. }
  1559. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1560. func Utime(path string, buf *Utimbuf) (err error) {
  1561. var _p0 *byte
  1562. _p0, err = BytePtrFromString(path)
  1563. if err != nil {
  1564. return
  1565. }
  1566. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
  1567. if e1 != 0 {
  1568. err = e1
  1569. }
  1570. return
  1571. }
  1572. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1573. func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1574. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1575. if e1 != 0 {
  1576. err = e1
  1577. }
  1578. return
  1579. }
  1580. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1581. func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1582. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1583. if e1 != 0 {
  1584. err = e1
  1585. }
  1586. return
  1587. }
  1588. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1589. func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1590. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
  1591. ret = uintptr(r0)
  1592. if e1 != 0 {
  1593. err = e1
  1594. }
  1595. return
  1596. }
  1597. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1598. func munmap(addr uintptr, length uintptr) (err error) {
  1599. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
  1600. if e1 != 0 {
  1601. err = e1
  1602. }
  1603. return
  1604. }
  1605. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1606. func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  1607. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendfile)), 4, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  1608. written = int(r0)
  1609. if e1 != 0 {
  1610. err = e1
  1611. }
  1612. return
  1613. }
  1614. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1615. func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1616. var _p0 *byte
  1617. if len(buf) > 0 {
  1618. _p0 = &buf[0]
  1619. }
  1620. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1621. if e1 != 0 {
  1622. err = e1
  1623. }
  1624. return
  1625. }
  1626. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1627. func socket(domain int, typ int, proto int) (fd int, err error) {
  1628. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
  1629. fd = int(r0)
  1630. if e1 != 0 {
  1631. err = e1
  1632. }
  1633. return
  1634. }
  1635. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1636. func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  1637. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  1638. if e1 != 0 {
  1639. err = e1
  1640. }
  1641. return
  1642. }
  1643. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1644. func write(fd int, p []byte) (n int, err error) {
  1645. var _p0 *byte
  1646. if len(p) > 0 {
  1647. _p0 = &p[0]
  1648. }
  1649. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1650. n = int(r0)
  1651. if e1 != 0 {
  1652. err = e1
  1653. }
  1654. return
  1655. }
  1656. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1657. func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  1658. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  1659. if e1 != 0 {
  1660. err = e1
  1661. }
  1662. return
  1663. }
  1664. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1665. func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1666. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
  1667. if e1 != 0 {
  1668. err = e1
  1669. }
  1670. return
  1671. }
  1672. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1673. func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  1674. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  1675. if e1 != 0 {
  1676. err = e1
  1677. }
  1678. return
  1679. }
  1680. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1681. func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  1682. var _p0 *byte
  1683. if len(p) > 0 {
  1684. _p0 = &p[0]
  1685. }
  1686. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  1687. n = int(r0)
  1688. if e1 != 0 {
  1689. err = e1
  1690. }
  1691. return
  1692. }