Displaying 4 results from an estimated 4 matches for "mmap_arg_struct".
2006 Jun 26
0
[klibc 33/43] s390 support for klibc
...+ .size _start,.-_start
diff --git a/usr/klibc/arch/s390/mmap.c b/usr/klibc/arch/s390/mmap.c
new file mode 100644
index 0000000..4c43779
--- /dev/null
+++ b/usr/klibc/arch/s390/mmap.c
@@ -0,0 +1,75 @@
+#include <errno.h>
+#include <sys/types.h>
+#include <linux/unistd.h>
+
+struct mmap_arg_struct {
+ unsigned long addr;
+ unsigned long len;
+ unsigned long prot;
+ unsigned long flags;
+ unsigned long fd;
+ unsigned long offset;
+};
+
+#ifndef __s390x__
+
+void *__mmap2(void *addr, size_t len, int prot, int flags, int fd, long offset)
+{
+ struct mmap_arg_struct args = {
+ (unsigned long)ad...
2006 May 24
1
[patch] klibc: merge s390/s390x 2nd try
...0
+ aghi %r15,-160
+ jg __libc_init
+#endif
.size _start,.-_start
diff -purN a/usr/klibc/arch/s390/mmap.c b/usr/klibc/arch/s390/mmap.c
--- a/usr/klibc/arch/s390/mmap.c 2006-05-24 15:19:12.000000000 +0200
+++ b/usr/klibc/arch/s390/mmap.c 2006-05-24 13:08:52.000000000 +0200
@@ -10,6 +10,8 @@ struct mmap_arg_struct {
unsigned long offset;
};
+#ifndef __s390x__
+
void *__mmap2(void *addr, size_t len, int prot, int flags, int fd, long offset)
{
struct mmap_arg_struct args = {
@@ -36,3 +38,37 @@ void *__mmap2(void *addr, size_t len, in
}
return (void *)__res;
}
+
+#else /* __s390x__ */
+
+void * mm...
2006 May 11
0
[patch] klibc: merge s390 and s390x
...0
+ aghi %r15,-160
+ jg __libc_init
+#endif
.size _start,.-_start
diff -purN a/usr/klibc/arch/s390/mmap.c b/usr/klibc/arch/s390/mmap.c
--- a/usr/klibc/arch/s390/mmap.c 2006-05-11 08:09:08.000000000 +0200
+++ b/usr/klibc/arch/s390/mmap.c 2006-05-11 08:10:07.000000000 +0200
@@ -10,6 +10,8 @@ struct mmap_arg_struct {
unsigned long offset;
};
+#ifndef __s390x__
+
void * __mmap2(void * addr, size_t len, int prot, int flags,
int fd, long offset)
{
@@ -39,3 +41,37 @@ void * __mmap2(void * addr, size_t len,
}
return (void *)__res;
}
+
+#else /* __s390x__ */
+
+void * mmap(void * addr, size_t l...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at: