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 --- 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/compat/linux/linux_stats.c 102954 2002-09-05 08:13:20Z bde $ |
29 */ 30 31#include "opt_mac.h" 32 33#include <sys/param.h> 34#include <sys/conf.h> 35#include <sys/dirent.h> 36#include <sys/file.h> 37#include <sys/filedesc.h> 38#include <sys/proc.h> 39#include <sys/mac.h> |
40#include <sys/malloc.h> |
41#include <sys/mount.h> 42#include <sys/namei.h> 43#include <sys/stat.h> |
44#include <sys/systm.h> 45#include <sys/vnode.h> 46 47#include <machine/../linux/linux.h> 48#include <machine/../linux/linux_proto.h> |
49 |
50#include <compat/linux/linux_util.h> 51 52static int 53newstat_copyout(struct stat *buf, void *ubuf) 54{ 55 struct l_newstat tbuf; 56 struct cdevsw *cdevsw; 57 dev_t dev; --- 443 unchanged lines hidden --- |