This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: where would i find the definition for EINVAL?


On Tue, 6 Dec 2005, Mike Frysinger wrote:

> On Mon, Dec 05, 2005 at 05:28:20PM -0500, Robert P. J. Day wrote:
> > On Mon, 5 Dec 2005, Dimitry Andric wrote:
> >
> > > Robert P. J. Day wrote:
> > > >   where in the crosstool-generated results would i find the
> > > > definition for that file?  as a start, where would it *normally*
> > > > be defined so that i can check my sys-root structure for the same
> > > > thing?  thanks.
> > >
> > > Normally it's in the Linux headers, under asm/errno.h; so with
> > > crosstool and sanitized headers, it would be:
> > >
> > > $SYSROOT_DIR/usr/include/asm/errno.h
> > >
> > > Of course, in normal Linux headers, asm is but a symlink to the
> > > actual asm-$ARCH.  I'm not sure what the sanitized headers do for
> > > the SH architecture.
> >
> > actually, replying to both your and mike's responses, i found it in
> > ${SYSROOT}/usr/include/linux/errno.h, which seems to differ from
> > *both* of your answers, even taking symlinks into account.  must run
> > to local LUG meeting, back later to look at this more closely.
>
> it depends largely on the version of linux ... and with 2.6, errno
> defines are spread across all three mentioned here
> -mike

i think the major problem was that the original programmer had used
the line:

#include <sys/errno.h>

rather than just

#include <errno.h>

and that probably screwed up the search.  i'll fix that later today
and see if that makes the problem go away.  the source used to build
fine under the original cygwin environment but i don't have access to
that environment so i don't know *what* kind of screwy directory
structure it had that allowed this to work.

rday

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]