system.c 449 B

123456789101112131415161718192021222324
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* RCS: $Id$ */
  6. #include "system.h"
  7. File _sys_ftab[SYS_NOPEN] = {
  8. { 0, OP_READ},
  9. { 1, OP_APPEND},
  10. { 2, OP_APPEND}
  11. };
  12. File *
  13. _get_entry()
  14. {
  15. register File *fp;
  16. for (fp = &_sys_ftab[0]; fp < &_sys_ftab[SYS_NOPEN]; fp++)
  17. if (fp->o_flags == 0)
  18. return fp;
  19. return (File *)0;
  20. }