[klibc] another bugfix

maximilian attems max at stro.at
Sun Jan 30 12:45:26 PST 2011


> From 14c78f4d68641dd571fb27d34a088014d1a0995b Mon Sep 17 00:00:00 2001
> From: Mikael Pettersson <mikpe at it.uu.se>
> Date: Sat, 29 Jan 2011 17:37:18 +0000
> Subject: [PATCH] use <stdarg.h> features in klibc 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

applied with you all signed-off to current klibc master:
http://git.kernel.org/?p=libs/klibc/klibc.git;a=summary
 
thank you.

-- 
maks



More information about the klibc mailing list