libutil.h (23d1a17825ee48ee739d5f3deafd0b99617c465b) libutil.h (412fa8f1145545ad30922007c6cb607d7ddb1003)
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

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

44
45/* for properties.c */
46typedef struct _property {
47 struct _property *next;
48 char *name;
49 char *value;
50} *properties;
51
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

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

44
45/* for properties.c */
46typedef struct _property {
47 struct _property *next;
48 char *name;
49 char *value;
50} *properties;
51
52#ifdef _SYS_PARAM_H_
53/* for pidfile.c */
54struct pidfh {
55 int pf_fd;
56 char pf_path[MAXPATHLEN + 1];
57 __dev_t pf_dev;
58 ino_t pf_ino;
59};
60#endif
61
52/* Avoid pulling in all the include files for no need */
53struct termios;
54struct winsize;
55struct utmp;
56struct in_addr;
57
58__BEGIN_DECLS
59void clean_environment(const char * const *_white,

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

97int pw_init(const char *_dir, const char *_master);
98char *pw_make(const struct passwd *_pw);
99int pw_mkdb(const char *_user);
100int pw_lock(void);
101struct passwd *pw_scan(const char *_line, int _flags);
102const char *pw_tempname(void);
103int pw_tmp(int _mfd);
104#endif
62/* Avoid pulling in all the include files for no need */
63struct termios;
64struct winsize;
65struct utmp;
66struct in_addr;
67
68__BEGIN_DECLS
69void clean_environment(const char * const *_white,

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

107int pw_init(const char *_dir, const char *_master);
108char *pw_make(const struct passwd *_pw);
109int pw_mkdb(const char *_user);
110int pw_lock(void);
111struct passwd *pw_scan(const char *_line, int _flags);
112const char *pw_tempname(void);
113int pw_tmp(int _mfd);
114#endif
115
116#ifdef _SYS_PARAM_H_
117struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr);
118int pidfile_write(struct pidfh *pfh);
119int pidfile_close(struct pidfh *pfh);
120int pidfile_remove(struct pidfh *pfh);
121#endif
105__END_DECLS
106
107#define UU_LOCK_INUSE (1)
108#define UU_LOCK_OK (0)
109#define UU_LOCK_OPEN_ERR (-1)
110#define UU_LOCK_READ_ERR (-2)
111#define UU_LOCK_CREAT_ERR (-3)
112#define UU_LOCK_WRITE_ERR (-4)

--- 31 unchanged lines hidden ---
122__END_DECLS
123
124#define UU_LOCK_INUSE (1)
125#define UU_LOCK_OK (0)
126#define UU_LOCK_OPEN_ERR (-1)
127#define UU_LOCK_READ_ERR (-2)
128#define UU_LOCK_CREAT_ERR (-3)
129#define UU_LOCK_WRITE_ERR (-4)

--- 31 unchanged lines hidden ---