mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
1998-03-23 07:52 H.J. Lu <hjl@gnu.org> * elf/dl-close.c (_dl_close): Fix byte count while removing the shared object from the global scope list and optimize a little bit. 1998-03-22 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/filesys.texi (Scanning Directory Content): Add missing closing brace. (Scanning Directory Content): Fix text. 1998-03-22 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/memory.texi (Heap Consistency Checking): Add paragraph explaining difference of -lmcheck and MALLOC_CHECK_. 1998-03-23 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Correct some typos in comments. 1998-03-20 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * test-skeleton.c (main): Fix test for exit signal. 1998-03-22 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/generic/strtok_r.c: Undefine __strtok_r. 1998-03-22 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/generic/memcmp.c [_LIBC]: Define WORDS_BIGENDIAN as appropriate. 1998-03-23 11:14 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * libc.map: Export __strtok_r. 1998-03-23 Ulrich Drepper <drepper@cygnus.com> * posix/regex.c (re_compile_fastmap): Remove unused variable num_regs and adjust comment. Patch by Jim Meyering <meyering@ascend.com>. * math/math.h (M_*l): Extend long double constants to be usable for 128 bit floats. Patch by Richard Henderson. 1998-03-23 11:16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> Patch by Tim Waugh and Andreas Schwab.
This commit is contained in:
52
ChangeLog
52
ChangeLog
@ -1,11 +1,59 @@
|
|||||||
Mon Mar 23 11:16:14 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
1998-03-23 07:52 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* elf/dl-close.c (_dl_close): Fix byte count while removing
|
||||||
|
the shared object from the global scope list and optimize
|
||||||
|
a little bit.
|
||||||
|
|
||||||
|
1998-03-22 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||||
|
|
||||||
|
* manual/filesys.texi (Scanning Directory Content): Add missing
|
||||||
|
closing brace.
|
||||||
|
(Scanning Directory Content): Fix text.
|
||||||
|
|
||||||
|
1998-03-22 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||||
|
|
||||||
|
* manual/memory.texi (Heap Consistency Checking): Add paragraph
|
||||||
|
explaining difference of -lmcheck and MALLOC_CHECK_.
|
||||||
|
|
||||||
|
1998-03-23 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Correct some
|
||||||
|
typos in comments.
|
||||||
|
|
||||||
|
1998-03-20 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||||
|
|
||||||
|
* test-skeleton.c (main): Fix test for exit signal.
|
||||||
|
|
||||||
|
1998-03-22 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||||
|
|
||||||
|
* sysdeps/generic/strtok_r.c: Undefine __strtok_r.
|
||||||
|
|
||||||
|
1998-03-22 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||||
|
|
||||||
|
* sysdeps/generic/memcmp.c [_LIBC]: Define WORDS_BIGENDIAN as
|
||||||
|
appropriate.
|
||||||
|
|
||||||
|
1998-03-23 11:14 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||||
|
|
||||||
|
* libc.map: Export __strtok_r.
|
||||||
|
|
||||||
|
1998-03-23 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* posix/regex.c (re_compile_fastmap): Remove unused variable
|
||||||
|
num_regs and adjust comment.
|
||||||
|
Patch by Jim Meyering <meyering@ascend.com>.
|
||||||
|
|
||||||
|
* math/math.h (M_*l): Extend long double constants to be usable
|
||||||
|
for 128 bit floats. Patch by Richard Henderson.
|
||||||
|
|
||||||
|
1998-03-23 11:16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||||
|
|
||||||
* sysdeps/m68k/m68020/wordcopy.S: New file.
|
* sysdeps/m68k/m68020/wordcopy.S: New file.
|
||||||
|
|
||||||
1998-03-22 Ulrich Drepper <drepper@cygnus.com>
|
1998-03-22 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* posix/wordexp.c: Rewrite parse_param.
|
* posix/wordexp.c: Rewrite parse_param.
|
||||||
Patch by Tim Waugh and. Andreas Schwab.
|
Patch by Tim Waugh and Andreas Schwab.
|
||||||
|
|
||||||
1998-03-21 23:46 Zack Weinberg <zack@rabi.phys.columbia.edu>
|
1998-03-21 23:46 Zack Weinberg <zack@rabi.phys.columbia.edu>
|
||||||
|
|
||||||
|
@ -95,10 +95,9 @@ _dl_close (struct link_map *map)
|
|||||||
do
|
do
|
||||||
--tail;
|
--tail;
|
||||||
while (*tail != imap);
|
while (*tail != imap);
|
||||||
|
memcpy (tail, tail + 1,
|
||||||
|
(char *) _dl_global_scope_end - (char *) tail);
|
||||||
--_dl_global_scope_end;
|
--_dl_global_scope_end;
|
||||||
memcpy (tail, tail + 1, _dl_global_scope_end - tail);
|
|
||||||
_dl_global_scope_end[0] = NULL;
|
|
||||||
_dl_global_scope_end[1] = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We can unmap all the maps at once. We just have to determine
|
/* We can unmap all the maps at once. We just have to determine
|
||||||
|
1
libc.map
1
libc.map
@ -67,6 +67,7 @@ GLIBC_2.0 {
|
|||||||
__xstat; __fxstat; __lxstat; __xmknod;
|
__xstat; __fxstat; __lxstat; __xmknod;
|
||||||
__dcgettext; __uflow; __underflow; __overflow; __iswctype; __sigpause;
|
__dcgettext; __uflow; __underflow; __overflow; __iswctype; __sigpause;
|
||||||
__ctype_get_mb_cur_max; __bzero;
|
__ctype_get_mb_cur_max; __bzero;
|
||||||
|
__strtok_r;
|
||||||
|
|
||||||
# functions used in other libraries
|
# functions used in other libraries
|
||||||
__printf_fp; __stpncpy; __stpcpy; __strdup; __mempcpy;
|
__printf_fp; __stpncpy; __stpcpy; __strdup; __mempcpy;
|
||||||
|
@ -485,8 +485,8 @@ The @code{alphasort} function behaves like the @code{strcoll} function
|
|||||||
are not string pointers but instead they are of type
|
are not string pointers but instead they are of type
|
||||||
@code{struct dirent **}.
|
@code{struct dirent **}.
|
||||||
|
|
||||||
Return value of is less than, equal to, or greater than zero depending
|
Return value of @code{alphasort} is less than, equal to, or greater than
|
||||||
on the order of the two entries @var{a} and @var{b}.
|
zero depending on the order of the two entries @var{a} and @var{b}.
|
||||||
@end deftypefun
|
@end deftypefun
|
||||||
|
|
||||||
@comment dirent.h
|
@comment dirent.h
|
||||||
@ -509,7 +509,7 @@ only that the directory entries it returns are described by elements of
|
|||||||
type @w{@code{struct dirent64}}. The function pointed to by
|
type @w{@code{struct dirent64}}. The function pointed to by
|
||||||
@var{selector} is again used to select the wanted entries only that
|
@var{selector} is again used to select the wanted entries only that
|
||||||
@var{selector} now must point to a function which takes a
|
@var{selector} now must point to a function which takes a
|
||||||
@w{@code{struct dirent64 *} parameter.
|
@w{@code{struct dirent64 *}} parameter.
|
||||||
|
|
||||||
The @var{cmp} now must be a function which expects its two arguments to
|
The @var{cmp} now must be a function which expects its two arguments to
|
||||||
be of type @code{struct dirent64 **}.
|
be of type @code{struct dirent64 **}.
|
||||||
@ -528,8 +528,8 @@ The @code{alphasort64} function behaves like the @code{strcoll} function
|
|||||||
are not string pointers but instead they are of type
|
are not string pointers but instead they are of type
|
||||||
@code{struct dirent64 **}.
|
@code{struct dirent64 **}.
|
||||||
|
|
||||||
Return value of is less than, equal to, or greater than zero depending
|
Return value of @code{alphasort64} is less than, equal to, or greater
|
||||||
on the order of the two entries @var{a} and @var{b}.
|
than zero depending on the order of the two entries @var{a} and @var{b}.
|
||||||
@end deftypefun
|
@end deftypefun
|
||||||
|
|
||||||
@comment dirent.h
|
@comment dirent.h
|
||||||
|
@ -625,6 +625,13 @@ immediately. This can be useful because otherwise a crash may happen
|
|||||||
much later, and the true cause for the problem is then very hard to
|
much later, and the true cause for the problem is then very hard to
|
||||||
track down.
|
track down.
|
||||||
|
|
||||||
|
So, what's the difference between using @code{MALLOC_CHECK_} and linking
|
||||||
|
with @samp{-lmcheck}? @code{MALLOC_CHECK_} is orthognal with respect to
|
||||||
|
@samp{-lmcheck}. @samp{-lmcheck} has been added for backward
|
||||||
|
compatibility. Both @code{MALLOC_CHECK_} and @samp{-lmcheck} should
|
||||||
|
uncover the same bugs - but using @code{MALLOC_CHECK_} you don't need to
|
||||||
|
recompile your application.
|
||||||
|
|
||||||
@node Hooks for Malloc
|
@node Hooks for Malloc
|
||||||
@subsection Storage Allocation Hooks
|
@subsection Storage Allocation Hooks
|
||||||
@cindex allocation hooks, for @code{malloc}
|
@cindex allocation hooks, for @code{malloc}
|
||||||
|
@ -1198,8 +1198,8 @@ typedef struct
|
|||||||
if we ever fail back to it.
|
if we ever fail back to it.
|
||||||
|
|
||||||
Requires variables fail_stack, regstart, regend, reg_info, and
|
Requires variables fail_stack, regstart, regend, reg_info, and
|
||||||
num_regs be declared. DOUBLE_FAIL_STACK requires `destination' be
|
num_regs_pushed be declared. DOUBLE_FAIL_STACK requires `destination'
|
||||||
declared.
|
be declared.
|
||||||
|
|
||||||
Does `return FAILURE_CODE' if runs out of memory. */
|
Does `return FAILURE_CODE' if runs out of memory. */
|
||||||
|
|
||||||
@ -3089,8 +3089,6 @@ re_compile_fastmap (bufp)
|
|||||||
#ifndef REGEX_MALLOC
|
#ifndef REGEX_MALLOC
|
||||||
char *destination;
|
char *destination;
|
||||||
#endif
|
#endif
|
||||||
/* We don't push any register information onto the failure stack. */
|
|
||||||
unsigned num_regs = 0;
|
|
||||||
|
|
||||||
register char *fastmap = bufp->fastmap;
|
register char *fastmap = bufp->fastmap;
|
||||||
unsigned char *pattern = bufp->buffer;
|
unsigned char *pattern = bufp->buffer;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1993, 1995, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1993, 1995, 1997, 1998 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Torbjorn Granlund (tege@sics.se).
|
Contributed by Torbjorn Granlund (tege@sics.se).
|
||||||
|
|
||||||
@ -47,6 +47,11 @@
|
|||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
|
|
||||||
# include <memcopy.h>
|
# include <memcopy.h>
|
||||||
|
# include <endian.h>
|
||||||
|
|
||||||
|
# if __BYTE_ORDER == __BIG_ENDIAN
|
||||||
|
# define WORDS_BIGENDIAN
|
||||||
|
# endif
|
||||||
|
|
||||||
#else /* Not in the GNU C library. */
|
#else /* Not in the GNU C library. */
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#undef strtok_r
|
#undef strtok_r
|
||||||
|
#undef __strtok_r
|
||||||
|
|
||||||
/* Parse S into tokens separated by characters in DELIM.
|
/* Parse S into tokens separated by characters in DELIM.
|
||||||
If S is NULL, the saved pointer in SAVE_PTR is used as
|
If S is NULL, the saved pointer in SAVE_PTR is used as
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
|
|
||||||
/* These definitions come from the kernel headers. But we cannot
|
/* These definitions come from the kernel headers. But we cannot
|
||||||
include the headers here because of type clashes. If there will
|
include the headers here because of type clashes. If new
|
||||||
become new filesystem types available we have to add the
|
filesystem types will become available we have to add the
|
||||||
appropriate definitions here.*/
|
appropriate definitions here.*/
|
||||||
#define ADFS_SUPER_MAGIC 0xadf5
|
#define ADFS_SUPER_MAGIC 0xadf5
|
||||||
#define AFFS_SUPER_MAGIC 0xadff
|
#define AFFS_SUPER_MAGIC 0xadff
|
||||||
@ -61,7 +61,7 @@ fstatvfs (int fd, struct statvfs *buf)
|
|||||||
if (__fstatfs (fd, &fsbuf) < 0)
|
if (__fstatfs (fd, &fsbuf) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Now fill in the fields me have information for. */
|
/* Now fill in the fields we have information for. */
|
||||||
buf->f_bsize = fsbuf.f_bsize;
|
buf->f_bsize = fsbuf.f_bsize;
|
||||||
buf->f_blocks = fsbuf.f_blocks;
|
buf->f_blocks = fsbuf.f_blocks;
|
||||||
buf->f_bfree = fsbuf.f_bfree;
|
buf->f_bfree = fsbuf.f_bfree;
|
||||||
@ -108,8 +108,8 @@ fstatvfs (int fd, struct statvfs *buf)
|
|||||||
/* XXX I have no idea how to compute f_favail. Any idea??? */
|
/* XXX I have no idea how to compute f_favail. Any idea??? */
|
||||||
buf->f_favail = buf->f_ffree;
|
buf->f_favail = buf->f_ffree;
|
||||||
|
|
||||||
/* Determining the flags is tricky. We have to read /proc/mount or
|
/* Determining the flags is tricky. We have to read /proc/mounts or
|
||||||
the /etc/matb file and search for the entry which matches the given
|
the /etc/mtab file and search for the entry which matches the given
|
||||||
file. The way we can test for matching filesystem is using the
|
file. The way we can test for matching filesystem is using the
|
||||||
device number. */
|
device number. */
|
||||||
buf->f_flag = 0;
|
buf->f_flag = 0;
|
||||||
|
@ -164,11 +164,10 @@ main (int argc, char *argv[])
|
|||||||
/* We don't expect any signal. */
|
/* We don't expect any signal. */
|
||||||
# define EXPECTED_SIGNAL 0
|
# define EXPECTED_SIGNAL 0
|
||||||
#endif
|
#endif
|
||||||
if (WIFSIGNALED (status) != EXPECTED_SIGNAL)
|
if (WTERMSIG (status) != EXPECTED_SIGNAL)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Incorrect signal from child: got `%s', need `%s'\n",
|
fprintf (stderr, "Incorrect signal from child: got `%s', need `%s'\n",
|
||||||
strsignal (WIFSIGNALED (status)),
|
strsignal (WTERMSIG (status)), strsignal (EXPECTED_SIGNAL));
|
||||||
strsignal (EXPECTED_SIGNAL));
|
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user