libutil.h (80206) | libutil.h (92917) |
---|---|
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 80206 2001-07-23 12:42:07Z assar $ | 26 * $FreeBSD: head/lib/libutil/libutil.h 92917 2002-03-21 23:54:04Z obrien $ |
27 */ 28 29#ifndef _LIBUTIL_H_ 30#define _LIBUTIL_H_ 31 32#include <sys/cdefs.h> 33 34#define PROPERTY_MAX_NAME 64 --- 8 unchanged lines hidden (view full) --- 43 44/* Avoid pulling in all the include files for no need */ 45struct termios; 46struct winsize; 47struct utmp; 48struct in_addr; 49 50__BEGIN_DECLS | 27 */ 28 29#ifndef _LIBUTIL_H_ 30#define _LIBUTIL_H_ 31 32#include <sys/cdefs.h> 33 34#define PROPERTY_MAX_NAME 64 --- 8 unchanged lines hidden (view full) --- 43 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 __P((int _attrnamespace, char **_string)); | 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 __P((const char *_string, 53 int *_attrnamespace)); |
54void login __P((struct utmp *_ut)); 55int login_tty __P((int _fd)); 56int logout __P((const char *_line)); 57void logwtmp __P((const char *_line, const char *_name, const char *_host)); 58void trimdomain __P((char *_fullhost, int _hostsize)); | 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); |
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)); | 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)); |
63const char *uu_lockerr __P((int _uu_lockresult)); 64int uu_lock __P((const char *_ttyname)); 65int uu_unlock __P((const char *_ttyname)); 66int uu_lock_txfr __P((const char *_ttyname, pid_t _pid)); 67int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid)); 68properties properties_read __P((int fd)); 69void properties_free __P((properties list)); 70char *property_find __P((properties list, const char *name)); 71char *auth_getval __P((const char *name)); 72int realhostname __P((char *host, size_t hsize, const struct in_addr *ip)); | 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; 74int realhostname_sa __P((char *host, size_t hsize, struct sockaddr *addr, 75 int addrlen)); 76#ifdef _STDIO_H_ /* avoid adding new includes */ | 73struct sockaddr; 74int realhostname_sa __P((char *host, size_t hsize, struct sockaddr *addr, 75 int addrlen)); 76#ifdef _STDIO_H_ /* avoid adding new includes */ |
77char *fparseln __P((FILE *, size_t *, size_t *, const char[3], int)); | 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) 84#define UU_LOCK_READ_ERR (-2) 85#define UU_LOCK_CREAT_ERR (-3) --- 19 unchanged lines hidden --- | 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) 84#define UU_LOCK_READ_ERR (-2) 85#define UU_LOCK_CREAT_ERR (-3) --- 19 unchanged lines hidden --- |