syscall_netbsd.go 16 KB

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