A lightweight mechanism to provide an *instant kickstart* to a Go web server instance upon changing any Go source files under the project directory (and its subdirectories).

zsyscall_solaris_amd64.go 42KB

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