1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- We now call IsInteractive() rather than send a type ACTION_DISK_INFO

to a likely console handler file's MsgPort.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14911 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-04-02 18:02:54 +00:00
parent 7f9fbc453b
commit d5c36d66e4
2 changed files with 3 additions and 25 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdio_fdhookentry.c,v 1.26 2005-04-02 13:25:53 obarthel Exp $
* $Id: stdio_fdhookentry.c,v 1.27 2005-04-02 18:02:54 obarthel Exp $
*
* :ts=4
*
@ -52,16 +52,6 @@
/****************************************************************************/
#ifndef ID_CON
#define ID_CON (0x434F4E00L)
#endif /* ID_CON */
#ifndef ID_RAWCON
#define ID_RAWCON (0x52415700L)
#endif /* ID_RAWCON */
/****************************************************************************/
int
__fd_hook_entry(
struct fd * fd,
@ -581,7 +571,6 @@ __fd_hook_entry(
if(CANNOT __safe_examine_file_handle(file,fam->fam_FileInfo))
{
D_S(struct InfoData,id);
LONG error;
/* So that didn't work. Did the file system simply fail to
@ -598,16 +587,7 @@ __fd_hook_entry(
/* OK, let's have another look at this file. Could it be a
console stream? */
if(CANNOT DoPkt(fh->fh_Type,ACTION_DISK_INFO,MKBADDR(id), 0,0,0,0))
{
SHOWMSG("couldn't examine the file");
fam->fam_Error = __translate_io_error_to_errno(IoErr());
goto out;
}
if(id->id_DiskType != ID_CON &&
id->id_DiskType != ID_RAWCON)
if(NOT IsInteractive(file))
{
SHOWMSG("whatever it is, we don't know");