Back to index

glibc  2.9
Functions | Variables
open.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stub-tag.h>

Go to the source code of this file.

Functions

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

Variables

char **__libc_argv attribute_hidden

Function Documentation

int __open ( char *  file,
int  oflag 
) const

Definition at line 30 of file open.c.

{
  int mode;

  if (file == NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }

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

  __set_errno (ENOSYS);
  return -1;
}

Definition at line 53 of file open.c.

{
  if (oflag & O_CREAT)
    __fortify_fail ("invalid open call: O_CREAT without mode");

  return __open (file, oflag);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 25 of file init-first.c.