forget difference between big and small commands - obsolete with vm.
[minix.git] / commands / aal / system.h
blob72e523e772f18d8aa1ec1f47aee5e4e8567339e1
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$ */
6 #ifndef __SYSTEM_INCLUDED__
7 #define __SYSTEM_INCLUDED__
9 struct _sys_fildes {
10 int o_fd; /* UNIX filedescriptor */
11 int o_flags; /* flags for open; 0 if not used */
14 typedef struct _sys_fildes File;
16 extern File _sys_ftab[];
18 /* flags for sys_open() */
19 #define OP_READ 01
20 #define OP_WRITE 02
21 #define OP_APPEND 04
23 /* flags for sys_access() */
24 #define AC_EXIST 00
25 #define AC_READ 04
26 #define AC_WRITE 02
27 #define AC_EXEC 01
29 /* flags for sys_stop() */
30 #define S_END 0
31 #define S_EXIT 1
32 #define S_ABORT 2
34 /* standard file decsriptors */
35 #define STDIN &_sys_ftab[0]
36 #define STDOUT &_sys_ftab[1]
37 #define STDERR &_sys_ftab[2]
39 /* maximum number of open files */
40 #define SYS_NOPEN 20
42 /* return value for sys_break */
43 #define ILL_BREAK ((char *)0)
45 /* system's idea of block */
46 #define BUFSIZ 1024
47 #endif __SYSTEM_INCLUDED__