bsd man page for syscall

Query: syscall

OS: bsd

Section: 2

Links: bsd man pages | All man pages

Forums: Unix Linux Community | Forum Categories

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

SYSCALL(2)							System Calls Manual							SYSCALL(2)

NAME
syscall - indirect system call
SYNOPSIS
#include <syscall.h> syscall(number, arg, ...) (VAX-11)
DESCRIPTION
Syscall performs the system call whose assembly language interface has the specified number, register arguments r0 and r1 and further argu- ments arg. Symbolic constants for system calls can be found in the header file <syscall.h>. The r0 value of the system call is returned.
DIAGNOSTICS
When the C-bit is set, syscall returns -1 and sets the external variable errno (see intro(2)).
BUGS
There is no way to simulate system calls such as pipe(2), which return values in register r1. 4th Berkeley Distribution April 16, 1986 SYSCALL(2)
Related Man Pages
syscall(2) - netbsd
syscall(3ucb) - opensolaris
syscall(3ucb) - php
syscall(3ucb) - minix
syscall(3ucb) - v7
Similar Topics in the Unix Linux Community
recv syscall for socket programming
Fork syscall and related issues
__kernel_vsyscall ()
Adding our system call Fedora 18 -new syscall
SSL_ERROR_SYSCALL in connection to qa-api.ncl.com:443