File: 65_llseek-syscall.dpatch

package info (click to toggle)
util-linux 2.12r-19etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 8,932 kB
  • ctags: 5,101
  • sloc: ansic: 46,134; sh: 8,074; makefile: 1,111; perl: 86; csh: 62; sed: 55
file content (41 lines) | stat: -rw-r--r-- 1,407 bytes parent folder | download | duplicates (2)
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