Library, schlibrary! The important question is
'is it in the kernel source'?
(Although now that I think about it, if the library routine tries to use a
non-existent system call, it should return an error. It would be interested
to disassemble the library routine, and see what it thinks it is doing.)
Noel
It does appear to be there:
looking in V5/usr/sys/ken/sys4.c starting at line 79:
getpid()
{
u.u_ar0[R0] = u.u_procp->p_pid;
}
But looking at V4/nsys/ken/sys4.c it's not there. Not too sure about
reversing getpid.o, but maybe possible with db?
Mark
On 12/19/15, Noel Chiappa <jnc(a)mercury.lcs.mit.edu> wrote:
From: Mark
Longridge <cubexyz(a)gmail.com>
if one looks at /lib/libc.a via 'ar t
getpid.o' you can see the
object
file getpid.o
Library, schlibrary! The important question is 'is it in the kernel
source'?
(Although now that I think about it, if the library routine tries to use a
non-existent system call, it should return an error. It would be interested
to disassemble the library routine, and see what it thinks it is doing.)
Noel