about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-03 17:45:50 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-03 17:45:50 +0000
commit9c42bc3b9ed33179fadc2f37bb4274ddb84bf503 (patch)
tree5b75acf8ee32c09d1de7c59a35ea396fade6335b
parent72ef277e5a31c89fbd1aa9d1dc7d054223d650e5 (diff)
downloadglibc-9c42bc3b9ed33179fadc2f37bb4274ddb84bf503.tar.gz
glibc-9c42bc3b9ed33179fadc2f37bb4274ddb84bf503.tar.xz
glibc-9c42bc3b9ed33179fadc2f37bb4274ddb84bf503.zip
Update.
2003-09-03  Jakub Jelinek  <jakub@redhat.com>

	* intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
	function-like macros.
-rw-r--r--ChangeLog5
-rw-r--r--intl/loadmsgcat.c11
2 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 8adfceb5ee..d757d863be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-03  Jakub Jelinek  <jakub@redhat.com>
+
+	* intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
+	function-like macros.
+
 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
 
 	* grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c
index 55e8adadbc..6a70feccb0 100644
--- a/intl/loadmsgcat.c
+++ b/intl/loadmsgcat.c
@@ -454,11 +454,12 @@ char *alloca ();
 /* Rename the non ISO C functions.  This is required by the standard
    because some ISO C functions will require linking with this object
    file and the name space must not be polluted.  */
-# define open   open_not_cancel_2
-# define close  close_not_cancel_no_status
-# define read   read_not_cancel
-# define mmap   __mmap
-# define munmap __munmap
+# define open(name, flags)	open_not_cancel_2 (name, flags)
+# define close(fd)		close_not_cancel_no_status (fd)
+# define read(fd, buf, n)	read_not_cancel (fd, buf, n)
+# define mmap(addr, len, prot, flags, fd, offset) \
+  __mmap (addr, len, prot, flags, fd, offset)
+# define munmap(addr, len)	__munmap (addr, len)
 #endif
 
 /* For those losing systems which don't have `alloca' we have to add