diff options
author | kan <kan@FreeBSD.org> | 2003-05-29 22:58:26 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-05-29 22:58:26 +0000 |
commit | 949c40c5fd683b40f39ebfa2783d06b8226148ab (patch) | |
tree | b9989a6b77c2c503eafdb3cf6bf13370f5c6396b /libexec/rtld-elf/libmap.c | |
parent | b292a2679ee1e9385409c38e0e898f0c2f4cb41c (diff) | |
download | FreeBSD-src-949c40c5fd683b40f39ebfa2783d06b8226148ab.zip FreeBSD-src-949c40c5fd683b40f39ebfa2783d06b8226148ab.tar.gz |
Allow threading libraries to register their own locking
implementation in case default one provided by rtld is
not suitable.
Consolidate various identical MD lock implementation into
a single file using appropriate machine/atomic.h.
Approved by: re (scottl)
Diffstat (limited to 'libexec/rtld-elf/libmap.c')
-rw-r--r-- | libexec/rtld-elf/libmap.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libexec/rtld-elf/libmap.c b/libexec/rtld-elf/libmap.c index 0588e1b..13fa888 100644 --- a/libexec/rtld-elf/libmap.c +++ b/libexec/rtld-elf/libmap.c @@ -91,7 +91,7 @@ lm_init (void) /* * There should be nothing except whitespace or comment - * from this point to the end of the line. + from this point to the end of the line. */ while(isspace(*cp++)); if (!iseol(*cp)) continue; @@ -114,7 +114,7 @@ lm_init (void) /* Parse 'to' mapping */ t = cp++; while (!isspace(*cp) && !iseol(*cp)) cp++; - + /* Skip and zero out the trailing whitespace */ while (isspace(*cp)) *cp++ = '\0'; @@ -167,10 +167,6 @@ lm_add (char *p, char *f, char *t) if (p == NULL) p = "$DEFAULT$"; -#if 0 - printf("%s(\"%s\", \"%s\", \"%s\")\n", __func__, p, f, t); -#endif - if ((lml = lmp_find(p)) == NULL) lml = lmp_init(xstrdup(p)); @@ -240,3 +236,4 @@ lmp_init (char *n) return (&lmp->lml); } + |