This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
any interest in non-standard stdio functions?
- From: Eric Blake <ebb9 at byu dot net>
- To: newlib at sources dot redhat dot com
- Date: Tue, 01 May 2007 07:13:04 -0600
- Subject: any interest in non-standard stdio functions?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
There are several non-standard functions from the BSD family that are
useful in open-source projects, as well as several accessors provided by
Solaris and copied by Linux, but which are not currently provided by
newlib. Is there any interest in providing some or all of these?
fpurge/__fpurge - discard unread and unwritten buffers (I like the BSD
defn better than the Solaris defn, since it allows for error detection
such as EBADF)
funopen - open a stream using customized hooks (currently declared in
newlib's stdio.h, but causes a link error if its use is attempted);
comparable to the Linux fopencookie
__fpending - report how many unwritten bytes are buffered
__fbufsize - report the current buffer size
__flbf - return true if the stream is line-buffered
__freadable - return true if the stream allows reading
__fwritable - return true if the stream allows writing
__freading - return true if the stream is read-only, or if stream is
read-write and currently has an active read buffer
__fwriting - return true if the stream is write-only, or if stream is
read-write and currently has an active write buffer
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGNzzg84KuGfSFAYARAuWJAJ0SJ2h/+hF3UZeE++lqjs6/dP4vagCgzxln
GujaoHT/JhFAktZBdjsm3zo=
=xpjm
-----END PGP SIGNATURE-----