Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/librtld_db Add build glue, adjust for NetBSD
details: https://anonhg.NetBSD.org/src/rev/3dc0fce7c18f
branches: trunk
changeset: 340662:3dc0fce7c18f
user: christos <christos%NetBSD.org@localhost>
date: Thu Sep 24 14:15:58 2015 +0000
description:
Add build glue, adjust for NetBSD
diffstat:
external/bsd/librtld_db/Makefile | 5 +++++
external/bsd/librtld_db/dist/rtld_db.c | 12 ++++++++----
external/bsd/librtld_db/lib/Makefile | 20 ++++++++++++++++++++
3 files changed, 33 insertions(+), 4 deletions(-)
diffs (72 lines):
diff -r 878a291baae2 -r 3dc0fce7c18f external/bsd/librtld_db/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/librtld_db/Makefile Thu Sep 24 14:15:58 2015 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2015/09/24 14:15:58 christos Exp $
+
+SUBDIR= lib
+
+.include <bsd.subdir.mk>
diff -r 878a291baae2 -r 3dc0fce7c18f external/bsd/librtld_db/dist/rtld_db.c
--- a/external/bsd/librtld_db/dist/rtld_db.c Thu Sep 24 14:14:37 2015 +0000
+++ b/external/bsd/librtld_db/dist/rtld_db.c Thu Sep 24 14:15:58 2015 +0000
@@ -27,19 +27,23 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
+#ifdef __FBSDID
__FBSDID("$FreeBSD: head/lib/librtld_db/rtld_db.c 272488 2014-10-03 23:20:37Z markj $");
+#else
+__RCSID("$NetBSD: rtld_db.c,v 1.2 2015/09/24 14:15:58 christos Exp $");
+#endif
-#include <machine/_inttypes.h>
#include <sys/types.h>
-#include <sys/user.h>
+#include <sys/sysctl.h>
+#include <inttypes.h>
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <libproc.h>
-#include <libutil.h>
+#include <util.h>
#include "rtld_db.h"
@@ -146,7 +150,7 @@
rd_err_e
rd_loadobj_iter(rd_agent_t *rdap, rl_iter_f *cb, void *clnt_data)
{
- int cnt, i, lastvn = 0;
+ size_t cnt, i, lastvn = 0;
rd_loadobj_t rdl;
struct kinfo_vmentry *kves, *kve;
diff -r 878a291baae2 -r 3dc0fce7c18f external/bsd/librtld_db/lib/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/librtld_db/lib/Makefile Thu Sep 24 14:15:58 2015 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2015/09/24 14:15:59 christos Exp $
+
+.include <bsd.own.mk>
+
+LIB= rtld_db
+SHLIB_MAJOR= 0
+SHLIB_MINOR= 0
+MAN= librtld_db.3
+
+SRCS= rtld_db.c
+INCS= rtld_db.h
+INCSDIR= /usr/include
+
+.PATH: ${.CURDIR}/../dist
+
+CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/../libproc
+
+LIBDPLIBS+= util ${NETBSDSRCDIR}/lib/libutil
+
+.include <bsd.lib.mk>
Home |
Main Index |
Thread Index |
Old Index