summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-05-10 15:01:42 +0000
committerdes <des@FreeBSD.org>2007-05-10 15:01:42 +0000
commitced6c23397bb86d97c036e35c740110c6cab4599 (patch)
tree0ca3fc7e7875da4c950553d2d1b76e423b737078 /lib
parent2c5ccfbba9d7f05e031a18b0c3acab9c103d2f77 (diff)
downloadFreeBSD-src-ced6c23397bb86d97c036e35c740110c6cab4599.zip
FreeBSD-src-ced6c23397bb86d97c036e35c740110c6cab4599.tar.gz
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 'lib')
-rw-r--r--lib/libutil/flopen.c4
-rw-r--r--lib/libutil/libutil.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/libutil/flopen.c b/lib/libutil/flopen.c
index 1eb59a0..687ebac 100644
--- a/lib/libutil/flopen.c
+++ b/lib/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/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 4a89856..51ca3d1 100644
--- a/lib/libutil/libutil.h
+++ b/lib/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);
OpenPOWER on IntegriCloud