1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## 65_llseek-syscall.dpatch by Scott James Remnant <scott@netsplit.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad util-linux-2.12r~/fdisk/llseek.c util-linux-2.12r/fdisk/llseek.c
--- util-linux-2.12r~/fdisk/llseek.c 2006-08-21 16:26:32.000000000 +0200
+++ util-linux-2.12r/fdisk/llseek.c 2006-08-21 16:26:40.000000000 +0200
@@ -31,9 +31,11 @@
#ifdef __NR__llseek
-static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high,
- unsigned long, offset_low,long long *,result,
- unsigned int, origin)
+static int _llseek (unsigned int fd, unsigned long oh,
+ unsigned long ol, long long *result,
+ unsigned int origin) {
+ return syscall (__NR__llseek, fd, oh, ol, result, origin);
+}
#else
diff -urNad util-linux-2.12r~/fdisk/sfdisk.c util-linux-2.12r/fdisk/sfdisk.c
--- util-linux-2.12r~/fdisk/sfdisk.c 2005-01-04 23:31:57.000000000 +0100
+++ util-linux-2.12r/fdisk/sfdisk.c 2006-08-21 16:27:54.000000000 +0200
@@ -178,8 +178,10 @@
#ifndef use_lseek
static __attribute__used
-_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
- loff_t *, res, unsigned int, wh);
+int _llseek (unsigned int fd, ulong hi, ulong lo,
+ loff_t *res, unsigned int wh) {
+ return syscall (__NR__llseek, fd, hi, lo, res, wh);
+}
#endif
static int
|