diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-01-14 05:26:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-01-14 05:26:04 +0000 |
commit | b21fa963c4194082792a26023f265ebe50ca5c9e (patch) | |
tree | 78c2bb40d7a4fdb8b0b9c2c424fba511613e70e8 /nscd/nscd-client.h | |
parent | 23691ab23b6e631ae0c5cf58455cca25a0058e22 (diff) | |
download | glibc-b21fa963c4194082792a26023f265ebe50ca5c9e.zip glibc-b21fa963c4194082792a26023f265ebe50ca5c9e.tar.gz glibc-b21fa963c4194082792a26023f265ebe50ca5c9e.tar.bz2 |
* nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
computation of keylen.
Diffstat (limited to 'nscd/nscd-client.h')
-rw-r--r-- | nscd/nscd-client.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/nscd/nscd-client.h b/nscd/nscd-client.h index 0fd2d9f..7702f59 100644 --- a/nscd/nscd-client.h +++ b/nscd/nscd-client.h @@ -1,4 +1,4 @@ -/* Copyright (c) 1998, 1999, 2000, 2003, 2004, 2005, 2006 +/* Copyright (c) 1998, 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998. @@ -56,7 +56,6 @@ typedef enum GETHOSTBYNAMEv6, GETHOSTBYADDR, GETHOSTBYADDRv6, - LASTDBREQ = GETHOSTBYADDRv6, SHUTDOWN, /* Shut the server down. */ GETSTAT, /* Get the server statistic. */ INVALIDATE, /* Invalidate one special cache. */ @@ -65,6 +64,9 @@ typedef enum GETFDHST, GETAI, INITGROUPS, + GETSERVBYNAME, + GETSERVBYPORT, + GETFDSERV, LASTREQ } request_type; @@ -153,6 +155,19 @@ typedef struct } initgr_response_header; +/* Structure sent in reply to services query. Note that this struct is + sent also if the service is disabled or there is no record found. */ +typedef struct +{ + int32_t version; + int32_t found; + nscd_ssize_t s_name_len; + nscd_ssize_t s_proto_len; + nscd_ssize_t s_aliases_cnt; + int32_t s_port; +} serv_response_header; + + /* Type for offsets in data part of database. */ typedef uint32_t ref_t; /* Value for invalid/no reference. */ @@ -186,6 +201,7 @@ struct datahead hst_response_header hstdata; ai_response_header aidata; initgr_response_header initgrdata; + serv_response_header servdata; nscd_ssize_t align1; nscd_time_t align2; } data[0]; |