From 02fec4701cee79f875c1d02b8b4aee09380dbcb8 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 4 Jan 2001 20:04:45 +0000 Subject: integrate dietlibc/stdio per default for cdrom and disk only installs --- mdk-stage1/dietlibc/i386/mmap.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mdk-stage1/dietlibc/i386/mmap.c (limited to 'mdk-stage1/dietlibc/i386/mmap.c') diff --git a/mdk-stage1/dietlibc/i386/mmap.c b/mdk-stage1/dietlibc/i386/mmap.c new file mode 100644 index 000000000..26ecb55c0 --- /dev/null +++ b/mdk-stage1/dietlibc/i386/mmap.c @@ -0,0 +1,16 @@ +#include +#include + +#define __NR__mmap __NR_mmap +_syscall1(int,_mmap,unsigned long *,buffer) + +char *mmap(char *addr, size_t len, int prot, int flags, int fd, unsigned long off) { + unsigned long buffer[6]; + buffer[0] = (unsigned long)addr; + buffer[1] = (unsigned long)len; + buffer[2] = (unsigned long)prot; + buffer[3] = (unsigned long)flags; + buffer[4] = (unsigned long)fd; + buffer[5] = (unsigned long)off; + return (char*) _mmap(buffer); +} -- cgit v1.2.1