diff options
author | Werner Koch <wk@gnupg.org> | 2007-12-12 16:29:37 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-12-12 16:29:37 +0000 |
commit | 0d29897055ae5ca5428e8aff3f7e6ac183d0e4b0 (patch) | |
tree | 556b044081be347121a1aa3d8321c2e9205f1eb6 | |
parent | 5940007d5a3fdc631ef9736fcc34831f50d454d2 (diff) | |
download | libassuan-0d29897055ae5ca5428e8aff3f7e6ac183d0e4b0.tar.gz |
Documentaion updates.libassuan-1.0.4
Preparing a release.
-rw-r--r-- | AUTHORS | 2 | ||||
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rwxr-xr-x | config.guess | 16 | ||||
-rwxr-xr-x | config.sub | 14 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | doc/ChangeLog | 5 | ||||
-rw-r--r-- | doc/assuan.texi | 25 | ||||
-rw-r--r-- | src/ChangeLog | 7 | ||||
-rw-r--r-- | src/assuan-pipe-connect.c | 33 |
11 files changed, 84 insertions, 30 deletions
@@ -2,7 +2,7 @@ Package: libassuan Maintainer: Werner Koch <wk@gnupg.org> Bug reports: gnupg-devel@gnupg.org Security related bug reports: security@gnupg.org -License: LGPLv3+ +License: LGPLv2.1+ Werner Koch <wk@gnupg.org> @@ -1,3 +1,9 @@ +2007-12-12 Werner Koch <wk@g10code.com> + + Released 1.0.4. + + * config.sub, config.guess: Update to version 2007-11-19. + 2007-08-24 Werner Koch <wk@g10code.com> Released 1.0.3. @@ -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 @@ -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. diff --git a/config.guess b/config.guess index 4ba338e..7fef1a3 100755 --- a/config.guess +++ b/config.guess @@ -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 @@ timestamp='2007-05-17' # 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 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 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 @@ EOF exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in - x86) + x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd) @@ -952,8 +954,8 @@ EOF 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 @@ -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 @@ timestamp='2007-06-28' # # 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 @@ timestamp='2007-06-28' # 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 @@ case $basic_machine in | 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) diff --git a/configure.ac b/configure.ac index 1fef60e..d33856e 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ min_automake_version="1.10" # 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;}')])) diff --git a/doc/ChangeLog b/doc/ChangeLog index 0269c27..f5fa9d0 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2007-11-14 Werner Koch <wk@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@g10code.de> * assuan.texi (Client requests): Document HELP. diff --git a/doc/assuan.texi b/doc/assuan.texi index d444d4d..c8a1ca0 100644 --- a/doc/assuan.texi +++ b/doc/assuan.texi @@ -713,12 +713,25 @@ argument. That function should only act if the second argument it received is @code{0}. Such a fork callback is useful to release additional resources not to be used by the child. -@var{flags} controls how the function acts: With a value of @code{0} -it expects a simple pipe based server and behaves similar to -@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. +@noindent +@var{flags} is a bit vector and controls how the function acts: + +@table @code + +@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. + +@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 + +@end table @end deftypefun diff --git a/src/ChangeLog b/src/ChangeLog index 9bc2f08..6692040 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,6 +4,13 @@ value from callback function. Suggested by Ben Kibbey <bjk@luxsci.net>. +2007-11-14 Werner Koch <wk@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@g10code.de> * assuan-inquire.c (_assuan_inquire_ext_cb): Clear diff --git a/src/assuan-pipe-connect.c b/src/assuan-pipe-connect.c index 6ba3e71..05a3be9 100644 --- a/src/assuan-pipe-connect.c +++ b/src/assuan-pipe-connect.c @@ -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 @@ pipe_connect_unix (assuan_context_t *ctx, 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 @@ pipe_connect_w32 (assuan_context_t *ctx, 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 @@ pipe_connect_w32 (assuan_context_t *ctx, &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_error_t 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 @@ assuan_pipe_connect2 (assuan_context_t *ctx, 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,9 +852,19 @@ assuan_pipe_connect2 (assuan_context_t *ctx, 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 @@ -874,6 +888,7 @@ assuan_pipe_connect_ext (assuan_context_t *ctx, #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); } |