Back to index

glibc  2.9
Functions
open64.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 __libc_open64 (char *file, int oflag) const
 strong_alias (__libc_open64, __open64)

Function Documentation

int __libc_open64 ( char *  file,
int  oflag 
) const

Definition at line 29 of file open64.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 52 of file open64.c.

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

  return __open64 (file, oflag);
}

Here is the call graph for this function: