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 | 8f9085389f734f1e0f7e926ee0f3b44419d8c4fc (patch) | |
| tree | 0ca3fc7e7875da4c950553d2d1b76e423b737078 | |
| parent | b252bedcc96bf1764737714f7bbd1a17f7c28e6c (diff) | |
Notes
| -rw-r--r-- | lib/libutil/flopen.c | 4 | ||||
| -rw-r--r-- | lib/libutil/libutil.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/libutil/flopen.c b/lib/libutil/flopen.c index 1eb59a0c185a..687ebac5ed92 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 4a89856aaf11..51ca3d17cbc2 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); |
