- Timestamp:
- Jun 7, 2011, 12:58:14 PM (13 years ago)
- Location:
- branches/fc15-dev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc15-dev
- Property svn:mergeinfo changed
/trunk (added) merged: 1811,1813-1819,1821-1825,1838,1848-1856,1858-1872,1877
- Property svn:mergeinfo changed
-
branches/fc15-dev/server/common/oursrc/nss_nonlocal/nonlocal.h
r782 r1878 1 /* 2 * nonlocal.h 3 * common definitions for nss_nonlocal proxy 4 * 5 * Copyright © 2007–2010 Anders Kaseorg <andersk@mit.edu> and Tim 6 * Abbott <tabbott@mit.edu> 7 * 8 * This file is part of nss_nonlocal. 9 * 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. 14 * 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. 19 * 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 23 * 02110-1301 USA 24 */ 25 1 26 #ifndef NONLOCAL_H 2 27 #define NONLOCAL_H … … 4 29 #include "config.h" 5 30 31 #ifdef HAVE_STDBOOL_H 32 # include <stdbool.h> 33 #else 34 # ifndef HAVE__BOOL 35 # ifdef __cplusplus 36 typedef bool _Bool; 37 # else 38 # define _Bool signed char 39 # endif 40 # endif 41 # define bool _Bool 42 # define false 0 43 # define true 1 44 # define __bool_true_false_are_defined 1 45 #endif 46 47 #include "nsswitch-internal.h" 48 #include <pwd.h> 49 50 struct walk_nss { 51 enum nss_status *status; 52 int (*lookup)(service_user **ni, const char *fct_name, 53 void **fctp) internal_function; 54 const char *fct_name; 55 int *errnop; 56 char **buf; 57 size_t *buflen; 58 }; 59 6 60 enum nss_status check_nonlocal_uid(const char *user, uid_t uid, int *errnop); 7 enum nss_status check_nonlocal_gid(const char *user, gid_t gid, int *errnop); 61 enum nss_status check_nonlocal_gid(const char *user, const char *group, 62 gid_t gid, int *errnop); 8 63 enum nss_status check_nonlocal_user(const char *user, int *errnop); 64 enum nss_status get_nonlocal_passwd(const char *name, struct passwd *pwd, 65 char **buffer, int *errnop); 9 66 10 67 #define NONLOCAL_IGNORE_ENV "NSS_NONLOCAL_IGNORE"
Note: See TracChangeset
for help on using the changeset viewer.