{lp,cb}Reserved2 under Windows 7 and file descriptors

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Mon Sep 13 06:11:00 GMT 2010

On Sun, Sep 12, 2010 at 03:55:12PM -0700, Daniel Colascione wrote:
>On 9/12/10 3:41 PM, Christopher Faylor wrote:
>> So this wasn't just an idea which went unimplemented waiting for tuits.
>> It went unimplemented because I thought it was a bad idea.
>It is a lie, but it's also a distinction without a difference.  What
>kind of misbehavior could we expect to be caused by lying to a program
>this way? Most programs that care to use console-specific functionality
>will test for a console by using GetFileType() or just get the console
>by opening "CONIN$". It would be very unusual to make decisions about
>win32-level functionality based on a call to the C runtime file
>descriptor library.

No.  It wouldn't.

>Furthermore, in the rare instance that a program *does* misbehave, by
>simply running "cat | program", we restore the old behavior.
>The one case I can see that might be a problem is the
>"Console and Port I/O" family of functions, at

Those are what I was thinking of actually.

I'm not going to keep looping on this argument, making the same points
over and over.  I'm not willing to add this particular functionality to


Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list