Subject: Re: SunOS host build of NetBSD
To: None <culist-netbsd-port-sun3@cunews.carleton.ca>
From: Michael Richardson <mcr@Sandelman.OCUnix.on.ca>
List: port-sun3
Date: 12/22/1993 20:09:17
In article <9312220310.AA15557@sandelman.ocunix.on.ca> Michael Richardson <mcr@latour.sandelman.ocunix.on.ca> writes:
> f._flag = _IOWRT | _IOSTRG;
> f._base = (unsigned char *)str;
> f._bufsiz = n - 1;
> ret = vfprintf(&f, fmt, ap);
> va_end(ap);
> return (ret);
>}
I got the snprintf working. Thanks for the suggestions about _ptr,
but it required more than that. I could have nuked snprintf from the
one place in make/main.c, but I figured it would show up again.
f._cnt = n;
f._ptr = (unsigned char *)str;
f._flag = _IOWRT | _IOSTRG;
f._base = (unsigned char *)str;
f._bufsiz = n - 1;
ret = vfprintf(&f, fmt, ap);
va_end(ap);
return (ret);
I see gcc2 has been organized into sub-directories.
Having last installed gcc 1.40, which was not in subdirectories, I'm
guessing that this directory structure is NetBSD specific. The
original GCC distribution has a lot more support for cross-compiling,
but I guess it doesn't matter much since the machine architecture is
identical.
--
--
:!mcr!: | "Elegant and extremely rapid for calculation are the
Michael Richardson | techniques of Young tableaux. They are have the merit
mcr@ccs.carleton.ca /of being fun to play with." - p.47 Intro to Quarks&Partons
------------------------------------------------------------------------------