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 $
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 } */ *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;
374 return (0);
375}
376
377/*
378 * At the moment we do not do any locking.
379 */
380/* ARGSUSED */
381int
--- 155 unchanged lines hidden ---
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 $
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 } */ *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;
374 return (0);
375}
376
377/*
378 * At the moment we do not do any locking.
379 */
380/* ARGSUSED */
381int
--- 155 unchanged lines hidden ---