From 6293b80374f7c7b017515b9a8716a9ea16eb063a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 17 Aug 2001 07:51:36 +0000 Subject: Update. 2001-08-17 Ulrich Drepper * sunrpc/svc_simple.c (universal): Use __write instead of write. * wcsmbs/wcscoll.c: Also define __wcscoll. * include/wchar.h: Declare __wcscoll. * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf. * libio/vwprintf.c: Likewise. * libio/wprintf.c: Likewise. * iconv/gconv_cache.c: Use __munmap instead of munmap. * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc instead of mbrtowc. [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of wcslen, and __wcscoll instead of wcscoll. * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl. * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use __getuid instead of getuid. * stdio-common/perror.c (perror): Use __close instead of close. * iconv/gconv_cache.c (__gconv_load_cache): Likewise. * libio/freopen.c (freopen): Likewise. * libio/freopen64.c (freopen64): Likewise. --- stdio-common/perror.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdio-common/perror.c') diff --git a/stdio-common/perror.c b/stdio-common/perror.c index a2865dc..b6f8d5e 100644 --- a/stdio-common/perror.c +++ b/stdio-common/perror.c @@ -64,11 +64,11 @@ perror (const char *s) using the same underlying file descriptor. */ if (__builtin_expect (_IO_fwide (stderr, 0) != 0, 1) || fileno_unlocked (stderr) == -1 - || (fd = dup (fileno_unlocked (stderr))) == -1 + || (fd = __dup (fileno_unlocked (stderr))) == -1 || (fp = fdopen (fd, "w+")) == NULL) { if (__builtin_expect (fd != -1, 0)) - close (fd); + __close (fd); /* Use standard error as is. */ perror_internal (stderr, s); -- cgit v1.1