Deleted Added
full compact
pw.h (20747) pw.h (21330)
1/*-
2 * Copyright (C) 1996
3 * David L. Nugent. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (C) 1996
3 * David L. Nugent. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: pw.h,v 1.2 1996/12/19 15:22:42 davidn Exp $
26 * $Id: pw.h,v 1.3 1996/12/21 15:35:42 davidn Exp $
27 */
28
29#include <stdio.h>
30#include <stdlib.h>
31#include <string.h>
32#include <unistd.h>
33#include <stdarg.h>
34#include <errno.h>

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

67
68extern LIST_HEAD(cargs, carg) arglist;
69
70struct userconf
71{
72 int default_password; /* Default password for new users? */
73 int reuse_uids; /* Reuse uids? */
74 int reuse_gids; /* Reuse gids? */
27 */
28
29#include <stdio.h>
30#include <stdlib.h>
31#include <string.h>
32#include <unistd.h>
33#include <stdarg.h>
34#include <errno.h>

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

67
68extern LIST_HEAD(cargs, carg) arglist;
69
70struct userconf
71{
72 int default_password; /* Default password for new users? */
73 int reuse_uids; /* Reuse uids? */
74 int reuse_gids; /* Reuse gids? */
75 char *nispasswd; /* Path to NIS version of the passwd file */
75 char *dotdir; /* Where to obtain skeleton files */
76 char *newmail; /* Mail to send to new accounts */
77 char *logfile; /* Where to log changes */
78 char *home; /* Where to create home directory */
79 char *shelldir; /* Where shells are located */
80 char **shells; /* List of shells */
81 char *shell_default; /* Default shell */
82 char *default_group; /* Default group number */

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

103int pw_group(struct userconf * cnf, int mode, struct cargs * _args);
104char *pw_checkname(u_char *name, int gecos);
105
106int addpwent(struct passwd * pwd);
107int delpwent(struct passwd * pwd);
108int chgpwent(char const * login, struct passwd * pwd);
109int fmtpwent(char *buf, struct passwd * pwd);
110
76 char *dotdir; /* Where to obtain skeleton files */
77 char *newmail; /* Mail to send to new accounts */
78 char *logfile; /* Where to log changes */
79 char *home; /* Where to create home directory */
80 char *shelldir; /* Where shells are located */
81 char **shells; /* List of shells */
82 char *shell_default; /* Default shell */
83 char *default_group; /* Default group number */

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

104int pw_group(struct userconf * cnf, int mode, struct cargs * _args);
105char *pw_checkname(u_char *name, int gecos);
106
107int addpwent(struct passwd * pwd);
108int delpwent(struct passwd * pwd);
109int chgpwent(char const * login, struct passwd * pwd);
110int fmtpwent(char *buf, struct passwd * pwd);
111
112int addnispwent(const char *path, struct passwd *pwd);
113int delnispwent(const char *path, const char *login);
114int chgnispwent(const char *path, const char *login, struct passwd *pwd);
115
111int addgrent(struct group * grp);
112int delgrent(struct group * grp);
113int chggrent(char const * login, struct group * grp);
114
115int boolean_val(char const * str, int dflt);
116char const *boolean_str(int val);
117char *newstr(char const * p);
118
119void pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...);
120char *pw_pwcrypt(char *password);
121
122extern const char *Modes[];
123extern const char *Which[];
116int addgrent(struct group * grp);
117int delgrent(struct group * grp);
118int chggrent(char const * login, struct group * grp);
119
120int boolean_val(char const * str, int dflt);
121char const *boolean_str(int val);
122char *newstr(char const * p);
123
124void pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...);
125char *pw_pwcrypt(char *password);
126
127extern const char *Modes[];
128extern const char *Which[];