- Give PCI controllers lower unit numbers than legacy controllers.
[cake.git] / compiler / clib / isatty.c
blob00bbd920d2cceb4d3d1b464ad0e866131a517077
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/dos.h>
8 #include "__open.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->fh)?1:0;
44 return 0;