mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- fstat() now works with "NIL:" and "/dev/null", respectively. Not that
it returns much useful information, though. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15138 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_fdhookentry.c,v 1.32 2006-01-08 12:04:24 obarthel Exp $
|
||||
* $Id: stdio_fdhookentry.c,v 1.33 2006-09-20 19:46:57 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -581,7 +581,18 @@ __fd_hook_entry(
|
||||
|
||||
fh = BADDR(file);
|
||||
|
||||
if(CANNOT __safe_examine_file_handle(file,fam->fam_FileInfo))
|
||||
/* Special treatment for "NIL:", for which we make
|
||||
some stuff up. */
|
||||
if(fh->fh_Type == NULL)
|
||||
{
|
||||
/* Make up some stuff for this stream. */
|
||||
memset(fam->fam_FileInfo,0,sizeof(*fam->fam_FileInfo));
|
||||
|
||||
DateStamp(&fam->fam_FileInfo->fib_Date);
|
||||
|
||||
fam->fam_FileInfo->fib_DirEntryType = ST_NIL;
|
||||
}
|
||||
else if (CANNOT __safe_examine_file_handle(file,fam->fam_FileInfo))
|
||||
{
|
||||
LONG error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user