diff options
author | Marcus Brinkmann <[email protected]> | 2007-07-04 20:03:39 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2007-07-04 20:03:39 +0000 |
commit | a63c5c013771799432dadec5e2f0aabd48db6af4 (patch) | |
tree | fad748a885a93d27c78fa043a87a4ad3753baee3 /assuan/assuan-defs.h | |
parent | 2007-07-04 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-a63c5c013771799432dadec5e2f0aabd48db6af4.tar.gz gpgme-a63c5c013771799432dadec5e2f0aabd48db6af4.zip |
2007-07-04 Marcus Brinkmann <[email protected]>
* assuan/: Update files to 2007-07-04 version of assuan.
Diffstat (limited to '')
-rw-r--r-- | assuan/assuan-defs.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/assuan/assuan-defs.h b/assuan/assuan-defs.h index fa04f0b2..33cdfa3d 100644 --- a/assuan/assuan-defs.h +++ b/assuan/assuan-defs.h @@ -140,12 +140,14 @@ struct assuan_context_s 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. */ + 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. */ } peercred; +#endif /* HAVE_W32_SYSTEM */ /* Used for Unix domain sockets. */ struct sockaddr_un myaddr; @@ -259,6 +261,8 @@ void _assuan_free (void *p); #ifdef HAVE_W32_SYSTEM const char *_assuan_w32_strerror (int ec); #define w32_strerror(e) _assuan_w32_strerror ((e)) +int _assuan_gpg_strerror_r (unsigned int err, char *buf, size_t buflen); +const char *_assuan_gpg_strsource (unsigned int err); #endif /*HAVE_W32_SYSTEM*/ @@ -280,8 +284,13 @@ pid_t _assuan_waitpid (pid_t pid, int *status, int options); 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 HAVE_W32_SYSTEM +int _assuan_simple_sendmsg (assuan_context_t ctx, void *msg); +int _assuan_simple_recvmsg (assuan_context_t ctx, void *msg); +#else ssize_t _assuan_simple_sendmsg (assuan_context_t ctx, struct msghdr *msg); ssize_t _assuan_simple_recvmsg (assuan_context_t ctx, struct msghdr *msg); +#endif /*-- assuan-socket.c --*/ int _assuan_close (int fd); |