diff options
Diffstat (limited to 'meta/recipes-devtools/dosfstools/dosfstools/2.6.20-syscall.patch')
-rw-r--r-- | meta/recipes-devtools/dosfstools/dosfstools/2.6.20-syscall.patch | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/meta/recipes-devtools/dosfstools/dosfstools/2.6.20-syscall.patch b/meta/recipes-devtools/dosfstools/dosfstools/2.6.20-syscall.patch deleted file mode 100644 index 4460f0618d..0000000000 --- a/meta/recipes-devtools/dosfstools/dosfstools/2.6.20-syscall.patch +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | Only use the system's llseek(). | ||
2 | |||
3 | Upstream-Status: Inappropriate [licensing] | ||
4 | We're tracking an old release of dosfstools due to licensing issues. | ||
5 | |||
6 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
7 | |||
8 | Index: dosfstools-2.10/dosfsck/io.c | ||
9 | =================================================================== | ||
10 | --- dosfstools-2.10.orig/dosfsck/io.c 2007-06-07 16:15:52.000000000 +0200 | ||
11 | +++ dosfstools-2.10/dosfsck/io.c 2007-06-07 16:16:06.000000000 +0200 | ||
12 | @@ -42,28 +42,11 @@ | ||
13 | /* Use the _llseek system call directly, because there (once?) was a bug in | ||
14 | * the glibc implementation of it. */ | ||
15 | #include <linux/unistd.h> | ||
16 | -#if defined __alpha || defined __ia64__ || defined __s390x__ || defined __x86_64__ || defined __ppc64__ | ||
17 | /* On alpha, the syscall is simply lseek, because it's a 64 bit system. */ | ||
18 | static loff_t llseek( int fd, loff_t offset, int whence ) | ||
19 | { | ||
20 | return lseek(fd, offset, whence); | ||
21 | } | ||
22 | -#else | ||
23 | -# ifndef __NR__llseek | ||
24 | -# error _llseek system call not present | ||
25 | -# endif | ||
26 | -static _syscall5( int, _llseek, uint, fd, ulong, hi, ulong, lo, | ||
27 | - loff_t *, res, uint, wh ); | ||
28 | - | ||
29 | -static loff_t llseek( int fd, loff_t offset, int whence ) | ||
30 | -{ | ||
31 | - loff_t actual; | ||
32 | - | ||
33 | - if (_llseek(fd, offset>>32, offset&0xffffffff, &actual, whence) != 0) | ||
34 | - return (loff_t)-1; | ||
35 | - return actual; | ||
36 | -} | ||
37 | -#endif | ||
38 | |||
39 | |||
40 | void fs_open(char *path,int rw) | ||
41 | Index: dosfstools-2.10/mkdosfs/mkdosfs.c | ||
42 | =================================================================== | ||
43 | --- dosfstools-2.10.orig/mkdosfs/mkdosfs.c 2007-06-07 16:15:11.000000000 +0200 | ||
44 | +++ dosfstools-2.10/mkdosfs/mkdosfs.c 2007-06-07 16:15:30.000000000 +0200 | ||
45 | @@ -116,27 +116,11 @@ | ||
46 | /* Use the _llseek system call directly, because there (once?) was a bug in | ||
47 | * the glibc implementation of it. */ | ||
48 | #include <linux/unistd.h> | ||
49 | -#if defined __alpha || defined __ia64__ || defined __s390x__ || defined __x86_64__ || defined __ppc64__ | ||
50 | /* On alpha, the syscall is simply lseek, because it's a 64 bit system. */ | ||
51 | static loff_t llseek( int fd, loff_t offset, int whence ) | ||
52 | { | ||
53 | return lseek(fd, offset, whence); | ||
54 | } | ||
55 | -#else | ||
56 | -# ifndef __NR__llseek | ||
57 | -# error _llseek system call not present | ||
58 | -# endif | ||
59 | -static _syscall5( int, _llseek, uint, fd, ulong, hi, ulong, lo, | ||
60 | - loff_t *, res, uint, wh ); | ||
61 | -static loff_t llseek( int fd, loff_t offset, int whence ) | ||
62 | -{ | ||
63 | - loff_t actual; | ||
64 | - | ||
65 | - if (_llseek(fd, offset>>32, offset&0xffffffff, &actual, whence) != 0) | ||
66 | - return (loff_t)-1; | ||
67 | - return actual; | ||
68 | -} | ||
69 | -#endif | ||
70 | |||
71 | #define ROUND_UP(value, divisor) (value + (divisor - (value % divisor))) / divisor | ||
72 | |||