>I'm trying to port a program (a empire client) which currently >runs on SunOS. It uses the field _cnt in a FILE struct: This is horribly NON-portable code... >I've found no _cnt in NetBSd's FILE... Thats is because they do things in different ways. The current residual read length is kept in _r, and write is _w for NetBSD. --John