syscall_netbsd.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. // Copyright 2009,2010 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // NetBSD system calls.
  5. // This file is compiled as ordinary Go code,
  6. // but it is also input to mksyscall,
  7. // which parses the //sys lines and generates system call stubs.
  8. // Note that sometimes we use a lowercase //sys name and wrap
  9. // it in our own nicer implementation, either here or in
  10. // syscall_bsd.go or syscall_unix.go.
  11. package unix
  12. import (
  13. "runtime"
  14. "syscall"
  15. "unsafe"
  16. )
  17. // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
  18. type SockaddrDatalink struct {
  19. Len uint8
  20. Family uint8
  21. Index uint16
  22. Type uint8
  23. Nlen uint8
  24. Alen uint8
  25. Slen uint8
  26. Data [12]int8
  27. raw RawSockaddrDatalink
  28. }
  29. func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
  30. return nil, EAFNOSUPPORT
  31. }
  32. func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
  33. func sysctlNodes(mib []_C_int) (nodes []Sysctlnode, err error) {
  34. var olen uintptr
  35. // Get a list of all sysctl nodes below the given MIB by performing
  36. // a sysctl for the given MIB with CTL_QUERY appended.
  37. mib = append(mib, CTL_QUERY)
  38. qnode := Sysctlnode{Flags: SYSCTL_VERS_1}
  39. qp := (*byte)(unsafe.Pointer(&qnode))
  40. sz := unsafe.Sizeof(qnode)
  41. if err = sysctl(mib, nil, &olen, qp, sz); err != nil {
  42. return nil, err
  43. }
  44. // Now that we know the size, get the actual nodes.
  45. nodes = make([]Sysctlnode, olen/sz)
  46. np := (*byte)(unsafe.Pointer(&nodes[0]))
  47. if err = sysctl(mib, np, &olen, qp, sz); err != nil {
  48. return nil, err
  49. }
  50. return nodes, nil
  51. }
  52. func nametomib(name string) (mib []_C_int, err error) {
  53. // Split name into components.
  54. var parts []string
  55. last := 0
  56. for i := 0; i < len(name); i++ {
  57. if name[i] == '.' {
  58. parts = append(parts, name[last:i])
  59. last = i + 1
  60. }
  61. }
  62. parts = append(parts, name[last:])
  63. // Discover the nodes and construct the MIB OID.
  64. for partno, part := range parts {
  65. nodes, err := sysctlNodes(mib)
  66. if err != nil {
  67. return nil, err
  68. }
  69. for _, node := range nodes {
  70. n := make([]byte, 0)
  71. for i := range node.Name {
  72. if node.Name[i] != 0 {
  73. n = append(n, byte(node.Name[i]))
  74. }
  75. }
  76. if string(n) == part {
  77. mib = append(mib, _C_int(node.Num))
  78. break
  79. }
  80. }
  81. if len(mib) != partno+1 {
  82. return nil, EINVAL
  83. }
  84. }
  85. return mib, nil
  86. }
  87. func direntIno(buf []byte) (uint64, bool) {
  88. return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
  89. }
  90. func direntReclen(buf []byte) (uint64, bool) {
  91. return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
  92. }
  93. func direntNamlen(buf []byte) (uint64, bool) {
  94. return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
  95. }
  96. //sysnb pipe() (fd1 int, fd2 int, err error)
  97. func Pipe(p []int) (err error) {
  98. if len(p) != 2 {
  99. return EINVAL
  100. }
  101. p[0], p[1], err = pipe()
  102. return
  103. }
  104. //sysnb pipe2(p *[2]_C_int, flags int) (err error)
  105. func Pipe2(p []int, flags int) error {
  106. if len(p) != 2 {
  107. return EINVAL
  108. }
  109. var pp [2]_C_int
  110. err := pipe2(&pp, flags)
  111. p[0] = int(pp[0])
  112. p[1] = int(pp[1])
  113. return err
  114. }
  115. //sys Getdents(fd int, buf []byte) (n int, err error)
  116. func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
  117. n, err = Getdents(fd, buf)
  118. if err != nil || basep == nil {
  119. return
  120. }
  121. var off int64
  122. off, err = Seek(fd, 0, 1 /* SEEK_CUR */)
  123. if err != nil {
  124. *basep = ^uintptr(0)
  125. return
  126. }
  127. *basep = uintptr(off)
  128. if unsafe.Sizeof(*basep) == 8 {
  129. return
  130. }
  131. if off>>32 != 0 {
  132. // We can't stuff the offset back into a uintptr, so any
  133. // future calls would be suspect. Generate an error.
  134. // EIO is allowed by getdirentries.
  135. err = EIO
  136. }
  137. return
  138. }
  139. //sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD
  140. // TODO
  141. func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  142. return -1, ENOSYS
  143. }
  144. func setattrlistTimes(path string, times []Timespec, flags int) error {
  145. // used on Darwin for UtimesNano
  146. return ENOSYS
  147. }
  148. //sys ioctl(fd int, req uint, arg uintptr) (err error)
  149. //sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
  150. func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
  151. var value Ptmget
  152. err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
  153. runtime.KeepAlive(value)
  154. return &value, err
  155. }
  156. func Uname(uname *Utsname) error {
  157. mib := []_C_int{CTL_KERN, KERN_OSTYPE}
  158. n := unsafe.Sizeof(uname.Sysname)
  159. if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil {
  160. return err
  161. }
  162. mib = []_C_int{CTL_KERN, KERN_HOSTNAME}
  163. n = unsafe.Sizeof(uname.Nodename)
  164. if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil {
  165. return err
  166. }
  167. mib = []_C_int{CTL_KERN, KERN_OSRELEASE}
  168. n = unsafe.Sizeof(uname.Release)
  169. if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil {
  170. return err
  171. }
  172. mib = []_C_int{CTL_KERN, KERN_VERSION}
  173. n = unsafe.Sizeof(uname.Version)
  174. if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil {
  175. return err
  176. }
  177. // The version might have newlines or tabs in it, convert them to
  178. // spaces.
  179. for i, b := range uname.Version {
  180. if b == '\n' || b == '\t' {
  181. if i == len(uname.Version)-1 {
  182. uname.Version[i] = 0
  183. } else {
  184. uname.Version[i] = ' '
  185. }
  186. }
  187. }
  188. mib = []_C_int{CTL_HW, HW_MACHINE}
  189. n = unsafe.Sizeof(uname.Machine)
  190. if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil {
  191. return err
  192. }
  193. return nil
  194. }
  195. func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
  196. if raceenabled {
  197. raceReleaseMerge(unsafe.Pointer(&ioSync))
  198. }
  199. return sendfile(outfd, infd, offset, count)
  200. }
  201. func Fstatvfs(fd int, buf *Statvfs_t) (err error) {
  202. return Fstatvfs1(fd, buf, ST_WAIT)
  203. }
  204. func Statvfs(path string, buf *Statvfs_t) (err error) {
  205. return Statvfs1(path, buf, ST_WAIT)
  206. }
  207. /*
  208. * Exposed directly
  209. */
  210. //sys Access(path string, mode uint32) (err error)
  211. //sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
  212. //sys Chdir(path string) (err error)
  213. //sys Chflags(path string, flags int) (err error)
  214. //sys Chmod(path string, mode uint32) (err error)
  215. //sys Chown(path string, uid int, gid int) (err error)
  216. //sys Chroot(path string) (err error)
  217. //sys Close(fd int) (err error)
  218. //sys Dup(fd int) (nfd int, err error)
  219. //sys Dup2(from int, to int) (err error)
  220. //sys Dup3(from int, to int, flags int) (err error)
  221. //sys Exit(code int)
  222. //sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
  223. //sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
  224. //sys ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error)
  225. //sys ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
  226. //sys ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
  227. //sys ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
  228. //sys ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error)
  229. //sys ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
  230. //sys ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
  231. //sys ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
  232. //sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error)
  233. //sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
  234. //sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
  235. //sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
  236. //sys Fchdir(fd int) (err error)
  237. //sys Fchflags(fd int, flags int) (err error)
  238. //sys Fchmod(fd int, mode uint32) (err error)
  239. //sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
  240. //sys Fchown(fd int, uid int, gid int) (err error)
  241. //sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
  242. //sys Flock(fd int, how int) (err error)
  243. //sys Fpathconf(fd int, name int) (val int, err error)
  244. //sys Fstat(fd int, stat *Stat_t) (err error)
  245. //sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
  246. //sys Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) = SYS_FSTATVFS1
  247. //sys Fsync(fd int) (err error)
  248. //sys Ftruncate(fd int, length int64) (err error)
  249. //sysnb Getegid() (egid int)
  250. //sysnb Geteuid() (uid int)
  251. //sysnb Getgid() (gid int)
  252. //sysnb Getpgid(pid int) (pgid int, err error)
  253. //sysnb Getpgrp() (pgrp int)
  254. //sysnb Getpid() (pid int)
  255. //sysnb Getppid() (ppid int)
  256. //sys Getpriority(which int, who int) (prio int, err error)
  257. //sysnb Getrlimit(which int, lim *Rlimit) (err error)
  258. //sysnb Getrusage(who int, rusage *Rusage) (err error)
  259. //sysnb Getsid(pid int) (sid int, err error)
  260. //sysnb Gettimeofday(tv *Timeval) (err error)
  261. //sysnb Getuid() (uid int)
  262. //sys Issetugid() (tainted bool)
  263. //sys Kill(pid int, signum syscall.Signal) (err error)
  264. //sys Kqueue() (fd int, err error)
  265. //sys Lchown(path string, uid int, gid int) (err error)
  266. //sys Link(path string, link string) (err error)
  267. //sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
  268. //sys Listen(s int, backlog int) (err error)
  269. //sys Lstat(path string, stat *Stat_t) (err error)
  270. //sys Mkdir(path string, mode uint32) (err error)
  271. //sys Mkdirat(dirfd int, path string, mode uint32) (err error)
  272. //sys Mkfifo(path string, mode uint32) (err error)
  273. //sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
  274. //sys Mknod(path string, mode uint32, dev int) (err error)
  275. //sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
  276. //sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
  277. //sys Open(path string, mode int, perm uint32) (fd int, err error)
  278. //sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
  279. //sys Pathconf(path string, name int) (val int, err error)
  280. //sys Pread(fd int, p []byte, offset int64) (n int, err error)
  281. //sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
  282. //sys read(fd int, p []byte) (n int, err error)
  283. //sys Readlink(path string, buf []byte) (n int, err error)
  284. //sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
  285. //sys Rename(from string, to string) (err error)
  286. //sys Renameat(fromfd int, from string, tofd int, to string) (err error)
  287. //sys Revoke(path string) (err error)
  288. //sys Rmdir(path string) (err error)
  289. //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
  290. //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
  291. //sysnb Setegid(egid int) (err error)
  292. //sysnb Seteuid(euid int) (err error)
  293. //sysnb Setgid(gid int) (err error)
  294. //sysnb Setpgid(pid int, pgid int) (err error)
  295. //sys Setpriority(which int, who int, prio int) (err error)
  296. //sysnb Setregid(rgid int, egid int) (err error)
  297. //sysnb Setreuid(ruid int, euid int) (err error)
  298. //sysnb Setrlimit(which int, lim *Rlimit) (err error)
  299. //sysnb Setsid() (pid int, err error)
  300. //sysnb Settimeofday(tp *Timeval) (err error)
  301. //sysnb Setuid(uid int) (err error)
  302. //sys Stat(path string, stat *Stat_t) (err error)
  303. //sys Statvfs1(path string, buf *Statvfs_t, flags int) (err error) = SYS_STATVFS1
  304. //sys Symlink(path string, link string) (err error)
  305. //sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
  306. //sys Sync() (err error)
  307. //sys Truncate(path string, length int64) (err error)
  308. //sys Umask(newmask int) (oldmask int)
  309. //sys Unlink(path string) (err error)
  310. //sys Unlinkat(dirfd int, path string, flags int) (err error)
  311. //sys Unmount(path string, flags int) (err error)
  312. //sys write(fd int, p []byte) (n int, err error)
  313. //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
  314. //sys munmap(addr uintptr, length uintptr) (err error)
  315. //sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
  316. //sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
  317. //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
  318. /*
  319. * Unimplemented
  320. */
  321. // ____semctl13
  322. // __clone
  323. // __fhopen40
  324. // __fhstat40
  325. // __fhstatvfs140
  326. // __fstat30
  327. // __getcwd
  328. // __getfh30
  329. // __getlogin
  330. // __lstat30
  331. // __mount50
  332. // __msgctl13
  333. // __msync13
  334. // __ntp_gettime30
  335. // __posix_chown
  336. // __posix_fchown
  337. // __posix_lchown
  338. // __posix_rename
  339. // __setlogin
  340. // __shmctl13
  341. // __sigaction_sigtramp
  342. // __sigaltstack14
  343. // __sigpending14
  344. // __sigprocmask14
  345. // __sigsuspend14
  346. // __sigtimedwait
  347. // __stat30
  348. // __syscall
  349. // __vfork14
  350. // _ksem_close
  351. // _ksem_destroy
  352. // _ksem_getvalue
  353. // _ksem_init
  354. // _ksem_open
  355. // _ksem_post
  356. // _ksem_trywait
  357. // _ksem_unlink
  358. // _ksem_wait
  359. // _lwp_continue
  360. // _lwp_create
  361. // _lwp_ctl
  362. // _lwp_detach
  363. // _lwp_exit
  364. // _lwp_getname
  365. // _lwp_getprivate
  366. // _lwp_kill
  367. // _lwp_park
  368. // _lwp_self
  369. // _lwp_setname
  370. // _lwp_setprivate
  371. // _lwp_suspend
  372. // _lwp_unpark
  373. // _lwp_unpark_all
  374. // _lwp_wait
  375. // _lwp_wakeup
  376. // _pset_bind
  377. // _sched_getaffinity
  378. // _sched_getparam
  379. // _sched_setaffinity
  380. // _sched_setparam
  381. // acct
  382. // aio_cancel
  383. // aio_error
  384. // aio_fsync
  385. // aio_read
  386. // aio_return
  387. // aio_suspend
  388. // aio_write
  389. // break
  390. // clock_getres
  391. // clock_gettime
  392. // clock_settime
  393. // compat_09_ogetdomainname
  394. // compat_09_osetdomainname
  395. // compat_09_ouname
  396. // compat_10_omsgsys
  397. // compat_10_osemsys
  398. // compat_10_oshmsys
  399. // compat_12_fstat12
  400. // compat_12_getdirentries
  401. // compat_12_lstat12
  402. // compat_12_msync
  403. // compat_12_oreboot
  404. // compat_12_oswapon
  405. // compat_12_stat12
  406. // compat_13_sigaction13
  407. // compat_13_sigaltstack13
  408. // compat_13_sigpending13
  409. // compat_13_sigprocmask13
  410. // compat_13_sigreturn13
  411. // compat_13_sigsuspend13
  412. // compat_14___semctl
  413. // compat_14_msgctl
  414. // compat_14_shmctl
  415. // compat_16___sigaction14
  416. // compat_16___sigreturn14
  417. // compat_20_fhstatfs
  418. // compat_20_fstatfs
  419. // compat_20_getfsstat
  420. // compat_20_statfs
  421. // compat_30___fhstat30
  422. // compat_30___fstat13
  423. // compat_30___lstat13
  424. // compat_30___stat13
  425. // compat_30_fhopen
  426. // compat_30_fhstat
  427. // compat_30_fhstatvfs1
  428. // compat_30_getdents
  429. // compat_30_getfh
  430. // compat_30_ntp_gettime
  431. // compat_30_socket
  432. // compat_40_mount
  433. // compat_43_fstat43
  434. // compat_43_lstat43
  435. // compat_43_oaccept
  436. // compat_43_ocreat
  437. // compat_43_oftruncate
  438. // compat_43_ogetdirentries
  439. // compat_43_ogetdtablesize
  440. // compat_43_ogethostid
  441. // compat_43_ogethostname
  442. // compat_43_ogetkerninfo
  443. // compat_43_ogetpagesize
  444. // compat_43_ogetpeername
  445. // compat_43_ogetrlimit
  446. // compat_43_ogetsockname
  447. // compat_43_okillpg
  448. // compat_43_olseek
  449. // compat_43_ommap
  450. // compat_43_oquota
  451. // compat_43_orecv
  452. // compat_43_orecvfrom
  453. // compat_43_orecvmsg
  454. // compat_43_osend
  455. // compat_43_osendmsg
  456. // compat_43_osethostid
  457. // compat_43_osethostname
  458. // compat_43_osetrlimit
  459. // compat_43_osigblock
  460. // compat_43_osigsetmask
  461. // compat_43_osigstack
  462. // compat_43_osigvec
  463. // compat_43_otruncate
  464. // compat_43_owait
  465. // compat_43_stat43
  466. // execve
  467. // extattr_delete_fd
  468. // extattr_delete_file
  469. // extattr_delete_link
  470. // extattr_get_fd
  471. // extattr_get_file
  472. // extattr_get_link
  473. // extattr_list_fd
  474. // extattr_list_file
  475. // extattr_list_link
  476. // extattr_set_fd
  477. // extattr_set_file
  478. // extattr_set_link
  479. // extattrctl
  480. // fchroot
  481. // fdatasync
  482. // fgetxattr
  483. // fktrace
  484. // flistxattr
  485. // fork
  486. // fremovexattr
  487. // fsetxattr
  488. // fstatvfs1
  489. // fsync_range
  490. // getcontext
  491. // getitimer
  492. // getvfsstat
  493. // getxattr
  494. // ktrace
  495. // lchflags
  496. // lchmod
  497. // lfs_bmapv
  498. // lfs_markv
  499. // lfs_segclean
  500. // lfs_segwait
  501. // lgetxattr
  502. // lio_listio
  503. // listxattr
  504. // llistxattr
  505. // lremovexattr
  506. // lseek
  507. // lsetxattr
  508. // lutimes
  509. // madvise
  510. // mincore
  511. // minherit
  512. // modctl
  513. // mq_close
  514. // mq_getattr
  515. // mq_notify
  516. // mq_open
  517. // mq_receive
  518. // mq_send
  519. // mq_setattr
  520. // mq_timedreceive
  521. // mq_timedsend
  522. // mq_unlink
  523. // mremap
  524. // msgget
  525. // msgrcv
  526. // msgsnd
  527. // nfssvc
  528. // ntp_adjtime
  529. // pmc_control
  530. // pmc_get_info
  531. // pollts
  532. // preadv
  533. // profil
  534. // pselect
  535. // pset_assign
  536. // pset_create
  537. // pset_destroy
  538. // ptrace
  539. // pwritev
  540. // quotactl
  541. // rasctl
  542. // readv
  543. // reboot
  544. // removexattr
  545. // sa_enable
  546. // sa_preempt
  547. // sa_register
  548. // sa_setconcurrency
  549. // sa_stacks
  550. // sa_yield
  551. // sbrk
  552. // sched_yield
  553. // semconfig
  554. // semget
  555. // semop
  556. // setcontext
  557. // setitimer
  558. // setxattr
  559. // shmat
  560. // shmdt
  561. // shmget
  562. // sstk
  563. // statvfs1
  564. // swapctl
  565. // sysarch
  566. // syscall
  567. // timer_create
  568. // timer_delete
  569. // timer_getoverrun
  570. // timer_gettime
  571. // timer_settime
  572. // undelete
  573. // utrace
  574. // uuidgen
  575. // vadvise
  576. // vfork
  577. // writev