fifo_vnops.c (9973) | fifo_vnops.c (10551) |
---|---|
1/* 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)fifo_vnops.c 8.2 (Berkeley) 1/4/94 | 1/* 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)fifo_vnops.c 8.2 (Berkeley) 1/4/94 |
34 * $Id: fifo_vnops.c,v 1.8 1995/03/16 18:13:13 bde Exp $ | 34 * $Id: fifo_vnops.c,v 1.10 1995/08/06 16:14:21 jkh Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/kernel.h> 39#include <sys/proc.h> 40#include <sys/time.h> 41#include <sys/namei.h> 42#include <sys/vnode.h> --- 314 unchanged lines hidden (view full) --- 357 */ 358int 359fifo_bmap(ap) 360 struct vop_bmap_args /* { 361 struct vnode *a_vp; 362 daddr_t a_bn; 363 struct vnode **a_vpp; 364 daddr_t *a_bnp; | 35 */ 36 37#include <sys/param.h> 38#include <sys/kernel.h> 39#include <sys/proc.h> 40#include <sys/time.h> 41#include <sys/namei.h> 42#include <sys/vnode.h> --- 314 unchanged lines hidden (view full) --- 357 */ 358int 359fifo_bmap(ap) 360 struct vop_bmap_args /* { 361 struct vnode *a_vp; 362 daddr_t a_bn; 363 struct vnode **a_vpp; 364 daddr_t *a_bnp; |
365 int *a_runp; 366 int *a_runb; |
|
365 } */ *ap; 366{ 367 368 if (ap->a_vpp != NULL) 369 *ap->a_vpp = ap->a_vp; 370 if (ap->a_bnp != NULL) 371 *ap->a_bnp = ap->a_bn; 372 if (ap->a_runp != NULL) 373 *ap->a_runp = 0; | 367 } */ *ap; 368{ 369 370 if (ap->a_vpp != NULL) 371 *ap->a_vpp = ap->a_vp; 372 if (ap->a_bnp != NULL) 373 *ap->a_bnp = ap->a_bn; 374 if (ap->a_runp != NULL) 375 *ap->a_runp = 0; |
376 if (ap->a_runb != NULL) 377 *ap->a_runb = 0; |
|
374 return (0); 375} 376 377/* 378 * At the moment we do not do any locking. 379 */ 380/* ARGSUSED */ 381int --- 155 unchanged lines hidden --- | 378 return (0); 379} 380 381/* 382 * At the moment we do not do any locking. 383 */ 384/* ARGSUSED */ 385int --- 155 unchanged lines hidden --- |