X-Git-Url: http://andersk.mit.edu/gitweb/nss_nonlocal.git/blobdiff_plain/cbb0e3ea444ff761b58c8f9355af1dfc631bc64b..25468b961ce1288b802ae075a80640e4c30ee375:/nonlocal.h diff --git a/nonlocal.h b/nonlocal.h index a0746d4..9574ff8 100644 --- a/nonlocal.h +++ b/nonlocal.h @@ -27,7 +27,25 @@ #define NONLOCAL_H #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" +#include struct walk_nss { enum nss_status *status; @@ -40,8 +58,11 @@ struct walk_nss { }; 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_gid(const char *user, const char *group, + gid_t gid, int *errnop); enum nss_status check_nonlocal_user(const char *user, int *errnop); +enum nss_status get_nonlocal_passwd(const char *name, struct passwd *pwd, + char **buffer, int *errnop); #define NONLOCAL_IGNORE_ENV "NSS_NONLOCAL_IGNORE"