[svn] assuan - r279 - in trunk: . doc src

svn author wk cvs at cvs.gnupg.org
Wed Dec 12 17:29:39 CET 2007


Author: wk
Date: 2007-12-12 17:29:37 +0100 (Wed, 12 Dec 2007)
New Revision: 279

Modified:
   trunk/AUTHORS
   trunk/ChangeLog
   trunk/NEWS
   trunk/TODO
   trunk/config.guess
   trunk/config.sub
   trunk/configure.ac
   trunk/doc/ChangeLog
   trunk/doc/assuan.texi
   trunk/src/ChangeLog
   trunk/src/assuan-pipe-connect.c
Log:
Documentaion updates.
Preparing a release.


Modified: trunk/AUTHORS
===================================================================
--- trunk/AUTHORS	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/AUTHORS	2007-12-12 16:29:37 UTC (rev 279)
@@ -2,7 +2,7 @@
 Maintainer: Werner Koch <wk at gnupg.org>
 Bug reports: gnupg-devel at gnupg.org
 Security related bug reports: security at gnupg.org
-License: LGPLv3+
+License: LGPLv2.1+
 
 
 Werner Koch  <wk at gnupg.org>

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/ChangeLog	2007-12-12 16:29:37 UTC (rev 279)
@@ -1,3 +1,9 @@
+2007-12-12  Werner Koch  <wk at g10code.com>
+
+	Released 1.0.4.
+
+	* config.sub, config.guess: Update to version 2007-11-19.
+
 2007-08-24  Werner Koch  <wk at g10code.com>
 
 	Released 1.0.3.

Modified: trunk/NEWS
===================================================================
--- trunk/NEWS	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/NEWS	2007-12-12 16:29:37 UTC (rev 279)
@@ -1,4 +1,4 @@
-Noteworthy changes in version 1.0.4
+Noteworthy changes in version 1.0.4 (2007-12-12)
 ------------------------------------------------
 
  * New socket wrapper functions to support Unix domain sockets under

Modified: trunk/TODO
===================================================================
--- trunk/TODO	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/TODO	2007-12-12 16:29:37 UTC (rev 279)
@@ -13,4 +13,4 @@
   See Peter O'Gorman's mail.
 
 * W32
-** Check what kind of fd we use with inbound.fd etc.
\ No newline at end of file
+** Check what kind of fd we use with inbound.fd etc.

Modified: trunk/config.guess
===================================================================
--- trunk/config.guess	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/config.guess	2007-12-12 16:29:37 UTC (rev 279)
@@ -4,11 +4,11 @@
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 #   Inc.
 
-timestamp='2007-05-17'
+timestamp='2007-11-19'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful, but
@@ -17,7 +17,9 @@
 # General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
 #
 # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a
@@ -328,7 +330,7 @@
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 	exit ;;
-    i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*)
+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
 	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 	exit ;;
     sun4*:SunOS:6*:*)
@@ -791,7 +793,7 @@
 	exit ;;
     *:Interix*:[3456]*)
     	case ${UNAME_MACHINE} in
-	    x86) 
+	    x86)
 		echo i586-pc-interix${UNAME_RELEASE}
 		exit ;;
 	    EM64T | authenticamd)
@@ -952,8 +954,8 @@
     x86_64:Linux:*:*)
 	echo x86_64-unknown-linux-gnu
 	exit ;;
-    xtensa:Linux:*:*)
-    	echo xtensa-unknown-linux-gnu
+    xtensa*:Linux:*:*)
+    	echo ${UNAME_MACHINE}-unknown-linux-gnu
 	exit ;;
     i*86:Linux:*:*)
 	# The BFD linker knows what the default object file format is, so

Modified: trunk/config.sub
===================================================================
--- trunk/config.sub	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/config.sub	2007-12-12 16:29:37 UTC (rev 279)
@@ -4,7 +4,7 @@
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 #   Inc.
 
-timestamp='2007-06-28'
+timestamp='2007-11-19'
 
 # This file is (in principle) common to ALL GNU software.
 # The presence of a machine in this file suggests that SOME GNU software
@@ -12,7 +12,7 @@
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
@@ -21,7 +21,9 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
 #
 # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a
@@ -367,10 +369,14 @@
 	| v850-* | v850e-* | vax-* \
 	| we32k-* \
 	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
-	| xstormy16-* | xtensa-* \
+	| xstormy16-* | xtensa*-* \
 	| ymp-* \
 	| z8k-*)
 		;;
+	# Recognize the basic CPU types without company name, with glob match.
+	xtensa*)
+		basic_machine=$basic_machine-unknown
+		;;
 	# Recognize the various machine names and aliases which stand
 	# for a CPU type and a company and sometimes even an OS.
 	386bsd)

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/configure.ac	2007-12-12 16:29:37 UTC (rev 279)
@@ -25,7 +25,7 @@
 # Set my_issvn to "yes" for non-released code.  Remember to run an
 # "svn up" and "autogen.sh" right before creating a distribution.
 m4_define([my_version], [1.0.4])
-m4_define([my_issvn], [yes])
+m4_define([my_issvn], [no])
 
 m4_define([svn_revision], m4_esyscmd([echo -n $( (svn info 2>/dev/null \
             || echo 'Revision: 0')|sed -n '/^Revision:/ {s/[^0-9]//gp;q;}')]))

Modified: trunk/doc/ChangeLog
===================================================================
--- trunk/doc/ChangeLog	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/doc/ChangeLog	2007-12-12 16:29:37 UTC (rev 279)
@@ -1,3 +1,8 @@
+2007-11-14  Werner Koch  <wk at g10code.com>
+
+	* assuan.texi (Client code): Describe the new flag bit 7 of the
+	pipe_server_connect_ext function.
+
 2007-10-18  Marcus Brinkmann  <marcus at g10code.de>
 
 	* assuan.texi (Client requests): Document HELP.

Modified: trunk/doc/assuan.texi
===================================================================
--- trunk/doc/assuan.texi	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/doc/assuan.texi	2007-12-12 16:29:37 UTC (rev 279)
@@ -713,13 +713,26 @@
 received is @code{0}.  Such a fork callback is useful to release
 additional resources not to be used by the child.
 
- at var{flags} controls how the function acts: With a value of @code{0}
-it expects a simple pipe based server and behaves similar to
- at code{assuan_pipe_connect}.  With a value of @code{1} a sever based on
-full-duplex pipes is expected.  Such pipes are usually created using
-the @code{socketpair} function.  It also enables features only
-available with such servers.
+ at noindent
+ at var{flags} is a bit vector and controls how the function acts:
 
+ at table @code
+
+ at item bit 0 (value 1)
+If cleared a simple pipe based server is expected and the function
+behaves similar to @code{assuan_pipe_connect}.  
+
+If set a server based on full-duplex pipes is expected. Such pipes are
+usually created using the @code{socketpair} function.  It also enables
+features only available with such servers.
+
+ at item bit 7 (value 128)
+If set and there is a need to start ther 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
+
+ at end table
+
 @end deftypefun
 
 If you are using a long running server listening either on a TCP or a

Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/src/ChangeLog	2007-12-12 16:29:37 UTC (rev 279)
@@ -4,6 +4,13 @@
 	value from callback function.
 	Suggested by Ben Kibbey <bjk at luxsci.net>.
 
+2007-11-14  Werner Koch  <wk at g10code.com>
+
+	* assuan-pipe-connect.c (pipe_connect_unix): Add dummy arg FLAGS.
+	(pipe_connect_w32): Add arg FLAGS and start process detached if
+	requested.  Changed callers to pass 0.
+	(assuan_pipe_connect_ext): Pass FLAG.
+
 2007-11-12  Marcus Brinkmann  <marcus at g10code.de>
 
 	* assuan-inquire.c (_assuan_inquire_ext_cb): Clear

Modified: trunk/src/assuan-pipe-connect.c
===================================================================
--- trunk/src/assuan-pipe-connect.c	2007-11-23 17:59:56 UTC (rev 278)
+++ trunk/src/assuan-pipe-connect.c	2007-12-12 16:29:37 UTC (rev 279)
@@ -1,5 +1,6 @@
 /* assuan-pipe-connect.c - Establish a pipe connection (client) 
- * Copyright (C) 2001, 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2002, 2003, 2005, 2006,
+ *               2007 Free Software Foundation, Inc.
  *
  * This file is part of Assuan.
  *
@@ -181,13 +182,15 @@
                    const char *name, const char *const argv[],
                    int *fd_child_list,
                    void (*atfork) (void *opaque, int reserved),
-                   void *atforkvalue)
+                   void *atforkvalue, unsigned int flags)
 {
   assuan_error_t err;
   int rp[2];
   int wp[2];
   char mypidstr[50];
 
+  (void)flags;
+
   if (!ctx || !name || !argv || !argv[0])
     return _assuan_error (ASSUAN_Invalid_Value);
 
@@ -647,7 +650,7 @@
                   const char *name, const char *const argv[],
                   int *fd_child_list,
                   void (*atfork) (void *opaque, int reserved),
-                  void *atforkvalue)
+                  void *atforkvalue, unsigned int flags)
 {
   assuan_error_t err;
   assuan_fd_t rp[2];
@@ -771,6 +774,7 @@
                       &sec_attr,            /* Thread security attributes.  */
                       TRUE,                 /* Inherit handles.  */
                       (CREATE_DEFAULT_ERROR_MODE
+                       | ((flags & 128)? DETACHED_PROCESS : 0)
                        | GetPriorityClass (GetCurrentProcess ())
                        | CREATE_SUSPENDED), /* Creation flags.  */
                       NULL,                 /* Environment.  */
@@ -823,7 +827,7 @@
 assuan_pipe_connect (assuan_context_t *ctx, const char *name,
 		     const char *const argv[], int *fd_child_list)
 {
-  return pipe_connect (ctx, name, argv, fd_child_list, NULL, NULL);
+  return pipe_connect (ctx, name, argv, fd_child_list, NULL, NULL, 0);
 }
 
 
@@ -835,7 +839,7 @@
                       void (*atfork) (void *opaque, int reserved),
                       void *atforkvalue)
 {
-  return pipe_connect (ctx, name, argv, fd_child_list, atfork, atforkvalue);
+  return pipe_connect (ctx, name, argv, fd_child_list, atfork, atforkvalue, 0);
 }
 
 
@@ -848,10 +852,20 @@
    as the second argument. The ATFORK function should only act if the
    second value is 0.
 
-   For now FLAGS may either take the value 0 to behave like
-   assuan_pipe_connect2 or 1 to enable the described full-duplex
-   socket behaviour.
+   FLAGS is a bit vector and controls how the function acts:
+   Bit 0: If cleared a simple pipe based server is expected and the
+          function behaves similar to `assuan_pipe_connect'.
 
+          If set a server based on full-duplex pipes is expected. Such
+          pipes are usually created using the `socketpair' function.
+          It also enables features only available with such servers.
+
+   Bit 7: If set and there is a need to start ther 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
+
+
    If NAME as well as ARGV are NULL, no exec is done but the same
    process is continued.  However all file descriptors are closed and
    some special environment variables are set. To let the caller
@@ -874,6 +888,7 @@
 #endif
     }
   else
-    return pipe_connect (ctx, name, argv, fd_child_list, atfork, atforkvalue);
+    return pipe_connect (ctx, name, argv, fd_child_list, atfork, atforkvalue,
+                         flags);
 }
 




More information about the Gnupg-commits mailing list