mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let all
directories default to c:/gnupg. Require libassuan 0.6.9. * gpg-agent.c (main) [W32]: Now that Mutexes work we can remove the pth_init kludge. (main): Add new options --[no-]use-standard-socket. (check_for_running_agent): Check whether it is running on the standard socket. * sysutils.h [W32]: Define sleep. * util.h: Add prototype for mkdtemp. * call-agent.c (start_agent): Before starting a pipe server start to connect to a server on the standard socket. Use PATHSEP * call-dirmngr.c (start_dirmngr): Use PATHSEP. * import.c: Include unistd.h for dup and close.
This commit is contained in:
parent
f105ceb39c
commit
581f5ddb17
18 changed files with 272 additions and 116 deletions
|
@ -1,5 +1,8 @@
|
|||
2004-12-20 Werner Koch <wk@g10code.com>
|
||||
|
||||
* sysutils.h [W32]: Define sleep.
|
||||
* util.h: Add prototype for mkdtemp.
|
||||
|
||||
* membuf.c (put_membuf): Wipe out buffer after a failed realloc.
|
||||
|
||||
2004-12-19 Werner Koch <wk@g10code.com>
|
||||
|
|
|
@ -35,7 +35,8 @@
|
|||
# define mkdir(a,b) mkdir(a)
|
||||
#endif
|
||||
|
||||
char *mkdtemp(char *template)
|
||||
char *
|
||||
mkdtemp (char *template)
|
||||
{
|
||||
int attempts,idx,count=0;
|
||||
unsigned char *ch;
|
||||
|
|
|
@ -28,11 +28,19 @@ const unsigned char *get_session_marker (size_t *rlen);
|
|||
int check_permissions (const char *path,int extension,int checkonly);
|
||||
|
||||
#ifdef HAVE_W32_SYSTEM
|
||||
/* Windows declares sleep as obsolete, but provides a definition for
|
||||
_sleep but non for the still existing sleep. */
|
||||
#define sleep(a) _sleep ((a))
|
||||
|
||||
/*-- w32reg.c --*/
|
||||
char *read_w32_registry_string( const char *root,
|
||||
const char *dir, const char *name );
|
||||
int write_w32_registry_string(const char *root, const char *dir,
|
||||
const char *name, const char *value);
|
||||
|
||||
#endif /*HAVE_W32_SYSTEM*/
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /*GNUPG_COMMON_SYSUTILS_H*/
|
||||
|
|
|
@ -150,6 +150,10 @@ char *strsep (char **stringp, const char *delim);
|
|||
#ifndef HAVE_TTYNAME
|
||||
char *ttyname (int fd);
|
||||
#endif
|
||||
#ifndef HAVE_MKDTEMP
|
||||
char *mkdtemp (char *template);
|
||||
#endif
|
||||
|
||||
|
||||
/*-- some macros to replace ctype ones and avoid locale problems --*/
|
||||
#define spacep(p) (*(p) == ' ' || *(p) == '\t')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue