Bring error signaling functions closer to ANSI spec.