This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Minor additions to winbase.h and ntdll.def


> > Winbase.h
> > - Changed NMPWAIT_WAIT_FOREVER constant from (-1) to 0xffffffff (like in
> Why?

I have a piece of own code that passes NMPWAIT_WAIT_FOREVER as a parameter
to CallNamedPipe. The compiler gave me a warning because the function
prototype expected a DWORD value which by definition cannot be negative. So
it's obviously a (minor) bug in cygwin's header files, which I thought the
cygwin folks might be interested in to fix.

> Looking at Microsoft's header files and making changes to w32api is not
> allowed.

Technically, I didn't do it that way. I just mentioned that to avoid
discussions like that one, since cygwin's headers shouldn't differ from
Microsoft's headers regarding the value of numeric constants.

> You'll have to find the MSDN documentation and provide the
> references.

There are no references in MSDN that show the numeric value of that
constant - at least I can't find any. So I wonder how (-1) got there in the
first place.

Hartmut


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]