mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 11:20:10 +00:00
Update.
* locale/programs/localedef.c (construct_output_path): If path contains a / compute the end of the directory name correctly.
This commit is contained in:
parent
8e605e789d
commit
30e0f9c399
@ -1,5 +1,8 @@
|
|||||||
2000-03-26 Ulrich Drepper <drepper@redhat.com>
|
2000-03-26 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* locale/programs/localedef.c (construct_output_path): If path
|
||||||
|
contains a / compute the end of the directory name correctly.
|
||||||
|
|
||||||
* include/features.h: Undef and document __USE_XOPEN2K.
|
* include/features.h: Undef and document __USE_XOPEN2K.
|
||||||
|
|
||||||
* malloc/mcheck.c: Implement pedantic checking of all allocated blocks
|
* malloc/mcheck.c: Implement pedantic checking of all allocated blocks
|
||||||
|
@ -367,7 +367,7 @@ construct_output_path (char *path)
|
|||||||
memory allocation. */
|
memory allocation. */
|
||||||
size_t len = strlen (path) + 1;
|
size_t len = strlen (path) + 1;
|
||||||
result = xmalloc (len + 1);
|
result = xmalloc (len + 1);
|
||||||
endp = mempcpy (result, path, len);
|
endp = mempcpy (result, path, len) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
@ -111,12 +111,18 @@ check_all ()
|
|||||||
with. */
|
with. */
|
||||||
struct hdr *runp = root;
|
struct hdr *runp = root;
|
||||||
|
|
||||||
|
/* Temporarily turn off the checks. */
|
||||||
|
pedantic = 0;
|
||||||
|
|
||||||
while (runp != NULL)
|
while (runp != NULL)
|
||||||
{
|
{
|
||||||
(void) checkhdr (runp);
|
(void) checkhdr (runp);
|
||||||
|
|
||||||
runp = runp->next;
|
runp = runp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Turn checks on again. */
|
||||||
|
pedantic = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void unlink_blk __P ((struct hdr *ptr));
|
static void unlink_blk __P ((struct hdr *ptr));
|
||||||
|
@ -45,9 +45,6 @@ extern int mcheck (void (*__abortfunc) (enum mcheck_status)) __THROW;
|
|||||||
the memory handling functions is called. This can be very slow. */
|
the memory handling functions is called. This can be very slow. */
|
||||||
extern int mcheck_pedantic (void (*__abortfunc) (enum mcheck_status)) __THROW;
|
extern int mcheck_pedantic (void (*__abortfunc) (enum mcheck_status)) __THROW;
|
||||||
|
|
||||||
/* Similar to `mcheck', but perform tests on all blocks every time. */
|
|
||||||
extern int mcheck_verbose (void (*func) __P ((enum mcheck_status)));
|
|
||||||
|
|
||||||
/* Check for aberrations in a particular malloc'd block. You must have
|
/* Check for aberrations in a particular malloc'd block. You must have
|
||||||
called `mcheck' already. These are the same checks that `mcheck' does
|
called `mcheck' already. These are the same checks that `mcheck' does
|
||||||
when you free or reallocate a block. */
|
when you free or reallocate a block. */
|
||||||
|
Loading…
Reference in New Issue
Block a user