2.11BSD/man/cat2/syscall.0

Compare this file to the similar file:
Show the results in this format:




SYSCALL(2)	    UNIX Programmer's Manual	       SYSCALL(2)



NAME
     syscall - indirect system call

SYNOPSIS
     #include <syscall.h>

     syscall(number, arg, ...)	(VAX-11)

DESCRIPTION
     _S_y_s_c_a_l_l performs the system call whose assembly language
     interface has the specified _n_u_m_b_e_r, register arguments _r_0
     and _r_1 and further arguments _a_r_g.	Symbolic constants for
     system calls can be found in the header file <_s_y_s_c_a_l_l._h>.

     The r0 value of the system call is returned.

DIAGNOSTICS
     When the C-bit is set, _s_y_s_c_a_l_l returns -1 and sets the
     external variable _e_r_r_n_o (see _i_n_t_r_o(2)).

BUGS
     There is no way to simulate system calls such as _p_i_p_e(2),
     which return values in register r1.
































Printed 11/26/99	 April 16, 1986                         1