[uClibc-cvs] uClibc/libc/sysdeps/linux/mips mmap.c, NONE, 1.1 _mmap.c, 1.3, NONE

Erik Andersen andersen at uclibc.org
Wed Jan 21 23:27:46 UTC 2004


Update of /var/cvs/uClibc/libc/sysdeps/linux/mips
In directory nail:/tmp/cvs-serv30526/sysdeps/linux/mips

Added Files:
	mmap.c 
Removed Files:
	_mmap.c 
Log Message:
Split up syscalls.c, since it had grown to be quite large and ugly.
 -Erik


--- _mmap.c DELETED ---

--- NEW FILE: mmap.c ---
/* Use new style mmap for mips */
#include <unistd.h>
#include <errno.h>
#include <sys/mman.h>
#include <sys/syscall.h>

#if 0
/* For now, leave mmap using mmap1 since mmap2 seems
 * to have issues (i.e. it doesn't work 100% properly).
 */
#ifdef __NR_mmap2
# undef __NR_mmap
# define __NR_mmap __NR_mmap2
#endif
#endif

_syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
	   int, flags, int, fd, __off_t, offset);




More information about the uClibc-cvs mailing list