zsyscall_linux_arm.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. // go run mksyscall.go -l32 -arm -tags linux,arm syscall_linux.go syscall_linux_arm.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build linux && arm
  4. // +build linux,arm
  5. package unix
  6. import (
  7. "syscall"
  8. "unsafe"
  9. )
  10. var _ syscall.Errno
  11. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  12. func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
  13. _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
  14. if e1 != 0 {
  15. err = errnoErr(e1)
  16. }
  17. return
  18. }
  19. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  20. func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
  21. _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
  22. if e1 != 0 {
  23. err = errnoErr(e1)
  24. }
  25. return
  26. }
  27. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  28. func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
  29. r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
  30. n = int64(int64(r1)<<32 | int64(r0))
  31. if e1 != 0 {
  32. err = errnoErr(e1)
  33. }
  34. return
  35. }
  36. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  37. func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  38. r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  39. fd = int(r0)
  40. if e1 != 0 {
  41. err = errnoErr(e1)
  42. }
  43. return
  44. }
  45. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  46. func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  47. r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  48. fd = int(r0)
  49. if e1 != 0 {
  50. err = errnoErr(e1)
  51. }
  52. return
  53. }
  54. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  55. func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  56. _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
  57. if e1 != 0 {
  58. err = errnoErr(e1)
  59. }
  60. return
  61. }
  62. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  63. func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  64. _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
  65. if e1 != 0 {
  66. err = errnoErr(e1)
  67. }
  68. return
  69. }
  70. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  71. func getgroups(n int, list *_Gid_t) (nn int, err error) {
  72. r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  73. nn = int(r0)
  74. if e1 != 0 {
  75. err = errnoErr(e1)
  76. }
  77. return
  78. }
  79. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  80. func setgroups(n int, list *_Gid_t) (err error) {
  81. _, _, e1 := RawSyscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  82. if e1 != 0 {
  83. err = errnoErr(e1)
  84. }
  85. return
  86. }
  87. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  88. func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  89. _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  90. if e1 != 0 {
  91. err = errnoErr(e1)
  92. }
  93. return
  94. }
  95. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  96. func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  97. _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  98. if e1 != 0 {
  99. err = errnoErr(e1)
  100. }
  101. return
  102. }
  103. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  104. func socket(domain int, typ int, proto int) (fd int, err error) {
  105. r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  106. fd = int(r0)
  107. if e1 != 0 {
  108. err = errnoErr(e1)
  109. }
  110. return
  111. }
  112. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  113. func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  114. _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  115. if e1 != 0 {
  116. err = errnoErr(e1)
  117. }
  118. return
  119. }
  120. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  121. func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  122. _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  123. if e1 != 0 {
  124. err = errnoErr(e1)
  125. }
  126. return
  127. }
  128. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  129. func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  130. var _p0 unsafe.Pointer
  131. if len(p) > 0 {
  132. _p0 = unsafe.Pointer(&p[0])
  133. } else {
  134. _p0 = unsafe.Pointer(&_zero)
  135. }
  136. r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  137. n = int(r0)
  138. if e1 != 0 {
  139. err = errnoErr(e1)
  140. }
  141. return
  142. }
  143. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  144. func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  145. var _p0 unsafe.Pointer
  146. if len(buf) > 0 {
  147. _p0 = unsafe.Pointer(&buf[0])
  148. } else {
  149. _p0 = unsafe.Pointer(&_zero)
  150. }
  151. _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  152. if e1 != 0 {
  153. err = errnoErr(e1)
  154. }
  155. return
  156. }
  157. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  158. func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) {
  159. _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0)
  160. if e1 != 0 {
  161. err = errnoErr(e1)
  162. }
  163. return
  164. }
  165. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  166. func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  167. r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  168. n = int(r0)
  169. if e1 != 0 {
  170. err = errnoErr(e1)
  171. }
  172. return
  173. }
  174. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  175. func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  176. r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  177. n = int(r0)
  178. if e1 != 0 {
  179. err = errnoErr(e1)
  180. }
  181. return
  182. }
  183. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  184. func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
  185. var _p0 unsafe.Pointer
  186. if len(events) > 0 {
  187. _p0 = unsafe.Pointer(&events[0])
  188. } else {
  189. _p0 = unsafe.Pointer(&_zero)
  190. }
  191. r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
  192. n = int(r0)
  193. if e1 != 0 {
  194. err = errnoErr(e1)
  195. }
  196. return
  197. }
  198. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  199. func Fchown(fd int, uid int, gid int) (err error) {
  200. _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid))
  201. if e1 != 0 {
  202. err = errnoErr(e1)
  203. }
  204. return
  205. }
  206. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  207. func Fstat(fd int, stat *Stat_t) (err error) {
  208. _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  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 Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
  216. var _p0 *byte
  217. _p0, err = BytePtrFromString(path)
  218. if err != nil {
  219. return
  220. }
  221. _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  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 Getegid() (egid int) {
  229. r0, _ := RawSyscallNoError(SYS_GETEGID32, 0, 0, 0)
  230. egid = int(r0)
  231. return
  232. }
  233. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  234. func Geteuid() (euid int) {
  235. r0, _ := RawSyscallNoError(SYS_GETEUID32, 0, 0, 0)
  236. euid = int(r0)
  237. return
  238. }
  239. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  240. func Getgid() (gid int) {
  241. r0, _ := RawSyscallNoError(SYS_GETGID32, 0, 0, 0)
  242. gid = int(r0)
  243. return
  244. }
  245. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  246. func Getuid() (uid int) {
  247. r0, _ := RawSyscallNoError(SYS_GETUID32, 0, 0, 0)
  248. uid = int(r0)
  249. return
  250. }
  251. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  252. func Lchown(path string, uid int, gid int) (err error) {
  253. var _p0 *byte
  254. _p0, err = BytePtrFromString(path)
  255. if err != nil {
  256. return
  257. }
  258. _, _, e1 := Syscall(SYS_LCHOWN32, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  259. if e1 != 0 {
  260. err = errnoErr(e1)
  261. }
  262. return
  263. }
  264. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  265. func Listen(s int, n int) (err error) {
  266. _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 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 Lstat(path string, stat *Stat_t) (err error) {
  274. var _p0 *byte
  275. _p0, err = BytePtrFromString(path)
  276. if err != nil {
  277. return
  278. }
  279. _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  280. if e1 != 0 {
  281. err = errnoErr(e1)
  282. }
  283. return
  284. }
  285. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  286. func Pause() (err error) {
  287. _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
  288. if e1 != 0 {
  289. err = errnoErr(e1)
  290. }
  291. return
  292. }
  293. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  294. func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  295. var _p0 *byte
  296. _p0, err = BytePtrFromString(oldpath)
  297. if err != nil {
  298. return
  299. }
  300. var _p1 *byte
  301. _p1, err = BytePtrFromString(newpath)
  302. if err != nil {
  303. return
  304. }
  305. _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  306. if e1 != 0 {
  307. err = errnoErr(e1)
  308. }
  309. return
  310. }
  311. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  312. func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  313. r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  314. written = int(r0)
  315. if e1 != 0 {
  316. err = errnoErr(e1)
  317. }
  318. return
  319. }
  320. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  321. func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  322. r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  323. n = int(r0)
  324. if e1 != 0 {
  325. err = errnoErr(e1)
  326. }
  327. return
  328. }
  329. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  330. func setfsgid(gid int) (prev int, err error) {
  331. r0, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
  332. prev = int(r0)
  333. if e1 != 0 {
  334. err = errnoErr(e1)
  335. }
  336. return
  337. }
  338. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  339. func setfsuid(uid int) (prev int, err error) {
  340. r0, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0)
  341. prev = int(r0)
  342. if e1 != 0 {
  343. err = errnoErr(e1)
  344. }
  345. return
  346. }
  347. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  348. func Setregid(rgid int, egid int) (err error) {
  349. _, _, e1 := RawSyscall(SYS_SETREGID32, uintptr(rgid), uintptr(egid), 0)
  350. if e1 != 0 {
  351. err = errnoErr(e1)
  352. }
  353. return
  354. }
  355. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  356. func Setresgid(rgid int, egid int, sgid int) (err error) {
  357. _, _, e1 := RawSyscall(SYS_SETRESGID32, uintptr(rgid), uintptr(egid), uintptr(sgid))
  358. if e1 != 0 {
  359. err = errnoErr(e1)
  360. }
  361. return
  362. }
  363. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  364. func Setresuid(ruid int, euid int, suid int) (err error) {
  365. _, _, e1 := RawSyscall(SYS_SETRESUID32, uintptr(ruid), uintptr(euid), uintptr(suid))
  366. if e1 != 0 {
  367. err = errnoErr(e1)
  368. }
  369. return
  370. }
  371. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  372. func Setreuid(ruid int, euid int) (err error) {
  373. _, _, e1 := RawSyscall(SYS_SETREUID32, uintptr(ruid), uintptr(euid), 0)
  374. if e1 != 0 {
  375. err = errnoErr(e1)
  376. }
  377. return
  378. }
  379. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  380. func Shutdown(fd int, how int) (err error) {
  381. _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  382. if e1 != 0 {
  383. err = errnoErr(e1)
  384. }
  385. return
  386. }
  387. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  388. func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
  389. r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
  390. n = int(r0)
  391. if e1 != 0 {
  392. err = errnoErr(e1)
  393. }
  394. return
  395. }
  396. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  397. func Stat(path string, stat *Stat_t) (err error) {
  398. var _p0 *byte
  399. _p0, err = BytePtrFromString(path)
  400. if err != nil {
  401. return
  402. }
  403. _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  404. if e1 != 0 {
  405. err = errnoErr(e1)
  406. }
  407. return
  408. }
  409. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  410. func Ustat(dev int, ubuf *Ustat_t) (err error) {
  411. _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
  412. if e1 != 0 {
  413. err = errnoErr(e1)
  414. }
  415. return
  416. }
  417. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  418. func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
  419. var _p0 *byte
  420. _p0, err = BytePtrFromString(path)
  421. if err != nil {
  422. return
  423. }
  424. _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
  425. if e1 != 0 {
  426. err = errnoErr(e1)
  427. }
  428. return
  429. }
  430. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  431. func Gettimeofday(tv *Timeval) (err error) {
  432. _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  433. if e1 != 0 {
  434. err = errnoErr(e1)
  435. }
  436. return
  437. }
  438. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  439. func utimes(path string, times *[2]Timeval) (err error) {
  440. var _p0 *byte
  441. _p0, err = BytePtrFromString(path)
  442. if err != nil {
  443. return
  444. }
  445. _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
  446. if e1 != 0 {
  447. err = errnoErr(e1)
  448. }
  449. return
  450. }
  451. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  452. func Pread(fd int, p []byte, offset int64) (n int, err error) {
  453. var _p0 unsafe.Pointer
  454. if len(p) > 0 {
  455. _p0 = unsafe.Pointer(&p[0])
  456. } else {
  457. _p0 = unsafe.Pointer(&_zero)
  458. }
  459. r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
  460. n = int(r0)
  461. if e1 != 0 {
  462. err = errnoErr(e1)
  463. }
  464. return
  465. }
  466. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  467. func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  468. var _p0 unsafe.Pointer
  469. if len(p) > 0 {
  470. _p0 = unsafe.Pointer(&p[0])
  471. } else {
  472. _p0 = unsafe.Pointer(&_zero)
  473. }
  474. r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
  475. n = int(r0)
  476. if e1 != 0 {
  477. err = errnoErr(e1)
  478. }
  479. return
  480. }
  481. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  482. func Truncate(path string, length int64) (err error) {
  483. var _p0 *byte
  484. _p0, err = BytePtrFromString(path)
  485. if err != nil {
  486. return
  487. }
  488. _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
  489. if e1 != 0 {
  490. err = errnoErr(e1)
  491. }
  492. return
  493. }
  494. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  495. func Ftruncate(fd int, length int64) (err error) {
  496. _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 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 mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
  504. r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
  505. xaddr = uintptr(r0)
  506. if e1 != 0 {
  507. err = errnoErr(e1)
  508. }
  509. return
  510. }
  511. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  512. func getrlimit(resource int, rlim *rlimit32) (err error) {
  513. _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  514. if e1 != 0 {
  515. err = errnoErr(e1)
  516. }
  517. return
  518. }
  519. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  520. func setrlimit(resource int, rlim *rlimit32) (err error) {
  521. _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  522. if e1 != 0 {
  523. err = errnoErr(e1)
  524. }
  525. return
  526. }
  527. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  528. func armSyncFileRange(fd int, flags int, off int64, n int64) (err error) {
  529. _, _, e1 := Syscall6(SYS_ARM_SYNC_FILE_RANGE, uintptr(fd), uintptr(flags), uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32))
  530. if e1 != 0 {
  531. err = errnoErr(e1)
  532. }
  533. return
  534. }
  535. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  536. func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
  537. var _p0 *byte
  538. _p0, err = BytePtrFromString(cmdline)
  539. if err != nil {
  540. return
  541. }
  542. _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
  543. if e1 != 0 {
  544. err = errnoErr(e1)
  545. }
  546. return
  547. }