1 /* Copyright (c) 1998 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 /* This file defines everything that client code should need to
21 know to talk to the nscd daemon. */
23 #ifndef _NSCD_CLIENT_H
24 #define _NSCD_CLIENT_H 1
26 /* Version number of the daemon interface */
27 #define NSCD_VERSION 2
29 /* Path of the file where the PID of the running system is stored. */
30 #define _PATH_NSCDPID "/var/run/nscd.pid"
32 /* Path for the Unix domain socket. */
33 #define _PATH_NSCDSOCKET "/var/run/.nscd_socket"
35 /* Path for the configuration file. */
36 #define _PATH_NSCDCONF "/etc/nscd.conf"
39 /* Available services. */
50 LASTDBREQ
= GETHOSTBYADDRv6
,
51 SHUTDOWN
, /* Shut the server down. */
52 GETSTAT
, /* Get the server statistic. */
57 /* Header common to all requests */
60 int version
; /* Version number of the daemon interface. */
61 request_type type
; /* Service requested. */
62 ssize_t key_len
; /* Key length. */
66 /* Structure sent in reply to password query. Note that this struct is
67 sent also if the service is disabled or there is no record found. */
73 ssize_t pw_passwd_len
;
82 /* Structure sent in reply to group query. Note that this struct is
83 sent also if the service is disabled or there is no record found. */
89 ssize_t gr_passwd_len
;
95 /* Structure sent in reply to host query. Note that this struct is
96 sent also if the service is disabled or there is no record found. */
102 ssize_t h_aliases_cnt
;
105 ssize_t h_addr_list_cnt
;
107 } hst_response_header
;