2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
8 #include "../h/iobuf.h"
10 /* this is the counterpart to fopen which leaves
11 * the file opened for both read and write
12 * fseek may then be used to position at the end of the
13 * file (or wherever) before reading/writing
15 fopen2(filename
, abufp
)
19 register struct iobuf
*bufp
;
24 if ((bufp
->b_fildes
= open(filename
, 2)) < 0) return(-1);