diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-05-10 14:43:31 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-05-10 14:43:31 +0000 |
| commit | 82c0a122ffb4ff24e53e2a3ef557704add29659c (patch) | |
| tree | 19dfb1de00337a8c2da1d8972a332cbc57b4c5f1 /libutil/libutil.h | |
| parent | c18c6a8c9f11aa3722d3903630c5159d3e4bcd87 (diff) | |
| download | pw-darwin-82c0a122ffb4ff24e53e2a3ef557704add29659c.tar.gz pw-darwin-82c0a122ffb4ff24e53e2a3ef557704add29659c.zip | |
I'm tired of seeing this done incorrectly and non-portably, so add a
flopen(3) function which reliably opens and locks a file.
MFC after: 3 weeks
Diffstat (limited to 'libutil/libutil.h')
| -rw-r--r-- | libutil/libutil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h index aefff0c..4a89856 100644 --- a/libutil/libutil.h +++ b/libutil/libutil.h @@ -70,6 +70,7 @@ void clean_environment(const char * const *_white, const char * const *_more_white); int extattr_namespace_to_string(int _attrnamespace, char **_string); int extattr_string_to_namespace(const char *_string, int *_attrnamespace); +int flopen(const char *_path, int _flags, mode_t _mode); void login(struct utmp *_ut); int login_tty(int _fd); int logout(const char *_line); |
