pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/libnbcompat/files/nbcompat



Module Name:    pkgsrc
Committed By:   tnn
Date:           Mon Aug  5 11:17:22 UTC 2024

Modified Files:
        pkgsrc/pkgtools/libnbcompat/files/nbcompat: pwd.h

Log Message:
nbcompat/pwd.h: add prototypes for pwcache_userdb/groupdb


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/pkgtools/libnbcompat/files/nbcompat/pwd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/libnbcompat/files/nbcompat/pwd.h
diff -u pkgsrc/pkgtools/libnbcompat/files/nbcompat/pwd.h:1.4 pkgsrc/pkgtools/libnbcompat/files/nbcompat/pwd.h:1.5
--- pkgsrc/pkgtools/libnbcompat/files/nbcompat/pwd.h:1.4        Sun Feb 10 12:38:52 2013
+++ pkgsrc/pkgtools/libnbcompat/files/nbcompat/pwd.h    Mon Aug  5 11:17:22 2024
@@ -1,4 +1,4 @@
-/*     $NetBSD: pwd.h,v 1.4 2013/02/10 12:38:52 obache Exp $   */
+/*     $NetBSD: pwd.h,v 1.5 2024/08/05 11:17:22 tnn Exp $      */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -56,4 +56,20 @@ int uid_from_user(const char *, uid_t *)
 void endpwent(void);
 #endif
 
+#if !HAVE_PWCACHE_USERDB
+int pwcache_userdb(
+       int             (*a_setpassent)(int),
+       void            (*a_endpwent)(void),
+       struct passwd * (*a_getpwnam)(const char *),
+       struct passwd * (*a_getpwuid)(uid_t));
+#endif
+
+#if !HAVE_PWCACHE_GROUPDB
+int pwcache_groupdb(
+       int             (*a_setgroupent)(int),
+       void            (*a_endgrent)(void),
+       struct group *  (*a_getgrnam)(const char *),
+       struct group *  (*a_getgrgid)(gid_t));
+#endif
+
 #endif /* !_NBCOMPAT_PWD_H_ */



Home | Main Index | Thread Index | Old Index