Content-type: text/html Man page of syscall

syscall

Section: System Calls (2)
Index Return to Main Contents
 

NAME

syscall - indirect system call  

SYNOPSIS

#include <sys/syscall.h>

syscall (number, arg, ...)
 

DESCRIPTION

The syscall system call performs the system call whose assembly language interface has the specified number, register arguments r0 and r1, and further arguments arg.

The r0 value of the system call is returned.
 

NOTES

This interface is not recommended. An alternative interface is documented in chown(2).
 

RESTRICTIONS

There is no way to simulate system calls such as pipe, which return values in register r1.
 

DIAGNOSTICS

When the C-bit is set, syscall returns -1 and sets the external variable errno.
 

SEE ALSO

Functions:  errno(2), pipe(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
NOTES
RESTRICTIONS
DIAGNOSTICS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:40:13 GMT, October 02, 2010