WARNS?=1
This commit is contained in:
parent
ee62445dbf
commit
896c1cce87
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: malloc.c,v 1.1 1996/12/16 20:38:00 cgd Exp $ */
|
||||
/* $NetBSD: malloc.c,v 1.2 1997/10/08 08:55:35 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983 Regents of the University of California.
|
||||
|
@ -56,15 +56,12 @@
|
|||
#include <sys/param.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
static void morecore();
|
||||
static int findbucket();
|
||||
|
||||
/*
|
||||
* Pre-allocate mmap'ed pages
|
||||
*/
|
||||
#define NPOOLPAGES (32*1024/pagesz)
|
||||
static caddr_t pagepool_start, pagepool_end;
|
||||
static int morepages();
|
||||
static int morepages __P((int));
|
||||
|
||||
/*
|
||||
* The overhead on a block is at least 4 bytes. When free, this space
|
||||
|
@ -92,6 +89,9 @@ union overhead {
|
|||
#define ov_size ovu.ovu_size
|
||||
};
|
||||
|
||||
static void morecore __P((int));
|
||||
static int findbucket __P((union overhead *, int));
|
||||
|
||||
#define MAGIC 0xef /* magic # on accounting info */
|
||||
#define RMAGIC 0x5555 /* magic # on range info */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: paths.c,v 1.1 1996/12/16 20:38:01 cgd Exp $ */
|
||||
/* $NetBSD: paths.c,v 1.2 1997/10/08 08:55:36 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 Matt Thomas <matt@3am-software.com>
|
||||
|
@ -43,6 +43,8 @@
|
|||
#include "debug.h"
|
||||
#include "rtld.h"
|
||||
|
||||
Search_Path *_rtld_find_path(Search_Path *, const char *, size_t);
|
||||
|
||||
Search_Path *
|
||||
_rtld_find_path(
|
||||
Search_Path *path,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rtld.c,v 1.4 1997/04/15 07:15:46 cgd Exp $ */
|
||||
/* $NetBSD: rtld.c,v 1.5 1997/10/08 08:55:37 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 John D. Polstra.
|
||||
|
@ -195,6 +195,8 @@ _rtld_exit(void)
|
|||
* Such values are returned with their most-significant 32 bits in %edx,
|
||||
* and their least-significant 32 bits in %eax.
|
||||
*/
|
||||
Elf_Addr _rtld(Elf_Word *);
|
||||
|
||||
Elf_Addr
|
||||
_rtld(
|
||||
Elf_Word *sp)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rtldenv.h,v 1.1 1996/12/16 20:38:05 cgd Exp $ */
|
||||
/* $NetBSD: rtldenv.h,v 1.2 1997/10/08 08:55:38 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 Matt Thomas <matt@3am-software.com>
|
||||
|
@ -40,6 +40,7 @@ extern char *xstrdup(const char *);
|
|||
#ifdef RTLD_LOADER
|
||||
extern void xprintf(const char *fmt, ...);
|
||||
extern void xvprintf(const char *fmt, va_list ap);
|
||||
extern void xsnprintf(char *buf, size_t buflen, const char *fmt, ...);
|
||||
extern size_t xvsnprintf(char *buf, size_t buflen, const char *fmt, va_list ap);
|
||||
extern void xwarn(const char *fmt, ...);
|
||||
extern void xwarnx(const char *fmt, ...);
|
||||
|
@ -58,6 +59,7 @@ extern const char *xstrerror(int error);
|
|||
|
||||
#define xprintf printf
|
||||
#define xvprintf vprintf
|
||||
#define xsnprintf snprintf
|
||||
#define xvsnprintf vsnprintf
|
||||
#define xwarn warn
|
||||
#define xwarnx warnx
|
||||
|
|
Loading…
Reference in New Issue