Uninitialized vector entry?
[minix3.git] / lib / other / environ.c
blob7e7fe73b068ae25fc1c388594d7072e91978eeb7
1 /*
2 * environ.c - define the variable environ
3 */
4 /* $Header$ */
5 /*
6 * This file defines the variable environ and initializes it with a magic
7 * value. The C run-time start-off routine tests whether the variable
8 * environ is initialized with this value. If it is not, it is assumed
9 * that it is defined by the user. Only two bytes are tested, since we
10 * don't know the endian-ness and alignment restrictions of the machine.
11 * This means that the low-order two-bytes should be equal to the
12 * high-order two-bytes on machines with four-byte pointers. In fact, all
13 * the bytes in the pointer are the same, just in case.
16 #if _EM_PSIZE==2
17 char **environ = (char **) 0x5353;
18 #else
19 char **environ = (char **) 0x53535353;
20 #endif