zsyscall_linux_mips.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. // go run mksyscall.go -b32 -arm -tags linux,mips syscall_linux.go syscall_linux_mipsx.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build linux && mips
  4. // +build linux,mips
  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>>32), uintptr(mask), 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>>32), uintptr(off), uintptr(len>>32), uintptr(len))
  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(r0)<<32 | int64(r1))
  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 EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
  38. var _p0 unsafe.Pointer
  39. if len(events) > 0 {
  40. _p0 = unsafe.Pointer(&events[0])
  41. } else {
  42. _p0 = unsafe.Pointer(&_zero)
  43. }
  44. r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
  45. n = int(r0)
  46. if e1 != 0 {
  47. err = errnoErr(e1)
  48. }
  49. return
  50. }
  51. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  52. func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
  53. _, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length), uintptr(advice), 0, 0)
  54. if e1 != 0 {
  55. err = errnoErr(e1)
  56. }
  57. return
  58. }
  59. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  60. func Fchown(fd int, uid int, gid int) (err error) {
  61. _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
  62. if e1 != 0 {
  63. err = errnoErr(e1)
  64. }
  65. return
  66. }
  67. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  68. func Ftruncate(fd int, length int64) (err error) {
  69. _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length>>32), uintptr(length), 0, 0)
  70. if e1 != 0 {
  71. err = errnoErr(e1)
  72. }
  73. return
  74. }
  75. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  76. func Getegid() (egid int) {
  77. r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
  78. egid = int(r0)
  79. return
  80. }
  81. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  82. func Geteuid() (euid int) {
  83. r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
  84. euid = int(r0)
  85. return
  86. }
  87. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  88. func Getgid() (gid int) {
  89. r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
  90. gid = int(r0)
  91. return
  92. }
  93. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  94. func Getuid() (uid int) {
  95. r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
  96. uid = int(r0)
  97. return
  98. }
  99. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  100. func Lchown(path string, uid int, gid int) (err error) {
  101. var _p0 *byte
  102. _p0, err = BytePtrFromString(path)
  103. if err != nil {
  104. return
  105. }
  106. _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  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 Listen(s int, n int) (err error) {
  114. _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
  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 Pread(fd int, p []byte, offset int64) (n int, err error) {
  122. var _p0 unsafe.Pointer
  123. if len(p) > 0 {
  124. _p0 = unsafe.Pointer(&p[0])
  125. } else {
  126. _p0 = unsafe.Pointer(&_zero)
  127. }
  128. r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset>>32), uintptr(offset))
  129. n = int(r0)
  130. if e1 != 0 {
  131. err = errnoErr(e1)
  132. }
  133. return
  134. }
  135. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  136. func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  137. var _p0 unsafe.Pointer
  138. if len(p) > 0 {
  139. _p0 = unsafe.Pointer(&p[0])
  140. } else {
  141. _p0 = unsafe.Pointer(&_zero)
  142. }
  143. r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset>>32), uintptr(offset))
  144. n = int(r0)
  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 Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  152. var _p0 *byte
  153. _p0, err = BytePtrFromString(oldpath)
  154. if err != nil {
  155. return
  156. }
  157. var _p1 *byte
  158. _p1, err = BytePtrFromString(newpath)
  159. if err != nil {
  160. return
  161. }
  162. _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  163. if e1 != 0 {
  164. err = errnoErr(e1)
  165. }
  166. return
  167. }
  168. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  169. func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
  170. r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
  171. n = int(r0)
  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 sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  179. r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  180. written = 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 setfsgid(gid int) (prev int, err error) {
  188. r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
  189. prev = 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 setfsuid(uid int) (prev int, err error) {
  197. r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
  198. prev = int(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 Setregid(rgid int, egid int) (err error) {
  206. _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 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 Setresgid(rgid int, egid int, sgid int) (err error) {
  214. _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
  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 Setresuid(ruid int, euid int, suid int) (err error) {
  222. _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
  223. if e1 != 0 {
  224. err = errnoErr(e1)
  225. }
  226. return
  227. }
  228. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  229. func Setreuid(ruid int, euid int) (err error) {
  230. _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
  231. if e1 != 0 {
  232. err = errnoErr(e1)
  233. }
  234. return
  235. }
  236. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  237. func Shutdown(fd int, how int) (err error) {
  238. _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  239. if e1 != 0 {
  240. err = errnoErr(e1)
  241. }
  242. return
  243. }
  244. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  245. func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
  246. r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
  247. n = int(r0)
  248. if e1 != 0 {
  249. err = errnoErr(e1)
  250. }
  251. return
  252. }
  253. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  254. func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
  255. _, _, e1 := Syscall9(SYS_SYNC_FILE_RANGE, uintptr(fd), 0, uintptr(off>>32), uintptr(off), uintptr(n>>32), uintptr(n), uintptr(flags), 0, 0)
  256. if e1 != 0 {
  257. err = errnoErr(e1)
  258. }
  259. return
  260. }
  261. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  262. func Truncate(path string, length int64) (err error) {
  263. var _p0 *byte
  264. _p0, err = BytePtrFromString(path)
  265. if err != nil {
  266. return
  267. }
  268. _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length>>32), uintptr(length), 0, 0)
  269. if e1 != 0 {
  270. err = errnoErr(e1)
  271. }
  272. return
  273. }
  274. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  275. func Ustat(dev int, ubuf *Ustat_t) (err error) {
  276. _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
  277. if e1 != 0 {
  278. err = errnoErr(e1)
  279. }
  280. return
  281. }
  282. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  283. func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  284. r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  285. fd = int(r0)
  286. if e1 != 0 {
  287. err = errnoErr(e1)
  288. }
  289. return
  290. }
  291. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  292. func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  293. r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  294. fd = int(r0)
  295. if e1 != 0 {
  296. err = errnoErr(e1)
  297. }
  298. return
  299. }
  300. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  301. func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  302. _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
  303. if e1 != 0 {
  304. err = errnoErr(e1)
  305. }
  306. return
  307. }
  308. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  309. func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  310. _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
  311. if e1 != 0 {
  312. err = errnoErr(e1)
  313. }
  314. return
  315. }
  316. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  317. func getgroups(n int, list *_Gid_t) (nn int, err error) {
  318. r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  319. nn = int(r0)
  320. if e1 != 0 {
  321. err = errnoErr(e1)
  322. }
  323. return
  324. }
  325. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  326. func setgroups(n int, list *_Gid_t) (err error) {
  327. _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  328. if e1 != 0 {
  329. err = errnoErr(e1)
  330. }
  331. return
  332. }
  333. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  334. func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  335. _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  336. if e1 != 0 {
  337. err = errnoErr(e1)
  338. }
  339. return
  340. }
  341. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  342. func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  343. _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  344. if e1 != 0 {
  345. err = errnoErr(e1)
  346. }
  347. return
  348. }
  349. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  350. func socket(domain int, typ int, proto int) (fd int, err error) {
  351. r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  352. fd = int(r0)
  353. if e1 != 0 {
  354. err = errnoErr(e1)
  355. }
  356. return
  357. }
  358. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  359. func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  360. _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  361. if e1 != 0 {
  362. err = errnoErr(e1)
  363. }
  364. return
  365. }
  366. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  367. func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  368. _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  369. if e1 != 0 {
  370. err = errnoErr(e1)
  371. }
  372. return
  373. }
  374. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  375. func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  376. _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  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 recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  384. var _p0 unsafe.Pointer
  385. if len(p) > 0 {
  386. _p0 = unsafe.Pointer(&p[0])
  387. } else {
  388. _p0 = unsafe.Pointer(&_zero)
  389. }
  390. r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  391. n = int(r0)
  392. if e1 != 0 {
  393. err = errnoErr(e1)
  394. }
  395. return
  396. }
  397. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  398. func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  399. var _p0 unsafe.Pointer
  400. if len(buf) > 0 {
  401. _p0 = unsafe.Pointer(&buf[0])
  402. } else {
  403. _p0 = unsafe.Pointer(&_zero)
  404. }
  405. _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  406. if e1 != 0 {
  407. err = errnoErr(e1)
  408. }
  409. return
  410. }
  411. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  412. func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  413. r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  414. n = int(r0)
  415. if e1 != 0 {
  416. err = errnoErr(e1)
  417. }
  418. return
  419. }
  420. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  421. func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  422. r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  423. n = int(r0)
  424. if e1 != 0 {
  425. err = errnoErr(e1)
  426. }
  427. return
  428. }
  429. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  430. func Ioperm(from int, num int, on int) (err error) {
  431. _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
  432. if e1 != 0 {
  433. err = errnoErr(e1)
  434. }
  435. return
  436. }
  437. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  438. func Iopl(level int) (err error) {
  439. _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
  440. if e1 != 0 {
  441. err = errnoErr(e1)
  442. }
  443. return
  444. }
  445. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  446. func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
  447. var _p0 *byte
  448. _p0, err = BytePtrFromString(path)
  449. if err != nil {
  450. return
  451. }
  452. _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
  453. if e1 != 0 {
  454. err = errnoErr(e1)
  455. }
  456. return
  457. }
  458. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  459. func Gettimeofday(tv *Timeval) (err error) {
  460. _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  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 Time(t *Time_t) (tt Time_t, err error) {
  468. r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
  469. tt = Time_t(r0)
  470. if e1 != 0 {
  471. err = errnoErr(e1)
  472. }
  473. return
  474. }
  475. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  476. func Utime(path string, buf *Utimbuf) (err error) {
  477. var _p0 *byte
  478. _p0, err = BytePtrFromString(path)
  479. if err != nil {
  480. return
  481. }
  482. _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  483. if e1 != 0 {
  484. err = errnoErr(e1)
  485. }
  486. return
  487. }
  488. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  489. func utimes(path string, times *[2]Timeval) (err error) {
  490. var _p0 *byte
  491. _p0, err = BytePtrFromString(path)
  492. if err != nil {
  493. return
  494. }
  495. _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
  496. if e1 != 0 {
  497. err = errnoErr(e1)
  498. }
  499. return
  500. }
  501. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  502. func Lstat(path string, stat *Stat_t) (err error) {
  503. var _p0 *byte
  504. _p0, err = BytePtrFromString(path)
  505. if err != nil {
  506. return
  507. }
  508. _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  509. if e1 != 0 {
  510. err = errnoErr(e1)
  511. }
  512. return
  513. }
  514. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  515. func Fstat(fd int, stat *Stat_t) (err error) {
  516. _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
  517. if e1 != 0 {
  518. err = errnoErr(e1)
  519. }
  520. return
  521. }
  522. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  523. func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
  524. var _p0 *byte
  525. _p0, err = BytePtrFromString(path)
  526. if err != nil {
  527. return
  528. }
  529. _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
  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 Stat(path string, stat *Stat_t) (err error) {
  537. var _p0 *byte
  538. _p0, err = BytePtrFromString(path)
  539. if err != nil {
  540. return
  541. }
  542. _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
  543. if e1 != 0 {
  544. err = errnoErr(e1)
  545. }
  546. return
  547. }
  548. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  549. func Pause() (err error) {
  550. _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
  551. if e1 != 0 {
  552. err = errnoErr(e1)
  553. }
  554. return
  555. }
  556. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  557. func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
  558. r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
  559. xaddr = uintptr(r0)
  560. if e1 != 0 {
  561. err = errnoErr(e1)
  562. }
  563. return
  564. }
  565. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  566. func getrlimit(resource int, rlim *rlimit32) (err error) {
  567. _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  568. if e1 != 0 {
  569. err = errnoErr(e1)
  570. }
  571. return
  572. }
  573. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  574. func setrlimit(resource int, rlim *rlimit32) (err error) {
  575. _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  576. if e1 != 0 {
  577. err = errnoErr(e1)
  578. }
  579. return
  580. }