Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2008 17:40:41 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/include stdio.h src/lib/libc/stdio clrerr.c feof.c ferror.c fileno.c getc.c getchar.c local.h putc.c putchar.c xprintf.c
Message-ID:  <20080508074041.GM7293@server.vk2pj.dyndns.org>
In-Reply-To: <48222782.7000303@FreeBSD.org>
References:  <200805051603.m45G3rrN089219@repoman.freebsd.org> <200805051459.29200.jhb@freebsd.org> <20080505192417.GS7293@server.vk2pj.dyndns.org> <200805051637.43073.jhb@freebsd.org> <20080507064013.GU32532@elvis.mu.org> <48222782.7000303@FreeBSD.org>

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

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

On Wed, May 07, 2008 at 03:04:50PM -0700, Maxim Sobolev wrote:
>Can you please explain the "needed" part?

- The file struct is in two pieces: struct __sFILE and struct __sFILEX
  This is at best a wart.
- stdio currently only supports file descriptors <=3D32767.

> What are gains apart from pure aesthetics

"data-hiding" is a standard technique.  Making FILE opaque means that
future changes can be made without impacting altering the ABI.

--=20
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.

--V4yrq4dHtCqH+JvC
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkgirnkACgkQ/opHv/APuIcU0ACfZLcjzBMO/9nKFvmFEXuTFBW1
BfAAoLU8Jfd/r1PRpQlr5G30965BPUVr
=fCuq
-----END PGP SIGNATURE-----

--V4yrq4dHtCqH+JvC--



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