Subject: Re: how to use syscalls
To: Robin Kumar <c_k_a_p@yahoo.com>
From: None <erh@nimenees.com>
List: tech-kern
Date: 06/25/2000 14:34:01
On Sun, Jun 25, 2000 at 11:48:29AM -0700, Robin Kumar wrote:
> I was trying to add a system call to NetBSD 1.4.1.
curious: what'd you add?

> 	What has to be done to call it from a C
> programme.Please answer in detail as i donot know
> anything about it.I want to mention one more thing
> that
> i do not have /usr/src/lib rather i have
> /usr/src/sys/lib.
>    Is ther any other way like in Linux,one can use
> standard macros in C programme to call a system call.

	Try the syscall() function (man syscall).  It should do what
you want.  If you actually want to call the syscall by name you're
going to have to recompile libc after editing libc/sys/Makefile.inc
to include "yoursyscall.o" on the ASM line.

eric