Date: Fri, 13 Jun 2003 19:01:50 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Paul Reece <paul@fastlane.net.au> Cc: freebsd-stable@freebsd.org Subject: Re: problem with libc_r (uthread_close.c) in 4.8-STABLE Message-ID: <20030613160150.GA7382@sunbay.com> In-Reply-To: <20030613225435.X28265@nero.fastlane.net.au> References: <20030613225435.X28265@nero.fastlane.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Jun 13, 2003 at 11:08:38PM +0800, Paul Reece wrote:
>
[...]
> On further investigation, the following code segment when compiled with
> phtreads, results in a segmentation fault:
>
> #include <stdio.h>
> typedef long long longlong;
> main()
> {
> longlong ll=1;
> float f;
> FILE *file=fopen("conftestval", "w");
> f = (float) ll;
> fprintf(file,"%g\n",f);
> close(file);
^^^^^ that should apparently be fclose(3)
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru@sunbay.com Sunbay Software Ltd,
ru@FreeBSD.org FreeBSD committer
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
iD8DBQE+6fVuUkv4P6juNwoRAsRyAJ9dHr1ydcFEQW5+oP/ztt+LPIQcFwCbBk32
WpHhh6+RfwMEFv0i2UFVit0=
=XDw/
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030613160150.GA7382>
