SCCS-vsn: old/sh/io.c 4.3
SCCS-vsn: old/sh/main.c 4.3
-static char sccsid[] = "@(#)io.c 4.2 %G%";
+static char sccsid[] = "@(#)io.c 4.3 %G%";
/* ======== input output and file copying ======== */
/* ======== input output and file copying ======== */
REG INT f1, f2;
{
IF f1!=f2
REG INT f1, f2;
{
IF f1!=f2
- THEN dup(f1|DUPFLG, f2);
close(f1);
IF f2==0 THEN ioset|=1 FI
FI
close(f1);
IF f2==0 THEN ioset|=1 FI
FI
-static char sccsid[] = "@(#)main.c 4.2 %G%";
+static char sccsid[] = "@(#)main.c 4.3 %G%";
#include "sym.h"
#include "timeout.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sgtty.h>
#include "sym.h"
#include "timeout.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sgtty.h>
UFD output = 2;
LOCAL BOOL beenhere = FALSE;
UFD output = 2;
LOCAL BOOL beenhere = FALSE;
addblok((POS)0);
/* set names from userenv */
addblok((POS)0);
/* set names from userenv */
/* look for restricted */
/* IF c>0 ANDF any('r', *v) THEN rflag=0 FI */
/* look for restricted */
/* IF c>0 ANDF any('r', *v) THEN rflag=0 FI */
Ldup(fa, fb)
REG INT fa, fb;
{
Ldup(fa, fb)
REG INT fa, fb;
{
close(fa);
ioctl(fb, FIOCLEX, 0);
}
close(fa);
ioctl(fb, FIOCLEX, 0);
}