Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2002 17:53:04 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: FILE *in = stdin problem in FreeBSD-current.
Message-ID:  <20021027005304.GB16148@xor.obsecurity.org>
In-Reply-To: <20021026163320.GA28436@troutmask.apl.washington.edu>
References:  <20021026163320.GA28436@troutmask.apl.washington.edu>

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

--eAbsdosE1cNLO4uF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Oct 26, 2002 at 09:33:20AM -0700, Steve Kargl wrote:

> Line 36 of dec10io.usr is "FILE *input=3Dstdin;". =20
> stdio.h is properly included in the source where we have
>=20
> extern FILE *__stdinp;
> #define stdin   __stdinp
>=20
> How is handled?

You need to initialize the variable at runtime, not statically.  If
the program contains main() you can do it then; if it's a library I
don't know a good way to fix it.

Kris

--eAbsdosE1cNLO4uF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9uzjwWry0BWjoQKURAvH+AJ0d8+tTDuVBpAhDps/ftC9OEsmIwwCgiIai
yQJOfOJG63CRumGeetfRwKA=
=OEDr
-----END PGP SIGNATURE-----

--eAbsdosE1cNLO4uF--

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




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