summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-01-16 13:43:30 +0000
committerEric Andersen <andersen@codepoet.org>2004-01-16 13:43:30 +0000
commit338237994ac93ca58f6024ef0f7932ab770735d1 (patch)
tree4417f2f77bc3224e09979303a45e2cd76c5d14be /libc/sysdeps/linux/common
parent76374f68fbc07420cd459b0d0fae424895ea4141 (diff)
s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/g
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/bits/posix_opt.h6
-rw-r--r--libc/sysdeps/linux/common/syscalls.c14
2 files changed, 10 insertions, 10 deletions
diff --git a/libc/sysdeps/linux/common/bits/posix_opt.h b/libc/sysdeps/linux/common/bits/posix_opt.h
index 73fa007d2..9329dfc15 100644
--- a/libc/sysdeps/linux/common/bits/posix_opt.h
+++ b/libc/sysdeps/linux/common/bits/posix_opt.h
@@ -39,21 +39,21 @@
#define _POSIX_MAPPED_FILES 1
/* Locking of all memory is supported. */
-#ifdef __UCLIBC_HAS_MMU__
+#ifdef __ARCH_HAS_MMU__
# define _POSIX_MEMLOCK 1
#else
# undef _POSIX_MEMLOCK
#endif
/* Locking of ranges of memory is supported. */
-#ifdef __UCLIBC_HAS_MMU__
+#ifdef __ARCH_HAS_MMU__
# define _POSIX_MEMLOCK_RANGE 1
#else
# define _POSIX_MEMLOCK_RANGE
#endif
/* Setting of memory protections is supported. */
-#ifdef __UCLIBC_HAS_MMU__
+#ifdef __ARCH_HAS_MMU__
# define _POSIX_MEMORY_PROTECTION 1
#else
# undef _POSIX_MEMORY_PROTECTION
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 327b30c56..882de8106 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -43,7 +43,7 @@
//#define __NR_fork 2
#ifdef L___libc_fork
#include <unistd.h>
-# ifdef __UCLIBC_HAS_MMU__
+# ifdef __ARCH_HAS_MMU__
#define __NR___libc_fork __NR_fork
_syscall0(pid_t, __libc_fork);
# else
@@ -1131,7 +1131,7 @@ _syscall2(int, fstatfs, int, fd, struct statfs *, buf);
//#define __NR_ioperm 101
#ifdef L_ioperm
-# if defined __UCLIBC_HAS_MMU__ && defined __NR_ioperm
+# if defined __ARCH_HAS_MMU__ && defined __NR_ioperm
_syscall3(int, ioperm, unsigned long, from, unsigned long, num, int, turn_on);
# else
int ioperm(unsigned long from, unsigned long num, int turn_on)
@@ -1256,7 +1256,7 @@ weak_alias(fstat, fstat64);
/* For arm there is a totally different implementation */
#if !defined(__arm__)
/* Tuns out the m68k unistd.h kernel header is broken */
-# if defined __UCLIBC_HAS_MMU__ && defined __NR_iopl && ( !defined(__mc68000__))
+# if defined __ARCH_HAS_MMU__ && defined __NR_iopl && ( !defined(__mc68000__))
_syscall1(int, iopl, int, level);
# else
int iopl(int level)
@@ -1610,7 +1610,7 @@ int sysctl(int *name, int nlen, void *oldval, size_t *oldlenp,
//#define __NR_mlock 150
#ifdef L_mlock
#include <sys/mman.h>
-# if defined __UCLIBC_HAS_MMU__ && defined __NR_mlock
+# if defined __ARCH_HAS_MMU__ && defined __NR_mlock
_syscall2(int, mlock, const void *, addr, size_t, len);
# endif
#endif
@@ -1618,7 +1618,7 @@ int sysctl(int *name, int nlen, void *oldval, size_t *oldlenp,
//#define __NR_munlock 151
#ifdef L_munlock
#include <sys/mman.h>
-# if defined __UCLIBC_HAS_MMU__ && defined __NR_munlock
+# if defined __ARCH_HAS_MMU__ && defined __NR_munlock
_syscall2(int, munlock, const void *, addr, size_t, len);
# endif
#endif
@@ -1626,7 +1626,7 @@ int sysctl(int *name, int nlen, void *oldval, size_t *oldlenp,
//#define __NR_mlockall 152
#ifdef L_mlockall
#include <sys/mman.h>
-# if defined __UCLIBC_HAS_MMU__ && defined __NR_mlockall
+# if defined __ARCH_HAS_MMU__ && defined __NR_mlockall
_syscall1(int, mlockall, int, flags);
# endif
#endif
@@ -1634,7 +1634,7 @@ int sysctl(int *name, int nlen, void *oldval, size_t *oldlenp,
//#define __NR_munlockall 153
#ifdef L_munlockall
#include <sys/mman.h>
-# if defined __UCLIBC_HAS_MMU__ && defined L_munlockall
+# if defined __ARCH_HAS_MMU__ && defined L_munlockall
_syscall0(int, munlockall);
# endif
#endif