|
|
1.1 ! root 1: .\" Copyright (c) 1980 Regents of the University of California. ! 2: .\" All rights reserved. The Berkeley software License Agreement ! 3: .\" specifies the terms and conditions for redistribution. ! 4: .\" ! 5: .\" @(#)syscall.2 6.2 (Berkeley) 4/16/86 ! 6: .\" ! 7: .TH SYSCALL 2 "April 16, 1986" ! 8: .UC 4 ! 9: .SH NAME ! 10: syscall \- indirect system call ! 11: .SH SYNOPSIS ! 12: .nf ! 13: .ft B ! 14: #include <syscall.h> ! 15: .PP ! 16: .BR "syscall(number, arg, ...)" \ \ (VAX-11) ! 17: .fi ! 18: .SH DESCRIPTION ! 19: .I Syscall ! 20: performs the system call whose assembly language ! 21: interface has the specified ! 22: .I number, ! 23: register arguments ! 24: .I r0 ! 25: and ! 26: .I r1 ! 27: and further arguments ! 28: .IR arg . ! 29: Symbolic constants for system calls can be found in the header file ! 30: .I <syscall.h>. ! 31: .PP ! 32: The r0 value of the system call is returned. ! 33: .SH DIAGNOSTICS ! 34: When the C-bit is set, ! 35: .I syscall ! 36: returns \-1 and sets the ! 37: external variable ! 38: .I errno ! 39: (see ! 40: .IR intro (2)). ! 41: .SH BUGS ! 42: There is no way to simulate system calls ! 43: such as ! 44: .IR pipe (2), ! 45: which return values in register r1.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.