Deleted Added
full compact
libutil.h (200035) libutil.h (202216)
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 200035 2009-12-02 15:56:18Z ed $
36 * $FreeBSD: head/lib/libutil/libutil.h 202216 2010-01-13 18:59:51Z ed $
37 */
38
39#ifndef _LIBUTIL_H_
40#define _LIBUTIL_H_
41
42#include <sys/cdefs.h>
43#include <sys/_types.h>
44

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

85 __dev_t pf_dev;
86 ino_t pf_ino;
87};
88#endif
89
90/* Avoid pulling in all the include files for no need */
91struct termios;
92struct winsize;
37 */
38
39#ifndef _LIBUTIL_H_
40#define _LIBUTIL_H_
41
42#include <sys/cdefs.h>
43#include <sys/_types.h>
44

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

85 __dev_t pf_dev;
86 ino_t pf_ino;
87};
88#endif
89
90/* Avoid pulling in all the include files for no need */
91struct termios;
92struct winsize;
93struct utmp;
94struct in_addr;
95struct kinfo_file;
96struct kinfo_vmentry;
97
98__BEGIN_DECLS
99void clean_environment(const char * const *_white,
100 const char * const *_more_white);
101int extattr_namespace_to_string(int _attrnamespace, char **_string);
102int extattr_string_to_namespace(const char *_string, int *_attrnamespace);
103int flopen(const char *_path, int _flags, ...);
104void hexdump(const void *ptr, int length, const char *hdr, int flags);
93struct in_addr;
94struct kinfo_file;
95struct kinfo_vmentry;
96
97__BEGIN_DECLS
98void clean_environment(const char * const *_white,
99 const char * const *_more_white);
100int extattr_namespace_to_string(int _attrnamespace, char **_string);
101int extattr_string_to_namespace(const char *_string, int *_attrnamespace);
102int flopen(const char *_path, int _flags, ...);
103void hexdump(const void *ptr, int length, const char *hdr, int flags);
105void login(struct utmp *_ut);
106int login_tty(int _fd);
104int login_tty(int _fd);
107int logout(const char *_line);
108void logwtmp(const char *_line, const char *_name, const char *_host);
109void trimdomain(char *_fullhost, int _hostsize);
110int openpty(int *_amaster, int *_aslave, char *_name,
111 struct termios *_termp, struct winsize *_winp);
112int forkpty(int *_amaster, char *_name,
113 struct termios *_termp, struct winsize *_winp);
114int humanize_number(char *_buf, size_t _len, int64_t _number,
115 const char *_suffix, int _scale, int _flags);
116int expand_number(const char *_buf, int64_t *_num);

--- 100 unchanged lines hidden ---
105void trimdomain(char *_fullhost, int _hostsize);
106int openpty(int *_amaster, int *_aslave, char *_name,
107 struct termios *_termp, struct winsize *_winp);
108int forkpty(int *_amaster, char *_name,
109 struct termios *_termp, struct winsize *_winp);
110int humanize_number(char *_buf, size_t _len, int64_t _number,
111 const char *_suffix, int _scale, int _flags);
112int expand_number(const char *_buf, int64_t *_num);

--- 100 unchanged lines hidden ---