Deleted Added
full compact
vfs_vnops.c (31443) vfs_vnops.c (31564)
1/*
2 * Copyright (c) 1982, 1986, 1989, 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 * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94
1/*
2 * Copyright (c) 1982, 1986, 1989, 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 * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94
39 * $Id: vfs_vnops.c,v 1.41 1997/11/07 08:53:11 phk Exp $
39 * $Id: vfs_vnops.c,v 1.42 1997/11/29 01:33:10 dyson Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/fcntl.h>
45#include <sys/file.h>
46#include <sys/stat.h>
47#include <sys/proc.h>

--- 401 unchanged lines hidden (view full) ---

449 *(int *)data = vattr.va_size - fp->f_offset;
450 return (0);
451 }
452 if (com == FIONBIO || com == FIOASYNC) /* XXX */
453 return (0); /* XXX */
454 /* fall into ... */
455
456 default:
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/fcntl.h>
45#include <sys/file.h>
46#include <sys/stat.h>
47#include <sys/proc.h>

--- 401 unchanged lines hidden (view full) ---

449 *(int *)data = vattr.va_size - fp->f_offset;
450 return (0);
451 }
452 if (com == FIONBIO || com == FIOASYNC) /* XXX */
453 return (0); /* XXX */
454 /* fall into ... */
455
456 default:
457#if 0
457 return (ENOTTY);
458 return (ENOTTY);
458
459#endif
459 case VFIFO:
460 case VCHR:
461 case VBLK:
462 error = VOP_IOCTL(vp, com, data, fp->f_flag, p->p_ucred, p);
463 if (error == 0 && com == TIOCSCTTY) {
464
465 /* Do nothing if reassigning same control tty */
466 if (p->p_session->s_ttyvp == vp)

--- 69 unchanged lines hidden ---
460 case VFIFO:
461 case VCHR:
462 case VBLK:
463 error = VOP_IOCTL(vp, com, data, fp->f_flag, p->p_ucred, p);
464 if (error == 0 && com == TIOCSCTTY) {
465
466 /* Do nothing if reassigning same control tty */
467 if (p->p_session->s_ttyvp == vp)

--- 69 unchanged lines hidden ---