diff options
author | des <des@FreeBSD.org> | 2007-05-10 14:43:31 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2007-05-10 14:43:31 +0000 |
commit | 5d25ea6b6214552539112dbc8d1bdc8f79460dd6 (patch) | |
tree | 102b7b1c4af852c306e9fbb22b01198df98feccd /lib/libutil/libutil.h | |
parent | c8214b677dbe65514eabcf78ca9c56f7bdf84aed (diff) | |
download | FreeBSD-src-5d25ea6b6214552539112dbc8d1bdc8f79460dd6.zip FreeBSD-src-5d25ea6b6214552539112dbc8d1bdc8f79460dd6.tar.gz |
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 'lib/libutil/libutil.h')
-rw-r--r-- | lib/libutil/libutil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index aefff0c..4a89856 100644 --- a/lib/libutil/libutil.h +++ b/lib/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); |