DragonFly BSD
DragonFly users List (threaded) for 2006-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: errno contain 672964768


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 9 Mar 2006 23:15:22 -0800 (PST)

:I am trying to track down why ktrace shows
:RET     select -1 errno 4 Interrupted system call
:
:But errno has 672964768.
:
:The code uses selecterr = errno or
: selecterr = (* __error());
:
:selecterr is an int.
:
:And prints out that selecterr.
:
:Any ideas on where 672964768 is coming from?
:
: Jeremy C. Reed

    Yup.  That's &errno instead of errno.  I would expect that to occur
    if 'errno' is #define'd more then once since sys/errno.h basically
    depends on errno not already being defined.  When it is multiply
    defined the trick sys/errno.h uses breaks down and you wind up with
    a mess.

    I'll bet something in the program is trying to manually #define errno.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]