From: Samuel Thibault Subject: Re: Pesky '#define current' in mini-os/sched.h Date: Tue, 28 Apr 2009 22:06:32 +0200 Message-ID: <20090428200632.GJ5777@const.famille.thibault.fr> References: <873abt51e5.fsf@tac.ki.iif.hu> <20090427200544.GN5965@const.famille.thibault.fr> <87skjt3koh.fsf@tac.ki.iif.hu> <20090427211132.GR5965@const.famille.thibault.fr> <87eivc7jbg.fsf@tac.ki.iif.hu> <20090428181211.GD5777@const.famille.thibault.fr> <87zle062eq.fsf@tac.ki.iif.hu> <20090428185908.GG5777@const.famille.thibault.fr> <20090428190308.GH5777@const.famille.thibault.fr> <87ljpk5yys.fsf@tac.ki.iif.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <87ljpk5yys.fsf@tac.ki.iif.hu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ferenc Wagner Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Ferenc Wagner, le Tue 28 Apr 2009 22:02:03 +0200, a =E9crit : > Samuel Thibault writes: >=20 > > Samuel Thibault, le Tue 28 Apr 2009 20:59:08 +0200, a =E9crit : > > > >>>>> Now let's try to hardwire the terminal type to xterm or similar..= . > >>>> > >>>> Note that for that to eventually work you need to give your stubdo= main > >>>> access to the terminfo database via fsif. > >>>=20 > >>> For now I configured out database access and compiled in some fallb= acks. > >>=20 > >> Ok, that should be fine. In that case, maybe you should rather stub > >> access() as always failing, as it's not supposed to read files. > > > > (And put it in the ncurses code. Generally speaking minios _is_ able = to > > access files, via fsif). >=20 > So why deprive ncurses of accessing files for ever? That's why I said to put it in the ncurses code, as you said you enabled an internal database. > Eventually it could as well read the terminfo database from the host. > Btw. it tries to do so by invoking a stat() call, and then segfaults > the stubdom. So there's some problem left here, more serious than > access(). Right, I'm not sure we really want to have a stubdom do this. Samuel