pw_util.3 (f5a05b2ba45daad6545938e3e90ae11e0a63107d) pw_util.3 (2acb4741ca9ad1baf0c2e8199b01e4a5c4b1c864)
1.\" Copyright (c) 2012 Baptiste Daroussin <bapt@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 60 unchanged lines hidden (view full) ---

69.Fn pw_lock "void"
70.Ft "struct passwd *"
71.Fn pw_scan "const char *line" "int flags"
72.Ft "const char *"
73.Fn pw_tempname "void"
74.Ft int
75.Fn pw_tmp "int mfd"
76.Sh DESCRIPTION
1.\" Copyright (c) 2012 Baptiste Daroussin <bapt@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 60 unchanged lines hidden (view full) ---

69.Fn pw_lock "void"
70.Ft "struct passwd *"
71.Fn pw_scan "const char *line" "int flags"
72.Ft "const char *"
73.Fn pw_tempname "void"
74.Ft int
75.Fn pw_tmp "int mfd"
76.Sh DESCRIPTION
77.Pp
78The
79.Fn pw_copy
80function reads a password file from
81.Vt ffd
82and writes it back out to
83.Vt tfd
84possibly with modifications:
85.Bl -dash

--- 13 unchanged lines hidden (view full) ---

99If
100.Fa pw
101and
102.Fa oldpw
103are not
104.Dv NULL
105then the record corresponding to
106.Fa pw
77The
78.Fn pw_copy
79function reads a password file from
80.Vt ffd
81and writes it back out to
82.Vt tfd
83possibly with modifications:
84.Bl -dash

--- 13 unchanged lines hidden (view full) ---

98If
99.Fa pw
100and
101.Fa oldpw
102are not
103.Dv NULL
104then the record corresponding to
105.Fa pw
107will be replace by the record corresponding to
106will be replaced by the record corresponding to
108.Fa oldpw .
109.It
110If
111.Vt pw
112is set and
113.Vt oldpw
114is
115.Dv NULL

--- 50 unchanged lines hidden (view full) ---

166.Pp
167The
168.Fn pw_fini
169function destroy the temporary file created by
170.Fn pw_tmp
171if any,
172kills any running instance of
173.Ev EDITOR
107.Fa oldpw .
108.It
109If
110.Vt pw
111is set and
112.Vt oldpw
113is
114.Dv NULL

--- 50 unchanged lines hidden (view full) ---

165.Pp
166The
167.Fn pw_fini
168function destroy the temporary file created by
169.Fn pw_tmp
170if any,
171kills any running instance of
172.Ev EDITOR
174excuted by
173executed by
175.Fn pw_edit
176if any,
177and closes the lock created by
178.Fn pw_lock
179if any.
180.Pp
181The
182.Fn pw_init

--- 100 unchanged lines hidden ---
174.Fn pw_edit
175if any,
176and closes the lock created by
177.Fn pw_lock
178if any.
179.Pp
180The
181.Fn pw_init

--- 100 unchanged lines hidden ---