Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Feb 2002 06:06:08 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Robert Watson <rwatson@FreeBSD.org>
Cc:        Alfred Perlstein <bright@mu.org>, Bruce Evans <bde@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/kern init_sysent.c syscalls.c src/sys/sys syscall.h syscall.mk sysproto.h
Message-ID:  <20020202054622.M4692-100000@gamplex.bde.org>
In-Reply-To: <Pine.NEB.3.96L.1020201131150.99143B-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 1 Feb 2002, Robert Watson wrote:

> On Fri, 1 Feb 2002, Alfred Perlstein wrote:
>
> > Do you have any input as to whether per-arch syscall.master is a good
> > idea?  Or perhaps syscall.std, or something that specifies which arches
> > have which syscalls?  Specifically so that we could make osigreturn an
> > i386 only syscall?
>
> Personally, I'd much prefer to see one syscalls.master.  I've seen the
> confusion resulting from different system call numbering schemes across
> architectures on Linux, and it worries me :-).  For one thing, it would be

Me too.  Of course, we have lots of different syscall numbering schemes
in emulators anyway.  We also can't remove compatibility syscalls until the
emulated OSes stop using them :-(.

> nice when handing out a system call number to be able to say "We've
> allocated 642 for this system call" rather than "We've allocated you 642
> on i386, 457 on axp, 493 on ia64, ...".  My preference would very much be
> for keeping one syscalls.master, and just #ifndef
> ARCHITECTURE_OF_MY_CHOICE return(ENOSYS) #endif.

syscalls.master could certainly have better support for such ifdefs.
We used `#ifdef COMPAT_43' for osigreturn, but it should have been
something like `#ifdef COMPAT_FreeBSD_400010'.  I'm not sure if I want
syscalls.master and conf/options filling up with magic version numbers.
Everyone knows what 43 is but who knows what 400010 is.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020202054622.M4692-100000>