diff options
author | markj <markj@FreeBSD.org> | 2017-04-11 17:36:19 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2017-04-11 17:36:19 +0000 |
commit | ff91e24e3dbc6bef1e9733e4ff344812d7a7b566 (patch) | |
tree | 038220dc9929fe015146022446ff2f0666cd0405 /lib/libproc/_libproc.h | |
parent | 23165228b796c797552517a1e0e624234e8a613e (diff) | |
download | FreeBSD-src-ff91e24e3dbc6bef1e9733e4ff344812d7a7b566.zip FreeBSD-src-ff91e24e3dbc6bef1e9733e4ff344812d7a7b566.tar.gz |
MFC r309591:
Fix style bugs and remove trailing whitespace in libproc and librtld_db.
Diffstat (limited to 'lib/libproc/_libproc.h')
-rw-r--r-- | lib/libproc/_libproc.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lib/libproc/_libproc.h b/lib/libproc/_libproc.h index ffc89cf..5593cac 100644 --- a/lib/libproc/_libproc.h +++ b/lib/libproc/_libproc.h @@ -26,27 +26,27 @@ * $FreeBSD$ */ -#include <sys/cdefs.h> -#include <sys/param.h> +#ifndef __LIBPROC_H_ +#define __LIBPROC_H_ + #include <sys/types.h> -#include <sys/event.h> #include <sys/ptrace.h> + #include <rtld_db.h> #include "libproc.h" struct proc_handle { pid_t pid; /* Process ID. */ - int kq; /* Kernel event queue ID. */ int flags; /* Process flags. */ int status; /* Process status (PS_*). */ int wstat; /* Process wait status. */ rd_agent_t *rdap; /* librtld_db agent */ - rd_loadobj_t *rdobjs; - size_t rdobjsz; - size_t nobjs; - struct lwpstatus lwps; - rd_loadobj_t *rdexec; /* rdobj index of program executable. */ + rd_loadobj_t *rdobjs; /* Array of loaded objects. */ + size_t rdobjsz; /* Array size. */ + size_t nobjs; /* Num. objects currently loaded. */ + rd_loadobj_t *rdexec; /* rdobj for program executable. */ + struct lwpstatus lwps; /* Process status. */ char execname[MAXPATHLEN]; /* Path to program executable. */ }; @@ -57,3 +57,5 @@ struct proc_handle { #define DPRINTF(...) do { } while (0) #define DPRINTFX(...) do { } while (0) #endif + +#endif /* __LIBPROC_H_ */ |