Deleted Added
full compact
libutil.h (92917) libutil.h (92941)
1/*
2 * Copyright (c) 1996 Peter Wemm <peter@FreeBSD.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, is 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 Peter Wemm <peter@FreeBSD.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, is 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/lib/libutil/libutil.h 92917 2002-03-21 23:54:04Z obrien $
26 * $FreeBSD: head/lib/libutil/libutil.h 92941 2002-03-22 09:22:15Z obrien $
27 */
28
29#ifndef _LIBUTIL_H_
30#define _LIBUTIL_H_
31
32#include <sys/cdefs.h>
33
34#define PROPERTY_MAX_NAME 64

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

44/* Avoid pulling in all the include files for no need */
45struct termios;
46struct winsize;
47struct utmp;
48struct in_addr;
49
50__BEGIN_DECLS
51int extattr_namespace_to_string(int _attrnamespace, char **_string);
27 */
28
29#ifndef _LIBUTIL_H_
30#define _LIBUTIL_H_
31
32#include <sys/cdefs.h>
33
34#define PROPERTY_MAX_NAME 64

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

44/* Avoid pulling in all the include files for no need */
45struct termios;
46struct winsize;
47struct utmp;
48struct in_addr;
49
50__BEGIN_DECLS
51int extattr_namespace_to_string(int _attrnamespace, char **_string);
52int extattr_string_to_namespace __P((const char *_string,
53 int *_attrnamespace));
52int extattr_string_to_namespace(const char *_string, int *_attrnamespace);
54void login(struct utmp *_ut);
55int login_tty(int _fd);
56int logout(const char *_line);
57void logwtmp(const char *_line, const char *_name, const char *_host);
58void trimdomain(char *_fullhost, int _hostsize);
53void login(struct utmp *_ut);
54int login_tty(int _fd);
55int logout(const char *_line);
56void logwtmp(const char *_line, const char *_name, const char *_host);
57void trimdomain(char *_fullhost, int _hostsize);
59int openpty __P((int *_amaster, int *_aslave, char *_name,
60 struct termios *_termp, struct winsize *_winp));
61int forkpty __P((int *_amaster, char *_name,
62 struct termios *_termp, struct winsize *_winp));
58int openpty(int *_amaster, int *_aslave, char *_name,
59 struct termios *_termp, struct winsize *_winp);
60int forkpty(int *_amaster, char *_name,
61 struct termios *_termp, struct winsize *_winp);
63const char *uu_lockerr(int _uu_lockresult);
64int uu_lock(const char *_ttyname);
65int uu_unlock(const char *_ttyname);
66int uu_lock_txfr(const char *_ttyname, pid_t _pid);
67int _secure_path(const char *_path, uid_t _uid, gid_t _gid);
68properties properties_read(int fd);
69void properties_free(properties list);
70char *property_find(properties list, const char *name);
71char *auth_getval(const char *name);
72int realhostname(char *host, size_t hsize, const struct in_addr *ip);
73struct sockaddr;
62const char *uu_lockerr(int _uu_lockresult);
63int uu_lock(const char *_ttyname);
64int uu_unlock(const char *_ttyname);
65int uu_lock_txfr(const char *_ttyname, pid_t _pid);
66int _secure_path(const char *_path, uid_t _uid, gid_t _gid);
67properties properties_read(int fd);
68void properties_free(properties list);
69char *property_find(properties list, const char *name);
70char *auth_getval(const char *name);
71int realhostname(char *host, size_t hsize, const struct in_addr *ip);
72struct sockaddr;
74int realhostname_sa __P((char *host, size_t hsize, struct sockaddr *addr,
75 int addrlen));
73int realhostname_sa(char *host, size_t hsize, struct sockaddr *addr,
74 int addrlen);
76#ifdef _STDIO_H_ /* avoid adding new includes */
77char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
78#endif
79__END_DECLS
80
81#define UU_LOCK_INUSE (1)
82#define UU_LOCK_OK (0)
83#define UU_LOCK_OPEN_ERR (-1)

--- 21 unchanged lines hidden ---
75#ifdef _STDIO_H_ /* avoid adding new includes */
76char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
77#endif
78__END_DECLS
79
80#define UU_LOCK_INUSE (1)
81#define UU_LOCK_OK (0)
82#define UU_LOCK_OPEN_ERR (-1)

--- 21 unchanged lines hidden ---