zsyscall_aix_ppc64.go 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408
  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 Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
  801. r0, e1 := callpselect(nfd, uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
  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 Setregid(rgid int, egid int) (err error) {
  810. _, e1 := callsetregid(rgid, egid)
  811. if e1 != 0 {
  812. err = errnoErr(e1)
  813. }
  814. return
  815. }
  816. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  817. func Setreuid(ruid int, euid int) (err error) {
  818. _, e1 := callsetreuid(ruid, euid)
  819. if e1 != 0 {
  820. err = errnoErr(e1)
  821. }
  822. return
  823. }
  824. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  825. func Shutdown(fd int, how int) (err error) {
  826. _, e1 := callshutdown(fd, how)
  827. if e1 != 0 {
  828. err = errnoErr(e1)
  829. }
  830. return
  831. }
  832. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  833. func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
  834. r0, e1 := callsplice(rfd, uintptr(unsafe.Pointer(roff)), wfd, uintptr(unsafe.Pointer(woff)), len, flags)
  835. n = int64(r0)
  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 Stat(path string, stat *Stat_t) (err error) {
  843. var _p0 *byte
  844. _p0, err = BytePtrFromString(path)
  845. if err != nil {
  846. return
  847. }
  848. _, e1 := callstat(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)))
  849. if e1 != 0 {
  850. err = errnoErr(e1)
  851. }
  852. return
  853. }
  854. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  855. func Statfs(path string, buf *Statfs_t) (err error) {
  856. var _p0 *byte
  857. _p0, err = BytePtrFromString(path)
  858. if err != nil {
  859. return
  860. }
  861. _, e1 := callstatfs(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)))
  862. if e1 != 0 {
  863. err = errnoErr(e1)
  864. }
  865. return
  866. }
  867. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  868. func Truncate(path string, length int64) (err error) {
  869. var _p0 *byte
  870. _p0, err = BytePtrFromString(path)
  871. if err != nil {
  872. return
  873. }
  874. _, e1 := calltruncate(uintptr(unsafe.Pointer(_p0)), length)
  875. if e1 != 0 {
  876. err = errnoErr(e1)
  877. }
  878. return
  879. }
  880. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  881. func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  882. _, e1 := callbind(s, uintptr(addr), uintptr(addrlen))
  883. if e1 != 0 {
  884. err = errnoErr(e1)
  885. }
  886. return
  887. }
  888. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  889. func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  890. _, e1 := callconnect(s, uintptr(addr), uintptr(addrlen))
  891. if e1 != 0 {
  892. err = errnoErr(e1)
  893. }
  894. return
  895. }
  896. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  897. func getgroups(n int, list *_Gid_t) (nn int, err error) {
  898. r0, e1 := callgetgroups(n, uintptr(unsafe.Pointer(list)))
  899. nn = int(r0)
  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 setgroups(n int, list *_Gid_t) (err error) {
  907. _, e1 := callsetgroups(n, uintptr(unsafe.Pointer(list)))
  908. if e1 != 0 {
  909. err = errnoErr(e1)
  910. }
  911. return
  912. }
  913. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  914. func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  915. _, e1 := callgetsockopt(s, level, name, uintptr(val), uintptr(unsafe.Pointer(vallen)))
  916. if e1 != 0 {
  917. err = errnoErr(e1)
  918. }
  919. return
  920. }
  921. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  922. func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  923. _, e1 := callsetsockopt(s, level, name, uintptr(val), vallen)
  924. if e1 != 0 {
  925. err = errnoErr(e1)
  926. }
  927. return
  928. }
  929. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  930. func socket(domain int, typ int, proto int) (fd int, err error) {
  931. r0, e1 := callsocket(domain, typ, proto)
  932. fd = int(r0)
  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 socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  940. _, e1 := callsocketpair(domain, typ, proto, uintptr(unsafe.Pointer(fd)))
  941. if e1 != 0 {
  942. err = errnoErr(e1)
  943. }
  944. return
  945. }
  946. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  947. func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  948. _, e1 := callgetpeername(fd, uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  949. if e1 != 0 {
  950. err = errnoErr(e1)
  951. }
  952. return
  953. }
  954. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  955. func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  956. _, e1 := callgetsockname(fd, uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  957. if e1 != 0 {
  958. err = errnoErr(e1)
  959. }
  960. return
  961. }
  962. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  963. func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  964. var _p0 *byte
  965. if len(p) > 0 {
  966. _p0 = &p[0]
  967. }
  968. r0, e1 := callrecvfrom(fd, uintptr(unsafe.Pointer(_p0)), len(p), flags, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  969. n = int(r0)
  970. if e1 != 0 {
  971. err = errnoErr(e1)
  972. }
  973. return
  974. }
  975. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  976. func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  977. var _p0 *byte
  978. if len(buf) > 0 {
  979. _p0 = &buf[0]
  980. }
  981. _, e1 := callsendto(s, uintptr(unsafe.Pointer(_p0)), len(buf), flags, uintptr(to), uintptr(addrlen))
  982. if e1 != 0 {
  983. err = errnoErr(e1)
  984. }
  985. return
  986. }
  987. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  988. func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  989. r0, e1 := callrecvmsg(s, uintptr(unsafe.Pointer(msg)), flags)
  990. n = int(r0)
  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 sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  998. r0, e1 := callsendmsg(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 munmap(addr uintptr, length uintptr) (err error) {
  1007. _, e1 := callmunmap(addr, length)
  1008. if e1 != 0 {
  1009. err = errnoErr(e1)
  1010. }
  1011. return
  1012. }
  1013. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1014. func Madvise(b []byte, advice int) (err error) {
  1015. var _p0 *byte
  1016. if len(b) > 0 {
  1017. _p0 = &b[0]
  1018. }
  1019. _, e1 := callmadvise(uintptr(unsafe.Pointer(_p0)), len(b), advice)
  1020. if e1 != 0 {
  1021. err = errnoErr(e1)
  1022. }
  1023. return
  1024. }
  1025. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1026. func Mprotect(b []byte, prot int) (err error) {
  1027. var _p0 *byte
  1028. if len(b) > 0 {
  1029. _p0 = &b[0]
  1030. }
  1031. _, e1 := callmprotect(uintptr(unsafe.Pointer(_p0)), len(b), prot)
  1032. if e1 != 0 {
  1033. err = errnoErr(e1)
  1034. }
  1035. return
  1036. }
  1037. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1038. func Mlock(b []byte) (err error) {
  1039. var _p0 *byte
  1040. if len(b) > 0 {
  1041. _p0 = &b[0]
  1042. }
  1043. _, e1 := callmlock(uintptr(unsafe.Pointer(_p0)), len(b))
  1044. if e1 != 0 {
  1045. err = errnoErr(e1)
  1046. }
  1047. return
  1048. }
  1049. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1050. func Mlockall(flags int) (err error) {
  1051. _, e1 := callmlockall(flags)
  1052. if e1 != 0 {
  1053. err = errnoErr(e1)
  1054. }
  1055. return
  1056. }
  1057. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1058. func Msync(b []byte, flags int) (err error) {
  1059. var _p0 *byte
  1060. if len(b) > 0 {
  1061. _p0 = &b[0]
  1062. }
  1063. _, e1 := callmsync(uintptr(unsafe.Pointer(_p0)), len(b), flags)
  1064. if e1 != 0 {
  1065. err = errnoErr(e1)
  1066. }
  1067. return
  1068. }
  1069. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1070. func Munlock(b []byte) (err error) {
  1071. var _p0 *byte
  1072. if len(b) > 0 {
  1073. _p0 = &b[0]
  1074. }
  1075. _, e1 := callmunlock(uintptr(unsafe.Pointer(_p0)), len(b))
  1076. if e1 != 0 {
  1077. err = errnoErr(e1)
  1078. }
  1079. return
  1080. }
  1081. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1082. func Munlockall() (err error) {
  1083. _, e1 := callmunlockall()
  1084. if e1 != 0 {
  1085. err = errnoErr(e1)
  1086. }
  1087. return
  1088. }
  1089. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1090. func pipe(p *[2]_C_int) (err error) {
  1091. _, e1 := callpipe(uintptr(unsafe.Pointer(p)))
  1092. if e1 != 0 {
  1093. err = errnoErr(e1)
  1094. }
  1095. return
  1096. }
  1097. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1098. func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
  1099. r0, e1 := callpoll(uintptr(unsafe.Pointer(fds)), nfds, timeout)
  1100. n = int(r0)
  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 gettimeofday(tv *Timeval, tzp *Timezone) (err error) {
  1108. _, e1 := callgettimeofday(uintptr(unsafe.Pointer(tv)), uintptr(unsafe.Pointer(tzp)))
  1109. if e1 != 0 {
  1110. err = errnoErr(e1)
  1111. }
  1112. return
  1113. }
  1114. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1115. func Time(t *Time_t) (tt Time_t, err error) {
  1116. r0, e1 := calltime(uintptr(unsafe.Pointer(t)))
  1117. tt = Time_t(r0)
  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 Utime(path string, buf *Utimbuf) (err error) {
  1125. var _p0 *byte
  1126. _p0, err = BytePtrFromString(path)
  1127. if err != nil {
  1128. return
  1129. }
  1130. _, e1 := callutime(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)))
  1131. if e1 != 0 {
  1132. err = errnoErr(e1)
  1133. }
  1134. return
  1135. }
  1136. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1137. func Getrlimit(resource int, rlim *Rlimit) (err error) {
  1138. _, e1 := callgetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
  1139. if e1 != 0 {
  1140. err = errnoErr(e1)
  1141. }
  1142. return
  1143. }
  1144. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1145. func Setrlimit(resource int, rlim *Rlimit) (err error) {
  1146. _, e1 := callsetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
  1147. if e1 != 0 {
  1148. err = errnoErr(e1)
  1149. }
  1150. return
  1151. }
  1152. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1153. func Seek(fd int, offset int64, whence int) (off int64, err error) {
  1154. r0, e1 := calllseek(fd, offset, whence)
  1155. off = int64(r0)
  1156. if e1 != 0 {
  1157. err = errnoErr(e1)
  1158. }
  1159. return
  1160. }
  1161. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1162. func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
  1163. r0, e1 := callmmap64(addr, length, prot, flags, fd, offset)
  1164. xaddr = uintptr(r0)
  1165. if e1 != 0 {
  1166. err = errnoErr(e1)
  1167. }
  1168. return
  1169. }