From 628a0aa1523e7160dac986d7988fcc08375cfd88 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 1 Dec 1998 19:35:00 +0000 Subject: Update. 1998-11-29 1998 H.J. Lu * libio/genops.c (_IO_unbuffer_write): Renamed from _IO_unbuffer_all. (_IO_cleanup): Call _IO_unbuffer_write instead of _IO_unbuffer_all. 1998-12-01 Ulrich Drepper * intl/localealias.c: Use *_unlocked version of stdio function if _LIBC_REENTRANT is defined, not _LIBC. 1998-12-01 Andreas Jaeger * include/grp.h: Add prototypes for internal functions __getgrgid_r and __getgrnam_r. * inet/herrno.c: Include for prototype, undef h_errno. * resolv/nsap_addr.c: Include for inet_nsap_addr and inet_nsap_ntoa prototypes. * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Pass -I option to gcc to have it find the correct system header. Patch by Maciej W. Rozycki . Reported by Maciej W. Rozycki . --- ChangeLog | 27 +++++++++++++++++++++++++++ include/grp.h | 10 ++++++++++ inet/herrno.c | 2 ++ intl/localealias.c | 4 ++-- libio/genops.c | 10 ++++++---- linuxthreads/ChangeLog | 6 ++++++ linuxthreads/wrapsyscall.c | 9 ++++++--- resolv/nsap_addr.c | 1 + sysdeps/unix/sysv/linux/Makefile | 2 +- 9 files changed, 61 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 03419a1..e5744a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,33 @@ +1998-11-29 1998 H.J. Lu + + * libio/genops.c (_IO_unbuffer_write): Renamed from + _IO_unbuffer_all. + (_IO_cleanup): Call _IO_unbuffer_write instead of + _IO_unbuffer_all. + +1998-12-01 Ulrich Drepper + + * intl/localealias.c: Use *_unlocked version of stdio function if + _LIBC_REENTRANT is defined, not _LIBC. + +1998-12-01 Andreas Jaeger + + * include/grp.h: Add prototypes for internal functions + __getgrgid_r and __getgrnam_r. + + * inet/herrno.c: Include for prototype, undef h_errno. + + * resolv/nsap_addr.c: Include for inet_nsap_addr and + inet_nsap_ntoa prototypes. + 1998-12-01 Ulrich Drepper + * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Pass -I option + to gcc to have it find the correct system header. + Patch by Maciej W. Rozycki . + * Makefile (postclean): Add sysd-sorted. + Reported by Maciej W. Rozycki . 1998-12-01 Thorsten Kukuk diff --git a/include/grp.h b/include/grp.h index 14be78c..87f6a7b 100644 --- a/include/grp.h +++ b/include/grp.h @@ -7,4 +7,14 @@ extern int __getgrent_r __P ((struct group *__resultbuf, char *buffer, extern int __fgetgrent_r __P ((FILE * __stream, struct group *__resultbuf, char *buffer, size_t __buflen, struct group **__result)); + +/* Search for an entry with a matching group ID. */ +extern int __getgrgid_r __P ((__gid_t __gid, struct group *__resultbuf, + char *__buffer, size_t __buflen, + struct group **__result)); + +/* Search for an entry with a matching group name. */ +extern int __getgrnam_r __P ((__const char *__name, struct group *__resultbuf, + char *__buffer, size_t __buflen, + struct group **__result)); #endif diff --git a/inet/herrno.c b/inet/herrno.c index 4eac42e..c11c58b 100644 --- a/inet/herrno.c +++ b/inet/herrno.c @@ -17,6 +17,8 @@ Boston, MA 02111-1307, USA. */ #include +#include +#undef h_errno /* We need to have the error status variable of the resolver accessible in the libc. */ diff --git a/intl/localealias.c b/intl/localealias.c index 78a704f..0c35b7a 100644 --- a/intl/localealias.c +++ b/intl/localealias.c @@ -133,11 +133,11 @@ struct block_list # define alloca(size) (malloc (size)) #endif /* have alloca */ -#if defined _LIBC || defined HAVE_FGETS_UNLOCKED +#if defined _LIBC_REENTRANT || defined HAVE_FGETS_UNLOCKED # undef fgets # define fgets(buf, len, s) fgets_unlocked (buf, len, s) #endif -#if defined _LIBC || defined HAVE_FEOF_UNLOCKED +#if defined _LIBC_REENTRANT || defined HAVE_FEOF_UNLOCKED # undef feof # define feof(s) feof_unlocked (s) #endif diff --git a/libio/genops.c b/libio/genops.c index 6f560de..30bceb6 100644 --- a/libio/genops.c +++ b/libio/genops.c @@ -705,14 +705,16 @@ _IO_flush_all_linebuffered () _IO_OVERFLOW (fp, EOF); } -static void _IO_unbuffer_all __P ((void)); +static void _IO_unbuffer_write __P ((void)); static void -_IO_unbuffer_all () +_IO_unbuffer_write () { _IO_FILE *fp; for (fp = _IO_list_all; fp != NULL; fp = fp->_chain) - if (! (fp->_flags & _IO_UNBUFFERED)) + if (! (fp->_flags & _IO_UNBUFFERED) + && (! (fp->_flags & _IO_NO_WRITES) + || (fp->_flags & _IO_IS_APPENDING))) _IO_SETBUF (fp, NULL, 0); } @@ -728,7 +730,7 @@ _IO_cleanup () The following will make the standard streambufs be unbuffered, which forces any output from late destructors to be written out. */ - _IO_unbuffer_all (); + _IO_unbuffer_write (); return result; } diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 32b0159..92c4492 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,9 @@ +1998-12-01 Andreas Jaeger + + * wrapsyscall.c: Include for msync, + for system and for tcdrain prototype. + Correct msync declaration. + 1998-11-29 Roland McGrath * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get, diff --git a/linuxthreads/wrapsyscall.c b/linuxthreads/wrapsyscall.c index 4659692..d55e6cc 100644 --- a/linuxthreads/wrapsyscall.c +++ b/linuxthreads/wrapsyscall.c @@ -1,5 +1,5 @@ /* Wrapper arpund system calls to provide cancelation points. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -19,10 +19,13 @@ Boston, MA 02111-1307, USA. */ #include +#include #include #include #include #include +#include +#include #include #include #include @@ -87,8 +90,8 @@ strong_alias (lseek, __lseek) /* msync(2). */ -CANCELABLE_SYSCALL (int, msync, (const void *start, size_t length, int flags), - (start, length, flags)) +CANCELABLE_SYSCALL (int, msync, (__ptr_t addr, size_t length, int flags), + (addr, length, flags)) /* nanosleep(2). */ diff --git a/resolv/nsap_addr.c b/resolv/nsap_addr.c index 5157c37..2222cda 100644 --- a/resolv/nsap_addr.c +++ b/resolv/nsap_addr.c @@ -23,6 +23,7 @@ static char rcsid[] = "$Id$"; #include #include #include +#include #include #include #include diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 4cd3a22..ac99436 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -33,7 +33,7 @@ $(objpfx)syscall-%.h $(objpfx)syscall-%.d: ../sysdeps/unix/sysv/linux/sys/syscal echo ''; \ SUNPRO_DEPENDENCIES='$(@:.h=.d) $(patsubst $(objpfx)%,$$(objpfx)%,\ $(@:.d=.h) $(@:.h=.d))' \ - $(CC) -E -x c $< -D_LIBC -dM | \ + $(CC) -E -x c $(sysincludes) $< -D_LIBC -dM | \ sed -n 's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p'; \ } > $(@:.d=.h).new mv -f $(@:.d=.h).new $(@:.d=.h) -- cgit v1.1