summaryrefslogtreecommitdiff
path: root/lib/libc/gen/nlist.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-10-04 06:59:58 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-10-04 06:59:58 +0000
commit8aeadf4bba0f058b93ceeb201f128bece5fe5149 (patch)
treee683a8a897af9e329168482fca62e6e15eb40085 /lib/libc/gen/nlist.c
parentadaa9fa632209fdd3263746aa3cf943632017821 (diff)
__fdnlist() is exported for libkvm, but the internal call can go direct
Diffstat (limited to 'lib/libc/gen/nlist.c')
-rw-r--r--lib/libc/gen/nlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c
index b846b29ed01..100fa942a88 100644
--- a/lib/libc/gen/nlist.c
+++ b/lib/libc/gen/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.61 2015/08/27 04:37:58 guenther Exp $ */
+/* $OpenBSD: nlist.c,v 1.62 2015/10/04 06:59:57 guenther Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -45,6 +45,7 @@
#define MINIMUM(a, b) (((a) < (b)) ? (a) : (b))
int __fdnlist(int, struct nlist *);
+PROTO_NORMAL(__fdnlist);
#define ISLAST(p) (p->n_un.n_name == 0 || p->n_un.n_name[0] == 0)
@@ -272,6 +273,7 @@ elf_done:
munmap(strtab, symstrsize);
return (nent);
}
+DEF_STRONG(__fdnlist);
int
nlist(const char *name, struct nlist *list)