Deleted Added
full compact
vfs_syscalls.c (281551) vfs_syscalls.c (281714)
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: head/sys/kern/vfs_syscalls.c 281551 2015-04-15 09:13:11Z trasz $");
38__FBSDID("$FreeBSD: head/sys/kern/vfs_syscalls.c 281714 2015-04-18 21:50:13Z kib $");
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>

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

1928
1929 nuap.fd = uap->fd;
1930 nuap.offset = uap->offset;
1931 nuap.whence = uap->whence;
1932 return (sys_lseek(td, &nuap));
1933}
1934#endif /* COMPAT_43 */
1935
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>

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

1928
1929 nuap.fd = uap->fd;
1930 nuap.offset = uap->offset;
1931 nuap.whence = uap->whence;
1932 return (sys_lseek(td, &nuap));
1933}
1934#endif /* COMPAT_43 */
1935
1936#if defined(COMPAT_FREEBSD6)
1936/* Version with the 'pad' argument */
1937int
1938freebsd6_lseek(td, uap)
1939 struct thread *td;
1940 register struct freebsd6_lseek_args *uap;
1941{
1942 struct lseek_args ouap;
1943
1944 ouap.fd = uap->fd;
1945 ouap.offset = uap->offset;
1946 ouap.whence = uap->whence;
1947 return (sys_lseek(td, &ouap));
1948}
1937/* Version with the 'pad' argument */
1938int
1939freebsd6_lseek(td, uap)
1940 struct thread *td;
1941 register struct freebsd6_lseek_args *uap;
1942{
1943 struct lseek_args ouap;
1944
1945 ouap.fd = uap->fd;
1946 ouap.offset = uap->offset;
1947 ouap.whence = uap->whence;
1948 return (sys_lseek(td, &ouap));
1949}
1950#endif
1949
1950/*
1951 * Check access permissions using passed credentials.
1952 */
1953static int
1954vn_access(vp, user_flags, cred, td)
1955 struct vnode *vp;
1956 int user_flags;

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

3418 } */ nuap;
3419
3420 nuap.path = uap->path;
3421 nuap.length = uap->length;
3422 return (sys_truncate(td, &nuap));
3423}
3424#endif /* COMPAT_43 */
3425
1951
1952/*
1953 * Check access permissions using passed credentials.
1954 */
1955static int
1956vn_access(vp, user_flags, cred, td)
1957 struct vnode *vp;
1958 int user_flags;

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

3420 } */ nuap;
3421
3422 nuap.path = uap->path;
3423 nuap.length = uap->length;
3424 return (sys_truncate(td, &nuap));
3425}
3426#endif /* COMPAT_43 */
3427
3428#if defined(COMPAT_FREEBSD6)
3426/* Versions with the pad argument */
3427int
3428freebsd6_truncate(struct thread *td, struct freebsd6_truncate_args *uap)
3429{
3430 struct truncate_args ouap;
3431
3432 ouap.path = uap->path;
3433 ouap.length = uap->length;

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

3438freebsd6_ftruncate(struct thread *td, struct freebsd6_ftruncate_args *uap)
3439{
3440 struct ftruncate_args ouap;
3441
3442 ouap.fd = uap->fd;
3443 ouap.length = uap->length;
3444 return (sys_ftruncate(td, &ouap));
3445}
3429/* Versions with the pad argument */
3430int
3431freebsd6_truncate(struct thread *td, struct freebsd6_truncate_args *uap)
3432{
3433 struct truncate_args ouap;
3434
3435 ouap.path = uap->path;
3436 ouap.length = uap->length;

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

3441freebsd6_ftruncate(struct thread *td, struct freebsd6_ftruncate_args *uap)
3442{
3443 struct ftruncate_args ouap;
3444
3445 ouap.fd = uap->fd;
3446 ouap.length = uap->length;
3447 return (sys_ftruncate(td, &ouap));
3448}
3449#endif
3446
3447/*
3448 * Sync an open file.
3449 */
3450#ifndef _SYS_SYSPROTO_H_
3451struct fsync_args {
3452 int fd;
3453};

--- 1307 unchanged lines hidden ---
3450
3451/*
3452 * Sync an open file.
3453 */
3454#ifndef _SYS_SYSPROTO_H_
3455struct fsync_args {
3456 int fd;
3457};

--- 1307 unchanged lines hidden ---