linux_stats.c (161665) | linux_stats.c (163606) |
---|---|
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> | 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 161665 2006-08-27 08:56:54Z netchild $"); | 30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_stats.c 163606 2006-10-22 11:52:19Z rwatson $"); |
31 32#include "opt_compat.h" 33#include "opt_mac.h" 34 35#include <sys/param.h> 36#include <sys/dirent.h> 37#include <sys/file.h> 38#include <sys/filedesc.h> 39#include <sys/proc.h> 40#include <sys/jail.h> | 31 32#include "opt_compat.h" 33#include "opt_mac.h" 34 35#include <sys/param.h> 36#include <sys/dirent.h> 37#include <sys/file.h> 38#include <sys/filedesc.h> 39#include <sys/proc.h> 40#include <sys/jail.h> |
41#include <sys/mac.h> | |
42#include <sys/malloc.h> 43#include <sys/mount.h> 44#include <sys/namei.h> 45#include <sys/stat.h> 46#include <sys/syscallsubr.h> 47#include <sys/systm.h> 48#include <sys/vnode.h> 49#include <sys/conf.h> --- 4 unchanged lines hidden (view full) --- 54#include <machine/../linux32/linux32_proto.h> 55#else 56#include <machine/../linux/linux.h> 57#include <machine/../linux/linux_proto.h> 58#endif 59 60#include <compat/linux/linux_util.h> 61 | 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#include <sys/conf.h> --- 4 unchanged lines hidden (view full) --- 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 59#include <compat/linux/linux_util.h> 60 |
61#include <security/mac/mac_framework.h> 62 |
|
62/* 63 * XXX: This was removed from newstat_copyout(), and almost identical 64 * XXX: code was in stat64_copyout(). findcdev() needs to be replaced 65 * XXX: with something that does lookup and locking properly. 66 * XXX: When somebody fixes this: please try to avoid duplicating it. 67 */ 68#if 0 69static void --- 516 unchanged lines hidden --- | 63/* 64 * XXX: This was removed from newstat_copyout(), and almost identical 65 * XXX: code was in stat64_copyout(). findcdev() needs to be replaced 66 * XXX: with something that does lookup and locking properly. 67 * XXX: When somebody fixes this: please try to avoid duplicating it. 68 */ 69#if 0 70static void --- 516 unchanged lines hidden --- |