uipc_usrreq.c (130398) | uipc_usrreq.c (130480) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94 30 */ 31 32#include <sys/cdefs.h> | 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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 130398 2004-06-13 02:50:07Z rwatson $"); | 33__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 130480 2004-06-14 18:16:22Z rwatson $"); |
34 35#include "opt_mac.h" 36 37#include <sys/param.h> 38#include <sys/domain.h> 39#include <sys/fcntl.h> 40#include <sys/malloc.h> /* XXX must be before <sys/file.h> */ 41#include <sys/file.h> --- 331 unchanged lines hidden (view full) --- 373 if (error) 374 break; /* XXX */ 375 } else { 376 error = ENOTCONN; 377 break; 378 } 379 } 380 | 34 35#include "opt_mac.h" 36 37#include <sys/param.h> 38#include <sys/domain.h> 39#include <sys/fcntl.h> 40#include <sys/malloc.h> /* XXX must be before <sys/file.h> */ 41#include <sys/file.h> --- 331 unchanged lines hidden (view full) --- 373 if (error) 374 break; /* XXX */ 375 } else { 376 error = ENOTCONN; 377 break; 378 } 379 } 380 |
381 if (so->so_state & SS_CANTSENDMORE) { | 381 if (so->so_snd.sb_state & SBS_CANTSENDMORE) { |
382 error = EPIPE; 383 break; 384 } 385 if (unp->unp_conn == NULL) 386 panic("uipc_send connected but no connection?"); 387 so2 = unp->unp_conn->unp_socket; 388 /* 389 * Send to paired receive port, and then reduce --- 1280 unchanged lines hidden --- | 382 error = EPIPE; 383 break; 384 } 385 if (unp->unp_conn == NULL) 386 panic("uipc_send connected but no connection?"); 387 so2 = unp->unp_conn->unp_socket; 388 /* 389 * Send to paired receive port, and then reduce --- 1280 unchanged lines hidden --- |