3 * isatty.c - check is a file is a terminal (interactive) or not (SAS/C)
5 * Copyright © 1994 AmiTCP/IP Group,
6 * Network Solutions Development Inc.
15 #include <proto/dos.h>
25 if ((ufb
= __chkufb(fd
)) != NULL
&&
26 !(ufb
->ufbflg
& UFB_SOCK
)) { /* A socket is not a tty */
28 * Convert DOSBOOL to BOOL
30 return (IsInteractive(ufb
->ufbfh
) & 0x1);