openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glibc/2.29-r0/git/sysdeps/unix/sysv/linux/open.c
int __libc_open(const char* file, int oflag, ...)
{
    int mode = 0;

    if (__OPEN_NEEDS_MODE(oflag))
    {
        va_list arg;
        va_start(arg, oflag);
        mode = va_arg(arg, int);
        va_end(arg);
    }

    return SYSCALL_CANCEL(openat, AT_FDCWD, file, oflag, mode);
}
/* Open FILE with access OFLAG.  If O_CREAT or O_TMPFILE is in OFLAG,
   a third argument is the file protection.  */
Open FILE with access OFLAG.  If O_CREAT or O_TMPFILE is in OFLAG,
a third argument is the file protection.
Open FILE with access OFLAG . If O_CREAT or O_TMPFILE is in OFLAG a third argument is the file protection .
int __libc_open(const char* file, int oflag, ...)
{
    int mode = 0;
    if (__OPEN_NEEDS_MODE(oflag))
    {
        va_list arg;
        va_start(arg, oflag);
        mode = va_arg(arg, int);
        va_end(arg);
    }
    return SYSCALL_CANCEL(openat, AT_FDCWD, file, oflag, mode);
}
int __libc_open ( const char * file , int oflag , ... ) { int mode = 0 ; if ( __OPEN_NEEDS_MODE ( oflag ) ) { va_list arg ; va_start ( arg , oflag ) ; mode = va_arg ( arg , int ) ; va_end ( arg ) ; } return SYSCALL_CANCEL ( openat , AT_FDCWD , file , oflag , mode ) ; }
Open FILE with access OFLAG.
Open FILE with access OFLAG .