Re: [HACKERS] Win32 WEXITSTATUS too - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: [HACKERS] Win32 WEXITSTATUS too
Date
Msg-id 45B65133.6080301@dunslane.net
Whole thread Raw
In response to Re: [HACKERS] Win32 WEXITSTATUS too  ("Chuck McDevitt" <cmcdevitt@greenplum.com>)
List pgsql-patches
Chuck McDevitt wrote:
> Win32 exception codes start with a two-bit severity indication.
> 00 means "success", so nothing is wrong.
> 01 is an "informational" messages.
> 10 is a "warning" message.
> 11 is an "error".
>
> That's why the common exception codes you see start with hex C0, as they
> are "errors".
>
> The rest of the top 16 bits are the "facility" that caused the error.
> Often not filled in.
>

Almost, AAUI. The next significant bit after the severity bits is a
custom flag - 0 indicates it is a MS exception, 1 that it's from a third
party. The remaining upper 13 bits are the facility.

cheers

andrew



pgsql-patches by date:

Previous
From: "Chuck McDevitt"
Date:
Subject: Re: [HACKERS] Win32 WEXITSTATUS too
Next
From: "FAST PostgreSQL"
Date:
Subject: Re: pg_get_domaindef