summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/sg3_utils/files')
-rw-r--r--sys-apps/sg3_utils/files/sg3_utils-llseek.patch69
1 files changed, 0 insertions, 69 deletions
diff --git a/sys-apps/sg3_utils/files/sg3_utils-llseek.patch b/sys-apps/sg3_utils/files/sg3_utils-llseek.patch
deleted file mode 100644
index 281ed60abf1d..000000000000
--- a/sys-apps/sg3_utils/files/sg3_utils-llseek.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-diff -Naur sg3_utils-1.06-orig/llseek.c sg3_utils-1.06/llseek.c
---- sg3_utils-1.06-orig/llseek.c 2003-10-19 05:36:40.000000000 -0400
-+++ sg3_utils-1.06/llseek.c 2004-08-09 03:46:19.973864969 -0400
-@@ -14,7 +14,7 @@
- #include <errno.h>
- #include <unistd.h>
-
--#if defined(__GNUC__) || defined(HAS_LONG_LONG)
-+#if defined(__GNUC__)
- typedef long long llse_loff_t;
- #else
- typedef long llse_loff_t;
-@@ -24,54 +24,16 @@
-
- #ifdef __linux__
-
--#ifdef HAVE_LLSEEK
--#include <syscall.h>
--
--#else /* HAVE_LLSEEK */
--
- #if defined(__alpha__) || defined(__ia64__) || defined(__s390x__)
-
- #define my_llseek lseek
-
- #else
--#include <linux/unistd.h> /* for __NR__llseek */
--
--static int _llseek (unsigned int, unsigned long,
-- unsigned long, llse_loff_t *, unsigned int);
--
--#ifdef __NR__llseek
--
--static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high,
-- unsigned long, offset_low,llse_loff_t *,result,
-- unsigned int, origin)
--
--#else
--
--/* no __NR__llseek on compilation machine - might give it explicitly */
--static int _llseek (unsigned int fd, unsigned long oh,
-- unsigned long ol, llse_loff_t *result,
-- unsigned int origin) {
-- errno = ENOSYS;
-- return -1;
--}
--
--#endif
-
--static llse_loff_t my_llseek (unsigned int fd, llse_loff_t offset,
-- unsigned int origin)
--{
-- llse_loff_t result;
-- int retval;
--
-- retval = _llseek (fd, ((unsigned long long) offset) >> 32,
-- ((unsigned long long) offset) & 0xffffffff,
-- &result, origin);
-- return (retval == -1 ? (llse_loff_t) retval : result);
--}
-+#define my_llseek lseek64
-
--#endif /* __alpha__ */
-+#endif /* alpha, ia64, s390x */
-
--#endif /* HAVE_LLSEEK */
-
- llse_loff_t llse_llseek (unsigned int fd, llse_loff_t offset,
- unsigned int origin)