svn commit: r219561 - in head/sys: cddl/dev/systrace modules/dtrace modules/dtrace/dtraceall modules/dtrace/systrace_freebsd32 modules/dtrace/systrace_linux32

Andriy Gapon avg at freebsd.org
Sun Mar 13 07:11:05 UTC 2011


on 13/03/2011 08:35 Artem Belevich said the following:
> On Sat, Mar 12, 2011 at 12:14 PM, Alexander Leidinger
> <Alexander at leidinger.net> wrote:
>> But this looks like it will be named linux32 in any case. In the short
>> term I would prefer:
>> ---snip---
>> #if defined(__amd64__)
>> #define MODNAME "linux32"
>> #elif defined(__i386__)
>> #define MODNAME "linux"
>> #endif
>> ---snip---
> 
> Makes sense. It's what's done with freebsd syscalls -- 'freebsd' for
> native syscalls, freebsd32 for 32-bit compat.

BTW, in my opinion, it might not make a lot of sense.
That is, we can have native and compat FreeBSD system calls, but Linux system
calls are always compat and never native, whether the emulation is for the same
arch or not.  Explicit suffix makes things clearer.  But that's just my opinion.

A public mailing list may be a better place to discuss this further.

-- 
Andriy Gapon


More information about the svn-src-head mailing list