dick@ahds.ahold.nl (Dick Heijne CCS/TS) (05/30/91)
After a few evenings of hacking around in some software I found out that the cause of trouble was that fopen() does NOT support the r+, w+ and a+ modes, only plain r/w/a. Since I'm not completely up-to-date (I'm running unpatched ST Minix 1.5.10 at the moment - patches 1/2/3 only seem to be available on FTP sites, but no TCP/IP here) I wonder if this has been fixed in later releases (Frans??). Fixing this problem will cost me quite a bit of hacking around (not only fopen() needs updating, but almost all supporting IO routines), so I would be most grateful if someone could hand me patches or hints about where-to-get (preferrably not FTP). Stunning around in the stdio routines I also discovered some minor problems in ftell(), which does not return the logical file position, but the physical position, while this should be transparent (the physical position is totally academic). Also fflush() returns wrong data: Due to ANSI standards it should return zero on success and -1 on failure. Instead, fflush() returns -1 on failure (so that's OK) but it returns the number of flushed characters on success, which doesn't particularly interest me. BTW, I fixed these so that's no problem... Please only react on the first question. Thanks in advance... Dick.