environ.c

Go to the documentation of this file.
00001 /*
00002  * environ.c - define the variable environ
00003  */
00004 /* $Header: /opt/proj/minix/cvsroot/src/lib/other/environ.c,v 1.1.1.1 2005/04/21 14:56:26 beng Exp $ */
00005 /*
00006  * This file defines the variable environ and initializes it with a magic
00007  * value.  The C run-time start-off routine tests whether the variable
00008  * environ is initialized with this value.  If it is not, it is assumed
00009  * that it is defined by the user.  Only two bytes are tested, since we
00010  * don't know the endian-ness and alignment restrictions of the machine.
00011  * This means that the low-order two-bytes should be equal to the
00012  * high-order two-bytes on machines with four-byte pointers.  In fact, all
00013  * the bytes in the pointer are the same, just in case.
00014  */
00015 
00016 #if _EM_PSIZE==2
00017 char **environ = (char **) 0x5353;
00018 #else
00019 char **environ = (char **) 0x53535353;
00020 #endif

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