zsyscall_solaris_amd64.go 57 KB

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