[PATCH] Translate INSUFFICIENT_RESOURCES errno

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Translate INSUFFICIENT_RESOURCES errno

Brian Ford
Trivial patch to do subject.  This would have made the error in this
thread more consistent:

http://cygwin.com/ml/cygwin/2005-11/msg00110.html

2005-11-05  Brian Ford  <[hidden email]>

        * errno.cc (errmap): Handle INSUFFICIENT_RESOURCES.

--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

errno.cc.patch (782 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Translate INSUFFICIENT_RESOURCES errno

Christopher Faylor-2
On Sat, Nov 05, 2005 at 10:41:35AM -0600, Brian Ford wrote:
>Trivial patch to do subject.  This would have made the error in this
>thread more consistent:
>
>http://cygwin.com/ml/cygwin/2005-11/msg00110.html
>
>2005-11-05  Brian Ford  <[hidden email]>
>
> * errno.cc (errmap): Handle INSUFFICIENT_RESOURCES.

/usr/bin/ccache distcc /cygwin/bin/i686-pc-cygwin-g++ -c -gstabs+ -O2 -MMD -fmerge-constants -ftracer ... errno.cc
/cygnus/src/uberbaum/winsup/cygwin/errno.cc:74: error: `ERROR_INSUFFICIENT_RESOURCES' was not declared in this scope
distcc[21947] ERROR: compile /cygnus/src/uberbaum/winsup/cygwin/errno.cc on localhost failed
make: *** [errno.o] Error 1
make: *** [/cygnus/build/win32/i686-pc-cygwin/winsup/cygwin/cygwin0.dll] Error 2

I just downloaded MSDEV C++ and the Platform SDK and I don't see an
ERROR_INSUFFICIENT_RESOURCES in either of them although I do see this
referenced in MSDN in some places.  I didn't see a numeric value for
this constant in MSDN, though.  I didn't check every single reference,
however.

So, maybe I'm missing something but I'm afraid that I'll have to say
thanks-but-no-thanks for the patch.  I can't accept it if it doesn't
compile.  It would be a no-brainer if there was a value associated with
ERROR_INSUFFICIENT_RESOURCES.

cgf
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Translate INSUFFICIENT_RESOURCES errno

Brian Ford
On Sat, 5 Nov 2005, Christopher Faylor wrote:
> On Sat, Nov 05, 2005 at 10:41:35AM -0600, Brian Ford wrote:
> > * errno.cc (errmap): Handle INSUFFICIENT_RESOURCES.
>
> I don't see an ERROR_INSUFFICIENT_RESOURCES

Um..., nevermind.  Mea culpa.  Sorry to waste your time.

That corresponds to 1450 NO_SYSTEM_RESOURCES which is already present.
Tar must have gotten a different error (which I've seen before, but have
now forgotten :-().

--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...