1139743Simp/*- 243412Snewton * Copyright (c) 1998 Mark Newton 343412Snewton * Copyright (c) 1996 Christos Zoulas. 443412Snewton * All rights reserved. 543412Snewton * 643412Snewton * Redistribution and use in source and binary forms, with or without 743412Snewton * modification, are permitted provided that the following conditions 843412Snewton * are met: 943412Snewton * 1. Redistributions of source code must retain the above copyright 1043412Snewton * notice, this list of conditions and the following disclaimer. 1143412Snewton * 2. Redistributions in binary form must reproduce the above copyright 1243412Snewton * notice, this list of conditions and the following disclaimer in the 1343412Snewton * documentation and/or other materials provided with the distribution. 1443412Snewton * 3. All advertising materials mentioning features or use of this software 1543412Snewton * must display the following acknowledgement: 1643412Snewton * This product includes software developed by Christos Zoulas. 1743412Snewton * 4. The name of the author may not be used to endorse or promote products 1843412Snewton * derived from this software without specific prior written permission. 1943412Snewton * 2043412Snewton * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2143412Snewton * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2243412Snewton * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2343412Snewton * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2443412Snewton * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2543412Snewton * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2643412Snewton * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2743412Snewton * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2843412Snewton * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2943412Snewton * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3049267Snewton * 3150477Speter * $FreeBSD$ 3243412Snewton */ 3343412Snewton 3443412Snewton#ifndef _SVR4_SOCKET_H_ 3543412Snewton#define _SVR4_SOCKET_H_ 3643412Snewton 3743412Snewton#include <netinet/in.h> 3843412Snewton 3943412Snewtonstruct sockaddr_un; 4043412Snewtonstruct proc; 4183366Sjulianstruct thread; 4243412Snewtonstruct file; 4343412Snewton 4443412Snewtonstruct svr4_sockaddr_in { 4543412Snewton u_char sin_family; 4643412Snewton u_short sin_port; 4743412Snewton struct in_addr sin_addr; 4843412Snewton u_char sin_zero[8]; 4943412Snewton}; 5043412Snewton 51160558Sjhbint svr4_add_socket(struct thread *, const char *, struct stat *); 52160558Sjhbvoid svr4_delete_socket(struct proc *, struct file *); 53160558Sjhbint svr4_find_socket(struct thread *, struct file *, dev_t, ino_t, 54160558Sjhb struct sockaddr_un *); 55160558Sjhbvoid svr4_sockcache_init(void); 56160558Sjhbvoid svr4_sockcache_destroy(void); 5743412Snewton 5843412Snewton#endif /* _SVR4_SOCKET_H_ */ 59