delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/03/15/13:54:40

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Thu, 15 Mar 2001 13:54:23 -0500
MIME-Version: 1.0
Subject: Re: zero fill the eof gap (complete patch)
Message-ID: <3AB0C98F.28988.49F0A@localhost>
References: <3AAF65F2 DOT 23962 DOT 46053A AT localhost>
In-reply-to: <Pine.SUN.3.91.1010315103653.6041D-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

> 
> Ah, sorry, I forgot that.
> 
> However, that means file handles inherited from the parent process,
> including redirected standard handles, will not be zero-filled.  Perhaps 
> we should handle those as well, somehow.

I think so too. There are two solutions I can think of. One is to add the 
call '__set_fd_properties(fd, 0, 0)' to [l]lseek.c to create the structure. 
Another is to instead use a flag with '__file_handle_modes'.

Mark

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019