123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #include <sys/procfs.h>
- typedef enum
- {
- PS_OK,
- PS_ERR,
- PS_BADPID,
- PS_BADLID,
- PS_BADADDR,
- PS_NOSYM,
- PS_NOFREGS
-
- } ps_err_e;
- struct ps_prochandle;
- extern ps_err_e ps_pdread(struct ps_prochandle *,
- psaddr_t, void *, size_t);
- extern ps_err_e ps_pdwrite(struct ps_prochandle *,
- psaddr_t, const void *, size_t);
- extern ps_err_e ps_ptread(struct ps_prochandle *,
- psaddr_t, void *, size_t);
- extern ps_err_e ps_ptwrite(struct ps_prochandle *,
- psaddr_t, const void *, size_t);
- extern ps_err_e ps_pglobal_lookup(struct ps_prochandle *,
- const char *object_name, const char *sym_name, psaddr_t *sym_addr);
- extern ps_err_e ps_lgetregs(struct ps_prochandle *,
- lwpid_t, prgregset_t);
- extern ps_err_e ps_lsetregs(struct ps_prochandle *,
- lwpid_t, const prgregset_t);
- extern ps_err_e ps_lgetfpregs(struct ps_prochandle *,
- lwpid_t, prfpregset_t *);
- extern ps_err_e ps_lsetfpregs(struct ps_prochandle *,
- lwpid_t, const prfpregset_t *);
- extern pid_t ps_getpid (struct ps_prochandle *);
- extern ps_err_e ps_pstop (const struct ps_prochandle *);
- extern ps_err_e ps_pcontinue (const struct ps_prochandle *);
- extern ps_err_e ps_lstop (const struct ps_prochandle *, lwpid_t);
- extern ps_err_e ps_lcontinue (const struct ps_prochandle *, lwpid_t);
|