Windows: Ensure consistency of error code mapping
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 20 Aug 2009 13:21:53 +0000 (09:21 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Thu, 20 Aug 2009 13:47:48 +0000 (06:47 -0700)
commit8b5846b080d455c8764450b545c1ee3ded61aa3c
treeab98bd398d69e7eb625ff0a18efb14ade25e9faf
parent995c76e73e828eac2e30b33de5ee8085e6cead0a
Windows: Ensure consistency of error code mapping

For Windows, the error mapping table used throughout the system
is located in util/errmap_nt.h.   This table was incomplete and
WINNT/afsd/cm_utils.c added additional mapping locally.  Move
said error mapping to util/errmap_nt.h.

When including afs/unified_afs.h it must be done after including
afs/errmap_nt.h.   Otherwise, undefined errors are mapped to EIO
which should not be.

LICENSE MIT

Reviewed-on: http://gerrit.openafs.org/328
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_utils.c
src/util/errmap_nt.h