3 * (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands.
5 * This product is part of the Amsterdam Compiler Kit.
7 * Permission to use, sell, duplicate or disclose this software must be
8 * obtained in writing. Requests for such permissions may be sent to
10 * Dr. Andrew S. Tanenbaum
11 * Wiskundig Seminarium
19 /* Author: J.W. Stevenson */
24 extern struct file
*_curfil
;
30 _xcls(f
) struct file
*f
; {
32 if ((f
->flags
& WRBIT
) == 0)
34 if ((f
->flags
& (TXTBIT
|ELNBIT
)) == TXTBIT
) {
45 _cls(f
) struct file
*f
; {
51 if ((f
->flags
&0377) != MAGIC
)
64 if (_close(f
->ufd
) != 0)