Renamed src/lib/utils to src/lib/sysutil --- because of new src/lib/util

This commit is contained in:
Jorrit Herder
2005-07-19 13:21:51 +00:00
parent 0129d98ae1
commit 5594b767c0
52 changed files with 49 additions and 53 deletions

19
lib/sysutil/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=get_mon_param(key, value, sizeof(value))) == 0) {
if (s != ESRCH) /* only error allowed */
printf("WARNING: get_mon_param() failed in env_panic(): %d\n", s);
}
printf("Bad environment setting: '%s = %s'\n", key, value);
panic("","", NO_NUM);
}