Back to index

glibc  2.9
open64.c File Reference
#include <fcntl.h>
#include <stdarg.h>
#include <bp-sym.h>
#include <sysdep-cancel.h>

Go to the source code of this file.


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

Function Documentation

int __libc_open64 ( const char *  file,
int  oflag,

Definition at line 27 of file open64.c.

  int mode = 0;

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

    return __libc_open (file, oflag | O_LARGEFILE, mode);

  int oldtype = LIBC_CANCEL_ASYNC ();

  int result = __libc_open (file, oflag | O_LARGEFILE, mode);

  LIBC_CANCEL_RESET (oldtype);

  return result;

Here is the call graph for this function: