1 Index: util-linux-2.12r/fdisk/llseek.c
2 ===================================================================
3 --- util-linux-2.12r.orig/fdisk/llseek.c 2007-06-04 13:22:28.258559328 +0200
4 +++ util-linux-2.12r/fdisk/llseek.c 2007-06-04 13:22:28.339547016 +0200
6 static int _llseek (unsigned int, unsigned long,
7 unsigned long, long long *, unsigned int);
11 -static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high,
12 - unsigned long, offset_low,long long *,result,
13 - unsigned int, origin)
18 /* no __NR__llseek on compilation machine - might give it explicitly */
19 -static int _llseek (unsigned int fd, unsigned long oh,
20 +static int __llseek (unsigned int fd, unsigned long oh,
21 unsigned long ol, long long *result,
22 unsigned int origin) {
28 -static long long my_llseek (unsigned int fd, long long offset,
29 - unsigned int origin)
34 - retval = _llseek (fd, ((unsigned long long) offset) >> 32,
35 - ((unsigned long long) offset) & 0xffffffff,
37 - return (retval == -1 ? (long long) retval : result);
39 +extern long long llseek(unsigned int fd, long long offset, unsigned int origin);
40 +#define my_llseek llseek
42 #endif /* __alpha__ */
44 Index: util-linux-2.12r/fdisk/sfdisk.c
45 ===================================================================
46 --- util-linux-2.12r.orig/fdisk/sfdisk.c 2007-06-04 13:22:28.265558264 +0200
47 +++ util-linux-2.12r/fdisk/sfdisk.c 2007-06-04 13:22:28.338547168 +0200
53 -static __attribute__used
54 -_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
55 - loff_t *, res, unsigned int, wh);
59 sseek(char *dev, unsigned int fd, unsigned long s) {
61 Index: util-linux-2.12r/partx/partx.c
62 ===================================================================
63 --- util-linux-2.12r.orig/partx/partx.c 2007-06-04 13:22:28.272557200 +0200
64 +++ util-linux-2.12r/partx/partx.c 2007-06-04 13:22:28.339547016 +0200
68 #include <linux/unistd.h> /* _syscall */
70 -_syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo,
71 - long long *, res, uint, wh);