diff options
| author | lukem <lukem@NetBSD.org> | 2002-01-24 02:46:32 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2002-01-24 02:46:32 +0000 |
| commit | 463cd54319f67941cfb0f5a9eba9a42b6f80a303 (patch) | |
| tree | 577918ac328b276129d5b0868bd7ed6433e9ae80 /include | |
| parent | d4da6dc52dd5d1c4e8e890a7a7bcf580418ad7ea (diff) | |
- Implement pwcache_userdb(3), which changes the routines that
user_from_uid(3) and uid_from_user(3) use to lookup user information.
- Implement pwcache_groupdb(3), which changes the routines that
group_from_gid(3) and gid_from_group(3) use to lookup group information.
- Ensure that private functions in pwcache.c are declared static
- Use strlcpy(3) instead of strncpy(3)
Diffstat (limited to 'include')
| -rw-r--r-- | include/grp.h | 5 | ||||
| -rw-r--r-- | include/pwd.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/grp.h b/include/grp.h index 9a03ce87316..1c1368b6cd6 100644 --- a/include/grp.h +++ b/include/grp.h @@ -1,4 +1,4 @@ -/* $NetBSD: grp.h,v 1.14 1998/07/28 16:27:48 mycroft Exp $ */ +/* $NetBSD: grp.h,v 1.15 2002/01/24 02:46:33 lukem Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -71,6 +71,9 @@ void setgrfile __P((const char *)); int setgroupent __P((int)); const char *group_from_gid __P((gid_t, int)); int gid_from_group __P((const char *, gid_t *)); +int pwcache_groupdb(int (*)(int), void (*)(void), + struct group * (*)(const char *), + struct group * (*)(gid_t)); #endif __END_DECLS diff --git a/include/pwd.h b/include/pwd.h index 39ef79aa879..44b8b4dc788 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -1,4 +1,4 @@ -/* $NetBSD: pwd.h,v 1.23 2001/10/23 00:25:20 lukem Exp $ */ +/* $NetBSD: pwd.h,v 1.24 2002/01/24 02:46:32 lukem Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -110,6 +110,9 @@ int pw_scan __P((char *bp, struct passwd *pw, int *flags)); int setpassent __P((int)); const char *user_from_uid __P((uid_t, int)); int uid_from_user __P((const char *, uid_t *)); +int pwcache_userdb(int (*)(int), void (*)(void), + struct passwd * (*)(const char *), + struct passwd * (*)(uid_t)); #endif __END_DECLS |
