linux_file.c (302408) | linux_file.c (304987) |
---|---|
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 300411 2016-05-22 12:26:03Z dchagin $"); | 30__FBSDID("$FreeBSD: stable/11/sys/compat/linux/linux_file.c 304987 2016-08-29 06:32:30Z kib $"); |
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> --- 969 unchanged lines hidden (view full) --- 1008 return (error); 1009} 1010 1011int 1012linux_fdatasync(td, uap) 1013 struct thread *td; 1014 struct linux_fdatasync_args *uap; 1015{ | 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> --- 969 unchanged lines hidden (view full) --- 1008 return (error); 1009} 1010 1011int 1012linux_fdatasync(td, uap) 1013 struct thread *td; 1014 struct linux_fdatasync_args *uap; 1015{ |
1016 struct fsync_args bsd; | |
1017 | 1016 |
1018 bsd.fd = uap->fd; 1019 return (sys_fsync(td, &bsd)); | 1017 return (kern_fsync(td, uap->fd, false)); |
1020} 1021 1022int 1023linux_pread(td, uap) 1024 struct thread *td; 1025 struct linux_pread_args *uap; 1026{ 1027 struct pread_args bsd; --- 616 unchanged lines hidden --- | 1018} 1019 1020int 1021linux_pread(td, uap) 1022 struct thread *td; 1023 struct linux_pread_args *uap; 1024{ 1025 struct pread_args bsd; --- 616 unchanged lines hidden --- |