aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-09 22:02:59 +0000
committerRoland McGrath <roland@gnu.org>1996-06-09 22:02:59 +0000
commit6d9756c910a07bb353af4d6908f88c1ddea15916 (patch)
tree772439fa7e24f4af9a9917a3c961108a246e96fe /sysdeps/mach
parent9dd2fc5d87269219f3beb91462505b93ed24a552 (diff)
downloadglibc-6d9756c910a07bb353af4d6908f88c1ddea15916.tar
glibc-6d9756c910a07bb353af4d6908f88c1ddea15916.tar.gz
glibc-6d9756c910a07bb353af4d6908f88c1ddea15916.tar.bz2
glibc-6d9756c910a07bb353af4d6908f88c1ddea15916.zip
* elf/dl-load.c (_dl_map_object_from_fd): Close FD before return.cvs/libc-960610
* sysdeps/mach/mprotect.c: Define with __ name and weak alias. * sysdeps/stub/mprotect.c: Likewise. * sysdeps/unix/mman/syscalls.list (mprotect): Likewise. * sysdeps/generic/sys/mman.h: Declare __mprotect. * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise. * sysdeps/unix/sysv/linux/sys/mman.h: Likewise. * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise. * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/mprotect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/mach/mprotect.c b/sysdeps/mach/mprotect.c
index 5f1dbe8b5c..9035d5b88c 100644
--- a/sysdeps/mach/mprotect.c
+++ b/sysdeps/mach/mprotect.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -26,7 +26,7 @@ Cambridge, MA 02139, USA. */
(and sets errno). */
int
-mprotect (caddr_t addr, size_t len, int prot)
+__mprotect (caddr_t addr, size_t len, int prot)
{
kern_return_t err;
vm_prot_t vmprot;
@@ -48,3 +48,4 @@ mprotect (caddr_t addr, size_t len, int prot)
}
return 0;
}
+weak_alias (__mprotect, mprotect)