[svn] assuan - r241 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Wed Jul 4 21:58:16 CEST 2007
Author: marcus
Date: 2007-07-04 21:57:47 +0200 (Wed, 04 Jul 2007)
New Revision: 241
Modified:
trunk/src/ChangeLog
trunk/src/assuan-connect.c
trunk/src/assuan-defs.h
trunk/src/assuan-io-pth.c
trunk/src/assuan.h
Log:
2007-07-04 Marcus Brinkmann <marcus at g10code.de>
Change _WIN32 to HAVE_W32_SYSTEM for consistency.
* assuan-defs.h (struct assuan_context_s): Have full peercred
structure even if not HAVE_SO_PEERCRED, but not if
HAVE_W32_SYSTEM.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2007-07-04 09:34:54 UTC (rev 240)
+++ trunk/src/ChangeLog 2007-07-04 19:57:47 UTC (rev 241)
@@ -1,3 +1,11 @@
+2007-07-04 Marcus Brinkmann <marcus at g10code.de>
+
+ Change _WIN32 to HAVE_W32_SYSTEM for consistency.
+
+ * assuan-defs.h (struct assuan_context_s): Have full peercred
+ structure even if not HAVE_SO_PEERCRED, but not if
+ HAVE_W32_SYSTEM.
+
2007-06-18 Werner Koch <wk at g10code.com>
* assuan-logging.c (load_libgpg_error, _assuan_gpg_strerror_r)
Modified: trunk/src/assuan-connect.c
===================================================================
--- trunk/src/assuan-connect.c 2007-07-04 09:34:54 UTC (rev 240)
+++ trunk/src/assuan-connect.c 2007-07-04 19:57:47 UTC (rev 241)
@@ -62,7 +62,7 @@
/* Return user credentials. PID, UID and GID amy be gived as NULL if
you are not interested in this value. For getting the pid of the
peer the assuan_get_pid is usually better suited. */
-#ifndef _WIN32
+#ifndef HAVE_W32_SYSTEM
assuan_error_t
assuan_get_peercred (assuan_context_t ctx, pid_t *pid, uid_t *uid, gid_t *gid)
{
@@ -78,4 +78,4 @@
*gid = ctx->peercred.gid;
return 0;
}
-#endif /*_WIN32*/
+#endif /* HAVE_W32_SYSTEM */
Modified: trunk/src/assuan-defs.h
===================================================================
--- trunk/src/assuan-defs.h 2007-07-04 09:34:54 UTC (rev 240)
+++ trunk/src/assuan-defs.h 2007-07-04 19:57:47 UTC (rev 241)
@@ -140,14 +140,14 @@
int listen_fd; /* The fd we are listening on (used by socket servers) */
int connected_fd; /* helper */
+#ifndef HAVE_W32_SYSTEM
struct {
- int valid; /* Whether this structure has valid information. */
-#ifdef HAVE_SO_PEERCRED
+ int valid; /* Whether this structure has valid information. */
pid_t pid; /* The pid of the peer. */
uid_t uid; /* The uid of the peer. */
gid_t gid; /* The gid of the peer. */
-#endif /*HAVE_SO_PEERCRED*/
} peercred;
+#endif /* HAVE_W32_SYSTEM */
/* Used for Unix domain sockets. */
struct sockaddr_un myaddr;
@@ -284,7 +284,7 @@
ssize_t _assuan_simple_read (assuan_context_t ctx, void *buffer, size_t size);
ssize_t _assuan_simple_write (assuan_context_t ctx, const void *buffer,
size_t size);
-#ifdef _WIN32
+#ifdef HAVE_W32_SYSTEM
int _assuan_simple_sendmsg (assuan_context_t ctx, void *msg);
int _assuan_simple_recvmsg (assuan_context_t ctx, void *msg);
#else
Modified: trunk/src/assuan-io-pth.c
===================================================================
--- trunk/src/assuan-io-pth.c 2007-07-04 09:34:54 UTC (rev 240)
+++ trunk/src/assuan-io-pth.c 2007-07-04 19:57:47 UTC (rev 241)
@@ -65,7 +65,7 @@
return pth_write (ctx->outbound.fd, buffer, size);
}
-#ifdef _WIN32
+#ifdef HAVE_W32_SYSTEM
int
_assuan_simple_sendmsg (assuan_context_t ctx, void *msg)
#else
@@ -106,7 +106,7 @@
#endif
}
-#ifdef _WIN32
+#ifdef HAVE_W32_SYSTEM
int
_assuan_simple_recvmsg (assuan_context_t ctx, void *msg)
#else
Modified: trunk/src/assuan.h
===================================================================
--- trunk/src/assuan.h 2007-07-04 09:34:54 UTC (rev 240)
+++ trunk/src/assuan.h 2007-07-04 19:57:47 UTC (rev 241)
@@ -425,7 +425,7 @@
/*-- assuan-connect.c --*/
void assuan_disconnect (assuan_context_t ctx);
pid_t assuan_get_pid (assuan_context_t ctx);
-#ifndef _WIN32
+#ifndef HAVE_W32_SYSTEM
assuan_error_t assuan_get_peercred (assuan_context_t ctx,
pid_t *pid, uid_t *uid, gid_t *gid);
#endif
More information about the Gnupg-commits
mailing list