Indeed the open(2) manpage is misleading in that regard. The actual definition in fcntl.h is like this:
extern int open (const char *__file, int __oflag, ...) __nonnull ((1));
(with a few variants, but they all use varargs). So I did the same in umockdev for full header compatibility.
Indeed the open(2) manpage is misleading in that regard. The actual definition in fcntl.h is like this:
extern int open (const char *__file, int __oflag, ...) __nonnull ((1));
(with a few variants, but they all use varargs). So I did the same in umockdev for full header compatibility.