3 * common definitions for nss_nonlocal proxy
5 * Copyright © 2007–2010 Anders Kaseorg <andersk@mit.edu> and Tim
6 * Abbott <tabbott@mit.edu>
8 * This file is part of nss_nonlocal.
10 * nss_nonlocal is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public License
12 * as published by the Free Software Foundation; either version 2.1 of
13 * the License, or (at your option) any later version.
15 * nss_nonlocal is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with nss_nonlocal; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
38 # define _Bool signed char
44 # define __bool_true_false_are_defined 1
47 #include "nsswitch-internal.h"
51 enum nss_status *status;
53 int (*lookup2)(service_user **ni, const char *fct_name,
54 const char *fct2_name, void **fctp) internal_function;
61 enum nss_status check_nonlocal_uid(const char *user, uid_t uid, int *errnop);
62 enum nss_status check_nonlocal_gid(const char *user, const char *group,
63 gid_t gid, int *errnop);
64 enum nss_status check_nonlocal_user(const char *user, int *errnop);
65 enum nss_status get_nonlocal_passwd(const char *name, struct passwd *pwd,
66 char **buffer, int *errnop);
68 #define NONLOCAL_IGNORE_ENV "NSS_NONLOCAL_IGNORE"
70 #endif /* NON_LOCAL_H */