syscall.h (bbeaf6c0c988a72995af5a9283488e02546bebbd) syscall.h (970649f9c90e9626da3716de450717512209a82f)
1/*
2 * System call arguments come in several flavours:
3 * Hex -- values that should be printed in hex (addresses)
4 * Octal -- Same as above, but octal
5 * Int -- normal integer values (file descriptors, for example)
6 * String -- pointers to sensible data. Note that we treat read() and
7 * write() arguments as such, even though they may *not* be
8 * printable data.
9 * Ptr -- pointer to some specific structure. Just print as hex for now.
10 * Quad -- a double-word value. e.g., lseek(int, offset_t, int)
11 * Stat -- a pointer to a stat buffer. Currently unused.
1/*
2 * System call arguments come in several flavours:
3 * Hex -- values that should be printed in hex (addresses)
4 * Octal -- Same as above, but octal
5 * Int -- normal integer values (file descriptors, for example)
6 * String -- pointers to sensible data. Note that we treat read() and
7 * write() arguments as such, even though they may *not* be
8 * printable data.
9 * Ptr -- pointer to some specific structure. Just print as hex for now.
10 * Quad -- a double-word value. e.g., lseek(int, offset_t, int)
11 * Stat -- a pointer to a stat buffer. Currently unused.
12 * Ioctl -- an ioctl command. Woefully limited.
12 *
13 * In addition, the pointer types (String, Ptr) may have OUT masked in --
14 * this means that the data is set on *return* from the system call -- or
15 * IN (meaning that the data is passed *into* the system call).
16 */
17/*
13 *
14 * In addition, the pointer types (String, Ptr) may have OUT masked in --
15 * this means that the data is set on *return* from the system call -- or
16 * IN (meaning that the data is passed *into* the system call).
17 */
18/*
18 * $Id$
19 * $Id: syscall.h,v 1.1 1997/12/06 05:23:07 sef Exp $
19 */
20
20 */
21
21enum Argtype { None = 1, Hex, Octal, Int, String, Ptr, Stat, Quad };
22enum Argtype { None = 1, Hex, Octal, Int, String, Ptr, Stat, Ioctl, Quad };
22
23#define ARG_MASK 0xff
24#define OUT 0x100
25#define IN /*0x20*/0
26
27struct syscall_args {
28 enum Argtype type;
29 int offset;

--- 14 unchanged lines hidden ---
23
24#define ARG_MASK 0xff
25#define OUT 0x100
26#define IN /*0x20*/0
27
28struct syscall_args {
29 enum Argtype type;
30 int offset;

--- 14 unchanged lines hidden ---