Subject: Re: Linux/Mips syscall shift
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 09/15/2001 21:51:02
> I.e. the point of splitting them up like that is to avoid if() statements
> in the native syscall path.

Then is it acceptable to do it a bit less elegant with #ifdef's?

I can introduce a macro to make native and linux versions of the
functions at preprocessing time, something like a
EMUL_NAME(syscall)

that would turn into syscall or linux_syscall depending on a macro.
linux_syscall.c is then just a #define and #include syscall.c

-- 
Emmanuel Dreyfus.
Si la reponse est NT, c'est probablement 
que vous n'avez pas compris la question.
manu@netbsd.org