Subject: SYS___syscall and linux (etc) compatibility
To: None <tech-kern@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 07/04/2003 16:51:05
AFAICT the kernel system call entry (esp. the i386 one) assumes that
system call 198 is sys___syscall (ie the actual system call number
is the first 64bit argument).

However it does this before consulting the p->p_emul->e_sysent[]
structure.

This means that:
1) Anything trying to do syscall 198 on any emulation is doomed.
2) Anything trying to do sys___syscall on an emulation is probably doomed.

Have I missed something obvious???

On linux i386 I think 198 is lchown.

	David

-- 
David Laight: david@l8s.co.uk