From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Thu, 15 Mar 2001 13:54:23 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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: 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