Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/lib Add fixes for missing symbols from l...
details: https://anonhg.NetBSD.org/src/rev/d5919374cb15
branches: trunk
changeset: 752529:d5919374cb15
user: haad <haad%NetBSD.org@localhost>
date: Sun Feb 28 17:36:51 2010 +0000
description:
Add fixes for missing symbols from libzfs and libzpool.
diffstat:
external/cddl/osnet/lib/libzfs/mnttab.c | 11 +++++++++--
external/cddl/osnet/lib/libzfs/stubs.c | 17 +++++++++++++++++
external/cddl/osnet/lib/libzpool/kernel.c | 15 +++++++++++++--
3 files changed, 39 insertions(+), 4 deletions(-)
diffs (97 lines):
diff -r e1a28e3a91df -r d5919374cb15 external/cddl/osnet/lib/libzfs/mnttab.c
--- a/external/cddl/osnet/lib/libzfs/mnttab.c Sun Feb 28 17:22:41 2010 +0000
+++ b/external/cddl/osnet/lib/libzfs/mnttab.c Sun Feb 28 17:36:51 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mnttab.c,v 1.1 2009/08/07 20:57:56 haad Exp $ */
+/* $NetBSD: mnttab.c,v 1.2 2010/02/28 17:36:51 haad Exp $ */
/*-
* Copyright (c) 2006 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
/* __FBSDID("$FreeBSD: src/compat/opensolaris/misc/mnttab.c,v 1.1 2007/04/06 01:08:59 pjd Exp $"); */
-__RCSID("$NetBSD: mnttab.c,v 1.1 2009/08/07 20:57:56 haad Exp $");
+__RCSID("$NetBSD: mnttab.c,v 1.2 2010/02/28 17:36:51 haad Exp $");
#include <sys/param.h>
#include <sys/statvfs.h>
@@ -195,3 +195,10 @@
free(statvfs);
return (0);
}
+
+int
+getmntent(FILE *file, struct mnttab *mnttab) {
+
+
+ return 1;
+}
diff -r e1a28e3a91df -r d5919374cb15 external/cddl/osnet/lib/libzfs/stubs.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/cddl/osnet/lib/libzfs/stubs.c Sun Feb 28 17:36:51 2010 +0000
@@ -0,0 +1,17 @@
+#include <errno.h>
+#include <libintl.h>
+#include <link.h>
+#include <pthread.h>
+#include <strings.h>
+#include <unistd.h>
+
+#include <libzfs.h>
+
+#include "libzfs_impl.h"
+
+void
+libzfs_fru_clear(libzfs_handle_t *hld, boolean_t bol)
+{
+
+ return;
+}
diff -r e1a28e3a91df -r d5919374cb15 external/cddl/osnet/lib/libzpool/kernel.c
--- a/external/cddl/osnet/lib/libzpool/kernel.c Sun Feb 28 17:22:41 2010 +0000
+++ b/external/cddl/osnet/lib/libzpool/kernel.c Sun Feb 28 17:36:51 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.c,v 1.1 2009/08/07 20:57:56 haad Exp $ */
+/* $NetBSD: kernel.c,v 1.2 2010/02/28 17:36:51 haad Exp $ */
/*
* CDDL HEADER START
@@ -29,7 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/cdefs.h>
-__RCSID("$NetBSD: kernel.c,v 1.1 2009/08/07 20:57:56 haad Exp $");
+__RCSID("$NetBSD: kernel.c,v 1.2 2010/02/28 17:36:51 haad Exp $");
#include <sys/zfs_context.h>
#include <sys/sysctl.h>
@@ -54,6 +54,7 @@
#ifdef XXXNETBSD
int hz = 119; /* frequency when using gethrtime() >> 23 for lbolt */
#endif
+int aok;
uint64_t physmem;
vnode_t *rootdir = (vnode_t *)0xabcd1234;
char hw_serial[11];
@@ -63,6 +64,9 @@
"userland"
};
+/* this only exists to have its address taken */
+struct proc p0;
+
/*
* =========================================================================
* threads
@@ -692,3 +696,10 @@
return npg * pgsize;
}
+
+void
+print_timestamp(int fmt)
+{
+
+ return;
+}
Home |
Main Index |
Thread Index |
Old Index