Question on variable argument list for 'open.c'.

Mike Frysinger vapier at gentoo.org
Sat Feb 4 23:48:48 UTC 2006


On Saturday 04 February 2006 18:13, Steven J. Hill wrote:
> Mike Frysinger wrote:
> > huh ?
> > open("/dev/null", O_RDONLY)
> > open("/tmp/foo", O_RDWR|O_CREAT|O_EXCL, 0700)
>
> The confusion was with glibc's declration of the function since they
> do not have the '...' explicitly declared.

their io/open.c doesnt, but you cant really count that one seeing as how it 
doesnt do anything other than set errno to ENOSYS

the other versions use ..., like sysdeps/sysv/linux/open64.c
-mike



More information about the uClibc mailing list