Deleted Added
sdiff udiff text old ( 155382 ) new ( 156842 )
full compact
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
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

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

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
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_stats.c 155382 2006-02-06 10:10:42Z jeff $");
31
32#include "opt_mac.h"
33
34#include <sys/param.h>
35#include <sys/dirent.h>
36#include <sys/file.h>
37#include <sys/filedesc.h>
38#include <sys/proc.h>
39#include <sys/jail.h>
40#include <sys/mac.h>
41#include <sys/malloc.h>
42#include <sys/mount.h>
43#include <sys/namei.h>
44#include <sys/stat.h>
45#include <sys/syscallsubr.h>
46#include <sys/systm.h>
47#include <sys/vnode.h>
48
49#include "opt_compat.h"
50
51#ifdef COMPAT_LINUX32
52#include <machine/../linux32/linux.h>
53#include <machine/../linux32/linux32_proto.h>
54#else
55#include <machine/../linux/linux.h>
56#include <machine/../linux/linux_proto.h>
57#endif
58

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

182
183 error = kern_fstat(td, args->fd, &buf);
184 if (!error)
185 error = newstat_copyout(&buf, args->buf);
186
187 return (error);
188}
189
190/* XXX - All fields of type l_int are defined as l_long on i386 */
191struct l_statfs {
192 l_int f_type;
193 l_int f_bsize;
194 l_int f_blocks;
195 l_int f_bfree;
196 l_int f_bavail;
197 l_int f_files;

--- 222 unchanged lines hidden ---