* Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the meaning of the comment. * Cleaned up _REENTRANT-related defintions. * Disabled -D_REENTRANT for libfetch * Removing some unneeded __NBSD_LIBC defines and tests Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
27 lines
798 B
C
27 lines
798 B
C
/* $NetBSD: globals.c,v 1.9 2012/05/21 21:34:16 dsl 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 */
|
|
char *fsmod = NULL; /* file system module name to load */
|
|
char *fsmod2; /* a requisite module */
|
|
struct in_addr myip; /* my ip address */
|
|
struct in_addr rootip; /* root ip address */
|
|
struct in_addr gateip; /* swap ip address */
|
|
n_long netmask = 0xffffff00; /* subnet or net mask */
|