plan9 man page for syscall

Query: syscall

OS: plan9

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SYSCALL(1)						      General Commands Manual							SYSCALL(1)

NAME
syscall - test a system call
SYNOPSIS
syscall [ -o ] entry [ arg ... ]
DESCRIPTION
Syscall invokes the system call entry with the given arguments. It prints the return value and the error string, if there was an error. An argument is either an integer constant as in C (its value is passed), a string (its address is passed), or the literal buf (a pointer to a 1 Kbyte buffer is passed). If -o is given, the contents of the 1 Kbyte buffer are printed as a zero-terminated string after the system call is done.
EXAMPLES
Write a string to standard output syscall write 1 hello 5 Print the name of the file connected to standard input syscall -o fstat 0 buf
SOURCE
/sys/src/cmd/syscall
SEE ALSO
Section 2 of this manual.
DIAGNOSTICS
If entry is not a system call name, the exit status is If the system call succeeds, the exit status is null; otherwise the exit status is the string that errstr(2) returns. SYSCALL(1)
Related Man Pages
syscall(2) - netbsd
syscall(3ucb) - opensolaris
syscall(3ucb) - mojave
syscall(3ucb) - hpux
syscall(3ucb) - minix
Similar Topics in the Unix Linux Community
Fork syscall and related issues
how to distinguish entry/exit of a syscall when using ptrace?
__kernel_vsyscall ()
[deleted by user]Does any syscall increase process priority ?
SSL_ERROR_SYSCALL in connection to qa-api.ncl.com:443