zsyscall_aix_ppc64.go 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442
  1. // go run mksyscall_aix_ppc64.go -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build aix,ppc64
  4. package unix
  5. import (
  6. "unsafe"
  7. )
  8. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  9. func utimes(path string, times *[2]Timeval) (err error) {
  10. var _p0 *byte
  11. _p0, err = BytePtrFromString(path)
  12. if err != nil {
  13. return
  14. }
  15. _, e1 := callutimes(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
  16. if e1 != 0 {
  17. err = errnoErr(e1)
  18. }
  19. return
  20. }
  21. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  22. func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
  23. var _p0 *byte
  24. _p0, err = BytePtrFromString(path)
  25. if err != nil {
  26. return
  27. }
  28. _, e1 := callutimensat(dirfd, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), flag)
  29. if e1 != 0 {
  30. err = errnoErr(e1)
  31. }
  32. return
  33. }
  34. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  35. func getcwd(buf []byte) (err error) {
  36. var _p0 *byte
  37. if len(buf) > 0 {
  38. _p0 = &buf[0]
  39. }
  40. _, e1 := callgetcwd(uintptr(unsafe.Pointer(_p0)), len(buf))
  41. if e1 != 0 {
  42. err = errnoErr(e1)
  43. }
  44. return
  45. }
  46. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  47. func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  48. r0, e1 := callaccept(s, uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  49. fd = int(r0)
  50. if e1 != 0 {
  51. err = errnoErr(e1)
  52. }
  53. return
  54. }
  55. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  56. func getdirent(fd int, buf []byte) (n int, err error) {
  57. var _p0 *byte
  58. if len(buf) > 0 {
  59. _p0 = &buf[0]
  60. }
  61. r0, e1 := callgetdirent(fd, uintptr(unsafe.Pointer(_p0)), len(buf))
  62. n = int(r0)
  63. if e1 != 0 {
  64. err = errnoErr(e1)
  65. }
  66. return
  67. }
  68. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  69. func wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error) {
  70. r0, e1 := callwait4(int(pid), uintptr(unsafe.Pointer(status)), options, uintptr(unsafe.Pointer(rusage)))
  71. wpid = Pid_t(r0)
  72. if e1 != 0 {
  73. err = errnoErr(e1)
  74. }
  75. return
  76. }
  77. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  78. func ioctl(fd int, req uint, arg uintptr) (err error) {
  79. _, e1 := callioctl(fd, int(req), arg)
  80. if e1 != 0 {
  81. err = errnoErr(e1)
  82. }
  83. return
  84. }
  85. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  86. func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) {
  87. r0, e1 := callfcntl(fd, cmd, uintptr(arg))
  88. r = int(r0)
  89. if e1 != 0 {
  90. err = errnoErr(e1)
  91. }
  92. return
  93. }
  94. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  95. func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) {
  96. _, e1 := callfcntl(fd, cmd, uintptr(unsafe.Pointer(lk)))
  97. if e1 != 0 {
  98. err = errnoErr(e1)
  99. }
  100. return
  101. }
  102. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  103. func fcntl(fd int, cmd int, arg int) (val int, err error) {
  104. r0, e1 := callfcntl(uintptr(fd), cmd, uintptr(arg))
  105. val = int(r0)
  106. if e1 != 0 {
  107. err = errnoErr(e1)
  108. }
  109. return
  110. }
  111. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  112. func Acct(path string) (err error) {
  113. var _p0 *byte
  114. _p0, err = BytePtrFromString(path)
  115. if err != nil {
  116. return
  117. }
  118. _, e1 := callacct(uintptr(unsafe.Pointer(_p0)))
  119. if e1 != 0 {
  120. err = errnoErr(e1)
  121. }
  122. return
  123. }
  124. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  125. func Chdir(path string) (err error) {
  126. var _p0 *byte
  127. _p0, err = BytePtrFromString(path)
  128. if err != nil {
  129. return
  130. }
  131. _, e1 := callchdir(uintptr(unsafe.Pointer(_p0)))
  132. if e1 != 0 {
  133. err = errnoErr(e1)
  134. }
  135. return
  136. }
  137. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  138. func Chroot(path string) (err error) {
  139. var _p0 *byte
  140. _p0, err = BytePtrFromString(path)
  141. if err != nil {
  142. return
  143. }
  144. _, e1 := callchroot(uintptr(unsafe.Pointer(_p0)))
  145. if e1 != 0 {
  146. err = errnoErr(e1)
  147. }
  148. return
  149. }
  150. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  151. func Close(fd int) (err error) {
  152. _, e1 := callclose(fd)
  153. if e1 != 0 {
  154. err = errnoErr(e1)
  155. }
  156. return
  157. }
  158. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  159. func Dup(oldfd int) (fd int, err error) {
  160. r0, e1 := calldup(oldfd)
  161. fd = int(r0)
  162. if e1 != 0 {
  163. err = errnoErr(e1)
  164. }
  165. return
  166. }
  167. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  168. func Exit(code int) {
  169. callexit(code)
  170. return
  171. }
  172. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  173. func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
  174. var _p0 *byte
  175. _p0, err = BytePtrFromString(path)
  176. if err != nil {
  177. return
  178. }
  179. _, e1 := callfaccessat(dirfd, uintptr(unsafe.Pointer(_p0)), mode, flags)
  180. if e1 != 0 {
  181. err = errnoErr(e1)
  182. }
  183. return
  184. }
  185. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  186. func Fchdir(fd int) (err error) {
  187. _, e1 := callfchdir(fd)
  188. if e1 != 0 {
  189. err = errnoErr(e1)
  190. }
  191. return
  192. }
  193. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  194. func Fchmod(fd int, mode uint32) (err error) {
  195. _, e1 := callfchmod(fd, mode)
  196. if e1 != 0 {
  197. err = errnoErr(e1)
  198. }
  199. return
  200. }
  201. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  202. func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
  203. var _p0 *byte
  204. _p0, err = BytePtrFromString(path)
  205. if err != nil {
  206. return
  207. }
  208. _, e1 := callfchmodat(dirfd, uintptr(unsafe.Pointer(_p0)), mode, flags)
  209. if e1 != 0 {
  210. err = errnoErr(e1)
  211. }
  212. return
  213. }
  214. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  215. func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
  216. var _p0 *byte
  217. _p0, err = BytePtrFromString(path)
  218. if err != nil {
  219. return
  220. }
  221. _, e1 := callfchownat(dirfd, uintptr(unsafe.Pointer(_p0)), uid, gid, flags)
  222. if e1 != 0 {
  223. err = errnoErr(e1)
  224. }
  225. return
  226. }
  227. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  228. func Fdatasync(fd int) (err error) {
  229. _, e1 := callfdatasync(fd)
  230. if e1 != 0 {
  231. err = errnoErr(e1)
  232. }
  233. return
  234. }
  235. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  236. func Fsync(fd int) (err error) {
  237. _, e1 := callfsync(fd)
  238. if e1 != 0 {
  239. err = errnoErr(e1)
  240. }
  241. return
  242. }
  243. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  244. func Getpgid(pid int) (pgid int, err error) {
  245. r0, e1 := callgetpgid(pid)
  246. pgid = int(r0)
  247. if e1 != 0 {
  248. err = errnoErr(e1)
  249. }
  250. return
  251. }
  252. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  253. func Getpgrp() (pid int) {
  254. r0, _ := callgetpgrp()
  255. pid = int(r0)
  256. return
  257. }
  258. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  259. func Getpid() (pid int) {
  260. r0, _ := callgetpid()
  261. pid = int(r0)
  262. return
  263. }
  264. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  265. func Getppid() (ppid int) {
  266. r0, _ := callgetppid()
  267. ppid = int(r0)
  268. return
  269. }
  270. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  271. func Getpriority(which int, who int) (prio int, err error) {
  272. r0, e1 := callgetpriority(which, who)
  273. prio = int(r0)
  274. if e1 != 0 {
  275. err = errnoErr(e1)
  276. }
  277. return
  278. }
  279. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  280. func Getrusage(who int, rusage *Rusage) (err error) {
  281. _, e1 := callgetrusage(who, uintptr(unsafe.Pointer(rusage)))
  282. if e1 != 0 {
  283. err = errnoErr(e1)
  284. }
  285. return
  286. }
  287. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  288. func Getsid(pid int) (sid int, err error) {
  289. r0, e1 := callgetsid(pid)
  290. sid = int(r0)
  291. if e1 != 0 {
  292. err = errnoErr(e1)
  293. }
  294. return
  295. }
  296. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  297. func Kill(pid int, sig Signal) (err error) {
  298. _, e1 := callkill(pid, int(sig))
  299. if e1 != 0 {
  300. err = errnoErr(e1)
  301. }
  302. return
  303. }
  304. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  305. func Klogctl(typ int, buf []byte) (n int, err error) {
  306. var _p0 *byte
  307. if len(buf) > 0 {
  308. _p0 = &buf[0]
  309. }
  310. r0, e1 := callsyslog(typ, uintptr(unsafe.Pointer(_p0)), len(buf))
  311. n = int(r0)
  312. if e1 != 0 {
  313. err = errnoErr(e1)
  314. }
  315. return
  316. }
  317. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  318. func Mkdir(dirfd int, path string, mode uint32) (err error) {
  319. var _p0 *byte
  320. _p0, err = BytePtrFromString(path)
  321. if err != nil {
  322. return
  323. }
  324. _, e1 := callmkdir(dirfd, uintptr(unsafe.Pointer(_p0)), mode)
  325. if e1 != 0 {
  326. err = errnoErr(e1)
  327. }
  328. return
  329. }
  330. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  331. func Mkdirat(dirfd int, path string, mode uint32) (err error) {
  332. var _p0 *byte
  333. _p0, err = BytePtrFromString(path)
  334. if err != nil {
  335. return
  336. }
  337. _, e1 := callmkdirat(dirfd, uintptr(unsafe.Pointer(_p0)), mode)
  338. if e1 != 0 {
  339. err = errnoErr(e1)
  340. }
  341. return
  342. }
  343. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  344. func Mkfifo(path string, mode uint32) (err error) {
  345. var _p0 *byte
  346. _p0, err = BytePtrFromString(path)
  347. if err != nil {
  348. return
  349. }
  350. _, e1 := callmkfifo(uintptr(unsafe.Pointer(_p0)), mode)
  351. if e1 != 0 {
  352. err = errnoErr(e1)
  353. }
  354. return
  355. }
  356. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  357. func Mknod(path string, mode uint32, dev int) (err error) {
  358. var _p0 *byte
  359. _p0, err = BytePtrFromString(path)
  360. if err != nil {
  361. return
  362. }
  363. _, e1 := callmknod(uintptr(unsafe.Pointer(_p0)), mode, dev)
  364. if e1 != 0 {
  365. err = errnoErr(e1)
  366. }
  367. return
  368. }
  369. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  370. func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
  371. var _p0 *byte
  372. _p0, err = BytePtrFromString(path)
  373. if err != nil {
  374. return
  375. }
  376. _, e1 := callmknodat(dirfd, uintptr(unsafe.Pointer(_p0)), mode, dev)
  377. if e1 != 0 {
  378. err = errnoErr(e1)
  379. }
  380. return
  381. }
  382. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  383. func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
  384. _, e1 := callnanosleep(uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)))
  385. if e1 != 0 {
  386. err = errnoErr(e1)
  387. }
  388. return
  389. }
  390. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  391. func Open(path string, mode int, perm uint32) (fd int, err error) {
  392. var _p0 *byte
  393. _p0, err = BytePtrFromString(path)
  394. if err != nil {
  395. return
  396. }
  397. r0, e1 := callopen64(uintptr(unsafe.Pointer(_p0)), mode, perm)
  398. fd = int(r0)
  399. if e1 != 0 {
  400. err = errnoErr(e1)
  401. }
  402. return
  403. }
  404. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  405. func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
  406. var _p0 *byte
  407. _p0, err = BytePtrFromString(path)
  408. if err != nil {
  409. return
  410. }
  411. r0, e1 := callopenat(dirfd, uintptr(unsafe.Pointer(_p0)), flags, mode)
  412. fd = int(r0)
  413. if e1 != 0 {
  414. err = errnoErr(e1)
  415. }
  416. return
  417. }
  418. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  419. func read(fd int, p []byte) (n int, err error) {
  420. var _p0 *byte
  421. if len(p) > 0 {
  422. _p0 = &p[0]
  423. }
  424. r0, e1 := callread(fd, uintptr(unsafe.Pointer(_p0)), len(p))
  425. n = int(r0)
  426. if e1 != 0 {
  427. err = errnoErr(e1)
  428. }
  429. return
  430. }
  431. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  432. func Readlink(path string, buf []byte) (n int, err error) {
  433. var _p0 *byte
  434. _p0, err = BytePtrFromString(path)
  435. if err != nil {
  436. return
  437. }
  438. var _p1 *byte
  439. if len(buf) > 0 {
  440. _p1 = &buf[0]
  441. }
  442. r0, e1 := callreadlink(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), len(buf))
  443. n = int(r0)
  444. if e1 != 0 {
  445. err = errnoErr(e1)
  446. }
  447. return
  448. }
  449. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  450. func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  451. var _p0 *byte
  452. _p0, err = BytePtrFromString(oldpath)
  453. if err != nil {
  454. return
  455. }
  456. var _p1 *byte
  457. _p1, err = BytePtrFromString(newpath)
  458. if err != nil {
  459. return
  460. }
  461. _, e1 := callrenameat(olddirfd, uintptr(unsafe.Pointer(_p0)), newdirfd, uintptr(unsafe.Pointer(_p1)))
  462. if e1 != 0 {
  463. err = errnoErr(e1)
  464. }
  465. return
  466. }
  467. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  468. func Setdomainname(p []byte) (err error) {
  469. var _p0 *byte
  470. if len(p) > 0 {
  471. _p0 = &p[0]
  472. }
  473. _, e1 := callsetdomainname(uintptr(unsafe.Pointer(_p0)), len(p))
  474. if e1 != 0 {
  475. err = errnoErr(e1)
  476. }
  477. return
  478. }
  479. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  480. func Sethostname(p []byte) (err error) {
  481. var _p0 *byte
  482. if len(p) > 0 {
  483. _p0 = &p[0]
  484. }
  485. _, e1 := callsethostname(uintptr(unsafe.Pointer(_p0)), len(p))
  486. if e1 != 0 {
  487. err = errnoErr(e1)
  488. }
  489. return
  490. }
  491. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  492. func Setpgid(pid int, pgid int) (err error) {
  493. _, e1 := callsetpgid(pid, pgid)
  494. if e1 != 0 {
  495. err = errnoErr(e1)
  496. }
  497. return
  498. }
  499. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  500. func Setsid() (pid int, err error) {
  501. r0, e1 := callsetsid()
  502. pid = int(r0)
  503. if e1 != 0 {
  504. err = errnoErr(e1)
  505. }
  506. return
  507. }
  508. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  509. func Settimeofday(tv *Timeval) (err error) {
  510. _, e1 := callsettimeofday(uintptr(unsafe.Pointer(tv)))
  511. if e1 != 0 {
  512. err = errnoErr(e1)
  513. }
  514. return
  515. }
  516. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  517. func Setuid(uid int) (err error) {
  518. _, e1 := callsetuid(uid)
  519. if e1 != 0 {
  520. err = errnoErr(e1)
  521. }
  522. return
  523. }
  524. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  525. func Setgid(uid int) (err error) {
  526. _, e1 := callsetgid(uid)
  527. if e1 != 0 {
  528. err = errnoErr(e1)
  529. }
  530. return
  531. }
  532. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  533. func Setpriority(which int, who int, prio int) (err error) {
  534. _, e1 := callsetpriority(which, who, prio)
  535. if e1 != 0 {
  536. err = errnoErr(e1)
  537. }
  538. return
  539. }
  540. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  541. func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
  542. var _p0 *byte
  543. _p0, err = BytePtrFromString(path)
  544. if err != nil {
  545. return
  546. }
  547. _, e1 := callstatx(dirfd, uintptr(unsafe.Pointer(_p0)), flags, mask, uintptr(unsafe.Pointer(stat)))
  548. if e1 != 0 {
  549. err = errnoErr(e1)
  550. }
  551. return
  552. }
  553. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  554. func Sync() {
  555. callsync()
  556. return
  557. }
  558. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  559. func Times(tms *Tms) (ticks uintptr, err error) {
  560. r0, e1 := calltimes(uintptr(unsafe.Pointer(tms)))
  561. ticks = uintptr(r0)
  562. if e1 != 0 {
  563. err = errnoErr(e1)
  564. }
  565. return
  566. }
  567. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  568. func Umask(mask int) (oldmask int) {
  569. r0, _ := callumask(mask)
  570. oldmask = int(r0)
  571. return
  572. }
  573. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  574. func Uname(buf *Utsname) (err error) {
  575. _, e1 := calluname(uintptr(unsafe.Pointer(buf)))
  576. if e1 != 0 {
  577. err = errnoErr(e1)
  578. }
  579. return
  580. }
  581. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  582. func Unlink(path string) (err error) {
  583. var _p0 *byte
  584. _p0, err = BytePtrFromString(path)
  585. if err != nil {
  586. return
  587. }
  588. _, e1 := callunlink(uintptr(unsafe.Pointer(_p0)))
  589. if e1 != 0 {
  590. err = errnoErr(e1)
  591. }
  592. return
  593. }
  594. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  595. func Unlinkat(dirfd int, path string, flags int) (err error) {
  596. var _p0 *byte
  597. _p0, err = BytePtrFromString(path)
  598. if err != nil {
  599. return
  600. }
  601. _, e1 := callunlinkat(dirfd, uintptr(unsafe.Pointer(_p0)), flags)
  602. if e1 != 0 {
  603. err = errnoErr(e1)
  604. }
  605. return
  606. }
  607. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  608. func Ustat(dev int, ubuf *Ustat_t) (err error) {
  609. _, e1 := callustat(dev, uintptr(unsafe.Pointer(ubuf)))
  610. if e1 != 0 {
  611. err = errnoErr(e1)
  612. }
  613. return
  614. }
  615. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  616. func write(fd int, p []byte) (n int, err error) {
  617. var _p0 *byte
  618. if len(p) > 0 {
  619. _p0 = &p[0]
  620. }
  621. r0, e1 := callwrite(fd, uintptr(unsafe.Pointer(_p0)), len(p))
  622. n = int(r0)
  623. if e1 != 0 {
  624. err = errnoErr(e1)
  625. }
  626. return
  627. }
  628. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  629. func readlen(fd int, p *byte, np int) (n int, err error) {
  630. r0, e1 := callread(fd, uintptr(unsafe.Pointer(p)), np)
  631. n = int(r0)
  632. if e1 != 0 {
  633. err = errnoErr(e1)
  634. }
  635. return
  636. }
  637. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  638. func writelen(fd int, p *byte, np int) (n int, err error) {
  639. r0, e1 := callwrite(fd, uintptr(unsafe.Pointer(p)), np)
  640. n = int(r0)
  641. if e1 != 0 {
  642. err = errnoErr(e1)
  643. }
  644. return
  645. }
  646. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  647. func Dup2(oldfd int, newfd int) (err error) {
  648. _, e1 := calldup2(oldfd, newfd)
  649. if e1 != 0 {
  650. err = errnoErr(e1)
  651. }
  652. return
  653. }
  654. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  655. func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
  656. _, e1 := callposix_fadvise64(fd, offset, length, advice)
  657. if e1 != 0 {
  658. err = errnoErr(e1)
  659. }
  660. return
  661. }
  662. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  663. func Fchown(fd int, uid int, gid int) (err error) {
  664. _, e1 := callfchown(fd, uid, gid)
  665. if e1 != 0 {
  666. err = errnoErr(e1)
  667. }
  668. return
  669. }
  670. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  671. func fstat(fd int, stat *Stat_t) (err error) {
  672. _, e1 := callfstat(fd, uintptr(unsafe.Pointer(stat)))
  673. if e1 != 0 {
  674. err = errnoErr(e1)
  675. }
  676. return
  677. }
  678. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  679. func fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
  680. var _p0 *byte
  681. _p0, err = BytePtrFromString(path)
  682. if err != nil {
  683. return
  684. }
  685. _, e1 := callfstatat(dirfd, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), flags)
  686. if e1 != 0 {
  687. err = errnoErr(e1)
  688. }
  689. return
  690. }
  691. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  692. func Fstatfs(fd int, buf *Statfs_t) (err error) {
  693. _, e1 := callfstatfs(fd, uintptr(unsafe.Pointer(buf)))
  694. if e1 != 0 {
  695. err = errnoErr(e1)
  696. }
  697. return
  698. }
  699. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  700. func Ftruncate(fd int, length int64) (err error) {
  701. _, e1 := callftruncate(fd, length)
  702. if e1 != 0 {
  703. err = errnoErr(e1)
  704. }
  705. return
  706. }
  707. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  708. func Getegid() (egid int) {
  709. r0, _ := callgetegid()
  710. egid = int(r0)
  711. return
  712. }
  713. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  714. func Geteuid() (euid int) {
  715. r0, _ := callgeteuid()
  716. euid = int(r0)
  717. return
  718. }
  719. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  720. func Getgid() (gid int) {
  721. r0, _ := callgetgid()
  722. gid = int(r0)
  723. return
  724. }
  725. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  726. func Getuid() (uid int) {
  727. r0, _ := callgetuid()
  728. uid = int(r0)
  729. return
  730. }
  731. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  732. func Lchown(path string, uid int, gid int) (err error) {
  733. var _p0 *byte
  734. _p0, err = BytePtrFromString(path)
  735. if err != nil {
  736. return
  737. }
  738. _, e1 := calllchown(uintptr(unsafe.Pointer(_p0)), uid, gid)
  739. if e1 != 0 {
  740. err = errnoErr(e1)
  741. }
  742. return
  743. }
  744. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  745. func Listen(s int, n int) (err error) {
  746. _, e1 := calllisten(s, n)
  747. if e1 != 0 {
  748. err = errnoErr(e1)
  749. }
  750. return
  751. }
  752. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  753. func lstat(path string, stat *Stat_t) (err error) {
  754. var _p0 *byte
  755. _p0, err = BytePtrFromString(path)
  756. if err != nil {
  757. return
  758. }
  759. _, e1 := calllstat(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)))
  760. if e1 != 0 {
  761. err = errnoErr(e1)
  762. }
  763. return
  764. }
  765. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  766. func Pause() (err error) {
  767. _, e1 := callpause()
  768. if e1 != 0 {
  769. err = errnoErr(e1)
  770. }
  771. return
  772. }
  773. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  774. func Pread(fd int, p []byte, offset int64) (n int, err error) {
  775. var _p0 *byte
  776. if len(p) > 0 {
  777. _p0 = &p[0]
  778. }
  779. r0, e1 := callpread64(fd, uintptr(unsafe.Pointer(_p0)), len(p), offset)
  780. n = int(r0)
  781. if e1 != 0 {
  782. err = errnoErr(e1)
  783. }
  784. return
  785. }
  786. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  787. func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  788. var _p0 *byte
  789. if len(p) > 0 {
  790. _p0 = &p[0]
  791. }
  792. r0, e1 := callpwrite64(fd, uintptr(unsafe.Pointer(_p0)), len(p), offset)
  793. n = int(r0)
  794. if e1 != 0 {
  795. err = errnoErr(e1)
  796. }
  797. return
  798. }
  799. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  800. func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  801. r0, e1 := callselect(nfd, uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)))
  802. n = int(r0)
  803. if e1 != 0 {
  804. err = errnoErr(e1)
  805. }
  806. return
  807. }
  808. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  809. func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
  810. r0, e1 := callpselect(nfd, uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
  811. n = int(r0)
  812. if e1 != 0 {
  813. err = errnoErr(e1)
  814. }
  815. return
  816. }
  817. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  818. func Setregid(rgid int, egid int) (err error) {
  819. _, e1 := callsetregid(rgid, egid)
  820. if e1 != 0 {
  821. err = errnoErr(e1)
  822. }
  823. return
  824. }
  825. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  826. func Setreuid(ruid int, euid int) (err error) {
  827. _, e1 := callsetreuid(ruid, euid)
  828. if e1 != 0 {
  829. err = errnoErr(e1)
  830. }
  831. return
  832. }
  833. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  834. func Shutdown(fd int, how int) (err error) {
  835. _, e1 := callshutdown(fd, how)
  836. if e1 != 0 {
  837. err = errnoErr(e1)
  838. }
  839. return
  840. }
  841. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  842. func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
  843. r0, e1 := callsplice(rfd, uintptr(unsafe.Pointer(roff)), wfd, uintptr(unsafe.Pointer(woff)), len, flags)
  844. n = int64(r0)
  845. if e1 != 0 {
  846. err = errnoErr(e1)
  847. }
  848. return
  849. }
  850. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  851. func stat(path string, statptr *Stat_t) (err error) {
  852. var _p0 *byte
  853. _p0, err = BytePtrFromString(path)
  854. if err != nil {
  855. return
  856. }
  857. _, e1 := callstat(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(statptr)))
  858. if e1 != 0 {
  859. err = errnoErr(e1)
  860. }
  861. return
  862. }
  863. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  864. func Statfs(path string, buf *Statfs_t) (err error) {
  865. var _p0 *byte
  866. _p0, err = BytePtrFromString(path)
  867. if err != nil {
  868. return
  869. }
  870. _, e1 := callstatfs(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)))
  871. if e1 != 0 {
  872. err = errnoErr(e1)
  873. }
  874. return
  875. }
  876. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  877. func Truncate(path string, length int64) (err error) {
  878. var _p0 *byte
  879. _p0, err = BytePtrFromString(path)
  880. if err != nil {
  881. return
  882. }
  883. _, e1 := calltruncate(uintptr(unsafe.Pointer(_p0)), length)
  884. if e1 != 0 {
  885. err = errnoErr(e1)
  886. }
  887. return
  888. }
  889. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  890. func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  891. _, e1 := callbind(s, uintptr(addr), uintptr(addrlen))
  892. if e1 != 0 {
  893. err = errnoErr(e1)
  894. }
  895. return
  896. }
  897. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  898. func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  899. _, e1 := callconnect(s, uintptr(addr), uintptr(addrlen))
  900. if e1 != 0 {
  901. err = errnoErr(e1)
  902. }
  903. return
  904. }
  905. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  906. func getgroups(n int, list *_Gid_t) (nn int, err error) {
  907. r0, e1 := callgetgroups(n, uintptr(unsafe.Pointer(list)))
  908. nn = int(r0)
  909. if e1 != 0 {
  910. err = errnoErr(e1)
  911. }
  912. return
  913. }
  914. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  915. func setgroups(n int, list *_Gid_t) (err error) {
  916. _, e1 := callsetgroups(n, uintptr(unsafe.Pointer(list)))
  917. if e1 != 0 {
  918. err = errnoErr(e1)
  919. }
  920. return
  921. }
  922. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  923. func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  924. _, e1 := callgetsockopt(s, level, name, uintptr(val), uintptr(unsafe.Pointer(vallen)))
  925. if e1 != 0 {
  926. err = errnoErr(e1)
  927. }
  928. return
  929. }
  930. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  931. func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  932. _, e1 := callsetsockopt(s, level, name, uintptr(val), vallen)
  933. if e1 != 0 {
  934. err = errnoErr(e1)
  935. }
  936. return
  937. }
  938. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  939. func socket(domain int, typ int, proto int) (fd int, err error) {
  940. r0, e1 := callsocket(domain, typ, proto)
  941. fd = int(r0)
  942. if e1 != 0 {
  943. err = errnoErr(e1)
  944. }
  945. return
  946. }
  947. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  948. func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  949. _, e1 := callsocketpair(domain, typ, proto, uintptr(unsafe.Pointer(fd)))
  950. if e1 != 0 {
  951. err = errnoErr(e1)
  952. }
  953. return
  954. }
  955. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  956. func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  957. _, e1 := callgetpeername(fd, uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  958. if e1 != 0 {
  959. err = errnoErr(e1)
  960. }
  961. return
  962. }
  963. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  964. func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  965. _, e1 := callgetsockname(fd, uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  966. if e1 != 0 {
  967. err = errnoErr(e1)
  968. }
  969. return
  970. }
  971. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  972. func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  973. var _p0 *byte
  974. if len(p) > 0 {
  975. _p0 = &p[0]
  976. }
  977. r0, e1 := callrecvfrom(fd, uintptr(unsafe.Pointer(_p0)), len(p), flags, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  978. n = int(r0)
  979. if e1 != 0 {
  980. err = errnoErr(e1)
  981. }
  982. return
  983. }
  984. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  985. func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  986. var _p0 *byte
  987. if len(buf) > 0 {
  988. _p0 = &buf[0]
  989. }
  990. _, e1 := callsendto(s, uintptr(unsafe.Pointer(_p0)), len(buf), flags, uintptr(to), uintptr(addrlen))
  991. if e1 != 0 {
  992. err = errnoErr(e1)
  993. }
  994. return
  995. }
  996. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  997. func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  998. r0, e1 := callnrecvmsg(s, uintptr(unsafe.Pointer(msg)), flags)
  999. n = int(r0)
  1000. if e1 != 0 {
  1001. err = errnoErr(e1)
  1002. }
  1003. return
  1004. }
  1005. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1006. func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  1007. r0, e1 := callnsendmsg(s, uintptr(unsafe.Pointer(msg)), flags)
  1008. n = int(r0)
  1009. if e1 != 0 {
  1010. err = errnoErr(e1)
  1011. }
  1012. return
  1013. }
  1014. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1015. func munmap(addr uintptr, length uintptr) (err error) {
  1016. _, e1 := callmunmap(addr, length)
  1017. if e1 != 0 {
  1018. err = errnoErr(e1)
  1019. }
  1020. return
  1021. }
  1022. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1023. func Madvise(b []byte, advice int) (err error) {
  1024. var _p0 *byte
  1025. if len(b) > 0 {
  1026. _p0 = &b[0]
  1027. }
  1028. _, e1 := callmadvise(uintptr(unsafe.Pointer(_p0)), len(b), advice)
  1029. if e1 != 0 {
  1030. err = errnoErr(e1)
  1031. }
  1032. return
  1033. }
  1034. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1035. func Mprotect(b []byte, prot int) (err error) {
  1036. var _p0 *byte
  1037. if len(b) > 0 {
  1038. _p0 = &b[0]
  1039. }
  1040. _, e1 := callmprotect(uintptr(unsafe.Pointer(_p0)), len(b), prot)
  1041. if e1 != 0 {
  1042. err = errnoErr(e1)
  1043. }
  1044. return
  1045. }
  1046. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1047. func Mlock(b []byte) (err error) {
  1048. var _p0 *byte
  1049. if len(b) > 0 {
  1050. _p0 = &b[0]
  1051. }
  1052. _, e1 := callmlock(uintptr(unsafe.Pointer(_p0)), len(b))
  1053. if e1 != 0 {
  1054. err = errnoErr(e1)
  1055. }
  1056. return
  1057. }
  1058. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1059. func Mlockall(flags int) (err error) {
  1060. _, e1 := callmlockall(flags)
  1061. if e1 != 0 {
  1062. err = errnoErr(e1)
  1063. }
  1064. return
  1065. }
  1066. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1067. func Msync(b []byte, flags int) (err error) {
  1068. var _p0 *byte
  1069. if len(b) > 0 {
  1070. _p0 = &b[0]
  1071. }
  1072. _, e1 := callmsync(uintptr(unsafe.Pointer(_p0)), len(b), flags)
  1073. if e1 != 0 {
  1074. err = errnoErr(e1)
  1075. }
  1076. return
  1077. }
  1078. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1079. func Munlock(b []byte) (err error) {
  1080. var _p0 *byte
  1081. if len(b) > 0 {
  1082. _p0 = &b[0]
  1083. }
  1084. _, e1 := callmunlock(uintptr(unsafe.Pointer(_p0)), len(b))
  1085. if e1 != 0 {
  1086. err = errnoErr(e1)
  1087. }
  1088. return
  1089. }
  1090. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1091. func Munlockall() (err error) {
  1092. _, e1 := callmunlockall()
  1093. if e1 != 0 {
  1094. err = errnoErr(e1)
  1095. }
  1096. return
  1097. }
  1098. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1099. func pipe(p *[2]_C_int) (err error) {
  1100. _, e1 := callpipe(uintptr(unsafe.Pointer(p)))
  1101. if e1 != 0 {
  1102. err = errnoErr(e1)
  1103. }
  1104. return
  1105. }
  1106. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1107. func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
  1108. r0, e1 := callpoll(uintptr(unsafe.Pointer(fds)), nfds, timeout)
  1109. n = int(r0)
  1110. if e1 != 0 {
  1111. err = errnoErr(e1)
  1112. }
  1113. return
  1114. }
  1115. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1116. func gettimeofday(tv *Timeval, tzp *Timezone) (err error) {
  1117. _, e1 := callgettimeofday(uintptr(unsafe.Pointer(tv)), uintptr(unsafe.Pointer(tzp)))
  1118. if e1 != 0 {
  1119. err = errnoErr(e1)
  1120. }
  1121. return
  1122. }
  1123. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1124. func Time(t *Time_t) (tt Time_t, err error) {
  1125. r0, e1 := calltime(uintptr(unsafe.Pointer(t)))
  1126. tt = Time_t(r0)
  1127. if e1 != 0 {
  1128. err = errnoErr(e1)
  1129. }
  1130. return
  1131. }
  1132. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1133. func Utime(path string, buf *Utimbuf) (err error) {
  1134. var _p0 *byte
  1135. _p0, err = BytePtrFromString(path)
  1136. if err != nil {
  1137. return
  1138. }
  1139. _, e1 := callutime(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)))
  1140. if e1 != 0 {
  1141. err = errnoErr(e1)
  1142. }
  1143. return
  1144. }
  1145. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1146. func Getsystemcfg(label int) (n uint64) {
  1147. r0, _ := callgetsystemcfg(label)
  1148. n = uint64(r0)
  1149. return
  1150. }
  1151. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1152. func umount(target string) (err error) {
  1153. var _p0 *byte
  1154. _p0, err = BytePtrFromString(target)
  1155. if err != nil {
  1156. return
  1157. }
  1158. _, e1 := callumount(uintptr(unsafe.Pointer(_p0)))
  1159. if e1 != 0 {
  1160. err = errnoErr(e1)
  1161. }
  1162. return
  1163. }
  1164. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1165. func Getrlimit(resource int, rlim *Rlimit) (err error) {
  1166. _, e1 := callgetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
  1167. if e1 != 0 {
  1168. err = errnoErr(e1)
  1169. }
  1170. return
  1171. }
  1172. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1173. func Setrlimit(resource int, rlim *Rlimit) (err error) {
  1174. _, e1 := callsetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
  1175. if e1 != 0 {
  1176. err = errnoErr(e1)
  1177. }
  1178. return
  1179. }
  1180. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1181. func Seek(fd int, offset int64, whence int) (off int64, err error) {
  1182. r0, e1 := calllseek(fd, offset, whence)
  1183. off = int64(r0)
  1184. if e1 != 0 {
  1185. err = errnoErr(e1)
  1186. }
  1187. return
  1188. }
  1189. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1190. func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
  1191. r0, e1 := callmmap64(addr, length, prot, flags, fd, offset)
  1192. xaddr = uintptr(r0)
  1193. if e1 != 0 {
  1194. err = errnoErr(e1)
  1195. }
  1196. return
  1197. }