summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/stubs.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-01-18 01:44:56 +0000
committerjsing <jsing@openbsd.org>2014-01-18 01:44:56 +0000
commit39e364ef1b6fca19b0805c9d3b42eb695ff7c01b (patch)
treee3ac1552e1c805e05f2d9ec688791f34121ec8ee /usr.sbin/installboot/stubs.c
parentIf ugflag (indicating a character from the file being parsed has been (diff)
downloadwireguard-openbsd-39e364ef1b6fca19b0805c9d3b42eb695ff7c01b.tar.xz
wireguard-openbsd-39e364ef1b6fca19b0805c9d3b42eb695ff7c01b.zip
Make installboot(8) build on all architectures, although currently with
non-functional stubs for alpha, armish, armv7, aviion, loongson, luna88k, mvme68k, mvme88k, octeon, sgi, socppc, sparc and zaurus.
Diffstat (limited to 'usr.sbin/installboot/stubs.c')
-rw-r--r--usr.sbin/installboot/stubs.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/usr.sbin/installboot/stubs.c b/usr.sbin/installboot/stubs.c
new file mode 100644
index 00000000000..524cddc945a
--- /dev/null
+++ b/usr.sbin/installboot/stubs.c
@@ -0,0 +1,35 @@
+/* $OpenBSD: stubs.c,v 1.1 2014/01/18 01:44:57 jsing Exp $ */
+
+/*
+ * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include "installboot.h"
+
+void
+md_init(void)
+{
+ errx(1, "not yet implemented");
+}
+
+void
+md_loadboot(void)
+{
+}
+
+void
+md_installboot(int devfd, char *dev)
+{
+}