From 6d9756c910a07bb353af4d6908f88c1ddea15916 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 9 Jun 1996 22:02:59 +0000 Subject: * elf/dl-load.c (_dl_map_object_from_fd): Close FD before return. * 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. --- sysdeps/stub/mprotect.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sysdeps/stub') diff --git a/sysdeps/stub/mprotect.c b/sysdeps/stub/mprotect.c index 1d8c8f4ded..2626e4b4b8 100644 --- a/sysdeps/stub/mprotect.c +++ b/sysdeps/stub/mprotect.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 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 @@ -25,10 +25,11 @@ 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) { errno = ENOSYS; return -1; } - +weak_alias (__mprotect, mprotect) + stub_warning (mprotect) -- cgit v1.2.3