00001 /* 00002 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. 00003 * See the copyright notice in the ACK home directory, in the file "Copyright". 00004 */ 00005 /* RCS: $Header: /opt/proj/minix/cvsroot/src/commands/aal/system.c,v 1.1.1.1 2005/04/21 14:53:58 beng Exp $ */ 00006 00007 #include <system.h> 00008 00009 File _sys_ftab[SYS_NOPEN] = { 00010 { 0, OP_READ}, 00011 { 1, OP_APPEND}, 00012 { 2, OP_APPEND} 00013 }; 00014 00015 File * 00016 _get_entry() 00017 { 00018 register File *fp; 00019 00020 for (fp = &_sys_ftab[0]; fp < &_sys_ftab[SYS_NOPEN]; fp++) 00021 if (fp->o_flags == 0) 00022 return fp; 00023 return (File *)0; 00024 }
1.4.6