File:
[DVB] /
dietlibc /
lib /
lseek64.c
Revision
1.5:
download - view:
text,
annotated -
select for diffs
Mon Nov 12 14:47:00 2001 UTC (22 years, 7 months ago) by
olaf
Branches:
MAIN
CVS tags:
finnland_test_200301,
branch_rc14_fieldtest_finnland,
branch_rc13_fieldtest_finnland,
branch_rc12_fieldtest_finnland,
branch_rc10_fieldtest_finnland,
RELEASE_finnland_200301_1,
RC12_FIELDTEST_FINNLAND,
RC10_FIELDTEST_FINNLAND,
HEAD
removed a bug with the largefile back compatible option and dynamic-linking
#include <errno.h>
#include "dietfeatures.h"
#include <sys/stat.h>
#ifndef __NO_STAT64
#include <unistd.h>
loff_t lseek64(int fildes, loff_t offset, int whence) {
loff_t tmp;
if (llseek(fildes,(unsigned long)(offset>>32),(unsigned long)offset&0xffffffff,&tmp,whence)) {
if (errno!=ENOSYS) return -1;
return (loff_t)lseek(fildes,(off_t)offset,whence);
}
return tmp;
}
#endif
LinuxTV legacy CVS <linuxtv.org/cvs>