Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 2001 14:33:15 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jonathan Lemon <jlemon@flugsvamp.com>
Cc:        arch@FreeBSD.org, "David O'Brien" <obrien@FreeBSD.org>
Subject:   Re: sysctl kern.fallback_elf_brand
Message-ID:  <XFMail.010223143315.jhb@FreeBSD.org>
In-Reply-To: <20010223142120.Q5714@prism.flugsvamp.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 23-Feb-01 Jonathan Lemon wrote:
> On Fri, Feb 23, 2001 at 12:13:28PM -0800, David O'Brien wrote:
>> On Fri, Feb 23, 2001 at 08:58:49AM -0600, Jonathan Lemon wrote:
>> > +/* magic marker for fallback elf brand, not for e_ident[EI_OSABI] */
>> > +#define ELFOSABI_NONE             (-1)    /* No OSABI defined */
>> 
>> Please do not commit this (see my earlier message).
>> 
>> My version of this uses the naked "-1".  Please do not make up
>> non-standard (ie, not defined by the ELF ABI maintainers) symbols.
> 
> Yes, I thought about doing that as well, but thought it might be
> clearer to have the '-1' documented somewhere, especially since 
> it is visible to the user via a sysctl.

Then write a SYSCTL_PROC that uses strings to interface to the user rather than
numbers...

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010223143315.jhb>