develooper Front page | perl.perl5.porters | Postings from October 2002

IO::Handle::setvbuf in ext/IO in not implemented in platform bug

Thread Next
From:
Damon Atkins
Date:
October 24, 2002 04:45
Subject:
IO::Handle::setvbuf in ext/IO in not implemented in platform bug
Message ID:
20021024075142.75923.qmail@web21510.mail.yahoo.com
Dear Perl5 Porters

To check for setvbuf in IO.xs users the follow
#if defined(PERLIO_IS_STDIO) && defined(_IOFBF) &&
defined(HAS_SETVBUF)

_IOFBF does not exist under Solaris unless you include
stdio.h. (stdio.h include iso/iso_stdio.h) which
defines the following:
#define _IOFBF          0000    /* full buffered */
#define _IOLBF          0100    /* line buffered */
#define _IONBF          0004    /* not buffered */
#define _IOEOF          0020    /* EOF reached on read
*/
#define _IOERR          0040    /* I/O error from
system */

#define _IOREAD         0001    /* currently reading
*/
#define _IOWRT          0002    /* currently writing
*/
#define _IORW           0200    /* opened for reading
and writing */
#define _IOMYBUF        0010    /* stdio malloc()'d
buffer */

Could you please update the source code for IO.xs

Thanks
Damon.


http://careers.yahoo.com.au - Yahoo! Careers
- 1,000's of jobs waiting online for you!

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About