2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Query a filesystem for interactiveness.
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH1(LONG
, IsInteractive
,
19 AROS_LHA(BPTR
, file
, D1
),
22 struct DosLibrary
*, DOSBase
, 36, Dos
)
25 Check if file is bound to an interactive device such as a console
32 != 0 if the file is interactive, 0 if it is not.
44 *****************************************************************************/
48 /* Get pointer to filehandle */
49 struct FileHandle
*fh
=(struct FileHandle
*)BADDR(file
);
54 return (LONG
)fh
->fh_Interactive
; /* 100% identical to official ROM behavior */