diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-09-29 22:04:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-09-29 22:04:20 +0000 |
commit | ed099f029e8b8b61a48329586fc00035af7f2287 (patch) | |
tree | 73473725e07a1990b98f7affbc8efa0a6b7a7f73 /nscd/nscd-client.h | |
parent | 41a5a38276bfe459677d68e976e5fb669b3653c2 (diff) | |
download | glibc-ed099f029e8b8b61a48329586fc00035af7f2287.tar glibc-ed099f029e8b8b61a48329586fc00035af7f2287.tar.gz glibc-ed099f029e8b8b61a48329586fc00035af7f2287.tar.bz2 glibc-ed099f029e8b8b61a48329586fc00035af7f2287.zip |
Update.
Use nscd_ssize_t where appropriate.
* nscd/nscd_gethst_r.c (nscd_gethst_r): Use nscd_ssize_t instead of
ssize_t where appropriate.
* sysdeps/generic/nscd-types.h: New file.
* sysdeps/alpha/nscd-types.h: New file.
Diffstat (limited to 'nscd/nscd-client.h')
-rw-r--r-- | nscd/nscd-client.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/nscd/nscd-client.h b/nscd/nscd-client.h index 97b0baf629..3b7b7f3270 100644 --- a/nscd/nscd-client.h +++ b/nscd/nscd-client.h @@ -23,8 +23,10 @@ #ifndef _NSCD_CLIENT_H #define _NSCD_CLIENT_H 1 +#include <nscd-types.h> + /* Version number of the daemon interface */ -#define NSCD_VERSION 3 +#define NSCD_VERSION 2 /* Path of the file where the PID of the running system is stored. */ #define _PATH_NSCDPID "/var/run/nscd.pid" @@ -58,7 +60,7 @@ typedef enum /* Header common to all requests */ typedef struct { - int version; /* Version number of the daemon interface. */ + int32_t version; /* Version number of the daemon interface. */ request_type type; /* Service requested. */ int32_t key_len; /* Key length. */ } request_header; @@ -70,13 +72,13 @@ typedef struct { int32_t version; int32_t found; - int32_t pw_name_len; - int32_t pw_passwd_len; + nscd_ssize_t pw_name_len; + nscd_ssize_t pw_passwd_len; uid_t pw_uid; gid_t pw_gid; - int32_t pw_gecos_len; - int32_t pw_dir_len; - int32_t pw_shell_len; + nscd_ssize_t pw_gecos_len; + nscd_ssize_t pw_dir_len; + nscd_ssize_t pw_shell_len; } pw_response_header; @@ -86,10 +88,10 @@ typedef struct { int32_t version; int32_t found; - int32_t gr_name_len; - int32_t gr_passwd_len; + nscd_ssize_t gr_name_len; + nscd_ssize_t gr_passwd_len; gid_t gr_gid; - int32_t gr_mem_cnt; + nscd_ssize_t gr_mem_cnt; } gr_response_header; @@ -99,11 +101,11 @@ typedef struct { int32_t version; int32_t found; - int32_t h_name_len; - int32_t h_aliases_cnt; + nscd_ssize_t h_name_len; + nscd_ssize_t h_aliases_cnt; int32_t h_addrtype; int32_t h_length; - int32_t h_addr_list_cnt; + nscd_ssize_t h_addr_list_cnt; int32_t error; } hst_response_header; |