aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/rtld
diff options
context:
space:
mode:
authorRodney W. Grimes <rgrimes@FreeBSD.org>1995-05-30 05:05:38 +0000
committerRodney W. Grimes <rgrimes@FreeBSD.org>1995-05-30 05:05:38 +0000
commit4399be3cbd35324f7a2c00d77229d995b4022138 (patch)
treea3959baf797787918878bec6d58d6a0fb743ad0a /gnu/usr.bin/ld/rtld
parent709e8f9ae1d734c1a163c9b421df4b8153939ce7 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/ld/rtld')
-rw-r--r--gnu/usr.bin/ld/rtld/malloc.c14
-rw-r--r--gnu/usr.bin/ld/rtld/rtld.c12
2 files changed, 13 insertions, 13 deletions
diff --git a/gnu/usr.bin/ld/rtld/malloc.c b/gnu/usr.bin/ld/rtld/malloc.c
index 0d94200e895c..60e6ec3be768 100644
--- a/gnu/usr.bin/ld/rtld/malloc.c
+++ b/gnu/usr.bin/ld/rtld/malloc.c
@@ -33,16 +33,16 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)malloc.c 5.11 (Berkeley) 2/23/91";*/
-static char *rcsid = "$Id: malloc.c,v 1.2 1994/06/15 22:41:13 rich Exp $";
+static char *rcsid = "$Id: malloc.c,v 1.3 1995/03/04 17:46:24 nate Exp $";
#endif /* LIBC_SCCS and not lint */
/*
* malloc.c (Caltech) 2/21/82
* Chris Kingsley, kingsley@cit-20.
*
- * This is a very fast storage allocator. It allocates blocks of a small
+ * This is a very fast storage allocator. It allocates blocks of a small
* number of different sizes, and keeps free lists of each size. Blocks that
- * don't exactly fit are passed up to the next larger size. In this
+ * don't exactly fit are passed up to the next larger size. In this
* implementation, the available sizes are 2^n-4 (or 2^n-10) bytes long.
* This is designed for use in a virtual memory environment.
*/
@@ -280,7 +280,7 @@ morecore(bucket)
void
free(cp)
void *cp;
-{
+{
register int size;
register union overhead *op;
@@ -321,9 +321,9 @@ int realloc_srchlen = 4; /* 4 should be plenty, -1 =>'s whole list */
void *
realloc(cp, nbytes)
- void *cp;
+ void *cp;
size_t nbytes;
-{
+{
register u_int onb;
register int i;
union overhead *op;
@@ -412,7 +412,7 @@ findbucket(freep, srchlen)
#ifdef MSTATS
/*
* mstats - print out statistics about malloc
- *
+ *
* Prints two lines of numbers, one showing the length of the free list
* for each size category, the second showing the number of mallocs -
* frees for each size category.
diff --git a/gnu/usr.bin/ld/rtld/rtld.c b/gnu/usr.bin/ld/rtld/rtld.c
index 547d51d2bfb0..e0547af76d32 100644
--- a/gnu/usr.bin/ld/rtld/rtld.c
+++ b/gnu/usr.bin/ld/rtld/rtld.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: rtld.c,v 1.23 1995/03/03 06:37:36 nate Exp $
+ * $Id: rtld.c,v 1.23 1995/04/21 04:57:50 nate Exp $
*/
#include <sys/param.h>
@@ -232,7 +232,7 @@ struct _dynamic *dp;
n > 0;
n -= sizeof(struct relocation_info) ) nreloc++;
-
+
/* Relocate ourselves */
for (reloc = (struct relocation_info *)(LD_REL(dp) + crtp->crt_ba);
nreloc;
@@ -562,7 +562,7 @@ again:
(long)dp->d_un.d_sdt += (long)addr;
p = alloc_link_map(path, sodp, smp, addr, dp);
-
+
/* save segment sizes for unmap. */
smpp = LM_PRIVATE(p);
smpp->a_text = hdr.a_text;
@@ -584,7 +584,7 @@ unmap_object(smp)
/* Find the object in the list and unlink it */
for (prev = NULL, p = link_map_head;
- p != smp;
+ p != smp;
prev = p, p = p->som_next) continue;
if (prev == NULL) {
@@ -903,7 +903,7 @@ lookup(name, src_map, strong)
continue;
if ((buckets = LD_BUCKETS(smp->som_dynamic)) == 0)
- continue;
+ continue;
if (LM_PRIVATE(smp)->spd_flags & RTLD_RTLD)
continue;
@@ -1323,7 +1323,7 @@ __dlclose(fd)
/* Dismantle shared object map and descriptor */
init_map(smp, "_fini");
-
+
if (unmap_object(smp) < 0)
return -1;