* Copyright (c) 1980 The Regents of the University of California.
* This module is believed to contain source code proprietary to AT&T.
* Use and redistribution is subject to the Berkeley Software License
* Agreement and your Software Agreement with AT&T (Western Electric).
static char sccsid
[] = "@(#)isatty_.c 5.2 (Berkeley) 4/12/91";
* determine if stream is associated with a tty (async port)
* val will be .TRUE. if lunit is associated with a 'tty'
#include "../libI77/fiodefs.h"
extern unit units
[]; /* logical units table from iolib */
if (*u
< 0 || *u
>= MXUNIT
)
return((long)(isatty(fileno(lu
->ufd
)) != 0));