2 Unix SMB/CIFS implementation.
4 Donated by HP to enable Winbindd to build on HPUX 11.x.
5 Copyright (C) Jeremy Allison 2002.
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public
18 License along with this library; if not, write to the
19 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
23 #ifndef _WINBIND_NSS_HPUX_H
24 #define _WINBIND_NSS_HPUX_H
28 #ifndef _HAVE_TYPEDEF_NSS_STATUS
29 #define _HAVE_TYPEDEF_NSS_STATUS
30 typedef nss_status_t NSS_STATUS
;
32 #define NSS_STATUS_SUCCESS NSS_SUCCESS
33 #define NSS_STATUS_NOTFOUND NSS_NOTFOUND
34 #define NSS_STATUS_UNAVAIL NSS_UNAVAIL
35 #define NSS_STATUS_TRYAGAIN NSS_TRYAGAIN
53 typedef nss_status_t (*nss_backend_op_t
)(struct nss_backend
*, void *args
);
56 nss_backend_op_t
*ops
;
59 typedef struct nss_backend nss_backend_t
;
60 typedef int nss_dbop_t
;
66 #ifndef NSS_INCLUDE_UNSAFE
67 #define NSS_INCLUDE_UNSAFE 1 /* Build old, MT-unsafe interfaces, */
68 #endif /* NSS_INCLUDE_UNSAFE */
77 enum nss_netgr_status
{
83 typedef unsigned nss_innetgr_argc
;
84 typedef char **nss_innetgr_argv
;
86 struct nss_innetgr_1arg
{
87 nss_innetgr_argc argc
;
88 nss_innetgr_argv argv
;
92 void *result
; /* "result" parameter to getXbyY_r() */
93 char *buffer
; /* "buffer" " " */
94 int buflen
; /* "buflen" " " */
97 extern nss_XbyY_buf_t
*_nss_XbyY_buf_alloc(int struct_size
, int buffer_size
);
98 extern void _nss_XbyY_buf_free(nss_XbyY_buf_t
*);
124 typedef struct nss_XbyY_args
{
128 * Support for setXXXent(stayopen)
129 * Used only in hosts, protocols,
130 * networks, rpc, and services.
132 int (*str2ent
)(const char *instr
, int instr_len
, void *ent
, char *buffer
, int buflen
);
133 union nss_XbyY_key key
;
141 #endif /* _WINBIND_NSS_HPUX_H */