[svn] assuan - r351 - in trunk: . doc src
svn author wk
cvs at cvs.gnupg.org
Fri Jan 22 19:55:16 CET 2010
Author: wk
Date: 2010-01-22 19:55:16 +0100 (Fri, 22 Jan 2010)
New Revision: 351
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/configure.ac
trunk/doc/assuan.texi
trunk/src/ChangeLog
trunk/src/assuan-pipe-connect.c
trunk/src/setenv.c
trunk/src/system.c
Log:
Changes to build for W32CE - does not yet work, though.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-01-22 15:52:40 UTC (rev 350)
+++ trunk/ChangeLog 2010-01-22 18:55:16 UTC (rev 351)
@@ -1,12 +1,8 @@
2010-01-22 Werner Koch <wk at g10code.com>
- * (libtool):
-
* configure.ac: Require libgpg-error 1.8.
(HAVE_W32CE_SYSTEM): New am_defines and am_conditionals.
-
* ltmain.sh (wrappers_required): Don't set for mingw32ce.
-
* autogen.sh: Add option --build-w32ce. Remove --disable-shared
from --build-w32.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2010-01-22 15:52:40 UTC (rev 350)
+++ trunk/src/ChangeLog 2010-01-22 18:55:16 UTC (rev 351)
@@ -1,5 +1,12 @@
2010-01-22 Werner Koch <wk at g10code.com>
+ * setenv.c [W32CE]: Make it a dummy.
+
+ * assuan-pipe-connect.c: Remove signal.h.
+
+ * system.c (__assuan_spawn): Use CreateFileW.
+ (DETACHED_PROCESS) [W32CE]: Define to 0.
+
* assuan-socket.c (read_port_and_nonce): Replace ENOFILE by a
proper ENOENT.
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2010-01-22 15:52:40 UTC (rev 350)
+++ trunk/NEWS 2010-01-22 18:55:16 UTC (rev 351)
@@ -1,7 +1,7 @@
Noteworthy changes in version 2.0.1 (unreleased)
------------------------------------------------
- * Under development.
+ Under development:
* Support for WindowsCE.
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2010-01-22 15:52:40 UTC (rev 350)
+++ trunk/configure.ac 2010-01-22 18:55:16 UTC (rev 351)
@@ -145,7 +145,7 @@
CFLAGS="$CFLAGS -fPIC -DPIC"
fi
;;
- *-mingw32de*)
+ *-mingw32ce*)
have_dosish_system=yes
have_w32_system=yes
have_w32ce_system=yes
@@ -295,7 +295,6 @@
AC_REPLACE_FUNCS(putc_unlocked)
AC_REPLACE_FUNCS(memrchr)
AC_REPLACE_FUNCS(stpcpy)
-# Check for unistd.h for setenv replacement function.
AC_CHECK_HEADERS(unistd.h)
AC_REPLACE_FUNCS(setenv)
AC_REPLACE_FUNCS(vasprintf)
Modified: trunk/doc/assuan.texi
===================================================================
--- trunk/doc/assuan.texi 2010-01-22 15:52:40 UTC (rev 350)
+++ trunk/doc/assuan.texi 2010-01-22 18:55:16 UTC (rev 351)
@@ -921,7 +921,7 @@
If set and there is a need to start the server it will be started as a
background process. This flag is useful under W32 systems, so that no
new console is created and pops up a console window when starting the
-server.
+server. On W32CE systems this flag is ignored.
@end table
@item pid_t (*waitpid) (assuan_context_t ctx, pid_t pid, int action, int *status, int options)
@@ -1087,7 +1087,7 @@
If set and there is a need to start the server it will be started as a
background process. This flag is useful under W32 systems, so that no
new console is created and pops up a console window when starting the
-server.
+server. On W32CE systems this flag is ignored.
@end table
@end deftypefun
Modified: trunk/src/assuan-pipe-connect.c
===================================================================
--- trunk/src/assuan-pipe-connect.c 2010-01-22 15:52:40 UTC (rev 350)
+++ trunk/src/assuan-pipe-connect.c 2010-01-22 18:55:16 UTC (rev 351)
@@ -24,7 +24,11 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <signal.h>
+/* On Windows systems signal.h is not needed and even not supported on
+ WindowsCE. */
+#ifndef HAVE_DOSISH_SYSTEM
+# include <signal.h>
+#endif
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
Modified: trunk/src/setenv.c
===================================================================
--- trunk/src/setenv.c 2010-01-22 15:52:40 UTC (rev 350)
+++ trunk/src/setenv.c 2010-01-22 18:55:16 UTC (rev 351)
@@ -20,6 +20,8 @@
# include <config.h>
#endif
+#ifndef HAVE_W32CE_SYSTEM
+
#define setenv _assuan_setenv
#define unsetenv _assuan_unsetenv
#define clearenv _assuan_clearenv
@@ -352,4 +354,4 @@
weak_alias (__clearenv, clearenv)
#endif
-
+#endif /*!HAVE_W32CE_SYSTEM*/
Modified: trunk/src/system.c
===================================================================
--- trunk/src/system.c 2010-01-22 15:52:40 UTC (rev 350)
+++ trunk/src/system.c 2010-01-22 18:55:16 UTC (rev 351)
@@ -632,7 +632,7 @@
}
if (!fdp || *fdp == ASSUAN_INVALID_FD)
{
- nullfd = CreateFile ("nul", GENERIC_WRITE,
+ nullfd = CreateFileW (L"nul", GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, 0, NULL);
if (nullfd == INVALID_HANDLE_VALUE)
@@ -648,7 +648,9 @@
else
si.hStdError = fd;
-
+#ifdef HAVE_W32CE_SYSTEM
+# define DETACHED_PROCESS (0)
+#endif
/* Note: We inherit all handles flagged as inheritable. This seems
to be a security flaw but there seems to be no way of selecting
handles to inherit. */
More information about the Gnupg-commits
mailing list