Last change
on this file since 15 was 4, checked in by Mattia Monga, 14 years ago |
Importazione sorgenti libro
|
File size:
827 bytes
|
Rev | Line | |
---|
[4] | 1 | /* <sys/ptrace.h>
|
---|
| 2 | * definitions for ptrace(2)
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _PTRACE_H
|
---|
| 6 | #define _PTRACE_H
|
---|
| 7 |
|
---|
| 8 | #define T_STOP -1 /* stop the process */
|
---|
| 9 | #define T_OK 0 /* enable tracing by parent for this process */
|
---|
| 10 | #define T_GETINS 1 /* return value from instruction space */
|
---|
| 11 | #define T_GETDATA 2 /* return value from data space */
|
---|
| 12 | #define T_GETUSER 3 /* return value from user process table */
|
---|
| 13 | #define T_SETINS 4 /* set value from instruction space */
|
---|
| 14 | #define T_SETDATA 5 /* set value from data space */
|
---|
| 15 | #define T_SETUSER 6 /* set value in user process table */
|
---|
| 16 | #define T_RESUME 7 /* resume execution */
|
---|
| 17 | #define T_EXIT 8 /* exit */
|
---|
| 18 | #define T_STEP 9 /* set trace bit */
|
---|
| 19 |
|
---|
| 20 | /* Function Prototypes. */
|
---|
| 21 | #ifndef _ANSI_H
|
---|
| 22 | #include <ansi.h>
|
---|
| 23 | #endif
|
---|
| 24 |
|
---|
| 25 | _PROTOTYPE( long ptrace, (int _req, pid_t _pid, long _addr, long _data) );
|
---|
| 26 |
|
---|
| 27 | #endif /* _PTRACE_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.