source_file
comment "// Copyright 2009,2010 The Go Authors. All rights reserved."
comment "// Use of this source code is governed by a BSD-style"
comment "// license that can be found in the LICENSE file."
comment "// NetBSD system calls."
comment "// This file is compiled as ordinary Go code,"
comment "// but it is also input to mksyscall,"
comment "// which parses the //sys lines and generates system call st"...
comment "// Note that sometimes we use a lowercase //sys name and wra"...
comment "// it in our own nicer implementation, either here or in"
comment "// syscall_bsd.go or syscall_unix.go."
package_clause
package "package"
package_identifier "unix"
import_declaration
import "import"
import_spec_list
( "("
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "runtime"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "syscall"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "unsafe"
" "\""
) ")"
comment "// SockaddrDatalink implements the Sockaddr interface for AF"...
type_declaration (+40 nodes collapsed)
function_declaration (+33 nodes collapsed)
function_declaration (+43 nodes collapsed)
function_declaration (+237 nodes collapsed)
function_declaration (+327 nodes collapsed)
function_declaration (+67 nodes collapsed)
function_declaration (+67 nodes collapsed)
function_declaration (+67 nodes collapsed)
function_declaration (+33 nodes collapsed)
comment "//sysnb\tpipe2(p *[2]_C_int, flags int) (err error)"
function_declaration (+116 nodes collapsed)
comment "//sys\tGetdents(fd int, buf []byte) (n int, err error)"
function_declaration (+178 nodes collapsed)
comment "//sys\tGetcwd(buf []byte) (n int, err error) = SYS___GETCWD"
comment "// TODO"
function_declaration (+45 nodes collapsed)
function_declaration
func "func"
identifier "setattrlistTimes"
parameter_list
( "("
parameter_declaration
identifier "path"
type_identifier "string"
, ","
parameter_declaration
identifier "times"
slice_type
[ "["
] "]"
type_identifier "Timespec"
, ","
parameter_declaration
identifier "flags"
type_identifier "int"
) ")"
type_identifier "error"
block
{ "{"
comment "// used on Darwin for UtimesNano"
statement_list
return_statement
return "return"
expression_list
identifier "ENOSYS"
} "}"
comment "//sys\tioctl(fd int, req uint, arg uintptr) (err error)"
comment "//sys\tsysctl(mib []_C_int, old *byte, oldlen *uintptr, new *"...
function_declaration (+80 nodes collapsed)
function_declaration (+507 nodes collapsed)
function_declaration (+76 nodes collapsed)
function_declaration (+38 nodes collapsed)
function_declaration (+38 nodes collapsed)
comment "/*\n * Exposed directly\n */"
comment "//sys\tAccess(path string, mode uint32) (err error)"
comment "//sys\tAdjtime(delta *Timeval, olddelta *Timeval) (err error)"
comment "//sys\tChdir(path string) (err error)"
comment "//sys\tChflags(path string, flags int) (err error)"
comment "//sys\tChmod(path string, mode uint32) (err error)"
comment "//sys\tChown(path string, uid int, gid int) (err error)"
comment "//sys\tChroot(path string) (err error)"
comment "//sys\tClose(fd int) (err error)"
comment "//sys\tDup(fd int) (nfd int, err error)"
comment "//sys\tDup2(from int, to int) (err error)"
comment "//sys\tDup3(from int, to int, flags int) (err error)"
comment "//sys\tExit(code int)"
comment "//sys\tExtattrGetFd(fd int, attrnamespace int, attrname strin"...
comment "//sys\tExtattrSetFd(fd int, attrnamespace int, attrname strin"...
comment "//sys\tExtattrDeleteFd(fd int, attrnamespace int, attrname st"...
comment "//sys\tExtattrListFd(fd int, attrnamespace int, data uintptr,"...
comment "//sys\tExtattrGetFile(file string, attrnamespace int, attrnam"...
comment "//sys\tExtattrSetFile(file string, attrnamespace int, attrnam"...
comment "//sys\tExtattrDeleteFile(file string, attrnamespace int, attr"...
comment "//sys\tExtattrListFile(file string, attrnamespace int, data u"...
comment "//sys\tExtattrGetLink(link string, attrnamespace int, attrnam"...
comment "//sys\tExtattrSetLink(link string, attrnamespace int, attrnam"...
comment "//sys\tExtattrDeleteLink(link string, attrnamespace int, attr"...
comment "//sys\tExtattrListLink(link string, attrnamespace int, data u"...
comment "//sys\tFaccessat(dirfd int, path string, mode uint32, flags i"...
comment "//sys\tFadvise(fd int, offset int64, length int64, advice int"...
comment "//sys\tFchdir(fd int) (err error)"
comment "//sys\tFchflags(fd int, flags int) (err error)"
comment "//sys\tFchmod(fd int, mode uint32) (err error)"
comment "//sys\tFchmodat(dirfd int, path string, mode uint32, flags in"...
comment "//sys\tFchown(fd int, uid int, gid int) (err error)"
comment "//sys\tFchownat(dirfd int, path string, uid int, gid int, fla"...
comment "//sys\tFlock(fd int, how int) (err error)"
comment "//sys\tFpathconf(fd int, name int) (val int, err error)"
comment "//sys\tFstat(fd int, stat *Stat_t) (err error)"
comment "//sys\tFstatat(fd int, path string, stat *Stat_t, flags int) "...
comment "//sys\tFstatvfs1(fd int, buf *Statvfs_t, flags int) (err erro"...
comment "//sys\tFsync(fd int) (err error)"
comment "//sys\tFtruncate(fd int, length int64) (err error)"
comment "//sysnb\tGetegid() (egid int)"
comment "//sysnb\tGeteuid() (uid int)"
comment "//sysnb\tGetgid() (gid int)"
comment "//sysnb\tGetpgid(pid int) (pgid int, err error)"
comment "//sysnb\tGetpgrp() (pgrp int)"
comment "//sysnb\tGetpid() (pid int)"
comment "//sysnb\tGetppid() (ppid int)"
comment "//sys\tGetpriority(which int, who int) (prio int, err error)"
comment "//sysnb\tGetrlimit(which int, lim *Rlimit) (err error)"
comment "//sysnb\tGetrusage(who int, rusage *Rusage) (err error)"
comment "//sysnb\tGetsid(pid int) (sid int, err error)"
comment "//sysnb\tGettimeofday(tv *Timeval) (err error)"
comment "//sysnb\tGetuid() (uid int)"
comment "//sys\tIssetugid() (tainted bool)"
comment "//sys\tKill(pid int, signum syscall.Signal) (err error)"
comment "//sys\tKqueue() (fd int, err error)"
comment "//sys\tLchown(path string, uid int, gid int) (err error)"
comment "//sys\tLink(path string, link string) (err error)"
comment "//sys\tLinkat(pathfd int, path string, linkfd int, link strin"...
comment "//sys\tListen(s int, backlog int) (err error)"
comment "//sys\tLstat(path string, stat *Stat_t) (err error)"
comment "//sys\tMkdir(path string, mode uint32) (err error)"
comment "//sys\tMkdirat(dirfd int, path string, mode uint32) (err erro"...
comment "//sys\tMkfifo(path string, mode uint32) (err error)"
comment "//sys\tMkfifoat(dirfd int, path string, mode uint32) (err err"...
comment "//sys\tMknod(path string, mode uint32, dev int) (err error)"
comment "//sys\tMknodat(dirfd int, path string, mode uint32, dev int) "...
comment "//sys\tNanosleep(time *Timespec, leftover *Timespec) (err err"...
comment "//sys\tOpen(path string, mode int, perm uint32) (fd int, err "...
comment "//sys\tOpenat(dirfd int, path string, mode int, perm uint32) "...
comment "//sys\tPathconf(path string, name int) (val int, err error)"
comment "//sys\tPread(fd int, p []byte, offset int64) (n int, err erro"...
comment "//sys\tPwrite(fd int, p []byte, offset int64) (n int, err err"...
comment "//sys\tread(fd int, p []byte) (n int, err error)"
comment "//sys\tReadlink(path string, buf []byte) (n int, err error)"
comment "//sys\tReadlinkat(dirfd int, path string, buf []byte) (n int,"...
comment "//sys\tRename(from string, to string) (err error)"
comment "//sys\tRenameat(fromfd int, from string, tofd int, to string)"...
comment "//sys\tRevoke(path string) (err error)"
comment "//sys\tRmdir(path string) (err error)"
comment "//sys\tSeek(fd int, offset int64, whence int) (newoffset int6"...
comment "//sys\tSelect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout "...
comment "//sysnb\tSetegid(egid int) (err error)"
comment "//sysnb\tSeteuid(euid int) (err error)"
comment "//sysnb\tSetgid(gid int) (err error)"
comment "//sysnb\tSetpgid(pid int, pgid int) (err error)"
comment "//sys\tSetpriority(which int, who int, prio int) (err error)"
comment "//sysnb\tSetregid(rgid int, egid int) (err error)"
comment "//sysnb\tSetreuid(ruid int, euid int) (err error)"
comment "//sysnb\tSetrlimit(which int, lim *Rlimit) (err error)"
comment "//sysnb\tSetsid() (pid int, err error)"
comment "//sysnb\tSettimeofday(tp *Timeval) (err error)"
comment "//sysnb\tSetuid(uid int) (err error)"
comment "//sys\tStat(path string, stat *Stat_t) (err error)"
comment "//sys\tStatvfs1(path string, buf *Statvfs_t, flags int) (err "...
comment "//sys\tSymlink(path string, link string) (err error)"
comment "//sys\tSymlinkat(oldpath string, newdirfd int, newpath string"...
comment "//sys\tSync() (err error)"
comment "//sys\tTruncate(path string, length int64) (err error)"
comment "//sys\tUmask(newmask int) (oldmask int)"
comment "//sys\tUnlink(path string) (err error)"
comment "//sys\tUnlinkat(dirfd int, path string, flags int) (err error"...
comment "//sys\tUnmount(path string, flags int) (err error)"
comment "//sys\twrite(fd int, p []byte) (n int, err error)"
comment "//sys\tmmap(addr uintptr, length uintptr, prot int, flag int,"...
comment "//sys\tmunmap(addr uintptr, length uintptr) (err error)"
comment "//sys\treadlen(fd int, buf *byte, nbuf int) (n int, err error"...
comment "//sys\twritelen(fd int, buf *byte, nbuf int) (n int, err erro"...
comment "//sys\tutimensat(dirfd int, path string, times *[2]Timespec, "...
comment "/*\n * Unimplemented\n */"
comment "// ____semctl13"
comment "// __clone"
comment "// __fhopen40"
comment "// __fhstat40"
comment "// __fhstatvfs140"
comment "// __fstat30"
comment "// __getcwd"
comment "// __getfh30"
comment "// __getlogin"
comment "// __lstat30"
comment "// __mount50"
comment "// __msgctl13"
comment "// __msync13"
comment "// __ntp_gettime30"
comment "// __posix_chown"
comment "// __posix_fchown"
comment "// __posix_lchown"
comment "// __posix_rename"
comment "// __setlogin"
comment "// __shmctl13"
comment "// __sigaction_sigtramp"
comment "// __sigaltstack14"
comment "// __sigpending14"
comment "// __sigprocmask14"
comment "// __sigsuspend14"
comment "// __sigtimedwait"
comment "// __stat30"
comment "// __syscall"
comment "// __vfork14"
comment "// _ksem_close"
comment "// _ksem_destroy"
comment "// _ksem_getvalue"
comment "// _ksem_init"
comment "// _ksem_open"
comment "// _ksem_post"
comment "// _ksem_trywait"
comment "// _ksem_unlink"
comment "// _ksem_wait"
comment "// _lwp_continue"
comment "// _lwp_create"
comment "// _lwp_ctl"
comment "// _lwp_detach"
comment "// _lwp_exit"
comment "// _lwp_getname"
comment "// _lwp_getprivate"
comment "// _lwp_kill"
comment "// _lwp_park"
comment "// _lwp_self"
comment "// _lwp_setname"
comment "// _lwp_setprivate"
comment "// _lwp_suspend"
comment "// _lwp_unpark"
comment "// _lwp_unpark_all"
comment "// _lwp_wait"
comment "// _lwp_wakeup"
comment "// _pset_bind"
comment "// _sched_getaffinity"
comment "// _sched_getparam"
comment "// _sched_setaffinity"
comment "// _sched_setparam"
comment "// acct"
comment "// aio_cancel"
comment "// aio_error"
comment "// aio_fsync"
comment "// aio_read"
comment "// aio_return"
comment "// aio_suspend"
comment "// aio_write"
comment "// break"
comment "// clock_getres"
comment "// clock_gettime"
comment "// clock_settime"
comment "// compat_09_ogetdomainname"
comment "// compat_09_osetdomainname"
comment "// compat_09_ouname"
comment "// compat_10_omsgsys"
comment "// compat_10_osemsys"
comment "// compat_10_oshmsys"
comment "// compat_12_fstat12"
comment "// compat_12_getdirentries"
comment "// compat_12_lstat12"
comment "// compat_12_msync"
comment "// compat_12_oreboot"
comment "// compat_12_oswapon"
comment "// compat_12_stat12"
comment "// compat_13_sigaction13"
comment "// compat_13_sigaltstack13"
comment "// compat_13_sigpending13"
comment "// compat_13_sigprocmask13"
comment "// compat_13_sigreturn13"
comment "// compat_13_sigsuspend13"
comment "// compat_14___semctl"
comment "// compat_14_msgctl"
comment "// compat_14_shmctl"
comment "// compat_16___sigaction14"
comment "// compat_16___sigreturn14"
comment "// compat_20_fhstatfs"
comment "// compat_20_fstatfs"
comment "// compat_20_getfsstat"
comment "// compat_20_statfs"
comment "// compat_30___fhstat30"
comment "// compat_30___fstat13"
comment "// compat_30___lstat13"
comment "// compat_30___stat13"
comment "// compat_30_fhopen"
comment "// compat_30_fhstat"
comment "// compat_30_fhstatvfs1"
comment "// compat_30_getdents"
comment "// compat_30_getfh"
comment "// compat_30_ntp_gettime"
comment "// compat_30_socket"
comment "// compat_40_mount"
comment "// compat_43_fstat43"
comment "// compat_43_lstat43"
comment "// compat_43_oaccept"
comment "// compat_43_ocreat"
comment "// compat_43_oftruncate"
comment "// compat_43_ogetdirentries"
comment "// compat_43_ogetdtablesize"
comment "// compat_43_ogethostid"
comment "// compat_43_ogethostname"
comment "// compat_43_ogetkerninfo"
comment "// compat_43_ogetpagesize"
comment "// compat_43_ogetpeername"
comment "// compat_43_ogetrlimit"
comment "// compat_43_ogetsockname"
comment "// compat_43_okillpg"
comment "// compat_43_olseek"
comment "// compat_43_ommap"
comment "// compat_43_oquota"
comment "// compat_43_orecv"
comment "// compat_43_orecvfrom"
comment "// compat_43_orecvmsg"
comment "// compat_43_osend"
comment "// compat_43_osendmsg"
comment "// compat_43_osethostid"
comment "// compat_43_osethostname"
comment "// compat_43_osetrlimit"
comment "// compat_43_osigblock"
comment "// compat_43_osigsetmask"
comment "// compat_43_osigstack"
comment "// compat_43_osigvec"
comment "// compat_43_otruncate"
comment "// compat_43_owait"
comment "// compat_43_stat43"
comment "// execve"
comment "// extattr_delete_fd"
comment "// extattr_delete_file"
comment "// extattr_delete_link"
comment "// extattr_get_fd"
comment "// extattr_get_file"
comment "// extattr_get_link"
comment "// extattr_list_fd"
comment "// extattr_list_file"
comment "// extattr_list_link"
comment "// extattr_set_fd"
comment "// extattr_set_file"
comment "// extattr_set_link"
comment "// extattrctl"
comment "// fchroot"
comment "// fdatasync"
comment "// fgetxattr"
comment "// fktrace"
comment "// flistxattr"
comment "// fork"
comment "// fremovexattr"
comment "// fsetxattr"
comment "// fstatvfs1"
comment "// fsync_range"
comment "// getcontext"
comment "// getitimer"
comment "// getvfsstat"
comment "// getxattr"
comment "// ktrace"
comment "// lchflags"
comment "// lchmod"
comment "// lfs_bmapv"
comment "// lfs_markv"
comment "// lfs_segclean"
comment "// lfs_segwait"
comment "// lgetxattr"
comment "// lio_listio"
comment "// listxattr"
comment "// llistxattr"
comment "// lremovexattr"
comment "// lseek"
comment "// lsetxattr"
comment "// lutimes"
comment "// madvise"
comment "// mincore"
comment "// minherit"
comment "// modctl"
comment "// mq_close"
comment "// mq_getattr"
comment "// mq_notify"
comment "// mq_open"
comment "// mq_receive"
comment "// mq_send"
comment "// mq_setattr"
comment "// mq_timedreceive"
comment "// mq_timedsend"
comment "// mq_unlink"
comment "// mremap"
comment "// msgget"
comment "// msgrcv"
comment "// msgsnd"
comment "// nfssvc"
comment "// ntp_adjtime"
comment "// pmc_control"
comment "// pmc_get_info"
comment "// pollts"
comment "// preadv"
comment "// profil"
comment "// pselect"
comment "// pset_assign"
comment "// pset_create"
comment "// pset_destroy"
comment "// ptrace"
comment "// pwritev"
comment "// quotactl"
comment "// rasctl"
comment "// readv"
comment "// reboot"
comment "// removexattr"
comment "// sa_enable"
comment "// sa_preempt"
comment "// sa_register"
comment "// sa_setconcurrency"
comment "// sa_stacks"
comment "// sa_yield"
comment "// sbrk"
comment "// sched_yield"
comment "// semconfig"
comment "// semget"
comment "// semop"
comment "// setcontext"
comment "// setitimer"
comment "// setxattr"
comment "// shmat"
comment "// shmdt"
comment "// shmget"
comment "// sstk"
comment "// statvfs1"
comment "// swapctl"
comment "// sysarch"
comment "// syscall"
comment "// timer_create"
comment "// timer_delete"
comment "// timer_getoverrun"
comment "// timer_gettime"
comment "// timer_settime"
comment "// undelete"
comment "// utrace"
comment "// uuidgen"
comment "// vadvise"
comment "// vfork"
comment "// writev"