Formerly main.c.~48~

This commit is contained in:
Roland McGrath 1992-06-11 20:05:40 +00:00
parent efc335d4a1
commit 3893d9217c

18
main.c
View File

@ -421,22 +421,12 @@ main (argc, argv, envp)
#ifndef SETLINEBUF_MISSING #ifndef SETLINEBUF_MISSING
setlinebuf (stdout); setlinebuf (stdout);
#else #else
#ifndef SETVBUF_REVERSED
/* XXX This should be decided by an autoconf test program. */
#if (defined (USGr3) || defined (HPUX) || defined (hpux) \
|| defined (M_XENIX) || defined (APOLLO) || defined (DGUX) \
|| defined (__IBMR2) || defined (POSIX))
setvbuf (stdout, (char *) 0, _IOLBF, BUFSIZ); setvbuf (stdout, (char *) 0, _IOLBF, BUFSIZ);
#else /* Not USGr3 and not HPUX et al. */ #else /* setvbuf not reversed. */
#ifdef USG /* Some buggy systems lose if we pass 0 instead of allocating ourselves. */
#ifdef sgi
setvbuf (stdout, _IOLBF, xmalloc (BUFSIZ), BUFSIZ); setvbuf (stdout, _IOLBF, xmalloc (BUFSIZ), BUFSIZ);
#else #endif /* setvbuf reversed. */
setvbuf (stdout, _IOLBF, (char *) 0, BUFSIZ);
#endif
#endif /* USG. */
#endif /* USGr3. */
#endif /* setlinebuf missing. */ #endif /* setlinebuf missing. */
/* Set up to access user data (files). */ /* Set up to access user data (files). */