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

@@ -30,9 +30,7 @@
the "real" ones were closed and only their former aliases remain. the "real" ones were closed and only their former aliases remain.
- Invoking fstat() on what maps to a con-handler stream now produces - Invoking fstat() on what maps to a con-handler stream now produces
information identifying it as a character special file. Side-effect: information identifying it as a character special file.
if the input/output went to a CON:/AUTO window, that window will
pop open and stay open.
c.lib 1.190 (25.3.2005) c.lib 1.190 (25.3.2005)

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 * :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 int
__fd_hook_entry( __fd_hook_entry(
struct fd * fd, struct fd * fd,
@@ -581,7 +571,6 @@ __fd_hook_entry(
if(CANNOT __safe_examine_file_handle(file,fam->fam_FileInfo)) if(CANNOT __safe_examine_file_handle(file,fam->fam_FileInfo))
{ {
D_S(struct InfoData,id);
LONG error; LONG error;
/* So that didn't work. Did the file system simply fail to /* 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 /* OK, let's have another look at this file. Could it be a
console stream? */ console stream? */
if(CANNOT DoPkt(fh->fh_Type,ACTION_DISK_INFO,MKBADDR(id), 0,0,0,0)) if(NOT IsInteractive(file))
{
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)
{ {
SHOWMSG("whatever it is, we don't know"); SHOWMSG("whatever it is, we don't know");