uipc_syscalls.c (129043) | uipc_syscalls.c (129906) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * sendfile(2) and related extensions: 6 * Copyright (c) 1998, David Greenman. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 33 */ 34 35#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * sendfile(2) and related extensions: 6 * Copyright (c) 1998, David Greenman. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/kern/uipc_syscalls.c 129043 2004-05-08 02:24:21Z rwatson $"); | 36__FBSDID("$FreeBSD: head/sys/kern/uipc_syscalls.c 129906 2004-05-31 21:46:06Z bmilekic $"); |
37 38#include "opt_compat.h" 39#include "opt_ktrace.h" 40#include "opt_mac.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> --- 11 unchanged lines hidden (view full) --- 56#include <sys/mount.h> 57#include <sys/mbuf.h> 58#include <sys/protosw.h> 59#include <sys/sf_buf.h> 60#include <sys/socket.h> 61#include <sys/socketvar.h> 62#include <sys/signalvar.h> 63#include <sys/syscallsubr.h> | 37 38#include "opt_compat.h" 39#include "opt_ktrace.h" 40#include "opt_mac.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> --- 11 unchanged lines hidden (view full) --- 56#include <sys/mount.h> 57#include <sys/mbuf.h> 58#include <sys/protosw.h> 59#include <sys/sf_buf.h> 60#include <sys/socket.h> 61#include <sys/socketvar.h> 62#include <sys/signalvar.h> 63#include <sys/syscallsubr.h> |
64#include <sys/sysctl.h> |
|
64#include <sys/uio.h> 65#include <sys/vnode.h> 66#ifdef KTRACE 67#include <sys/ktrace.h> 68#endif 69 70#include <vm/vm.h> 71#include <vm/vm_object.h> --- 8 unchanged lines hidden (view full) --- 80static int accept1(struct thread *td, struct accept_args *uap, int compat); 81static int do_sendfile(struct thread *td, struct sendfile_args *uap, int compat); 82static int getsockname1(struct thread *td, struct getsockname_args *uap, 83 int compat); 84static int getpeername1(struct thread *td, struct getpeername_args *uap, 85 int compat); 86 87/* | 65#include <sys/uio.h> 66#include <sys/vnode.h> 67#ifdef KTRACE 68#include <sys/ktrace.h> 69#endif 70 71#include <vm/vm.h> 72#include <vm/vm_object.h> --- 8 unchanged lines hidden (view full) --- 81static int accept1(struct thread *td, struct accept_args *uap, int compat); 82static int do_sendfile(struct thread *td, struct sendfile_args *uap, int compat); 83static int getsockname1(struct thread *td, struct getsockname_args *uap, 84 int compat); 85static int getpeername1(struct thread *td, struct getpeername_args *uap, 86 int compat); 87 88/* |
89 * NSFBUFS-related variables and associated sysctls 90 */ 91int nsfbufs; 92int nsfbufspeak; 93int nsfbufsused; 94 95SYSCTL_DECL(_kern_ipc); 96SYSCTL_INT(_kern_ipc, OID_AUTO, nsfbufs, CTLFLAG_RDTUN, &nsfbufs, 0, 97 "Maximum number of sendfile(2) sf_bufs available"); 98SYSCTL_INT(_kern_ipc, OID_AUTO, nsfbufspeak, CTLFLAG_RD, &nsfbufspeak, 0, 99 "Number of sendfile(2) sf_bufs at peak usage"); 100SYSCTL_INT(_kern_ipc, OID_AUTO, nsfbufsused, CTLFLAG_RD, &nsfbufsused, 0, 101 "Number of sendfile(2) sf_bufs in use"); 102 103/* |
|
88 * System call interface to the socket abstraction. 89 */ 90#if defined(COMPAT_43) || defined(COMPAT_SUNOS) 91#define COMPAT_OLDSOCK 92#endif 93 94/* 95 * MPSAFE --- 1984 unchanged lines hidden --- | 104 * System call interface to the socket abstraction. 105 */ 106#if defined(COMPAT_43) || defined(COMPAT_SUNOS) 107#define COMPAT_OLDSOCK 108#endif 109 110/* 111 * MPSAFE --- 1984 unchanged lines hidden --- |