Listtree.mcc: use internal inherited class of NListtree
[AROS.git] / compiler / posixc / isatty.c
blobe381f5d5294a86e6fe64866dc114cce4abd86f6e
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/dos.h>
8 #include "__fdesc.h"
10 /*****************************************************************************
12 NAME */
14 #include <unistd.h>
16 int isatty(
18 /* SYNOPSIS */
19 int fd)
21 /* FUNCTION
23 INPUTS
25 RESULT
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
35 INTERNALS
37 ******************************************************************************/
39 fdesc *desc = __getfdesc(fd);
41 if (desc)
42 return IsInteractive(desc->fcb->handle)?1:0;
44 return 0;