Deleted Added
full compact
vfs_syscalls.c (209742) vfs_syscalls.c (211616)
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 209742 2010-07-06 18:20:49Z kib $");
38__FBSDID("$FreeBSD: head/sys/kern/vfs_syscalls.c 211616 2010-08-22 11:18:57Z rpaulo $");
39
40#include "opt_compat.h"
41#include "opt_kdtrace.h"
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/bio.h>

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

80#include <security/mac/mac_framework.h>
81
82#include <vm/vm.h>
83#include <vm/vm_object.h>
84#include <vm/vm_page.h>
85#include <vm/uma.h>
86
87SDT_PROVIDER_DEFINE(vfs);
39
40#include "opt_compat.h"
41#include "opt_kdtrace.h"
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/bio.h>

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

80#include <security/mac/mac_framework.h>
81
82#include <vm/vm.h>
83#include <vm/vm_object.h>
84#include <vm/vm_page.h>
85#include <vm/uma.h>
86
87SDT_PROVIDER_DEFINE(vfs);
88SDT_PROBE_DEFINE(vfs, , stat, mode);
88SDT_PROBE_DEFINE(vfs, , stat, mode, mode);
89SDT_PROBE_ARGTYPE(vfs, , stat, mode, 0, "char *");
90SDT_PROBE_ARGTYPE(vfs, , stat, mode, 1, "int");
89SDT_PROBE_ARGTYPE(vfs, , stat, mode, 0, "char *");
90SDT_PROBE_ARGTYPE(vfs, , stat, mode, 1, "int");
91SDT_PROBE_DEFINE(vfs, , stat, reg);
91SDT_PROBE_DEFINE(vfs, , stat, reg, reg);
92SDT_PROBE_ARGTYPE(vfs, , stat, reg, 0, "char *");
93SDT_PROBE_ARGTYPE(vfs, , stat, reg, 1, "int");
94
95static int chroot_refuse_vdir_fds(struct filedesc *fdp);
96static int getutimes(const struct timeval *, enum uio_seg, struct timespec *);
97static int setfown(struct thread *td, struct vnode *, uid_t, gid_t);
98static int setfmode(struct thread *td, struct vnode *, int);
99static int setfflags(struct thread *td, struct vnode *, int);

--- 4567 unchanged lines hidden ---
92SDT_PROBE_ARGTYPE(vfs, , stat, reg, 0, "char *");
93SDT_PROBE_ARGTYPE(vfs, , stat, reg, 1, "int");
94
95static int chroot_refuse_vdir_fds(struct filedesc *fdp);
96static int getutimes(const struct timeval *, enum uio_seg, struct timespec *);
97static int setfown(struct thread *td, struct vnode *, uid_t, gid_t);
98static int setfmode(struct thread *td, struct vnode *, int);
99static int setfflags(struct thread *td, struct vnode *, int);

--- 4567 unchanged lines hidden ---