summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/open64.c
blob: 2599e22593d81b818773dc268810895505fcc1e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <sys/types.h>
#include <fcntl.h>

#ifndef O_LARGEFILE
#define O_LARGEFILE 0
#endif

int __libc_open64(const char* file,int oflag,int mode);
int __libc_open64(const char* file,int oflag,int mode) {
  return open(file,oflag|O_LARGEFILE,mode);
}

int open64(const char* file,int oflag,...) __attribute__((weak,alias("__libc_open64")));