ibcs2_fcntl.c (92761) | ibcs2_fcntl.c (102003) |
---|---|
1/* 2 * Copyright (c) 1995 Scott Bartram 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 --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 1995 Scott Bartram 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 --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_fcntl.c 92761 2002-03-20 05:48:58Z alfred $ | 27 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_fcntl.c 102003 2002-08-17 02:36:16Z rwatson $ |
28 */ 29 30#include "opt_spx_hack.h" 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/fcntl.h> 35#include <sys/file.h> --- 162 unchanged lines hidden (view full) --- 198 199 error = fget(td, td->td_retval[0], &fp); 200 PROC_UNLOCK(p); 201 if (error) 202 return (EBADF); 203 204 /* ignore any error, just give it a try */ 205 if (fp->f_type == DTYPE_VNODE) | 28 */ 29 30#include "opt_spx_hack.h" 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/fcntl.h> 35#include <sys/file.h> --- 162 unchanged lines hidden (view full) --- 198 199 error = fget(td, td->td_retval[0], &fp); 200 PROC_UNLOCK(p); 201 if (error) 202 return (EBADF); 203 204 /* ignore any error, just give it a try */ 205 if (fp->f_type == DTYPE_VNODE) |
206 fo_ioctl(fp, TIOCSCTTY, (caddr_t) 0, td); | 206 fo_ioctl(fp, TIOCSCTTY, (caddr_t) 0, td->td_ucred, 207 td); |
207 fdrop(fp, td); 208 } else 209 PROC_UNLOCK(p); 210 return ret; 211} 212 213int 214ibcs2_creat(td, uap) --- 122 unchanged lines hidden --- | 208 fdrop(fp, td); 209 } else 210 PROC_UNLOCK(p); 211 return ret; 212} 213 214int 215ibcs2_creat(td, uap) --- 122 unchanged lines hidden --- |