zsyscall_solaris_amd64.go 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953
  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(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
  1300. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSelect)), 5, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1301. if e1 != 0 {
  1302. err = e1
  1303. }
  1304. return
  1305. }
  1306. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1307. func Setegid(egid int) (err error) {
  1308. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0)
  1309. if e1 != 0 {
  1310. err = e1
  1311. }
  1312. return
  1313. }
  1314. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1315. func Seteuid(euid int) (err error) {
  1316. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0)
  1317. if e1 != 0 {
  1318. err = e1
  1319. }
  1320. return
  1321. }
  1322. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1323. func Setgid(gid int) (err error) {
  1324. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0)
  1325. if e1 != 0 {
  1326. err = e1
  1327. }
  1328. return
  1329. }
  1330. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1331. func Sethostname(p []byte) (err error) {
  1332. var _p0 *byte
  1333. if len(p) > 0 {
  1334. _p0 = &p[0]
  1335. }
  1336. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0)
  1337. if e1 != 0 {
  1338. err = e1
  1339. }
  1340. return
  1341. }
  1342. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1343. func Setpgid(pid int, pgid int) (err error) {
  1344. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0)
  1345. if e1 != 0 {
  1346. err = e1
  1347. }
  1348. return
  1349. }
  1350. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1351. func Setpriority(which int, who int, prio int) (err error) {
  1352. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0)
  1353. if e1 != 0 {
  1354. err = e1
  1355. }
  1356. return
  1357. }
  1358. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1359. func Setregid(rgid int, egid int) (err error) {
  1360. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0)
  1361. if e1 != 0 {
  1362. err = e1
  1363. }
  1364. return
  1365. }
  1366. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1367. func Setreuid(ruid int, euid int) (err error) {
  1368. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 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 Setrlimit(which int, lim *Rlimit) (err error) {
  1376. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 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 Setsid() (pid int, err error) {
  1384. r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0)
  1385. pid = int(r0)
  1386. if e1 != 0 {
  1387. err = e1
  1388. }
  1389. return
  1390. }
  1391. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1392. func Setuid(uid int) (err error) {
  1393. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0)
  1394. if e1 != 0 {
  1395. err = e1
  1396. }
  1397. return
  1398. }
  1399. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1400. func Shutdown(s int, how int) (err error) {
  1401. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0)
  1402. if e1 != 0 {
  1403. err = e1
  1404. }
  1405. return
  1406. }
  1407. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1408. func Stat(path string, stat *Stat_t) (err error) {
  1409. var _p0 *byte
  1410. _p0, err = BytePtrFromString(path)
  1411. if err != nil {
  1412. return
  1413. }
  1414. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0)
  1415. if e1 != 0 {
  1416. err = e1
  1417. }
  1418. return
  1419. }
  1420. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1421. func Statvfs(path string, vfsstat *Statvfs_t) (err error) {
  1422. var _p0 *byte
  1423. _p0, err = BytePtrFromString(path)
  1424. if err != nil {
  1425. return
  1426. }
  1427. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStatvfs)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0)
  1428. if e1 != 0 {
  1429. err = e1
  1430. }
  1431. return
  1432. }
  1433. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1434. func Symlink(path string, link string) (err error) {
  1435. var _p0 *byte
  1436. _p0, err = BytePtrFromString(path)
  1437. if err != nil {
  1438. return
  1439. }
  1440. var _p1 *byte
  1441. _p1, err = BytePtrFromString(link)
  1442. if err != nil {
  1443. return
  1444. }
  1445. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0)
  1446. if e1 != 0 {
  1447. err = e1
  1448. }
  1449. return
  1450. }
  1451. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1452. func Sync() (err error) {
  1453. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0)
  1454. if e1 != 0 {
  1455. err = e1
  1456. }
  1457. return
  1458. }
  1459. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1460. func Times(tms *Tms) (ticks uintptr, err error) {
  1461. r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0)
  1462. ticks = uintptr(r0)
  1463. if e1 != 0 {
  1464. err = e1
  1465. }
  1466. return
  1467. }
  1468. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1469. func Truncate(path string, length int64) (err error) {
  1470. var _p0 *byte
  1471. _p0, err = BytePtrFromString(path)
  1472. if err != nil {
  1473. return
  1474. }
  1475. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0)
  1476. if e1 != 0 {
  1477. err = e1
  1478. }
  1479. return
  1480. }
  1481. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1482. func Fsync(fd int) (err error) {
  1483. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0)
  1484. if e1 != 0 {
  1485. err = e1
  1486. }
  1487. return
  1488. }
  1489. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1490. func Ftruncate(fd int, length int64) (err error) {
  1491. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0)
  1492. if e1 != 0 {
  1493. err = e1
  1494. }
  1495. return
  1496. }
  1497. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1498. func Umask(mask int) (oldmask int) {
  1499. r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0)
  1500. oldmask = int(r0)
  1501. return
  1502. }
  1503. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1504. func Uname(buf *Utsname) (err error) {
  1505. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0)
  1506. if e1 != 0 {
  1507. err = e1
  1508. }
  1509. return
  1510. }
  1511. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1512. func Unmount(target string, flags int) (err error) {
  1513. var _p0 *byte
  1514. _p0, err = BytePtrFromString(target)
  1515. if err != nil {
  1516. return
  1517. }
  1518. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0)
  1519. if e1 != 0 {
  1520. err = e1
  1521. }
  1522. return
  1523. }
  1524. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1525. func Unlink(path string) (err error) {
  1526. var _p0 *byte
  1527. _p0, err = BytePtrFromString(path)
  1528. if err != nil {
  1529. return
  1530. }
  1531. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0)
  1532. if e1 != 0 {
  1533. err = e1
  1534. }
  1535. return
  1536. }
  1537. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1538. func Unlinkat(dirfd int, path string, flags int) (err error) {
  1539. var _p0 *byte
  1540. _p0, err = BytePtrFromString(path)
  1541. if err != nil {
  1542. return
  1543. }
  1544. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0)
  1545. if e1 != 0 {
  1546. err = e1
  1547. }
  1548. return
  1549. }
  1550. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1551. func Ustat(dev int, ubuf *Ustat_t) (err error) {
  1552. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0)
  1553. if e1 != 0 {
  1554. err = e1
  1555. }
  1556. return
  1557. }
  1558. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1559. func Utime(path string, buf *Utimbuf) (err error) {
  1560. var _p0 *byte
  1561. _p0, err = BytePtrFromString(path)
  1562. if err != nil {
  1563. return
  1564. }
  1565. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0)
  1566. if e1 != 0 {
  1567. err = e1
  1568. }
  1569. return
  1570. }
  1571. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1572. func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1573. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1574. if e1 != 0 {
  1575. err = e1
  1576. }
  1577. return
  1578. }
  1579. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1580. func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  1581. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0)
  1582. if e1 != 0 {
  1583. err = e1
  1584. }
  1585. return
  1586. }
  1587. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1588. func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  1589. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
  1590. ret = uintptr(r0)
  1591. if e1 != 0 {
  1592. err = e1
  1593. }
  1594. return
  1595. }
  1596. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1597. func munmap(addr uintptr, length uintptr) (err error) {
  1598. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0)
  1599. if e1 != 0 {
  1600. err = e1
  1601. }
  1602. return
  1603. }
  1604. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1605. func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  1606. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendfile)), 4, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  1607. written = int(r0)
  1608. if e1 != 0 {
  1609. err = e1
  1610. }
  1611. return
  1612. }
  1613. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1614. func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  1615. var _p0 *byte
  1616. if len(buf) > 0 {
  1617. _p0 = &buf[0]
  1618. }
  1619. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  1620. if e1 != 0 {
  1621. err = e1
  1622. }
  1623. return
  1624. }
  1625. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1626. func socket(domain int, typ int, proto int) (fd int, err error) {
  1627. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0)
  1628. fd = int(r0)
  1629. if e1 != 0 {
  1630. err = e1
  1631. }
  1632. return
  1633. }
  1634. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1635. func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  1636. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  1637. if e1 != 0 {
  1638. err = e1
  1639. }
  1640. return
  1641. }
  1642. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1643. func write(fd int, p []byte) (n int, err error) {
  1644. var _p0 *byte
  1645. if len(p) > 0 {
  1646. _p0 = &p[0]
  1647. }
  1648. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0)
  1649. n = int(r0)
  1650. if e1 != 0 {
  1651. err = e1
  1652. }
  1653. return
  1654. }
  1655. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1656. func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  1657. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  1658. if e1 != 0 {
  1659. err = e1
  1660. }
  1661. return
  1662. }
  1663. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1664. func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  1665. _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
  1666. if e1 != 0 {
  1667. err = e1
  1668. }
  1669. return
  1670. }
  1671. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1672. func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  1673. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  1674. if e1 != 0 {
  1675. err = e1
  1676. }
  1677. return
  1678. }
  1679. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1680. func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  1681. var _p0 *byte
  1682. if len(p) > 0 {
  1683. _p0 = &p[0]
  1684. }
  1685. 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)))
  1686. n = int(r0)
  1687. if e1 != 0 {
  1688. err = e1
  1689. }
  1690. return
  1691. }