Accepting request 31767 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/libaio based on submit request 31767 from user coolo OBS-URL: https://build.opensuse.org/request/show/31767 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libaio?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
65d8d92689
commit
b393d9f01b
@@ -1,8 +1,16 @@
|
||||
# patch from debian
|
||||
# http://www.mail-archive.com/debian-hppa@lists.debian.org/msg05882.html
|
||||
---
|
||||
harness/main.c | 8 +
|
||||
src/libaio.h | 34 +++++++
|
||||
src/syscall-arm.h | 116 ++++++++++++++++++++++++++
|
||||
src/syscall-m68k.h | 78 +++++++++++++++++
|
||||
src/syscall-mips.h | 223 +++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
src/syscall-parisc.h | 146 +++++++++++++++++++++++++++++++++
|
||||
src/syscall-sparc.h | 130 +++++++++++++++++++++++++++++
|
||||
src/syscall.h | 10 ++
|
||||
8 files changed, 744 insertions(+), 1 deletion(-)
|
||||
|
||||
--- libaio-0.3.106.orig/src/syscall-m68k.h
|
||||
+++ libaio-0.3.106/src/syscall-m68k.h
|
||||
--- /dev/null
|
||||
+++ b/src/syscall-m68k.h
|
||||
@@ -0,0 +1,78 @@
|
||||
+#define __NR_io_setup 241
|
||||
+#define __NR_io_destroy 242
|
||||
@@ -82,8 +90,8 @@
|
||||
+return (type) __res; \
|
||||
+}
|
||||
+
|
||||
--- libaio-0.3.106.orig/src/syscall-sparc.h
|
||||
+++ libaio-0.3.106/src/syscall-sparc.h
|
||||
--- /dev/null
|
||||
+++ b/src/syscall-sparc.h
|
||||
@@ -0,0 +1,130 @@
|
||||
+/* $Id: unistd.h,v 1.74 2002/02/08 03:57:18 davem Exp $ */
|
||||
+
|
||||
@@ -215,8 +223,8 @@
|
||||
+return -1; \
|
||||
+}
|
||||
+
|
||||
--- libaio-0.3.106.orig/src/syscall.h
|
||||
+++ libaio-0.3.106/src/syscall.h
|
||||
--- a/src/syscall.h
|
||||
+++ b/src/syscall.h
|
||||
@@ -22,6 +22,16 @@
|
||||
#include "syscall-s390.h"
|
||||
#elif defined(__alpha__)
|
||||
@@ -234,8 +242,8 @@
|
||||
#else
|
||||
#error "add syscall-arch.h"
|
||||
#endif
|
||||
--- libaio-0.3.106.orig/src/syscall-mips.h
|
||||
+++ libaio-0.3.106/src/syscall-mips.h
|
||||
--- /dev/null
|
||||
+++ b/src/syscall-mips.h
|
||||
@@ -0,0 +1,223 @@
|
||||
+/*
|
||||
+ * This file is subject to the terms and conditions of the GNU General Public
|
||||
@@ -460,9 +468,9 @@
|
||||
+
|
||||
+#endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */
|
||||
+
|
||||
--- libaio-0.3.106.orig/src/libaio.h
|
||||
+++ libaio-0.3.106/src/libaio.h
|
||||
@@ -72,6 +72,40 @@
|
||||
--- a/src/libaio.h
|
||||
+++ b/src/libaio.h
|
||||
@@ -73,6 +73,40 @@ typedef enum io_iocb_cmd {
|
||||
#define PADDED(x, y) unsigned y; x
|
||||
#define PADDEDptr(x, y) unsigned y; x
|
||||
#define PADDEDul(x, y) unsigned y; unsigned long x
|
||||
@@ -503,8 +511,8 @@
|
||||
#else
|
||||
#error endian?
|
||||
#endif
|
||||
--- libaio-0.3.106.orig/src/syscall-parisc.h
|
||||
+++ libaio-0.3.106/src/syscall-parisc.h
|
||||
--- /dev/null
|
||||
+++ b/src/syscall-parisc.h
|
||||
@@ -0,0 +1,146 @@
|
||||
+/*
|
||||
+ * Linux system call numbers.
|
||||
@@ -652,8 +660,8 @@
|
||||
+ return K_INLINE_SYSCALL(sname, 5, arg1, arg2, arg3, arg4, arg5); \
|
||||
+}
|
||||
+
|
||||
--- libaio-0.3.106.orig/src/syscall-arm.h
|
||||
+++ libaio-0.3.106/src/syscall-arm.h
|
||||
--- /dev/null
|
||||
+++ b/src/syscall-arm.h
|
||||
@@ -0,0 +1,116 @@
|
||||
+/*
|
||||
+ * linux/include/asm-arm/unistd.h
|
||||
@@ -754,7 +762,7 @@
|
||||
+}
|
||||
+
|
||||
+#define io_syscall5(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5) \
|
||||
+type ffname(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) {\
|
||||
+type fname(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) {\
|
||||
+ __SYS_REG(sname) \
|
||||
+ register long __r0 __asm__("r0") = (long)arg1; \
|
||||
+ register long __r1 __asm__("r1") = (long)arg2; \
|
||||
@@ -771,3 +779,21 @@
|
||||
+ return (type) __res_r0; \
|
||||
+}
|
||||
+
|
||||
--- a/harness/main.c
|
||||
+++ b/harness/main.c
|
||||
@@ -11,8 +11,14 @@
|
||||
|
||||
#include <libaio.h>
|
||||
|
||||
-#if defined(__i386__)
|
||||
+#if defined(__i386__) || defined(__powerpc__) || defined(__mips__)
|
||||
#define KERNEL_RW_POINTER ((void *)0xc0010000)
|
||||
+#elif defined(__arm__) || defined(__m68k__) || defined(__s390__)
|
||||
+#define KERNEL_RW_POINTER ((void *)0x00010000)
|
||||
+#elif defined(__hppa__)
|
||||
+#define KERNEL_RW_POINTER ((void *)0x10100000)
|
||||
+#elif defined(__sparc__) && !defined(__arch64__)
|
||||
+#define KERNEL_RW_POINTER ((void *)0xf0010000)
|
||||
#else
|
||||
//#warning Not really sure where kernel memory is. Guessing.
|
||||
#define KERNEL_RW_POINTER ((void *)0xffffffffc0010000)
|
||||
|
Reference in New Issue
Block a user