summaryrefslogtreecommitdiffstats
path: root/lib/libstand/globals.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-08-20 08:19:55 +0000
committermsmith <msmith@FreeBSD.org>1998-08-20 08:19:55 +0000
commit335c4be5b17816baac6b70d4d0b3132925de858d (patch)
tree93349031c3cbd63fd287516f83a63841b7e8105b /lib/libstand/globals.c
parent0ad6b3714378015da93827e12e95fa078a91ef12 (diff)
downloadFreeBSD-src-335c4be5b17816baac6b70d4d0b3132925de858d.zip
FreeBSD-src-335c4be5b17816baac6b70d4d0b3132925de858d.tar.gz
This is libstand; a support library for standalone executables (eg. bootstrap
modules). Obtained from: NetBSD, with some architectural changes and many additions.
Diffstat (limited to 'lib/libstand/globals.c')
-rw-r--r--lib/libstand/globals.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/libstand/globals.c b/lib/libstand/globals.c
new file mode 100644
index 0000000..c35021c
--- /dev/null
+++ b/lib/libstand/globals.c
@@ -0,0 +1,33 @@
+/* $NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $ */
+
+/*
+ * globals.c:
+ *
+ * global variables should be separate, so nothing else
+ * must be included extraneously.
+ */
+
+#include <sys/param.h>
+#include <netinet/in.h>
+#include <netinet/in_systm.h>
+
+#include "stand.h"
+#include "net.h"
+
+u_char bcea[6] = BA; /* broadcast ethernet address */
+
+char rootpath[FNAME_SIZE] = "/"; /* root mount path */
+char bootfile[FNAME_SIZE]; /* bootp says to boot this */
+char hostname[FNAME_SIZE]; /* our hostname */
+int hostnamelen;
+char domainname[FNAME_SIZE]; /* our DNS domain */
+int domainnamelen;
+char ifname[IFNAME_SIZE]; /* name of interface (e.g. "le0") */
+struct in_addr myip; /* my ip address */
+struct in_addr nameip; /* DNS server ip address */
+struct in_addr rootip; /* root ip address */
+struct in_addr swapip; /* swap ip address */
+struct in_addr gateip; /* swap ip address */
+n_long netmask = 0xffffff00; /* subnet or net mask */
+int errno; /* our old friend */
+
OpenPOWER on IntegriCloud