Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2010 12:04:48 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: i386 specific manual pages
Message-ID:  <20101115120448.GA32034@freebsd.org>
In-Reply-To: <20101114153952.GA52828@freebsd.org>
References:  <20101114135559.GA40535@freebsd.org> <20101114151738.GR2392@deviant.kiev.zoral.com.ua> <20101114153952.GA52828@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun Nov 14 10, Alexander Best wrote:
> On Sun Nov 14 10, Kostik Belousov wrote:
> > On Sun, Nov 14, 2010 at 01:55:59PM +0000, Alexander Best wrote:
> > > hi there,
> > > 
> > > could we please have the following manual pages
> > > 
> > > lib/libc/i386/sys/i386_get_ioperm.2
> > > lib/libc/i386/sys/i386_get_ldt.2
> > > lib/libc/i386/sys/i386_set_watch.3 (can this also be accessed?)
> > > lib/libc/i386/sys/i386_vm86.2
> > > 
> > > installed into /usr/share/man/man{2,3}/i386? they can be accessed via
> > > sysarch(2) and are explicitly being referenced by its manual page.
> > > 
> > > that way doing 'man -mi386 i386_get_ioperm' e.g. would work under arch=amd64.
> > 
> > Just a note: all of them except vm86 can be reasonably implemented on
> > amd64, as well are supported under ia32 emulation on amd64. I am not
> > sure that suggestion to do the work make sence, since they functions
> > looks unused even on i386.

another possibility would be to add something like "WITH_MAN_ARCH", which will
install all arch dependant manual pages, no matter what the current arch is.

this would come in handy for people running let's say amd64, but also working
on other arch dependant code.

cheers.
alex

> 
> i'm afraid we don't agree on that issue. i need to set io permissions in order
> to write to the parallel port and don't want to open /dev/io for security
> reasons. right now i don't know any way of doing this under amd64 except by
> using sysarch(2). it might be possible to implement this natively under amd64,
> but that is not the point. sysarch(2) is available *now* and i should be able
> to get information about the architecture-dependent functions i can use with
> sysarch(2).
> 
> if a native silution for amd64 pops up in the future that's great, but there's
> no point in installing the sysarch(2) manual and referencing the i386
> architecture-dependent functions in it without providing necessary information
> to use those functions.
> 
> thats like buying a car and the guy is telling you "it has lots of cool
> features". when you ask him however "what are those features" he replies:
> "well. be sure it has a lot of features, however i can't tell you what they
> are". ;)
> 
> cheers.
> alex
> 
> -- 
> a13x

-- 
a13x



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