Deleted Added
full compact
pwupd.h (285412) pwupd.h (285430)
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 * $FreeBSD: head/usr.sbin/pw/pwupd.h 285412 2015-07-11 23:07:17Z bapt $
26 * $FreeBSD: head/usr.sbin/pw/pwupd.h 285430 2015-07-12 20:29:51Z bapt $
27 */
28
29#ifndef _PWUPD_H_
30#define _PWUPD_H_
31
32#include <sys/cdefs.h>
33#include <sys/param.h>
34#include <sys/types.h>

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

82
83struct pwconf {
84 char rootdir[MAXPATHLEN];
85 char etcpath[MAXPATHLEN];
86 char *newname;
87 char *config;
88 char *gecos;
89 int fd;
27 */
28
29#ifndef _PWUPD_H_
30#define _PWUPD_H_
31
32#include <sys/cdefs.h>
33#include <sys/param.h>
34#include <sys/types.h>

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

82
83struct pwconf {
84 char rootdir[MAXPATHLEN];
85 char etcpath[MAXPATHLEN];
86 char *newname;
87 char *config;
88 char *gecos;
89 int fd;
90 int rootfd;
90 int which;
91 bool quiet;
92 bool force;
93 bool all;
94 bool dryrun;
95 bool pretty;
96 bool v7;
97 bool checkduplicate;

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

151struct passwd * vgetpwnam(const char * nam);
152
153struct group * vgetgrent(void);
154struct group * vgetgrgid(gid_t gid);
155struct group * vgetgrnam(const char * nam);
156RET_SETGRENT vsetgrent(void);
157void vendgrent(void);
158
91 int which;
92 bool quiet;
93 bool force;
94 bool all;
95 bool dryrun;
96 bool pretty;
97 bool v7;
98 bool checkduplicate;

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

152struct passwd * vgetpwnam(const char * nam);
153
154struct group * vgetgrent(void);
155struct group * vgetgrgid(gid_t gid);
156struct group * vgetgrnam(const char * nam);
157RET_SETGRENT vsetgrent(void);
158void vendgrent(void);
159
159void copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid);
160void copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid,
161 gid_t gid, int flags);
160void rm_r(char const * dir, uid_t uid);
161__END_DECLS
162
163#endif /* !_PWUPD_H */
162void rm_r(char const * dir, uid_t uid);
163__END_DECLS
164
165#endif /* !_PWUPD_H */