1 #ifndef _HP_NSS_DBDEFS_H
2 #define _HP_NSS_DBDEFS_H
5 Unix SMB/Netbios implementation.
8 Donated by HP to enable Winbindd to build on HPUX 11.x.
9 Copyright (C) Jeremy Allison 2002.
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Library General Public
13 License as published by the Free Software Foundation; either
14 version 2 of the License, or (at your option) any later version.
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Library General Public License for more details.
21 You should have received a copy of the GNU Library General Public
22 License along with this library; if not, write to the
23 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 Boston, MA 02111-1307, USA.
31 #ifndef NSS_INCLUDE_UNSAFE
32 #define NSS_INCLUDE_UNSAFE 1 /* Build old, MT-unsafe interfaces, */
33 #endif /* NSS_INCLUDE_UNSAFE */
42 enum nss_netgr_status
{
48 typedef unsigned nss_innetgr_argc
;
49 typedef char **nss_innetgr_argv
;
51 struct nss_innetgr_1arg
{
52 nss_innetgr_argc argc
;
53 nss_innetgr_argv argv
;
57 void *result
; /* "result" parameter to getXbyY_r() */
58 char *buffer
; /* "buffer" " " */
59 int buflen
; /* "buflen" " " */
62 extern nss_XbyY_buf_t
*_nss_XbyY_buf_alloc(int struct_size
, int buffer_size
);
63 extern void _nss_XbyY_buf_free(nss_XbyY_buf_t
*);
89 typedef struct nss_XbyY_args
{
93 * Support for setXXXent(stayopen)
94 * Used only in hosts, protocols,
95 * networks, rpc, and services.
97 int (*str2ent
)(const char *instr
, int instr_len
, void *ent
, char *buffer
, int buflen
);
98 union nss_XbyY_key key
;
106 #endif /* _NSS_DBDEFS_H */