diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2005-08-24 17:21:38 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2005-08-24 17:21:38 +0000 |
| commit | 412fa8f1145545ad30922007c6cb607d7ddb1003 (patch) | |
| tree | b6de69447d47fffaa83dd6300aab8b56a9a55567 /lib/libutil/libutil.h | |
| parent | 4986c6d8e2b4547732d951e5603f5af9ede69b49 (diff) | |
Notes
Diffstat (limited to 'lib/libutil/libutil.h')
| -rw-r--r-- | lib/libutil/libutil.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index 3042d0fddb3a..961fa1b98477 100644 --- a/lib/libutil/libutil.h +++ b/lib/libutil/libutil.h @@ -49,6 +49,16 @@ typedef struct _property { char *value; } *properties; +#ifdef _SYS_PARAM_H_ +/* for pidfile.c */ +struct pidfh { + int pf_fd; + char pf_path[MAXPATHLEN + 1]; + __dev_t pf_dev; + ino_t pf_ino; +}; +#endif + /* Avoid pulling in all the include files for no need */ struct termios; struct winsize; @@ -102,6 +112,13 @@ struct passwd *pw_scan(const char *_line, int _flags); const char *pw_tempname(void); int pw_tmp(int _mfd); #endif + +#ifdef _SYS_PARAM_H_ +struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr); +int pidfile_write(struct pidfh *pfh); +int pidfile_close(struct pidfh *pfh); +int pidfile_remove(struct pidfh *pfh); +#endif __END_DECLS #define UU_LOCK_INUSE (1) |
