diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-05-10 15:01:42 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-05-10 15:01:42 +0000 |
commit | 7750efa40b8dcef319473176ea0fd3c8afb7d765 (patch) | |
tree | 17a8c20a44e12f16d114fcb24693f92afd4a8ea9 /libutil | |
parent | 359769889d017e0d5ac6423fe9b719998c2d5d66 (diff) | |
download | pw-darwin-7750efa40b8dcef319473176ea0fd3c8afb7d765.tar.gz pw-darwin-7750efa40b8dcef319473176ea0fd3c8afb7d765.tar.zst pw-darwin-7750efa40b8dcef319473176ea0fd3c8afb7d765.zip |
Well gag me with a spoon... I'm so used to working at high WARNS levels
that I make stupid fundamental mistakes like this when I don't.
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/flopen.c | 4 | ||||
-rw-r--r-- | libutil/libutil.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libutil/flopen.c b/libutil/flopen.c index 1eb59a0..687ebac 100644 --- a/libutil/flopen.c +++ b/libutil/flopen.c @@ -28,11 +28,15 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/file.h> #include <sys/stat.h> #include <errno.h> #include <fcntl.h> #include <stdarg.h> +#include <unistd.h> + +#include <libutil.h> int flopen(const char *path, int flags, ...) diff --git a/libutil/libutil.h b/libutil/libutil.h index 4a89856..51ca3d1 100644 --- a/libutil/libutil.h +++ b/libutil/libutil.h @@ -70,7 +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); +int flopen(const char *_path, int _flags, ...); void login(struct utmp *_ut); int login_tty(int _fd); int logout(const char *_line); |