mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- fwrite() now flushes the entire "buffer" for unbuffered files. The
exception are "interactive" files such as console windows. For these line buffered output is used. - Whether or not a file is bound to an interactive device, such as a console window, is now checked and remembered after a file descriptor has been associated with it. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14788 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_fdhookentry.c,v 1.3 2004-12-26 13:14:47 obarthel Exp $
|
||||
* $Id: stdio_fdhookentry.c,v 1.4 2004-12-27 09:15:55 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -1823,7 +1823,7 @@ __fd_hook_entry(
|
||||
|
||||
PROFILE_OFF();
|
||||
|
||||
if(fd->fd_DefaultFile != ZERO && ((struct FileHandle *)BADDR(fd->fd_DefaultFile))->fh_Type != NULL && IsInteractive(fd->fd_DefaultFile))
|
||||
if(FLAG_IS_SET(fd->fd_Flags,FDF_IS_INTERACTIVE))
|
||||
{
|
||||
LONG mode;
|
||||
|
||||
@ -2169,21 +2169,6 @@ __fd_hook_entry(
|
||||
result = 0;
|
||||
break;
|
||||
|
||||
case file_hook_action_is_interactive:
|
||||
|
||||
SHOWMSG("file_hook_action_is_interactive");
|
||||
|
||||
PROFILE_OFF();
|
||||
|
||||
if(fd->fd_DefaultFile != ZERO && ((struct FileHandle *)BADDR(fd->fd_DefaultFile))->fh_Type != NULL && IsInteractive(fd->fd_DefaultFile))
|
||||
result = 1;
|
||||
else
|
||||
result = 0;
|
||||
|
||||
PROFILE_ON();
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
SHOWVALUE(message->action);
|
||||
|
||||
Reference in New Issue
Block a user