+ /* Enforce use of local time */
+ unsetenv("TZ");
+
+ /*
+ ** Be sure we have enough file descriptors.
+ ** But also be sure that 0, 1, & 2 are open.
+ */
+
+ i = open("/dev/null", 2);
+ while (i >= 0 && i < 2)
+ i = dup(i);
+ for (i = 3; i < 50; i++)
+ (void) close(i);
+ errno = 0;
+
+ /*
+ ** Set default values for variables.
+ ** These cannot be in initialized data space.
+ */
+
+ setdefaults();
+
+ /* set up the blank envelope */
+ BlankEnvelope.e_puthdr = putheader;
+ BlankEnvelope.e_putbody = putbody;
+ BlankEnvelope.e_xfp = NULL;
+ STRUCTCOPY(NullAddress, BlankEnvelope.e_from);
+ STRUCTCOPY(BlankEnvelope, MainEnvelope);
+ CurEnv = &MainEnvelope;
+