[klibc] Use <stdarg.h> features in open() and openat()
Looking in klibc-1.5.21 I see that the published prototype for open() is:
__extern int open(const char *, int, ...);
This looks fine, but the actual definition (which deliberately doesn't see the
above prototype) is:
int open(const char *pathname, int flags, mode_t mode)
{ ... }
This is invalid C, and very sloppy programming.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47533
Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Thorsten Glaser <tg@mirbsd.de>
Signed-off-by: maximilian attems <max@stro.at>
4 files changed