diff options
author | Petr Machata <pmachata@redhat.com> | 2011-10-06 14:23:24 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2011-10-06 14:23:24 +0200 |
commit | 617ff0bb228c64df4bb6682321338aecfec2d170 (patch) | |
tree | b39c5e8ab58d56f17a1ac99dccb32d33012f17c1 /common.h | |
parent | 1e8f6fe9680c994b9c86753c3345a4579f726fc4 (diff) | |
download | ltrace-617ff0bb228c64df4bb6682321338aecfec2d170.tar.gz |
Type the "process_status" interface properly
- and in implementation for linux-gnu, reflect that some kernels don't
distinguish job-control stop and tracing stop by different letter.
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -251,6 +251,14 @@ struct opt_c_struct { extern Dict * dict_opt_c; +enum process_status { + ps_invalid, /* Failure. */ + ps_stop, /* Job-control stop. */ + ps_tracing_stop, + ps_zombie, + ps_other, /* Necessary other states can be added as needed. */ +}; + enum pcb_status { pcb_stop, /* The iteration should stop. */ pcb_cont, /* The iteration should continue. */ @@ -313,7 +321,7 @@ extern char * pid2name(pid_t pid); extern pid_t process_leader(pid_t pid); extern int process_tasks(pid_t pid, pid_t **ret_tasks, size_t *ret_n); extern int process_stopped(pid_t pid); -extern char process_status(pid_t pid); +extern enum process_status process_status(pid_t pid); extern void trace_set_options(Process * proc, pid_t pid); extern void trace_me(void); extern int trace_pid(pid_t pid); |