Deleted Added
full compact
linux_file.c (315538) linux_file.c (315548)
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: stable/11/sys/compat/linux/linux_file.c 315538 2017-03-19 10:32:39Z trasz $");
30__FBSDID("$FreeBSD: stable/11/sys/compat/linux/linux_file.c 315548 2017-03-19 14:12:55Z trasz $");
31
32#include "opt_compat.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/capsicum.h>
37#include <sys/conf.h>
38#include <sys/dirent.h>

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

935 LFREEPATH(path);
936 return (error);
937}
938#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */
939
940int
941linux_ftruncate(struct thread *td, struct linux_ftruncate_args *args)
942{
31
32#include "opt_compat.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/capsicum.h>
37#include <sys/conf.h>
38#include <sys/dirent.h>

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

935 LFREEPATH(path);
936 return (error);
937}
938#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */
939
940int
941linux_ftruncate(struct thread *td, struct linux_ftruncate_args *args)
942{
943 struct ftruncate_args /* {
944 int fd;
945 int pad;
946 off_t length;
947 } */ nuap;
948
943
949 nuap.fd = args->fd;
950 nuap.length = args->length;
951 return (sys_ftruncate(td, &nuap));
944 return (kern_ftruncate(td, args->fd, args->length));
952}
953
954int
955linux_link(struct thread *td, struct linux_link_args *args)
956{
957 char *path, *to;
958 int error;
959

--- 749 unchanged lines hidden ---
945}
946
947int
948linux_link(struct thread *td, struct linux_link_args *args)
949{
950 char *path, *to;
951 int error;
952

--- 749 unchanged lines hidden ---