X-Git-Url: http://andersk.mit.edu/gitweb/nss_nonlocal.git/blobdiff_plain/e40bea7ed12613f7442023989bfc5e75fe242e91..b0d4333dde25463ba3bc69022f5a9347117fc1f7:/nonlocal.h diff --git a/nonlocal.h b/nonlocal.h index 7d644ae..b31a9a9 100644 --- a/nonlocal.h +++ b/nonlocal.h @@ -28,6 +28,34 @@ #include "config.h" +#ifdef HAVE_STDBOOL_H +# include +#else +# ifndef HAVE__BOOL +# ifdef __cplusplus +typedef bool _Bool; +# else +# define _Bool signed char +# endif +# endif +# define bool _Bool +# define false 0 +# define true 1 +# define __bool_true_false_are_defined 1 +#endif + +#include "nsswitch-internal.h" + +struct walk_nss { + enum nss_status *status; + int (*lookup)(service_user **ni, const char *fct_name, + void **fctp) internal_function; + const char *fct_name; + int *errnop; + char **buf; + size_t *buflen; +}; + enum nss_status check_nonlocal_uid(const char *user, uid_t uid, int *errnop); enum nss_status check_nonlocal_gid(const char *user, gid_t gid, int *errnop); enum nss_status check_nonlocal_user(const char *user, int *errnop);