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