sys_pipe.c (30994) | sys_pipe.c (31016) |
---|---|
1/* 2 * Copyright (c) 1996 John S. Dyson 3 * 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 9 * notice immediately at the beginning of the file, without modification, 10 * this list of conditions, and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. Absolutely no warranty of function or purpose is made by the author 15 * John S. Dyson. 16 * 4. Modifications may be freely made to this file if the above conditions 17 * are met. 18 * | 1/* 2 * Copyright (c) 1996 John S. Dyson 3 * 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 9 * notice immediately at the beginning of the file, without modification, 10 * this list of conditions, and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. Absolutely no warranty of function or purpose is made by the author 15 * John S. Dyson. 16 * 4. Modifications may be freely made to this file if the above conditions 17 * are met. 18 * |
19 * $Id: sys_pipe.c,v 1.34 1997/10/06 08:30:08 peter Exp $ | 19 * $Id: sys_pipe.c,v 1.35 1997/11/06 19:29:21 phk Exp $ |
20 */ 21 22/* 23 * This file contains a high-performance replacement for the socket-based 24 * pipes scheme originally used in FreeBSD/4.4Lite. It does not support 25 * all features of sockets, but does do everything that pipes normally 26 * do. 27 */ --- 205 unchanged lines hidden (view full) --- 233 234/* 235 * initialize and allocate VM and memory for pipe 236 */ 237static void 238pipeinit(cpipe) 239 struct pipe *cpipe; 240{ | 20 */ 21 22/* 23 * This file contains a high-performance replacement for the socket-based 24 * pipes scheme originally used in FreeBSD/4.4Lite. It does not support 25 * all features of sockets, but does do everything that pipes normally 26 * do. 27 */ --- 205 unchanged lines hidden (view full) --- 233 234/* 235 * initialize and allocate VM and memory for pipe 236 */ 237static void 238pipeinit(cpipe) 239 struct pipe *cpipe; 240{ |
241 int s; | |
242 243 cpipe->pipe_buffer.in = 0; 244 cpipe->pipe_buffer.out = 0; 245 cpipe->pipe_buffer.cnt = 0; 246 cpipe->pipe_buffer.size = PIPE_SIZE; 247 248 /* Buffer kva gets dynamically allocated */ 249 cpipe->pipe_buffer.buffer = NULL; --- 851 unchanged lines hidden --- | 241 242 cpipe->pipe_buffer.in = 0; 243 cpipe->pipe_buffer.out = 0; 244 cpipe->pipe_buffer.cnt = 0; 245 cpipe->pipe_buffer.size = PIPE_SIZE; 246 247 /* Buffer kva gets dynamically allocated */ 248 cpipe->pipe_buffer.buffer = NULL; --- 851 unchanged lines hidden --- |