From: Bruno Haible Date: Thu, 12 May 2005 11:17:09 +0000 (+0000) Subject: glibc 2003-09-03 Jakub Jelinek X-Git-Tag: v0.15~525 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59a7d13c71b03dee066424e32816bfb0098972f2;p=thirdparty%2Fgettext.git glibc 2003-09-03 Jakub Jelinek --- diff --git a/gettext-runtime/intl/ChangeLog b/gettext-runtime/intl/ChangeLog index 450d5cfd7..1b6d89e25 100644 --- a/gettext-runtime/intl/ChangeLog +++ b/gettext-runtime/intl/ChangeLog @@ -1,3 +1,8 @@ +2003-09-03 Jakub Jelinek + + * loadmsgcat.c (open, close, read, mmap, munmap): Define as + function-like macros. + 2003-09-02 Ulrich Drepper * loadmsgcat.c: For _LIBC, call not cancelable versions of open, close, diff --git a/gettext-runtime/intl/loadmsgcat.c b/gettext-runtime/intl/loadmsgcat.c index 3ab30a4b2..9569aa872 100644 --- a/gettext-runtime/intl/loadmsgcat.c +++ b/gettext-runtime/intl/loadmsgcat.c @@ -458,11 +458,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