stdio.h defines BUFSIZ
[unix-history] / usr / src / usr.bin / window / wwsuspend.c
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Edward Wang at The University of California, Berkeley.
*
* %sccs.include.redist.c%
*/
#ifndef lint
static char sccsid[] = "@(#)wwsuspend.c 3.15 (Berkeley) %G%";
#endif /* not lint */
#include "ww.h"
#include "tt.h"
#include <sys/signal.h>
void
wwsuspend()
{
sig_t oldsig;
oldsig = signal(SIGTSTP, SIG_IGN);
wwend();
(void) signal(SIGTSTP, SIG_DFL);
(void) kill(0, SIGTSTP);
(void) signal(SIGTSTP, SIG_IGN);
(void) wwsettty(0, &wwnewtty);
xxstart();
wwredraw(); /* XXX, clears the screen twice */
(void) signal(SIGTSTP, oldsig);
}