zsyscall_linux_mips64.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  1. // go run mksyscall.go -tags linux,mips64 syscall_linux.go syscall_linux_mips64x.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build linux && mips64
  4. // +build linux,mips64
  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(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
  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(len), 0, 0)
  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, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
  30. n = 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 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 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), 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 Fstatfs(fd int, buf *Statfs_t) (err error) {
  69. _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 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 Ftruncate(fd int, length int64) (err error) {
  77. _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
  78. if e1 != 0 {
  79. err = errnoErr(e1)
  80. }
  81. return
  82. }
  83. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  84. func Getegid() (egid int) {
  85. r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
  86. egid = int(r0)
  87. return
  88. }
  89. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  90. func Geteuid() (euid int) {
  91. r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
  92. euid = int(r0)
  93. return
  94. }
  95. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  96. func Getgid() (gid int) {
  97. r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
  98. gid = int(r0)
  99. return
  100. }
  101. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  102. func Getrlimit(resource int, rlim *Rlimit) (err error) {
  103. _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  104. if e1 != 0 {
  105. err = errnoErr(e1)
  106. }
  107. return
  108. }
  109. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  110. func Getuid() (uid int) {
  111. r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
  112. uid = int(r0)
  113. return
  114. }
  115. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  116. func Lchown(path string, uid int, gid int) (err error) {
  117. var _p0 *byte
  118. _p0, err = BytePtrFromString(path)
  119. if err != nil {
  120. return
  121. }
  122. _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
  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 Listen(s int, n int) (err error) {
  130. _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
  131. if e1 != 0 {
  132. err = errnoErr(e1)
  133. }
  134. return
  135. }
  136. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  137. func Pause() (err error) {
  138. _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
  139. if e1 != 0 {
  140. err = errnoErr(e1)
  141. }
  142. return
  143. }
  144. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  145. func Pread(fd int, p []byte, offset int64) (n int, err error) {
  146. var _p0 unsafe.Pointer
  147. if len(p) > 0 {
  148. _p0 = unsafe.Pointer(&p[0])
  149. } else {
  150. _p0 = unsafe.Pointer(&_zero)
  151. }
  152. r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  153. n = int(r0)
  154. if e1 != 0 {
  155. err = errnoErr(e1)
  156. }
  157. return
  158. }
  159. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  160. func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
  161. var _p0 unsafe.Pointer
  162. if len(p) > 0 {
  163. _p0 = unsafe.Pointer(&p[0])
  164. } else {
  165. _p0 = unsafe.Pointer(&_zero)
  166. }
  167. r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
  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 Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
  176. var _p0 *byte
  177. _p0, err = BytePtrFromString(oldpath)
  178. if err != nil {
  179. return
  180. }
  181. var _p1 *byte
  182. _p1, err = BytePtrFromString(newpath)
  183. if err != nil {
  184. return
  185. }
  186. _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
  187. if e1 != 0 {
  188. err = errnoErr(e1)
  189. }
  190. return
  191. }
  192. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  193. func Seek(fd int, offset int64, whence int) (off int64, err error) {
  194. r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
  195. off = int64(r0)
  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 sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  203. r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
  204. written = int(r0)
  205. if e1 != 0 {
  206. err = errnoErr(e1)
  207. }
  208. return
  209. }
  210. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  211. func setfsgid(gid int) (prev int, err error) {
  212. r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
  213. prev = int(r0)
  214. if e1 != 0 {
  215. err = errnoErr(e1)
  216. }
  217. return
  218. }
  219. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  220. func setfsuid(uid int) (prev int, err error) {
  221. r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
  222. prev = int(r0)
  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 Setregid(rgid int, egid int) (err error) {
  230. _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 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 Setresgid(rgid int, egid int, sgid int) (err error) {
  238. _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
  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 Setresuid(ruid int, euid int, suid int) (err error) {
  246. _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
  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 Setrlimit(resource int, rlim *Rlimit) (err error) {
  254. _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
  255. if e1 != 0 {
  256. err = errnoErr(e1)
  257. }
  258. return
  259. }
  260. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  261. func Setreuid(ruid int, euid int) (err error) {
  262. _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
  263. if e1 != 0 {
  264. err = errnoErr(e1)
  265. }
  266. return
  267. }
  268. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  269. func Shutdown(fd int, how int) (err error) {
  270. _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  271. if e1 != 0 {
  272. err = errnoErr(e1)
  273. }
  274. return
  275. }
  276. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  277. func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
  278. r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
  279. n = int64(r0)
  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 Statfs(path string, buf *Statfs_t) (err error) {
  287. var _p0 *byte
  288. _p0, err = BytePtrFromString(path)
  289. if err != nil {
  290. return
  291. }
  292. _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  293. if e1 != 0 {
  294. err = errnoErr(e1)
  295. }
  296. return
  297. }
  298. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  299. func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
  300. _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
  301. if e1 != 0 {
  302. err = errnoErr(e1)
  303. }
  304. return
  305. }
  306. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  307. func Truncate(path string, length int64) (err error) {
  308. var _p0 *byte
  309. _p0, err = BytePtrFromString(path)
  310. if err != nil {
  311. return
  312. }
  313. _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
  314. if e1 != 0 {
  315. err = errnoErr(e1)
  316. }
  317. return
  318. }
  319. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  320. func Ustat(dev int, ubuf *Ustat_t) (err error) {
  321. _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
  322. if e1 != 0 {
  323. err = errnoErr(e1)
  324. }
  325. return
  326. }
  327. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  328. func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
  329. r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  330. fd = int(r0)
  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 accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  338. r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  339. fd = int(r0)
  340. if e1 != 0 {
  341. err = errnoErr(e1)
  342. }
  343. return
  344. }
  345. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  346. func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  347. _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
  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 connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
  355. _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
  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 getgroups(n int, list *_Gid_t) (nn int, err error) {
  363. r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  364. nn = int(r0)
  365. if e1 != 0 {
  366. err = errnoErr(e1)
  367. }
  368. return
  369. }
  370. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  371. func setgroups(n int, list *_Gid_t) (err error) {
  372. _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
  373. if e1 != 0 {
  374. err = errnoErr(e1)
  375. }
  376. return
  377. }
  378. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  379. func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
  380. _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
  381. if e1 != 0 {
  382. err = errnoErr(e1)
  383. }
  384. return
  385. }
  386. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  387. func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
  388. _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
  389. if e1 != 0 {
  390. err = errnoErr(e1)
  391. }
  392. return
  393. }
  394. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  395. func socket(domain int, typ int, proto int) (fd int, err error) {
  396. r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
  397. fd = int(r0)
  398. if e1 != 0 {
  399. err = errnoErr(e1)
  400. }
  401. return
  402. }
  403. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  404. func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
  405. _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
  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 getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  413. _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  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 getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
  421. _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
  422. if e1 != 0 {
  423. err = errnoErr(e1)
  424. }
  425. return
  426. }
  427. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  428. func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
  429. var _p0 unsafe.Pointer
  430. if len(p) > 0 {
  431. _p0 = unsafe.Pointer(&p[0])
  432. } else {
  433. _p0 = unsafe.Pointer(&_zero)
  434. }
  435. r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
  436. n = int(r0)
  437. if e1 != 0 {
  438. err = errnoErr(e1)
  439. }
  440. return
  441. }
  442. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  443. func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
  444. var _p0 unsafe.Pointer
  445. if len(buf) > 0 {
  446. _p0 = unsafe.Pointer(&buf[0])
  447. } else {
  448. _p0 = unsafe.Pointer(&_zero)
  449. }
  450. _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
  451. if e1 != 0 {
  452. err = errnoErr(e1)
  453. }
  454. return
  455. }
  456. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  457. func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  458. r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  459. n = int(r0)
  460. if e1 != 0 {
  461. err = errnoErr(e1)
  462. }
  463. return
  464. }
  465. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  466. func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
  467. r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
  468. n = int(r0)
  469. if e1 != 0 {
  470. err = errnoErr(e1)
  471. }
  472. return
  473. }
  474. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  475. func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
  476. r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
  477. xaddr = uintptr(r0)
  478. if e1 != 0 {
  479. err = errnoErr(e1)
  480. }
  481. return
  482. }
  483. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  484. func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
  485. var _p0 *byte
  486. _p0, err = BytePtrFromString(path)
  487. if err != nil {
  488. return
  489. }
  490. _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
  491. if e1 != 0 {
  492. err = errnoErr(e1)
  493. }
  494. return
  495. }
  496. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  497. func Gettimeofday(tv *Timeval) (err error) {
  498. _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
  499. if e1 != 0 {
  500. err = errnoErr(e1)
  501. }
  502. return
  503. }
  504. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  505. func Utime(path string, buf *Utimbuf) (err error) {
  506. var _p0 *byte
  507. _p0, err = BytePtrFromString(path)
  508. if err != nil {
  509. return
  510. }
  511. _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
  512. if e1 != 0 {
  513. err = errnoErr(e1)
  514. }
  515. return
  516. }
  517. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  518. func utimes(path string, times *[2]Timeval) (err error) {
  519. var _p0 *byte
  520. _p0, err = BytePtrFromString(path)
  521. if err != nil {
  522. return
  523. }
  524. _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
  525. if e1 != 0 {
  526. err = errnoErr(e1)
  527. }
  528. return
  529. }
  530. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  531. func fstat(fd int, st *stat_t) (err error) {
  532. _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(st)), 0)
  533. if e1 != 0 {
  534. err = errnoErr(e1)
  535. }
  536. return
  537. }
  538. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  539. func fstatat(dirfd int, path string, st *stat_t, flags int) (err error) {
  540. var _p0 *byte
  541. _p0, err = BytePtrFromString(path)
  542. if err != nil {
  543. return
  544. }
  545. _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), uintptr(flags), 0, 0)
  546. if e1 != 0 {
  547. err = errnoErr(e1)
  548. }
  549. return
  550. }
  551. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  552. func lstat(path string, st *stat_t) (err error) {
  553. var _p0 *byte
  554. _p0, err = BytePtrFromString(path)
  555. if err != nil {
  556. return
  557. }
  558. _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0)
  559. if e1 != 0 {
  560. err = errnoErr(e1)
  561. }
  562. return
  563. }
  564. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  565. func stat(path string, st *stat_t) (err error) {
  566. var _p0 *byte
  567. _p0, err = BytePtrFromString(path)
  568. if err != nil {
  569. return
  570. }
  571. _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0)
  572. if e1 != 0 {
  573. err = errnoErr(e1)
  574. }
  575. return
  576. }