Deleted Added
full compact
linux_file.c (122892) linux_file.c (127057)
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_file.c 122892 2003-11-19 04:12:32Z kan $");
30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_file.c 127057 2004-03-16 08:37:19Z tjr $");
31
32#include "opt_compat.h"
33#include "opt_mac.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/conf.h>
38#include <sys/dirent.h>

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

736 int fsflags;
737 const char *fstype;
738 void *fsdata;
739
740 error = copyinstr(args->filesystemtype, fstypename, MFSNAMELEN - 1,
741 NULL);
742 if (error)
743 return (error);
31
32#include "opt_compat.h"
33#include "opt_mac.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/conf.h>
38#include <sys/dirent.h>

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

736 int fsflags;
737 const char *fstype;
738 void *fsdata;
739
740 error = copyinstr(args->filesystemtype, fstypename, MFSNAMELEN - 1,
741 NULL);
742 if (error)
743 return (error);
744 error = copyinstr(args->specialfile, mntfromname, MFSNAMELEN - 1, NULL);
744 error = copyinstr(args->specialfile, mntfromname, MNAMELEN - 1, NULL);
745 if (error)
746 return (error);
745 if (error)
746 return (error);
747 error = copyinstr(args->dir, mntonname, MFSNAMELEN - 1, NULL);
747 error = copyinstr(args->dir, mntonname, MNAMELEN - 1, NULL);
748 if (error)
749 return (error);
750
751#ifdef DEBUG
752 if (ldebug(mount))
753 printf(ARGS(mount, "%s, %s, %s"),
754 fstypename, mntfromname, mntonname);
755#endif

--- 375 unchanged lines hidden ---
748 if (error)
749 return (error);
750
751#ifdef DEBUG
752 if (ldebug(mount))
753 printf(ARGS(mount, "%s, %s, %s"),
754 fstypename, mntfromname, mntonname);
755#endif

--- 375 unchanged lines hidden ---