Deleted Added
full compact
chpass.h (96201) chpass.h (124692)
1/*
2 * Copyright (c) 1988, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2002 Networks Associates Technology, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed for the FreeBSD Project by
8 * ThinkSec AS and NAI Labs, the Security Research Division of Network

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

33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * @(#)chpass.h 8.4 (Berkeley) 4/2/94
1/*
2 * Copyright (c) 1988, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2002 Networks Associates Technology, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed for the FreeBSD Project by
8 * ThinkSec AS and NAI Labs, the Security Research Division of Network

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

33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * @(#)chpass.h 8.4 (Berkeley) 4/2/94
41 * $FreeBSD: head/usr.bin/chpass/chpass.h 96201 2002-05-08 00:54:29Z des $
41 * $FreeBSD: head/usr.bin/chpass/chpass.h 124692 2004-01-18 21:46:39Z charnier $
42 */
43
44struct passwd;
45
46typedef struct _entry {
47 const char *prompt;
48 int (*func)(char *, struct passwd *, struct _entry *);
49 int restricted;

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

59#define E_OTHER 11
60#define E_SHELL 13
61
62extern ENTRY list[];
63extern int master_mode;
64
65int atot(char *, time_t *);
66struct passwd *edit(const char *, struct passwd *);
42 */
43
44struct passwd;
45
46typedef struct _entry {
47 const char *prompt;
48 int (*func)(char *, struct passwd *, struct _entry *);
49 int restricted;

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

59#define E_OTHER 11
60#define E_SHELL 13
61
62extern ENTRY list[];
63extern int master_mode;
64
65int atot(char *, time_t *);
66struct passwd *edit(const char *, struct passwd *);
67char *ok_shell(char *);
67int ok_shell(char *);
68char *dup_shell(char *);
68int p_change(char *, struct passwd *, ENTRY *);
69int p_class(char *, struct passwd *, ENTRY *);
70int p_expire(char *, struct passwd *, ENTRY *);
71int p_gecos(char *, struct passwd *, ENTRY *);
72int p_gid(char *, struct passwd *, ENTRY *);
73int p_hdir(char *, struct passwd *, ENTRY *);
74int p_login(char *, struct passwd *, ENTRY *);
69int p_change(char *, struct passwd *, ENTRY *);
70int p_class(char *, struct passwd *, ENTRY *);
71int p_expire(char *, struct passwd *, ENTRY *);
72int p_gecos(char *, struct passwd *, ENTRY *);
73int p_gid(char *, struct passwd *, ENTRY *);
74int p_hdir(char *, struct passwd *, ENTRY *);
75int p_login(char *, struct passwd *, ENTRY *);
75int p_login(char *, struct passwd *, ENTRY *);
76int p_passwd(char *, struct passwd *, ENTRY *);
77int p_shell(char *, struct passwd *, ENTRY *);
78int p_uid(char *, struct passwd *, ENTRY *);
79char *ttoa(time_t);
76int p_passwd(char *, struct passwd *, ENTRY *);
77int p_shell(char *, struct passwd *, ENTRY *);
78int p_uid(char *, struct passwd *, ENTRY *);
79char *ttoa(time_t);