Rev | Line | |
---|
[9] | 1 | /*
|
---|
| 2 | * environ.c - define the variable environ
|
---|
| 3 | */
|
---|
| 4 | /* $Header: /cvsup/minix/src/lib/other/environ.c,v 1.1.1.1 2005/04/21 14:56:26 beng Exp $ */
|
---|
| 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.
|
---|
| 14 | */
|
---|
| 15 |
|
---|
| 16 | #if _EM_PSIZE==2
|
---|
| 17 | char **environ = (char **) 0x5353;
|
---|
| 18 | #else
|
---|
| 19 | char **environ = (char **) 0x53535353;
|
---|
| 20 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.