rpms/mfstools/FC-5 mfstools-fixllseek.patch,NONE,1.1
Tom Callaway (spot)
fedora-extras-commits at redhat.com
Fri Sep 15 00:44:07 UTC 2006
Author: spot
Update of /cvs/extras/rpms/mfstools/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5226
Added Files:
mfstools-fixllseek.patch
Log Message:
Actually commit patch.
mfstools-fixllseek.patch:
--- NEW FILE mfstools-fixllseek.patch ---
--- MFSTools-snapshot050221/lib/readwrite.c.BAD 2006-09-14 19:22:00.000000000 -0500
+++ MFSTools-snapshot050221/lib/readwrite.c 2006-09-14 19:24:19.000000000 -0500
@@ -43,7 +43,6 @@
_syscall4 (static long, readsectors, unsigned int, fd, struct FsIovec *, buf, int, buf_len, struct FsIoRequest *, request) _syscall4 (static long, writesectors, unsigned int, fd, struct FsIovec *, buf, int, buf_len, struct FsIoRequest *, request)
#endif
#ifdef __NR__llseek
-static _syscall5 (int, _llseek, uint, fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh);
#define USE_LLSEEK
#endif
@@ -130,7 +129,7 @@
/* A file, or not TiVo, use llseek and read. */
#ifdef USE_LLSEEK
- if (_llseek (_tivo_partition_fd (file), sector >> 23, sector << 9, &result, SEEK_SET) < 0)
+ if (syscall(__NR__llseek, _tivo_partition_fd (file), sector >> 23, sector << 9, &result, SEEK_SET) < 0)
#else
#if TARGET_OS_MAC
if (lseek (_tivo_partition_fd (file), (off_t)sector << 9, SEEK_SET) != (off_t)sector << 9)
@@ -205,7 +204,7 @@
/* A file, or not TiVo, use llseek and write. */
#ifdef USE_LLSEEK
- if (_llseek (_tivo_partition_fd (file), sector >> 23, sector << 9, &result, SEEK_SET) < 0)
+ if (syscall(__NR__llseek, _tivo_partition_fd (file), sector >> 23, sector << 9, &result, SEEK_SET) < 0)
#else
#if TARGET_OS_MAC
if (lseek (_tivo_partition_fd (file), (off_t)sector << 9, SEEK_SET) != (off_t)sector << 9)
More information about the fedora-extras-commits
mailing list