kern_descrip.c (6577) | kern_descrip.c (7430) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94 |
39 * $Id: kern_descrip.c,v 1.7 1994/12/12 12:27:39 bde Exp $ | 39 * $Id: kern_descrip.c,v 1.8 1995/02/20 19:42:33 guido Exp $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/filedesc.h> 45#include <sys/kernel.h> 46#include <sys/vnode.h> 47#include <sys/proc.h> --- 277 unchanged lines hidden (view full) --- 325 fdp->fd_lastfile = new; 326 *retval = new; 327 return (0); 328} 329 330/* 331 * Close a file descriptor. 332 */ | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/filedesc.h> 45#include <sys/kernel.h> 46#include <sys/vnode.h> 47#include <sys/proc.h> --- 277 unchanged lines hidden (view full) --- 325 fdp->fd_lastfile = new; 326 *retval = new; 327 return (0); 328} 329 330/* 331 * Close a file descriptor. 332 */ |
333struct close_args { 334 int fd; 335}; | |
336/* ARGSUSED */ 337int 338close(p, uap, retval) 339 struct proc *p; 340 struct close_args *uap; 341 int *retval; 342{ 343 register struct filedesc *fdp = p->p_fd; --- 622 unchanged lines hidden --- | 333/* ARGSUSED */ 334int 335close(p, uap, retval) 336 struct proc *p; 337 struct close_args *uap; 338 int *retval; 339{ 340 register struct filedesc *fdp = p->p_fd; --- 622 unchanged lines hidden --- |