pwupd.h (10e6a51cf305652e8d2269f2b961d5548354c06b) pwupd.h (65730d9349cc2fac547af1613bd5a019ff5663c8)
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

--- 73 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;
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

--- 73 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 */