Displaying 8 results from an estimated 8 matches for "__mmap2".
Did you mean:
__mmap
2006 Jun 07
0
[patch] s390: fix mmap complilation
...-)
diff --git a/usr/klibc/arch/s390/mmap.c b/usr/klibc/arch/s390/mmap.c
index 2b1935b..4c43779 100644
--- a/usr/klibc/arch/s390/mmap.c
+++ b/usr/klibc/arch/s390/mmap.c
@@ -1,3 +1,4 @@
+#include <errno.h>
#include <sys/types.h>
#include <linux/unistd.h>
@@ -32,7 +33,7 @@ void *__mmap2(void *addr, size_t len, in
: "i"(__NR_mmap2), "0"(__arg1)
: "1", "cc", "memory");
__res = __svcres;
- if (__res >= (unsigned long)-125) {
+ if (__res >= (unsigned long)-4095) {
errno = -__res;
__res = -1;
}
@@ -64,7...
2019 Jul 02
0
[ANNOUNCE] libdrm 2.4.99
...amdgpu: Pass file descriptor directly to amdgpu_close_kms_handle
amdgpu: Add BO handle to table in amdgpu_bo_create
amdgpu: Rename fd_mutex/list to dev_mutex/list
Prabhanjan Kandula (1):
libdrm: Avoid additional drm open close
Sean Paul (1):
libdrm: Use mmap64 instead of __mmap2
Seung-Woo Kim (2):
tests/libkms-test-plane: fix possbile memory leak
xf86drm: Fix possible memory leak with drmModeGetPropertyPtr()
Tao Zhou (1):
libdrm/amdgpu: add new vram type (GDDR6) for navi10
git tag: libdrm-2.4.99
https://dri.freedesktop.org/libdrm/libdrm-2.4.99.tar.bz2...
2006 May 11
0
[patch] klibc: merge s390 and s390x
...N 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 len, int prot, int flags,
+ int fd, off_t offset)
+{
+ struct mm...
2006 May 24
1
[patch] klibc: merge s390/s390x 2nd try
...rN 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 * mmap(void * addr, size_t len, int prot, int flags,
+ int fd, off...
2006 Jun 26
0
[klibc 33/43] s390 support for klibc
...@@ -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)addr,
+ (unsigned long)len,
+ (unsigned long)prot,
+ (unsigned long)flags,
+ (unsigned long)fd,
+ (unsigned long)offset,
+ };
+
+ register struct mmap_arg_struct *__arg1 asm...
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...-I/root/gen/trunk/knl/linux/usr//arch/powerpc/include -D__KLIBC__=2 -D__KLIBC_MINOR__=0 -D_BITSIZE=32 -fno-stack-protector -fwrapv -m32 -Os -W -Wall -Wno-sign-compare -Wno-unused-parameter -c -o usr/klibc/syscalls/mprotect.o usr/klibc/syscalls/mprotect.S
ppc-linux-gcc -Wp,-MD,usr/klibc/syscalls/.__mmap2.o.d -D__ASSEMBLY__ -nostdinc -iwithprefix include -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/arch/ppc -Iusr/include/arch/ppc -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/bits32 -Iusr/include/bits32 -I/root/ofs/trunk/packages/klibc-2.0.2/usr/klibc/../include -Iusr/klibc/../include...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote:
> >
> Find attached two patches I have in order to build klibc 2.0.2
> against kernel 3.8.13
> We had to introduce those patches when going from kernel 3.6 to kernel 3.7
> Hope it helps.
>
those patches are wrong and again very brittle.
just use the way it is described in `make help':
A) cd ~/src/linux
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: