From a7a8ae428de1ce96015914b05370d6d44a57d9ad Mon Sep 17 00:00:00 2001 From: rodrigc Date: Wed, 5 Nov 2008 19:35:43 +0000 Subject: Merge latest DTrace changes from Perforce. Update libproc API to reflect new changes. Approved by: jb --- lib/libproc/libproc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/libproc/libproc.h') diff --git a/lib/libproc/libproc.h b/lib/libproc/libproc.h index c67cfe6..eccf37d 100644 --- a/lib/libproc/libproc.h +++ b/lib/libproc/libproc.h @@ -33,6 +33,8 @@ struct proc_handle; +typedef void (*proc_child_func)(void *); + /* Values returned by proc_state(). */ #define PS_IDLE 1 #define PS_STOP 2 @@ -55,7 +57,8 @@ int proc_addr2sym(struct proc_handle *, uintptr_t, char *, size_t, GElf_Sym *); int proc_attach(pid_t pid, int flags, struct proc_handle **pphdl); int proc_continue(struct proc_handle *); int proc_clearflags(struct proc_handle *, int); -int proc_create(const char *, char * const *, struct proc_handle **); +int proc_create(const char *, char * const *, proc_child_func *, void *, + struct proc_handle **); int proc_detach(struct proc_handle *); int proc_getflags(struct proc_handle *); int proc_name2sym(struct proc_handle *, const char *, const char *, GElf_Sym *); -- cgit v1.1