SCCS-vsn: usr.bin/window/main.c 3.13
SCCS-vsn: usr.bin/window/wwinit.c 3.11
SCCS-vsn: usr.bin/window/ww.h 3.18
SCCS-vsn: usr.bin/window/cmd.c 3.14
SCCS-vsn: usr.bin/window/cmd2.c 3.13
SCCS-vsn: usr.bin/window/wwsuspend.c 3.3
SCCS-vsn: usr.bin/window/defs.h 3.5
-static char *sccsid = "@(#)cmd.c 3.13 83/09/15";
+static char *sccsid = "@(#)cmd.c 3.14 83/11/02";
case 's':
c_stat();
break;
case 's':
c_stat();
break;
case 't':
c_time(RUSAGE_SELF);
break;
case 'T':
c_time(RUSAGE_CHILDREN);
break;
case 't':
c_time(RUSAGE_SELF);
break;
case 'T':
c_time(RUSAGE_CHILDREN);
break;
/* debugging stuff */
case '&':
if (debug) {
/* debugging stuff */
case '&':
if (debug) {
-static char *sccsid = "@(#)cmd2.c 3.12 83/09/14";
+static char *sccsid = "@(#)cmd2.c 3.13 83/11/02";
char *strtime();
c_time(flag)
char *strtime();
c_time(flag)
t->tv_sec, t->tv_usec / 10000);
return buf;
}
t->tv_sec, t->tv_usec / 10000);
return buf;
}
- * @(#)defs.h 3.4 83/09/01
+ * @(#)defs.h 3.5 83/11/02
*/
#include "ww.h"
#include <signal.h>
*/
#include "ww.h"
#include <signal.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <sys/resource.h>
int nreade;
int nreadz;
int nreadc;
int nreade;
int nreadz;
int nreadc;
struct timeval starttime;
struct timeval starttime;
/* things for handling input */
char ibuf[512];
/* things for handling input */
char ibuf[512];
-static char *sccsid = "@(#)main.c 3.12 83/09/19";
+static char *sccsid = "@(#)main.c 3.13 83/11/02";
char fflag = 0;
char dflag = 0;
char xflag = 0;
char fflag = 0;
char dflag = 0;
char xflag = 0;
struct timezone timezone;
struct timezone timezone;
if (p = rindex(*argv, '/'))
p++;
if (p = rindex(*argv, '/'))
p++;
shellname++;
else
shellname = shell;
shellname++;
else
shellname = shell;
(void) gettimeofday(&starttime, &timezone);
(void) gettimeofday(&starttime, &timezone);
if (wwinit() < 0) {
(void) fflush(stdout);
(void) fprintf(stderr, "%s.\n", wwerror());
if (wwinit() < 0) {
(void) fflush(stdout);
(void) fprintf(stderr, "%s.\n", wwerror());
- * @(#)ww.h 3.17 83/10/19
+ * @(#)ww.h 3.18 83/11/02
#define CTRL(c) ('c'&0x1f)
#define DEL 0x7f
#define ISCTRL(c) ((c) < ' ' || (c) >= DEL)
#define CTRL(c) ('c'&0x1f)
#define DEL 0x7f
#define ISCTRL(c) ((c) < ' ' || (c) >= DEL)
+
+#if defined(O_4_1A)||defined(O_4_1C)
+int (*sigset)();
+#define signal(s, v) sigset((s), (v))
+#endif
-static char *sccsid = "@(#)wwinit.c 3.10 83/09/15";
+static char *sccsid = "@(#)wwinit.c 3.11 83/11/02";
int kn;
setbuf(stdout, _sobuf);
int kn;
setbuf(stdout, _sobuf);
wwdtablesize = getdtablesize();
wwdtablesize = getdtablesize();
+#else
+#include <sys/param.h>
+ wwdtablesize = NOFILE;
+#endif
if (wwgettty(0, &wwoldtty) < 0)
return -1;
wwwintty = wwoldtty;
if (wwgettty(0, &wwoldtty) < 0)
return -1;
wwwintty = wwoldtty;
-static char *sccsid = "@(#)wwsuspend.c 3.2 83/08/15";
+static char *sccsid = "@(#)wwsuspend.c 3.3 83/11/02";
#endif
#include "ww.h"
#include "tt.h"
#include <signal.h>
#endif
#include "ww.h"
#include "tt.h"
#include <signal.h>
-#define mask(s) (1 << (s) - 1)
-
- oldmask = sigblock(mask(SIGTSTP));
+ oldsig = signal(SIGTSTP, SIG_IGN);
- (void) sigsetmask(sigblock(0) & ~mask(SIGTSTP));
+ (void) signal(SIGTSTP, SIG_DFL);
- (void) sigblock(mask(SIGTSTP));
+ (void) signal(SIGTSTP, SIG_IGN);
(void) wwsettty(0, &wwnewtty);
(*tt.tt_init)();
wwredraw();
(void) wwsettty(0, &wwnewtty);
(*tt.tt_init)();
wwredraw();
- (void) sigsetmask(oldmask);
+ (void) signal(SIGTSTP, oldsig);