Deleted Added
full compact
libutil.h (96199) libutil.h (121193)
1/*
2 * Copyright (c) 1996 Peter Wemm <peter@FreeBSD.org>.
3 * 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

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

28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
1/*
2 * Copyright (c) 1996 Peter Wemm <peter@FreeBSD.org>.
3 * 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

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

28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * $FreeBSD: head/lib/libutil/libutil.h 96199 2002-05-08 00:50:07Z des $
36 * $FreeBSD: head/lib/libutil/libutil.h 121193 2003-10-18 10:04:16Z markm $
37 */
38
39#ifndef _LIBUTIL_H_
40#define _LIBUTIL_H_
41
37 */
38
39#ifndef _LIBUTIL_H_
40#define _LIBUTIL_H_
41
42#include <sys/cdefs.h>
43
44#define PROPERTY_MAX_NAME 64
45#define PROPERTY_MAX_VALUE 512
46
47/* for properties.c */
48typedef struct _property {
49 struct _property *next;
50 char *name;
51 char *value;

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

82struct sockaddr;
83int realhostname_sa(char *host, size_t hsize, struct sockaddr *addr,
84 int addrlen);
85#ifdef _STDIO_H_ /* avoid adding new includes */
86char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
87#endif
88
89#ifdef _PWD_H_
42#define PROPERTY_MAX_NAME 64
43#define PROPERTY_MAX_VALUE 512
44
45/* for properties.c */
46typedef struct _property {
47 struct _property *next;
48 char *name;
49 char *value;

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

80struct sockaddr;
81int realhostname_sa(char *host, size_t hsize, struct sockaddr *addr,
82 int addrlen);
83#ifdef _STDIO_H_ /* avoid adding new includes */
84char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
85#endif
86
87#ifdef _PWD_H_
90int pw_copy(int _ffd, int _tfd, struct passwd *_pw, struct passwd *_old_pw);
91struct passwd *pw_dup(struct passwd *_pw);
88int pw_copy(int _ffd, int _tfd, const struct passwd *_pw, struct passwd *_old_pw);
89struct passwd *pw_dup(const struct passwd *_pw);
92int pw_edit(int _notsetuid);
90int pw_edit(int _notsetuid);
93int pw_equal(struct passwd *_pw1, struct passwd *_pw2);
91int pw_equal(const struct passwd *_pw1, const struct passwd *_pw2);
94void pw_fini(void);
95int pw_init(const char *_dir, const char *_master);
92void pw_fini(void);
93int pw_init(const char *_dir, const char *_master);
96char *pw_make(struct passwd *_pw);
94char *pw_make(const struct passwd *_pw);
97int pw_mkdb(const char *_user);
98int pw_lock(void);
99struct passwd *pw_scan(const char *_line, int _flags);
100const char *pw_tempname(void);
101int pw_tmp(int _mfd);
102#endif
103__END_DECLS
104

--- 28 unchanged lines hidden ---
95int pw_mkdb(const char *_user);
96int pw_lock(void);
97struct passwd *pw_scan(const char *_line, int _flags);
98const char *pw_tempname(void);
99int pw_tmp(int _mfd);
100#endif
101__END_DECLS
102

--- 28 unchanged lines hidden ---