zsyscall_zos_s390x.go 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  1. // go run mksyscall.go -tags zos,s390x syscall_zos_s390x.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build zos && s390x
  4. // +build zos,s390x
  5. package unix
  6. import (
  7. "unsafe"
  8. )
  9. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  10. func fcntl(fd int, cmd int, arg int) (val int, err error) {
  11. r0, _, e1 := syscall_syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
  12. val = int(r0)
  13. if e1 != 0 {
  14. err = errnoErr(e1)
  15. }
  16. return
  17. }
  18. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  19. func read(fd int, p []byte) (n int, err error) {
  20. var _p0 unsafe.Pointer
  21. if len(p) > 0 {
  22. _p0 = unsafe.Pointer(&p[0])
  23. } else {
  24. _p0 = unsafe.Pointer(&_zero)
  25. }
  26. r0, _, e1 := syscall_syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  27. n = int(r0)
  28. if e1 != 0 {
  29. err = errnoErr(e1)
  30. }
  31. return
  32. }
  33. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  34. func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
  35. r0, _, e1 := syscall_syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
  36. n = int(r0)
  37. if e1 != 0 {
  38. err = errnoErr(e1)
  39. }
  40. return
  41. }
  42. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  43. func write(fd int, p []byte) (n int, err error) {
  44. var _p0 unsafe.Pointer
  45. if len(p) > 0 {
  46. _p0 = unsafe.Pointer(&p[0])
  47. } else {
  48. _p0 = unsafe.Pointer(&_zero)
  49. }
  50. r0, _, e1 := syscall_syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
  51. n = int(r0)
  52. if e1 != 0 {
  53. err = errnoErr(e1)
  54. }
  55. return
  56. }
  57. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  58. func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  59. r0, _, e1 := syscall_syscall(SYS___ACCEPT_A, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  60. fd = int(r0)
  61. if e1 != 0 {
  62. err = errnoErr(e1)
  63. }
  64. return
  65. }
  66. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  67. func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  68. _, _, e1 := syscall_syscall(SYS___BIND_A, uintptr(s), uintptr(addr), uintptr(addrlen))
  69. if e1 != 0 {
  70. err = errnoErr(e1)
  71. }
  72. return
  73. }
  74. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  75. func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  76. _, _, e1 := syscall_syscall(SYS___CONNECT_A, uintptr(s), uintptr(addr), uintptr(addrlen))
  77. if e1 != 0 {
  78. err = errnoErr(e1)
  79. }
  80. return
  81. }
  82. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  83. func getgroups(n int, list *_Gid_t) (nn int, err error) {
  84. r0, _, e1 := syscall_rawsyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  85. nn = int(r0)
  86. if e1 != 0 {
  87. err = errnoErr(e1)
  88. }
  89. return
  90. }
  91. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  92. func setgroups(n int, list *_Gid_t) (err error) {
  93. _, _, e1 := syscall_rawsyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  94. if e1 != 0 {
  95. err = errnoErr(e1)
  96. }
  97. return
  98. }
  99. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  100. func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  101. _, _, e1 := syscall_syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  102. if e1 != 0 {
  103. err = errnoErr(e1)
  104. }
  105. return
  106. }
  107. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  108. func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  109. _, _, e1 := syscall_syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  110. if e1 != 0 {
  111. err = errnoErr(e1)
  112. }
  113. return
  114. }
  115. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  116. func socket(domain int, typ int, proto int) (fd int, err error) {
  117. r0, _, e1 := syscall_rawsyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  118. fd = int(r0)
  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 socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  126. _, _, e1 := syscall_rawsyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  127. if e1 != 0 {
  128. err = errnoErr(e1)
  129. }
  130. return
  131. }
  132. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  133. func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  134. _, _, e1 := syscall_rawsyscall(SYS___GETPEERNAME_A, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  135. if e1 != 0 {
  136. err = errnoErr(e1)
  137. }
  138. return
  139. }
  140. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  141. func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  142. _, _, e1 := syscall_rawsyscall(SYS___GETSOCKNAME_A, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  143. if e1 != 0 {
  144. err = errnoErr(e1)
  145. }
  146. return
  147. }
  148. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  149. func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  150. var _p0 unsafe.Pointer
  151. if len(p) > 0 {
  152. _p0 = unsafe.Pointer(&p[0])
  153. } else {
  154. _p0 = unsafe.Pointer(&_zero)
  155. }
  156. r0, _, e1 := syscall_syscall6(SYS___RECVFROM_A, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  157. n = int(r0)
  158. if e1 != 0 {
  159. err = errnoErr(e1)
  160. }
  161. return
  162. }
  163. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  164. func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  165. var _p0 unsafe.Pointer
  166. if len(buf) > 0 {
  167. _p0 = unsafe.Pointer(&buf[0])
  168. } else {
  169. _p0 = unsafe.Pointer(&_zero)
  170. }
  171. _, _, e1 := syscall_syscall6(SYS___SENDTO_A, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  172. if e1 != 0 {
  173. err = errnoErr(e1)
  174. }
  175. return
  176. }
  177. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  178. func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  179. r0, _, e1 := syscall_syscall(SYS___RECVMSG_A, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  180. n = int(r0)
  181. if e1 != 0 {
  182. err = errnoErr(e1)
  183. }
  184. return
  185. }
  186. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  187. func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  188. r0, _, e1 := syscall_syscall(SYS___SENDMSG_A, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  189. n = int(r0)
  190. if e1 != 0 {
  191. err = errnoErr(e1)
  192. }
  193. return
  194. }
  195. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  196. func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
  197. r0, _, e1 := syscall_syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
  198. ret = uintptr(r0)
  199. if e1 != 0 {
  200. err = errnoErr(e1)
  201. }
  202. return
  203. }
  204. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  205. func munmap(addr uintptr, length uintptr) (err error) {
  206. _, _, e1 := syscall_syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
  207. if e1 != 0 {
  208. err = errnoErr(e1)
  209. }
  210. return
  211. }
  212. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  213. func ioctl(fd int, req uint, arg uintptr) (err error) {
  214. _, _, e1 := syscall_syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
  215. if e1 != 0 {
  216. err = errnoErr(e1)
  217. }
  218. return
  219. }
  220. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  221. func Access(path string, mode uint32) (err error) {
  222. var _p0 *byte
  223. _p0, err = BytePtrFromString(path)
  224. if err != nil {
  225. return
  226. }
  227. _, _, e1 := syscall_syscall(SYS___ACCESS_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  228. if e1 != 0 {
  229. err = errnoErr(e1)
  230. }
  231. return
  232. }
  233. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  234. func Chdir(path string) (err error) {
  235. var _p0 *byte
  236. _p0, err = BytePtrFromString(path)
  237. if err != nil {
  238. return
  239. }
  240. _, _, e1 := syscall_syscall(SYS___CHDIR_A, uintptr(unsafe.Pointer(_p0)), 0, 0)
  241. if e1 != 0 {
  242. err = errnoErr(e1)
  243. }
  244. return
  245. }
  246. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  247. func Chown(path string, uid int, gid int) (err error) {
  248. var _p0 *byte
  249. _p0, err = BytePtrFromString(path)
  250. if err != nil {
  251. return
  252. }
  253. _, _, e1 := syscall_syscall(SYS___CHOWN_A, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  254. if e1 != 0 {
  255. err = errnoErr(e1)
  256. }
  257. return
  258. }
  259. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  260. func Chmod(path string, mode uint32) (err error) {
  261. var _p0 *byte
  262. _p0, err = BytePtrFromString(path)
  263. if err != nil {
  264. return
  265. }
  266. _, _, e1 := syscall_syscall(SYS___CHMOD_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  267. if e1 != 0 {
  268. err = errnoErr(e1)
  269. }
  270. return
  271. }
  272. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  273. func Creat(path string, mode uint32) (fd int, err error) {
  274. var _p0 *byte
  275. _p0, err = BytePtrFromString(path)
  276. if err != nil {
  277. return
  278. }
  279. r0, _, e1 := syscall_syscall(SYS___CREAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  280. fd = int(r0)
  281. if e1 != 0 {
  282. err = errnoErr(e1)
  283. }
  284. return
  285. }
  286. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  287. func Dup(oldfd int) (fd int, err error) {
  288. r0, _, e1 := syscall_syscall(SYS_DUP, uintptr(oldfd), 0, 0)
  289. fd = int(r0)
  290. if e1 != 0 {
  291. err = errnoErr(e1)
  292. }
  293. return
  294. }
  295. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  296. func Dup2(oldfd int, newfd int) (err error) {
  297. _, _, e1 := syscall_syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
  298. if e1 != 0 {
  299. err = errnoErr(e1)
  300. }
  301. return
  302. }
  303. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  304. func Errno2() (er2 int) {
  305. uer2, _, _ := syscall_syscall(SYS___ERRNO2, 0, 0, 0)
  306. er2 = int(uer2)
  307. return
  308. }
  309. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  310. func Err2ad() (eadd *int) {
  311. ueadd, _, _ := syscall_syscall(SYS___ERR2AD, 0, 0, 0)
  312. eadd = (*int)(unsafe.Pointer(ueadd))
  313. return
  314. }
  315. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  316. func Exit(code int) {
  317. syscall_syscall(SYS_EXIT, uintptr(code), 0, 0)
  318. return
  319. }
  320. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  321. func Fchdir(fd int) (err error) {
  322. _, _, e1 := syscall_syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
  323. if e1 != 0 {
  324. err = errnoErr(e1)
  325. }
  326. return
  327. }
  328. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  329. func Fchmod(fd int, mode uint32) (err error) {
  330. _, _, e1 := syscall_syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
  331. if e1 != 0 {
  332. err = errnoErr(e1)
  333. }
  334. return
  335. }
  336. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  337. func Fchown(fd int, uid int, gid int) (err error) {
  338. _, _, e1 := syscall_syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
  339. if e1 != 0 {
  340. err = errnoErr(e1)
  341. }
  342. return
  343. }
  344. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  345. func FcntlInt(fd uintptr, cmd int, arg int) (retval int, err error) {
  346. r0, _, e1 := syscall_syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
  347. retval = int(r0)
  348. if e1 != 0 {
  349. err = errnoErr(e1)
  350. }
  351. return
  352. }
  353. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  354. func fstat(fd int, stat *Stat_LE_t) (err error) {
  355. _, _, e1 := syscall_syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  356. if e1 != 0 {
  357. err = errnoErr(e1)
  358. }
  359. return
  360. }
  361. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  362. func Fstatvfs(fd int, stat *Statvfs_t) (err error) {
  363. _, _, e1 := syscall_syscall(SYS_FSTATVFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  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 Fsync(fd int) (err error) {
  371. _, _, e1 := syscall_syscall(SYS_FSYNC, uintptr(fd), 0, 0)
  372. if e1 != 0 {
  373. err = errnoErr(e1)
  374. }
  375. return
  376. }
  377. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  378. func Ftruncate(fd int, length int64) (err error) {
  379. _, _, e1 := syscall_syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
  380. if e1 != 0 {
  381. err = errnoErr(e1)
  382. }
  383. return
  384. }
  385. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  386. func Getpagesize() (pgsize int) {
  387. r0, _, _ := syscall_syscall(SYS_GETPAGESIZE, 0, 0, 0)
  388. pgsize = int(r0)
  389. return
  390. }
  391. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  392. func Mprotect(b []byte, prot int) (err error) {
  393. var _p0 unsafe.Pointer
  394. if len(b) > 0 {
  395. _p0 = unsafe.Pointer(&b[0])
  396. } else {
  397. _p0 = unsafe.Pointer(&_zero)
  398. }
  399. _, _, e1 := syscall_syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
  400. if e1 != 0 {
  401. err = errnoErr(e1)
  402. }
  403. return
  404. }
  405. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  406. func Msync(b []byte, flags int) (err error) {
  407. var _p0 unsafe.Pointer
  408. if len(b) > 0 {
  409. _p0 = unsafe.Pointer(&b[0])
  410. } else {
  411. _p0 = unsafe.Pointer(&_zero)
  412. }
  413. _, _, e1 := syscall_syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
  414. if e1 != 0 {
  415. err = errnoErr(e1)
  416. }
  417. return
  418. }
  419. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  420. func Poll(fds []PollFd, timeout int) (n int, err error) {
  421. var _p0 unsafe.Pointer
  422. if len(fds) > 0 {
  423. _p0 = unsafe.Pointer(&fds[0])
  424. } else {
  425. _p0 = unsafe.Pointer(&_zero)
  426. }
  427. r0, _, e1 := syscall_syscall(SYS_POLL, uintptr(_p0), uintptr(len(fds)), uintptr(timeout))
  428. n = int(r0)
  429. if e1 != 0 {
  430. err = errnoErr(e1)
  431. }
  432. return
  433. }
  434. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  435. func Times(tms *Tms) (ticks uintptr, err error) {
  436. r0, _, e1 := syscall_syscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
  437. ticks = uintptr(r0)
  438. if e1 != 0 {
  439. err = errnoErr(e1)
  440. }
  441. return
  442. }
  443. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  444. func W_Getmntent(buff *byte, size int) (lastsys int, err error) {
  445. r0, _, e1 := syscall_syscall(SYS_W_GETMNTENT, uintptr(unsafe.Pointer(buff)), uintptr(size), 0)
  446. lastsys = int(r0)
  447. if e1 != 0 {
  448. err = errnoErr(e1)
  449. }
  450. return
  451. }
  452. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  453. func W_Getmntent_A(buff *byte, size int) (lastsys int, err error) {
  454. r0, _, e1 := syscall_syscall(SYS___W_GETMNTENT_A, uintptr(unsafe.Pointer(buff)), uintptr(size), 0)
  455. lastsys = int(r0)
  456. if e1 != 0 {
  457. err = errnoErr(e1)
  458. }
  459. return
  460. }
  461. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  462. func mount_LE(path string, filesystem string, fstype string, mtm uint32, parmlen int32, parm string) (err error) {
  463. var _p0 *byte
  464. _p0, err = BytePtrFromString(path)
  465. if err != nil {
  466. return
  467. }
  468. var _p1 *byte
  469. _p1, err = BytePtrFromString(filesystem)
  470. if err != nil {
  471. return
  472. }
  473. var _p2 *byte
  474. _p2, err = BytePtrFromString(fstype)
  475. if err != nil {
  476. return
  477. }
  478. var _p3 *byte
  479. _p3, err = BytePtrFromString(parm)
  480. if err != nil {
  481. return
  482. }
  483. _, _, e1 := syscall_syscall6(SYS___MOUNT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(mtm), uintptr(parmlen), uintptr(unsafe.Pointer(_p3)))
  484. if e1 != 0 {
  485. err = errnoErr(e1)
  486. }
  487. return
  488. }
  489. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  490. func unmount(filesystem string, mtm int) (err error) {
  491. var _p0 *byte
  492. _p0, err = BytePtrFromString(filesystem)
  493. if err != nil {
  494. return
  495. }
  496. _, _, e1 := syscall_syscall(SYS___UMOUNT_A, uintptr(unsafe.Pointer(_p0)), uintptr(mtm), 0)
  497. if e1 != 0 {
  498. err = errnoErr(e1)
  499. }
  500. return
  501. }
  502. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  503. func Chroot(path string) (err error) {
  504. var _p0 *byte
  505. _p0, err = BytePtrFromString(path)
  506. if err != nil {
  507. return
  508. }
  509. _, _, e1 := syscall_syscall(SYS___CHROOT_A, uintptr(unsafe.Pointer(_p0)), 0, 0)
  510. if e1 != 0 {
  511. err = errnoErr(e1)
  512. }
  513. return
  514. }
  515. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  516. func Uname(buf *Utsname) (err error) {
  517. _, _, e1 := syscall_rawsyscall(SYS___UNAME_A, uintptr(unsafe.Pointer(buf)), 0, 0)
  518. if e1 != 0 {
  519. err = errnoErr(e1)
  520. }
  521. return
  522. }
  523. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  524. func Gethostname(buf []byte) (err error) {
  525. var _p0 unsafe.Pointer
  526. if len(buf) > 0 {
  527. _p0 = unsafe.Pointer(&buf[0])
  528. } else {
  529. _p0 = unsafe.Pointer(&_zero)
  530. }
  531. _, _, e1 := syscall_syscall(SYS___GETHOSTNAME_A, uintptr(_p0), uintptr(len(buf)), 0)
  532. if e1 != 0 {
  533. err = errnoErr(e1)
  534. }
  535. return
  536. }
  537. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  538. func Getegid() (egid int) {
  539. r0, _, _ := syscall_rawsyscall(SYS_GETEGID, 0, 0, 0)
  540. egid = int(r0)
  541. return
  542. }
  543. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  544. func Geteuid() (uid int) {
  545. r0, _, _ := syscall_rawsyscall(SYS_GETEUID, 0, 0, 0)
  546. uid = int(r0)
  547. return
  548. }
  549. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  550. func Getgid() (gid int) {
  551. r0, _, _ := syscall_rawsyscall(SYS_GETGID, 0, 0, 0)
  552. gid = int(r0)
  553. return
  554. }
  555. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  556. func Getpid() (pid int) {
  557. r0, _, _ := syscall_rawsyscall(SYS_GETPID, 0, 0, 0)
  558. pid = int(r0)
  559. return
  560. }
  561. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  562. func Getpgid(pid int) (pgid int, err error) {
  563. r0, _, e1 := syscall_rawsyscall(SYS_GETPGID, uintptr(pid), 0, 0)
  564. pgid = int(r0)
  565. if e1 != 0 {
  566. err = errnoErr(e1)
  567. }
  568. return
  569. }
  570. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  571. func Getppid() (pid int) {
  572. r0, _, _ := syscall_rawsyscall(SYS_GETPPID, 0, 0, 0)
  573. pid = int(r0)
  574. return
  575. }
  576. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  577. func Getpriority(which int, who int) (prio int, err error) {
  578. r0, _, e1 := syscall_syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
  579. prio = int(r0)
  580. if e1 != 0 {
  581. err = errnoErr(e1)
  582. }
  583. return
  584. }
  585. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  586. func Getrlimit(resource int, rlim *Rlimit) (err error) {
  587. _, _, e1 := syscall_rawsyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  588. if e1 != 0 {
  589. err = errnoErr(e1)
  590. }
  591. return
  592. }
  593. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  594. func getrusage(who int, rusage *rusage_zos) (err error) {
  595. _, _, e1 := syscall_rawsyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
  596. if e1 != 0 {
  597. err = errnoErr(e1)
  598. }
  599. return
  600. }
  601. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  602. func Getsid(pid int) (sid int, err error) {
  603. r0, _, e1 := syscall_rawsyscall(SYS_GETSID, uintptr(pid), 0, 0)
  604. sid = int(r0)
  605. if e1 != 0 {
  606. err = errnoErr(e1)
  607. }
  608. return
  609. }
  610. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  611. func Getuid() (uid int) {
  612. r0, _, _ := syscall_rawsyscall(SYS_GETUID, 0, 0, 0)
  613. uid = int(r0)
  614. return
  615. }
  616. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  617. func Kill(pid int, sig Signal) (err error) {
  618. _, _, e1 := syscall_rawsyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
  619. if e1 != 0 {
  620. err = errnoErr(e1)
  621. }
  622. return
  623. }
  624. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  625. func Lchown(path string, uid int, gid int) (err error) {
  626. var _p0 *byte
  627. _p0, err = BytePtrFromString(path)
  628. if err != nil {
  629. return
  630. }
  631. _, _, e1 := syscall_syscall(SYS___LCHOWN_A, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  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 Link(path string, link string) (err error) {
  639. var _p0 *byte
  640. _p0, err = BytePtrFromString(path)
  641. if err != nil {
  642. return
  643. }
  644. var _p1 *byte
  645. _p1, err = BytePtrFromString(link)
  646. if err != nil {
  647. return
  648. }
  649. _, _, e1 := syscall_syscall(SYS___LINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  650. if e1 != 0 {
  651. err = errnoErr(e1)
  652. }
  653. return
  654. }
  655. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  656. func Listen(s int, n int) (err error) {
  657. _, _, e1 := syscall_syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
  658. if e1 != 0 {
  659. err = errnoErr(e1)
  660. }
  661. return
  662. }
  663. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  664. func lstat(path string, stat *Stat_LE_t) (err error) {
  665. var _p0 *byte
  666. _p0, err = BytePtrFromString(path)
  667. if err != nil {
  668. return
  669. }
  670. _, _, e1 := syscall_syscall(SYS___LSTAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  671. if e1 != 0 {
  672. err = errnoErr(e1)
  673. }
  674. return
  675. }
  676. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  677. func Mkdir(path string, mode uint32) (err error) {
  678. var _p0 *byte
  679. _p0, err = BytePtrFromString(path)
  680. if err != nil {
  681. return
  682. }
  683. _, _, e1 := syscall_syscall(SYS___MKDIR_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  684. if e1 != 0 {
  685. err = errnoErr(e1)
  686. }
  687. return
  688. }
  689. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  690. func Mkfifo(path string, mode uint32) (err error) {
  691. var _p0 *byte
  692. _p0, err = BytePtrFromString(path)
  693. if err != nil {
  694. return
  695. }
  696. _, _, e1 := syscall_syscall(SYS___MKFIFO_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
  697. if e1 != 0 {
  698. err = errnoErr(e1)
  699. }
  700. return
  701. }
  702. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  703. func Mknod(path string, mode uint32, dev int) (err error) {
  704. var _p0 *byte
  705. _p0, err = BytePtrFromString(path)
  706. if err != nil {
  707. return
  708. }
  709. _, _, e1 := syscall_syscall(SYS___MKNOD_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
  710. if e1 != 0 {
  711. err = errnoErr(e1)
  712. }
  713. return
  714. }
  715. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  716. func Pread(fd int, p []byte, offset int64) (n int, err error) {
  717. var _p0 unsafe.Pointer
  718. if len(p) > 0 {
  719. _p0 = unsafe.Pointer(&p[0])
  720. } else {
  721. _p0 = unsafe.Pointer(&_zero)
  722. }
  723. r0, _, e1 := syscall_syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  724. n = int(r0)
  725. if e1 != 0 {
  726. err = errnoErr(e1)
  727. }
  728. return
  729. }
  730. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  731. func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  732. var _p0 unsafe.Pointer
  733. if len(p) > 0 {
  734. _p0 = unsafe.Pointer(&p[0])
  735. } else {
  736. _p0 = unsafe.Pointer(&_zero)
  737. }
  738. r0, _, e1 := syscall_syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  739. n = int(r0)
  740. if e1 != 0 {
  741. err = errnoErr(e1)
  742. }
  743. return
  744. }
  745. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  746. func Readlink(path string, buf []byte) (n int, err error) {
  747. var _p0 *byte
  748. _p0, err = BytePtrFromString(path)
  749. if err != nil {
  750. return
  751. }
  752. var _p1 unsafe.Pointer
  753. if len(buf) > 0 {
  754. _p1 = unsafe.Pointer(&buf[0])
  755. } else {
  756. _p1 = unsafe.Pointer(&_zero)
  757. }
  758. r0, _, e1 := syscall_syscall(SYS___READLINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
  759. n = int(r0)
  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 Rename(from string, to string) (err error) {
  767. var _p0 *byte
  768. _p0, err = BytePtrFromString(from)
  769. if err != nil {
  770. return
  771. }
  772. var _p1 *byte
  773. _p1, err = BytePtrFromString(to)
  774. if err != nil {
  775. return
  776. }
  777. _, _, e1 := syscall_syscall(SYS___RENAME_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  778. if e1 != 0 {
  779. err = errnoErr(e1)
  780. }
  781. return
  782. }
  783. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  784. func Rmdir(path string) (err error) {
  785. var _p0 *byte
  786. _p0, err = BytePtrFromString(path)
  787. if err != nil {
  788. return
  789. }
  790. _, _, e1 := syscall_syscall(SYS___RMDIR_A, uintptr(unsafe.Pointer(_p0)), 0, 0)
  791. if e1 != 0 {
  792. err = errnoErr(e1)
  793. }
  794. return
  795. }
  796. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  797. func Seek(fd int, offset int64, whence int) (off int64, err error) {
  798. r0, _, e1 := syscall_syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
  799. off = int64(r0)
  800. if e1 != 0 {
  801. err = errnoErr(e1)
  802. }
  803. return
  804. }
  805. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  806. func Setpriority(which int, who int, prio int) (err error) {
  807. _, _, e1 := syscall_syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
  808. if e1 != 0 {
  809. err = errnoErr(e1)
  810. }
  811. return
  812. }
  813. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  814. func Setpgid(pid int, pgid int) (err error) {
  815. _, _, e1 := syscall_rawsyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
  816. if e1 != 0 {
  817. err = errnoErr(e1)
  818. }
  819. return
  820. }
  821. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  822. func Setrlimit(resource int, lim *Rlimit) (err error) {
  823. _, _, e1 := syscall_rawsyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(lim)), 0)
  824. if e1 != 0 {
  825. err = errnoErr(e1)
  826. }
  827. return
  828. }
  829. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  830. func Setregid(rgid int, egid int) (err error) {
  831. _, _, e1 := syscall_rawsyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
  832. if e1 != 0 {
  833. err = errnoErr(e1)
  834. }
  835. return
  836. }
  837. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  838. func Setreuid(ruid int, euid int) (err error) {
  839. _, _, e1 := syscall_rawsyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
  840. if e1 != 0 {
  841. err = errnoErr(e1)
  842. }
  843. return
  844. }
  845. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  846. func Setsid() (pid int, err error) {
  847. r0, _, e1 := syscall_rawsyscall(SYS_SETSID, 0, 0, 0)
  848. pid = int(r0)
  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 Setuid(uid int) (err error) {
  856. _, _, e1 := syscall_syscall(SYS_SETUID, uintptr(uid), 0, 0)
  857. if e1 != 0 {
  858. err = errnoErr(e1)
  859. }
  860. return
  861. }
  862. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  863. func Setgid(uid int) (err error) {
  864. _, _, e1 := syscall_syscall(SYS_SETGID, uintptr(uid), 0, 0)
  865. if e1 != 0 {
  866. err = errnoErr(e1)
  867. }
  868. return
  869. }
  870. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  871. func Shutdown(fd int, how int) (err error) {
  872. _, _, e1 := syscall_syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  873. if e1 != 0 {
  874. err = errnoErr(e1)
  875. }
  876. return
  877. }
  878. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  879. func stat(path string, statLE *Stat_LE_t) (err error) {
  880. var _p0 *byte
  881. _p0, err = BytePtrFromString(path)
  882. if err != nil {
  883. return
  884. }
  885. _, _, e1 := syscall_syscall(SYS___STAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(statLE)), 0)
  886. if e1 != 0 {
  887. err = errnoErr(e1)
  888. }
  889. return
  890. }
  891. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  892. func Symlink(path string, link string) (err error) {
  893. var _p0 *byte
  894. _p0, err = BytePtrFromString(path)
  895. if err != nil {
  896. return
  897. }
  898. var _p1 *byte
  899. _p1, err = BytePtrFromString(link)
  900. if err != nil {
  901. return
  902. }
  903. _, _, e1 := syscall_syscall(SYS___SYMLINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
  904. if e1 != 0 {
  905. err = errnoErr(e1)
  906. }
  907. return
  908. }
  909. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  910. func Sync() {
  911. syscall_syscall(SYS_SYNC, 0, 0, 0)
  912. return
  913. }
  914. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  915. func Truncate(path string, length int64) (err error) {
  916. var _p0 *byte
  917. _p0, err = BytePtrFromString(path)
  918. if err != nil {
  919. return
  920. }
  921. _, _, e1 := syscall_syscall(SYS___TRUNCATE_A, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
  922. if e1 != 0 {
  923. err = errnoErr(e1)
  924. }
  925. return
  926. }
  927. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  928. func Tcgetattr(fildes int, termptr *Termios) (err error) {
  929. _, _, e1 := syscall_syscall(SYS_TCGETATTR, uintptr(fildes), uintptr(unsafe.Pointer(termptr)), 0)
  930. if e1 != 0 {
  931. err = errnoErr(e1)
  932. }
  933. return
  934. }
  935. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  936. func Tcsetattr(fildes int, when int, termptr *Termios) (err error) {
  937. _, _, e1 := syscall_syscall(SYS_TCSETATTR, uintptr(fildes), uintptr(when), uintptr(unsafe.Pointer(termptr)))
  938. if e1 != 0 {
  939. err = errnoErr(e1)
  940. }
  941. return
  942. }
  943. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  944. func Umask(mask int) (oldmask int) {
  945. r0, _, _ := syscall_syscall(SYS_UMASK, uintptr(mask), 0, 0)
  946. oldmask = int(r0)
  947. return
  948. }
  949. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  950. func Unlink(path string) (err error) {
  951. var _p0 *byte
  952. _p0, err = BytePtrFromString(path)
  953. if err != nil {
  954. return
  955. }
  956. _, _, e1 := syscall_syscall(SYS___UNLINK_A, uintptr(unsafe.Pointer(_p0)), 0, 0)
  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 Utime(path string, utim *Utimbuf) (err error) {
  964. var _p0 *byte
  965. _p0, err = BytePtrFromString(path)
  966. if err != nil {
  967. return
  968. }
  969. _, _, e1 := syscall_syscall(SYS___UTIME_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(utim)), 0)
  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 open(path string, mode int, perm uint32) (fd int, err error) {
  977. var _p0 *byte
  978. _p0, err = BytePtrFromString(path)
  979. if err != nil {
  980. return
  981. }
  982. r0, _, e1 := syscall_syscall(SYS___OPEN_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
  983. fd = int(r0)
  984. if e1 != 0 {
  985. err = errnoErr(e1)
  986. }
  987. return
  988. }
  989. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  990. func remove(path string) (err error) {
  991. var _p0 *byte
  992. _p0, err = BytePtrFromString(path)
  993. if err != nil {
  994. return
  995. }
  996. _, _, e1 := syscall_syscall(SYS_REMOVE, uintptr(unsafe.Pointer(_p0)), 0, 0)
  997. if e1 != 0 {
  998. err = errnoErr(e1)
  999. }
  1000. return
  1001. }
  1002. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1003. func waitpid(pid int, wstatus *_C_int, options int) (wpid int, err error) {
  1004. r0, _, e1 := syscall_syscall(SYS_WAITPID, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options))
  1005. wpid = int(r0)
  1006. if e1 != 0 {
  1007. err = errnoErr(e1)
  1008. }
  1009. return
  1010. }
  1011. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1012. func gettimeofday(tv *timeval_zos) (err error) {
  1013. _, _, e1 := syscall_rawsyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  1014. if e1 != 0 {
  1015. err = errnoErr(e1)
  1016. }
  1017. return
  1018. }
  1019. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1020. func pipe(p *[2]_C_int) (err error) {
  1021. _, _, e1 := syscall_rawsyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
  1022. if e1 != 0 {
  1023. err = errnoErr(e1)
  1024. }
  1025. return
  1026. }
  1027. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1028. func utimes(path string, timeval *[2]Timeval) (err error) {
  1029. var _p0 *byte
  1030. _p0, err = BytePtrFromString(path)
  1031. if err != nil {
  1032. return
  1033. }
  1034. _, _, e1 := syscall_syscall(SYS___UTIMES_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
  1035. if e1 != 0 {
  1036. err = errnoErr(e1)
  1037. }
  1038. return
  1039. }
  1040. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  1041. func Select(nmsgsfds int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (ret int, err error) {
  1042. r0, _, e1 := syscall_syscall6(SYS_SELECT, uintptr(nmsgsfds), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  1043. ret = int(r0)
  1044. if e1 != 0 {
  1045. err = errnoErr(e1)
  1046. }
  1047. return
  1048. }