Return to globals.c CVS log | Up to [cvs.NetBSD.org] / src / sys / lib / libsa |
File: [cvs.NetBSD.org] / src / sys / lib / libsa / globals.c (download)
Revision 1.4, Sat Feb 23 05:44:24 2002 UTC (22 years, 2 months ago) by thorpej
Move files[] from open.c to globals.c, so that it's possible to use libsa in an application where there are no file systems or devices. |
/* $NetBSD: globals.c,v 1.4 2002/02/23 05:44:24 thorpej 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 */ struct open_file files[SOPEN_MAX]; 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 */