Deleted Added
full compact
ibcs2_stat.c (83366) ibcs2_stat.c (89306)
1/*
2 * Copyright (c) 1995 Scott Bartram
3 * Copyright (c) 1995 Steven Wallace
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*
2 * Copyright (c) 1995 Scott Bartram
3 * Copyright (c) 1995 Steven Wallace
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_stat.c 83366 2001-09-12 08:38:13Z julian $
28 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_stat.c 89306 2002-01-13 11:58:06Z alfred $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/namei.h>
34#include <sys/file.h>
35#include <sys/stat.h>
36#include <sys/filedesc.h>

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

128 struct mount *mp;
129 register struct statfs *sp;
130 int error;
131
132 if ((error = getvnode(td->td_proc->p_fd, SCARG(uap, fd), &fp)) != 0)
133 return (error);
134 mp = ((struct vnode *)fp->f_data)->v_mount;
135 sp = &mp->mnt_stat;
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/namei.h>
34#include <sys/file.h>
35#include <sys/stat.h>
36#include <sys/filedesc.h>

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

128 struct mount *mp;
129 register struct statfs *sp;
130 int error;
131
132 if ((error = getvnode(td->td_proc->p_fd, SCARG(uap, fd), &fp)) != 0)
133 return (error);
134 mp = ((struct vnode *)fp->f_data)->v_mount;
135 sp = &mp->mnt_stat;
136 if ((error = VFS_STATFS(mp, sp, td)) != 0)
136 error = VFS_STATFS(mp, sp, td);
137 fdrop(fp, td);
138 if (error != 0)
137 return (error);
138 sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
139 return cvt_statfs(sp, (caddr_t)SCARG(uap, buf), SCARG(uap, len));
140}
141
142int
143ibcs2_stat(td, uap)
144 struct thread *td;

--- 113 unchanged lines hidden ---
139 return (error);
140 sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
141 return cvt_statfs(sp, (caddr_t)SCARG(uap, buf), SCARG(uap, len));
142}
143
144int
145ibcs2_stat(td, uap)
146 struct thread *td;

--- 113 unchanged lines hidden ---