summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorGuy Helmer <ghelmer@FreeBSD.org>2012-01-10 19:53:25 +0000
committerGuy Helmer <ghelmer@FreeBSD.org>2012-01-10 19:53:25 +0000
commit3d079fe22ea0f5378c08449929b95ad748d810af (patch)
tree75880c92e078bf4bb6a72d5c7bbebf21f326c26c /libutil
parent5c5e67d83f6be45507a76cb75af552ccc3576daf (diff)
downloadpw-darwin-3d079fe22ea0f5378c08449929b95ad748d810af.tar.gz
pw-darwin-3d079fe22ea0f5378c08449929b95ad748d810af.tar.zst
pw-darwin-3d079fe22ea0f5378c08449929b95ad748d810af.zip
Add pidfile_fileno() to obtain the file descriptor for an open
pidfile.
Diffstat (limited to 'libutil')
-rw-r--r--libutil/libutil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h
index 47896c1..25ac1db 100644
--- a/libutil/libutil.h
+++ b/libutil/libutil.h
@@ -170,6 +170,7 @@ 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);
+int pidfile_fileno(struct pidfh *pfh);
#endif
#ifdef _UFS_UFS_QUOTA_H_