source: trunk/minix/lib/sysutil/env_panic.c@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 634 bytes
RevLine 
[9]1#include "sysutil.h"
2#include <string.h>
3
4/*=========================================================================*
5 * env_panic *
6 *=========================================================================*/
7PUBLIC void env_panic(key)
8char *key; /* environment variable whose value is bogus */
9{
10 static char value[EP_BUF_SIZE] = "<unknown>";
11 int s;
12 if ((s=env_get_param(key, value, sizeof(value))) == 0) {
13 if (s != ESRCH) /* only error allowed */
14 printf("WARNING: get_mon_param() failed in env_panic(): %d\n", s);
15 }
16 printf("Bad environment setting: '%s = %s'\n", key, value);
17 panic("","", NO_NUM);
18}
19
Note: See TracBrowser for help on using the repository browser.