summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-01-05 10:40:24 +0000
committerbapt <bapt@FreeBSD.org>2012-01-05 10:40:24 +0000
commita00247bc12bcc9f7ffc985f0bfc07a7aa615d0d4 (patch)
treeed5c8cca1cefe991199cc9d49049e6b470f15afb /lib/libutil/libutil.h
parent064404aac96133ca2cd46ae6156b2369418f8c0a (diff)
downloadFreeBSD-src-a00247bc12bcc9f7ffc985f0bfc07a7aa615d0d4.zip
FreeBSD-src-a00247bc12bcc9f7ffc985f0bfc07a7aa615d0d4.tar.gz
Add new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd
while here, fix missing parentheses of the return statement of pw_make. Approved by: des (mentor)
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index dea14cf..47896c1 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -144,6 +144,7 @@ int pw_equal(const struct passwd *_pw1, const struct passwd *_pw2);
void pw_fini(void);
int pw_init(const char *_dir, const char *_master);
char *pw_make(const struct passwd *_pw);
+char *pw_make_v7(const struct passwd *_pw);
int pw_mkdb(const char *_user);
int pw_lock(void);
struct passwd *pw_scan(const char *_line, int _flags);
OpenPOWER on IntegriCloud