aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-06-07 07:16:14 +0000
committerNIIBE Yutaka <[email protected]>2022-06-07 07:16:14 +0000
commit13e7650f4924cfdf94fad72f47f62a88e1c835ec (patch)
tree247f09bb8b5f2017e61b0f6c73216383812c9855 /src/init.c
parentMerge branch 'master' of ssh+git://playfair.gnupg.org/git/libgpg-error (diff)
downloadlibgpg-error-13e7650f4924cfdf94fad72f47f62a88e1c835ec.tar.gz
libgpg-error-13e7650f4924cfdf94fad72f47f62a88e1c835ec.zip
Remove WindowsCE support.
* Makefile.am: Remove contrib/ChangeLog-2011. * configure.ac (have_w32ce_system): Remove. (HAVE_W32CE_SYSTEM): Remove. * contrib/*: Remove. * src/w32ce-add.h: Remove * src/Makefile.am [HAVE_W32CE_SYSTEM]: Remove. * src/estream-printf.c [HAVE_W32CE_SYSTEM]: Remove. * src/estream.c: Likewise. * src/gpg-error.def.in: Likewise. * src/gpgrt-int.h: Fix comments. * src/init.c: Remove HAVE_W32CE_SYSTEM support. * src/init.h: Likewise. * src/spawn-posix.c: Likewise. * src/spawn-w32.c: Likewise. * src/sysutils.c: Likewise. * src/w32-estream.c: Likewise. * src/w32-reg.c: Likewise. * tests/Makefile.am: Remove HAVE_W32CE_SYSTEM support. -- GnuPG-bug-id: 5912 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/init.c b/src/init.c
index 2d9f7ab..493e3ba 100644
--- a/src/init.c
+++ b/src/init.c
@@ -30,17 +30,6 @@
#include "gettext.h"
#include "init.h"
-#ifdef HAVE_W32CE_SYSTEM
-# include "mkw32errmap.map.c" /* Generated map_w32codes () */
-# ifndef TLS_OUT_OF_INDEXES
-# define TLS_OUT_OF_INDEXES 0xFFFFFFFF
-# endif
-# ifndef __MINGW32CE__
-# /* Replace the Mingw32CE provided abort function. */
-# define abort() do { TerminateProcess (GetCurrentProcess(), 8); } while (0)
-# endif
-#endif
-
/* Locale directory support. */
@@ -426,11 +415,7 @@ _gpgrt_free (void *a)
void
_gpg_err_set_errno (int err)
{
-#ifdef HAVE_W32CE_SYSTEM
- SetLastError (err);
-#else /*!HAVE_W32CE_SYSTEM*/
errno = err;
-#endif /*!HAVE_W32CE_SYSTEM*/
}
@@ -649,54 +634,6 @@ get_tls (void)
}
-/* Return the value of the ERRNO variable. This needs to be a
- function so that we can have a per-thread ERRNO. This is used only
- on WindowsCE because that OS misses an errno. */
-#ifdef HAVE_W32CE_SYSTEM
-int
-_gpg_w32ce_get_errno (void)
-{
- return map_w32codes ( GetLastError () );
-}
-#endif /*HAVE_W32CE_SYSTEM*/
-
-
-/* Replacement strerror function for WindowsCE. */
-#ifdef HAVE_W32CE_SYSTEM
-char *
-_gpg_w32ce_strerror (int err)
-{
- struct tls_space_s *tls = get_tls ();
- wchar_t tmpbuf[STRBUFFER_SIZE];
- int n;
-
- if (err == -1)
- err = _gpg_w32ce_get_errno ();
-
- /* Note: On a German HTC Touch Pro2 device I also tried
- LOCALE_USER_DEFAULT and LOCALE_SYSTEM_DEFAULT - both returned
- English messages. */
- if (FormatMessageW (FORMAT_MESSAGE_FROM_SYSTEM, NULL, err,
- MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
- tmpbuf, STRBUFFER_SIZE -1,
- NULL))
- {
- n = WideCharToMultiByte (CP_UTF8, 0, tmpbuf, -1,
- tls->strerror_buffer,
- sizeof tls->strerror_buffer -1,
- NULL, NULL);
- }
- else
- n = -1;
-
- if (n < 0)
- snprintf (tls->strerror_buffer, sizeof tls->strerror_buffer -1,
- "[w32err=%d]", err);
- return tls->strerror_buffer;
-}
-#endif /*HAVE_W32CE_SYSTEM*/
-
-
/* Entry point called by the DLL loader. */
#ifdef DLL_EXPORT
int WINAPI