Back to index

glibc  2.9
Functions
open.c File Reference
#include <fcntl.h>
#include <stdarg.h>
#include <unistd.h>

Go to the source code of this file.

Functions

int __open (const char *file, int oflag,...)

Function Documentation

int __open ( const char *  file,
int  oflag,
  ... 
)

Definition at line 24 of file open.c.

{
  int mode = 0;

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

  return open (file, oflag, mode);
}

Here is the call graph for this function: