Subject: Re: How do I create a include-file to match my new syscall? (fwd)
To: Espen Jorde; IFI; H97 <>
From: Klaus Klein <>
List: tech-kern
Date: 03/09/2000 15:21:44 (Espen Jorde; IFI; H97) writes:

> Could somone possibly give me a short introduction to what "stubs" really
> are and how I might write one.

A syscall stub is an automatically generated piece of code which
contains a function entry, followed by instructions that cause a trap
into the kernel, and usually glue code that stores an error indication
into errno.
> When i look in /usr/src/lib/libc/sys all i find is .2 files wich
> looks very much like files used to create manfiles to me. Am i missing
> something vital? There is some .c files there, but nearly enough for
> all the syscalls.

For the generation process, as well as the stubs which are built by
it, take a look at the file in said directory.