Deleted Added
full compact
vfs_syscalls.c (313450) vfs_syscalls.c (315548)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
35 */
36
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: stable/11/sys/kern/vfs_syscalls.c 313450 2017-02-08 18:32:35Z jhb $");
38__FBSDID("$FreeBSD: stable/11/sys/kern/vfs_syscalls.c 315548 2017-03-19 14:12:55Z trasz $");
39
40#include "opt_capsicum.h"
41#include "opt_compat.h"
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/bio.h>

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

3358 ouap.path = uap->path;
3359 ouap.length = uap->length;
3360 return (sys_truncate(td, &ouap));
3361}
3362
3363int
3364freebsd6_ftruncate(struct thread *td, struct freebsd6_ftruncate_args *uap)
3365{
39
40#include "opt_capsicum.h"
41#include "opt_compat.h"
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/bio.h>

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

3358 ouap.path = uap->path;
3359 ouap.length = uap->length;
3360 return (sys_truncate(td, &ouap));
3361}
3362
3363int
3364freebsd6_ftruncate(struct thread *td, struct freebsd6_ftruncate_args *uap)
3365{
3366 struct ftruncate_args ouap;
3367
3366
3368 ouap.fd = uap->fd;
3369 ouap.length = uap->length;
3370 return (sys_ftruncate(td, &ouap));
3367 return (kern_ftruncate(td, uap->fd, uap->length));
3371}
3372#endif
3373
3374int
3375kern_fsync(struct thread *td, int fd, bool fullsync)
3376{
3377 struct vnode *vp;
3378 struct mount *mp;

--- 1321 unchanged lines hidden ---
3368}
3369#endif
3370
3371int
3372kern_fsync(struct thread *td, int fd, bool fullsync)
3373{
3374 struct vnode *vp;
3375 struct mount *mp;

--- 1321 unchanged lines hidden ---