summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2011-12-15 22:07:36 +0000
committerbapt <bapt@FreeBSD.org>2011-12-15 22:07:36 +0000
commitb5cd6ab67fdbb336e943f41df3595dcfa1394853 (patch)
tree1a8609290b50e06da3f03030f56fa0c994016a31 /lib/libutil/libutil.h
parent8d73b322faab5ab431948b0b7bc89ede6c808e8e (diff)
downloadFreeBSD-src-b5cd6ab67fdbb336e943f41df3595dcfa1394853.zip
FreeBSD-src-b5cd6ab67fdbb336e943f41df3595dcfa1394853.tar.gz
Modify pw_copy:
- if pw is NULL and oldpw is not NULL then the oldpw is deleted - if pw->pw_name != oldpw->pw_name but pw->pw_uid == oldpw->pw_uid then it renames the user add new gr_* functions so now gr_util API is similar to pw_util API, this allow to manipulate groups in a safe way. Reviewed by: des Approved by: des MFC after: 1 month
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index fc6d3bb..dea14cf 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -152,9 +152,15 @@ int pw_tmp(int _mfd);
#endif
#ifdef _GRP_H_
+int gr_copy(int __ffd, int _tfd, const struct group *_gr, struct group *_old_gr);
+struct group *gr_dup(const struct group *gr);
int gr_equal(const struct group *gr1, const struct group *gr2);
+void gr_fini(void);
+int gr_init(const char *_dir, const char *_master);
+int gr_lock(void);
char *gr_make(const struct group *gr);
-struct group *gr_dup(const struct group *gr);
+int gr_mkdb(void);
+int gr_tmp(int _mdf);
struct group *gr_scan(const char *line);
#endif
OpenPOWER on IntegriCloud