env_panic.c

Go to the documentation of this file.
00001 #include "sysutil.h"
00002 #include <string.h>
00003 
00004 /*=========================================================================*
00005  *                              env_panic                                  *
00006  *=========================================================================*/
00007 PUBLIC void env_panic(key)
00008 char *key;              /* environment variable whose value is bogus */
00009 {
00010   static char value[EP_BUF_SIZE] = "<unknown>";
00011   int s;
00012   if ((s=env_get_param(key, value, sizeof(value))) == 0) {
00013         if (s != ESRCH)         /* only error allowed */
00014         printf("WARNING: get_mon_param() failed in env_panic(): %d\n", s);
00015   }
00016   printf("Bad environment setting: '%s = %s'\n", key, value);
00017   panic("","", NO_NUM);
00018 }
00019 

Generated on Fri Apr 14 22:57:28 2006 for minix by  doxygen 1.4.6