Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
	* include/byteswap.h: New file.

	* malloc/mtrace.c (mtrace): Use smaller output buffer to reduce
	.bss segment size.  Patch by Joe Keane <jgk@jgk.org>.
  • Loading branch information
Ulrich Drepper committed Apr 10, 1998
1 parent c7614ee commit e7993f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,5 +1,10 @@
1998-04-10 Ulrich Drepper <drepper@cygnus.com>

* include/byteswap.h: New file.

* malloc/mtrace.c (mtrace): Use smaller output buffer to reduce
.bss segment size. Patch by Joe Keane <jgk@jgk.org>.

* inet/getnameinfo.c (getnameinfo): Change parameter to match
declaration. Patch by Richard Henderson.

Expand Down
1 change: 1 addition & 0 deletions include/byteswap.h
@@ -0,0 +1 @@
#include <string/byteswap.h>
6 changes: 4 additions & 2 deletions malloc/mtrace.c
Expand Up @@ -40,9 +40,11 @@ extern char *getenv ();
#include <stdlib.h>
#endif

#define TRACE_BUFFER_SIZE 512

static FILE *mallstream;
static const char mallenv[]= "MALLOC_TRACE";
static char mallbuf[BUFSIZ]; /* Buffer for the output. */
static char malloc_trace_buffer[TRACE_BUFFER_SIZE];

__libc_lock_define_initialized (static, lock);

Expand Down Expand Up @@ -242,7 +244,7 @@ mtrace ()
if (mallstream != NULL)
{
/* Be sure it doesn't malloc its buffer! */
setbuf (mallstream, mallbuf);
setvbuf (mallstream, malloc_trace_buffer, TRACE_BUFFER_SIZE);
fprintf (mallstream, "= Start\n");
tr_old_free_hook = __free_hook;
__free_hook = tr_freehook;
Expand Down

0 comments on commit e7993f2

Please sign in to comment.