Subject: How to translate this stdio code to netbsd?
To: None <current-users@NetBSD.ORG>
From: Carsten Hammer <chammer@phyhammer>
List: current-users
Date: 03/08/1996 14:54:16
Operating System: NetBSD 1.1A amiga
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Length: 575       

Hi,
perhaps some kind soul i willing to enlighten me how
to translate this code to netbsd style:


FILE *f;
charr *base, *ptr;
int cnt;

#ifdef __linux__
    base = (char *)f->_IO_read_base;
    ptr = (char *)f->_IO_read_ptr;
    cnt = ptr - base;
#else
    base = (char *)f->_base;
    ptr = (char *)f->_ptr;
    cnt = f->_cnt;
#endif

what is the pseudonym of _IOEOF,_IOMYBU and _IOERR on netbsd?

thank you very much,
ciao
Carsten

PS: it is maybe ridiculous to "translate" this to netbsd. I 
dont understand very much of the underlying code so dont eat me
in this case:)