[freetds] errno and threads
Craig A. Berry
craigberry at mac.com
Tue Aug 5 00:31:25 EDT 2003
At 11:57 PM -0400 8/4/03, James K. Lowden wrote:
> On some multithreaded platforms, errno is
>actually a macro to a function call (which prevents assignment, but allows
>typical use).
C99 requires errno to be a "modifiable lvalue," but it also says in a
footnote, "The macro errno need not be the identifier of an object.
It might expand to a modifiable lvalue resulting from a function call
(for example, *errno())."
So I think everything about your statement is correct except
"prevents assignment"; a decent implementation is going to call a
function that implements an assignable errno on a per-thread basis.
--
________________________________________
Craig A. Berry
mailto:craigberry at mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
More information about the FreeTDS
mailing list