diff options
author | ghelmer <ghelmer@FreeBSD.org> | 2012-01-12 22:49:36 +0000 |
---|---|---|
committer | ghelmer <ghelmer@FreeBSD.org> | 2012-01-12 22:49:36 +0000 |
commit | 7e48086a86bd27a66ffcd516748a3099662fdefe (patch) | |
tree | a131a6a05d5b1afd59f8121114498f38af9cf35f /lib/libutil/pidfile.c | |
parent | ca439f51f0cc3f36f77c8dfbaeff704b689caecc (diff) | |
download | FreeBSD-src-7e48086a86bd27a66ffcd516748a3099662fdefe.zip FreeBSD-src-7e48086a86bd27a66ffcd516748a3099662fdefe.tar.gz |
Move struct pidfh definition into pidfile.c, and leave a forward declaration
for pidfh in libutil.h in its place.
This allows us to hide the contents of the pidfh structure, and also
allowed removal of the "#ifdef _SYS_PARAM_H" guard from around the
pidfile_* function prototypes.
Suggested by pjd.
Diffstat (limited to 'lib/libutil/pidfile.c')
-rw-r--r-- | lib/libutil/pidfile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libutil/pidfile.c b/lib/libutil/pidfile.c index 60f81fd..bca0315 100644 --- a/lib/libutil/pidfile.c +++ b/lib/libutil/pidfile.c @@ -41,6 +41,13 @@ __FBSDID("$FreeBSD$"); #include <errno.h> #include <libutil.h> +struct pidfh { + int pf_fd; + char pf_path[MAXPATHLEN + 1]; + dev_t pf_dev; + ino_t pf_ino; +}; + static int _pidfile_remove(struct pidfh *pfh, int freeit); static int |