File:  [DVB] / dietlibc / mips / pwrite64.c
Revision 1.2: download - view: text, annotated - select for diffs
Mon May 10 20:34:12 2004 UTC (20 years, 1 month ago) by sanjiyan
Branches: MAIN
CVS tags: HEAD
time

#include <endian.h>
#include <sys/types.h>
#include <sys/stat.h>

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

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

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

LinuxTV legacy CVS <linuxtv.org/cvs>