]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - nss/cash_nss.h
Update copyright years
[nsscash/nsscash.git] / nss / cash_nss.h
index c21142c3f9fe6a6b519272609517d602ca33e063..41eae376dba6ed3093d4f7ede213e6737a053bb2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * NSS function definitions provided by this NSS module
  *
- * Copyright (C) 2019  Simon Ruderich
+ * Copyright (C) 2019-2020  Simon Ruderich
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
 #ifndef CASH_NSS_H
 #define CASH_NSS_H
 
+#include <grp.h>
 #include <nss.h>
 #include <pwd.h>
 
 
+// struct passwd
 enum nss_status _nss_cash_setpwent(int);
 enum nss_status _nss_cash_endpwent(void);
 enum nss_status _nss_cash_getpwent_r(struct passwd *result, char *buffer, size_t buflen, int *errnop);
 enum nss_status _nss_cash_getpwuid_r(uid_t uid, struct passwd *result, char *buffer, size_t buflen, int *errnop);
 enum nss_status _nss_cash_getpwnam_r(const char *name, struct passwd *result, char *buffer, size_t buflen, int *errnop);
 
+// struct group
+enum nss_status _nss_cash_setgrent(int);
+enum nss_status _nss_cash_endgrent(void);
+enum nss_status _nss_cash_getgrent_r(struct group *result, char *buffer, size_t buflen, int *errnop);
+enum nss_status _nss_cash_getgrgid_r(gid_t gid, struct group *result, char *buffer, size_t buflen, int *errnop);
+enum nss_status _nss_cash_getgrnam_r(const char *name, struct group *result, char *buffer, size_t buflen, int *errnop);
+
 #endif