aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-01 19:54:41 +0000
committerWerner Koch <[email protected]>2010-03-01 19:54:41 +0000
commite0f19401ad246500ee5313140c12d51a16e05668 (patch)
tree6842afa6b91f68e8c55e72ea156b3d22eed51d00 /src
parentYet another try to make it work: (diff)
downloadlibgpg-error-e0f19401ad246500ee5313140c12d51a16e05668.tar.gz
libgpg-error-e0f19401ad246500ee5313140c12d51a16e05668.zip
Add a mapping for ESPIPE on W32CE.
Diffstat (limited to 'src')
-rw-r--r--src/mkw32errmap.c5
-rw-r--r--src/w32-gettext.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/mkw32errmap.c b/src/mkw32errmap.c
index 8b56dec..722e07e 100644
--- a/src/mkw32errmap.c
+++ b/src/mkw32errmap.c
@@ -79,7 +79,6 @@ struct table_s table[] =
#ifdef RESOLVE_MACROS
#define X(a,b) \
{&mkw32errmap_marker, (a), (b)}
-
X( "EPERM", ERROR_CANNOT_MAKE ),
X( "ENOENT", ERROR_FILE_NOT_FOUND ),
X( "EINTR", ERROR_INVALID_AT_INTERRUPT_TIME ),
@@ -98,6 +97,8 @@ struct table_s table[] =
X( "EXDEV", ERROR_NOT_SAME_DEVICE ),
X( "ENODEV", ERROR_BAD_DEVICE ),
+ /* FIXME: ERROR_DEV_NOT_EXIST */
+
X( "ENOTDIR",ERROR_DIRECTORY ),
X( "EINVAL", ERROR_INVALID_PARAMETER ),
X( "ENFILE", ERROR_NO_MORE_FILES ),
@@ -111,11 +112,11 @@ struct table_s table[] =
X( "ENOLCK", ERROR_SHARING_BUFFER_EXCEEDED ),
X( "ENOSYS", ERROR_NOT_SUPPORTED ),
X( "ENOTEMPTY",ERROR_DIR_NOT_EMPTY ),
+ X( "ESPIPE", ERROR_SEEK_ON_DEVICE ),
#if 0 /* FIXME: Find appropriate mappings. */
X( "EILSEQ", ),
X( "EDOM", ),
X( "EMLINK", ),
- X( "ESPIPE", ), /* Invalid seek (seek on a pipe?) */
X( "ESRCH", ), /* No such process */
X( "E2BIG", ), /* Arg list too long */
X( "ENOEXEC", ), /* Exec format error */
diff --git a/src/w32-gettext.c b/src/w32-gettext.c
index a35af1f..da07a25 100644
--- a/src/w32-gettext.c
+++ b/src/w32-gettext.c
@@ -1837,7 +1837,7 @@ _gpg_w32_gettext_localename (void)
/* With a VALUE of 1 switch the gettext functions into utf8 mode.
That is the strings are returned without translation to the native
- charset. A VALUE of 0 swicthes back to trnslated strings. A VALUE
+ charset. A VALUE of 0 switches back to translated strings. A VALUE
of -1 returns the current value. */
int
_gpg_w32_gettext_use_utf8 (int value)