Incorporate bsdmake into buildsystem and reorganize libs

This commit is contained in:
Arun Thomas
2010-02-16 14:41:33 +00:00
parent 6686e9ae9f
commit b706112487
1513 changed files with 8094 additions and 26613 deletions

19
lib/libsys/env_panic.c Normal file
View File

@@ -0,0 +1,19 @@
#include "sysutil.h"
#include <string.h>
/*=========================================================================*
* env_panic *
*=========================================================================*/
PUBLIC void env_panic(key)
char *key; /* environment variable whose value is bogus */
{
static char value[EP_BUF_SIZE] = "<unknown>";
int s;
if ((s=env_get_param(key, value, sizeof(value))) == 0) {
if (s != ESRCH) /* only error allowed */
printf("WARNING: env_get_param() failed in env_panic(): %d\n", s);
}
printf("Bad environment setting: '%s = %s'\n", key, value);
panic("","", NO_NUM);
}