uipc_usrreq.c (46919) | uipc_usrreq.c (47028) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94 |
34 * $Id: uipc_usrreq.c,v 1.43 1999/04/28 11:37:07 phk Exp $ | 34 * $Id: uipc_usrreq.c,v 1.44 1999/05/10 18:09:39 truckman Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/domain.h> 41#include <sys/fcntl.h> 42#include <sys/malloc.h> /* XXX must be before <sys/file.h> */ --- 343 unchanged lines hidden (view full) --- 386 387 if (unp == 0) 388 return EINVAL; 389 sb->st_blksize = so->so_snd.sb_hiwat; 390 if (so->so_type == SOCK_STREAM && unp->unp_conn != 0) { 391 so2 = unp->unp_conn->unp_socket; 392 sb->st_blksize += so2->so_rcv.sb_cc; 393 } | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/domain.h> 41#include <sys/fcntl.h> 42#include <sys/malloc.h> /* XXX must be before <sys/file.h> */ --- 343 unchanged lines hidden (view full) --- 386 387 if (unp == 0) 388 return EINVAL; 389 sb->st_blksize = so->so_snd.sb_hiwat; 390 if (so->so_type == SOCK_STREAM && unp->unp_conn != 0) { 391 so2 = unp->unp_conn->unp_socket; 392 sb->st_blksize += so2->so_rcv.sb_cc; 393 } |
394 sb->st_dev = NODEV; | 394 sb->st_dev = NOUDEV; |
395 if (unp->unp_ino == 0) 396 unp->unp_ino = unp_ino++; 397 sb->st_ino = unp->unp_ino; 398 return (0); 399} 400 401static int 402uipc_shutdown(struct socket *so) --- 801 unchanged lines hidden --- | 395 if (unp->unp_ino == 0) 396 unp->unp_ino = unp_ino++; 397 sb->st_ino = unp->unp_ino; 398 return (0); 399} 400 401static int 402uipc_shutdown(struct socket *so) --- 801 unchanged lines hidden --- |