Deleted Added
full compact
linux_machdep.c (303007) linux_machdep.c (315548)
1/*-
2 * Copyright (c) 2000 Marcel Moolenaar
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) 2000 Marcel Moolenaar
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/i386/linux/linux_machdep.c 303007 2016-07-18 16:38:06Z dchagin $");
30__FBSDID("$FreeBSD: stable/11/sys/i386/linux/linux_machdep.c 315548 2017-03-19 14:12:55Z trasz $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/capsicum.h>
35#include <sys/file.h>
36#include <sys/fcntl.h>
37#include <sys/imgact.h>
38#include <sys/lock.h>

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

606 }
607
608 return (error);
609}
610
611int
612linux_ftruncate64(struct thread *td, struct linux_ftruncate64_args *args)
613{
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/capsicum.h>
35#include <sys/file.h>
36#include <sys/fcntl.h>
37#include <sys/imgact.h>
38#include <sys/lock.h>

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

606 }
607
608 return (error);
609}
610
611int
612linux_ftruncate64(struct thread *td, struct linux_ftruncate64_args *args)
613{
614 struct ftruncate_args sa;
615
616#ifdef DEBUG
617 if (ldebug(ftruncate64))
618 printf(ARGS(ftruncate64, "%u, %jd"), args->fd,
619 (intmax_t)args->length);
620#endif
621
614
615#ifdef DEBUG
616 if (ldebug(ftruncate64))
617 printf(ARGS(ftruncate64, "%u, %jd"), args->fd,
618 (intmax_t)args->length);
619#endif
620
622 sa.fd = args->fd;
623 sa.length = args->length;
624 return sys_ftruncate(td, &sa);
621 return (kern_ftruncate(td, args->fd, args->length));
625}
626
627int
628linux_set_thread_area(struct thread *td, struct linux_set_thread_area_args *args)
629{
630 struct l_user_desc info;
631 int error;
632 int idx;

--- 203 unchanged lines hidden ---
622}
623
624int
625linux_set_thread_area(struct thread *td, struct linux_set_thread_area_args *args)
626{
627 struct l_user_desc info;
628 int error;
629 int idx;

--- 203 unchanged lines hidden ---