source: trunk/minix/commands/aal/system.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 533 bytes
Line 
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: $Header: /cvsup/minix/src/commands/aal/system.c,v 1.1.1.1 2005/04/21 14:53:58 beng Exp $ */
6
7#include <system.h>
8
9File _sys_ftab[SYS_NOPEN] = {
10 { 0, OP_READ},
11 { 1, OP_APPEND},
12 { 2, OP_APPEND}
13};
14
15File *
16_get_entry()
17{
18 register File *fp;
19
20 for (fp = &_sys_ftab[0]; fp < &_sys_ftab[SYS_NOPEN]; fp++)
21 if (fp->o_flags == 0)
22 return fp;
23 return (File *)0;
24}
Note: See TracBrowser for help on using the repository browser.