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.h,v 1.1.1.1 2005/04/21 14:53:58 beng Exp $ */
|
---|
6 | #ifndef __SYSTEM_INCLUDED__
|
---|
7 | #define __SYSTEM_INCLUDED__
|
---|
8 |
|
---|
9 | struct _sys_fildes {
|
---|
10 | int o_fd; /* UNIX filedescriptor */
|
---|
11 | int o_flags; /* flags for open; 0 if not used */
|
---|
12 | };
|
---|
13 |
|
---|
14 | typedef struct _sys_fildes File;
|
---|
15 |
|
---|
16 | extern File _sys_ftab[];
|
---|
17 |
|
---|
18 | /* flags for sys_open() */
|
---|
19 | #define OP_READ 01
|
---|
20 | #define OP_WRITE 02
|
---|
21 | #define OP_APPEND 04
|
---|
22 |
|
---|
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
|
---|
28 |
|
---|
29 | /* flags for sys_stop() */
|
---|
30 | #define S_END 0
|
---|
31 | #define S_EXIT 1
|
---|
32 | #define S_ABORT 2
|
---|
33 |
|
---|
34 | /* standard file decsriptors */
|
---|
35 | #define STDIN &_sys_ftab[0]
|
---|
36 | #define STDOUT &_sys_ftab[1]
|
---|
37 | #define STDERR &_sys_ftab[2]
|
---|
38 |
|
---|
39 | /* maximum number of open files */
|
---|
40 | #define SYS_NOPEN 20
|
---|
41 |
|
---|
42 | /* return value for sys_break */
|
---|
43 | #define ILL_BREAK ((char *)0)
|
---|
44 |
|
---|
45 | /* system's idea of block */
|
---|
46 | #define BUFSIZ 1024
|
---|
47 | #endif __SYSTEM_INCLUDED__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.