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

#ifndef __NO_STAT64
extern size_t __pread(int fd, void *buf, size_t count, off_t a,off_t b);

size_t __libc_pread64(int fd, void *buf, size_t count, off64_t offset) {
  return __pread(fd,buf,count,__LONG_LONG_PAIR (offset&0xffffffff,offset>>32));
}

int pread64(int fd, void *buf, size_t count, off_t offset) __attribute__((weak,alias("__libc_pread64")));
#endif