Deleted Added
full compact
vnode.h (183754) vnode.h (184413)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. 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 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)vnode.h 8.7 (Berkeley) 2/4/94
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. 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 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)vnode.h 8.7 (Berkeley) 2/4/94
30 * $FreeBSD: head/sys/sys/vnode.h 183754 2008-10-10 21:23:50Z attilio $
30 * $FreeBSD: head/sys/sys/vnode.h 184413 2008-10-28 13:44:11Z trasz $
31 */
32
33#ifndef _SYS_VNODE_H_
34#define _SYS_VNODE_H_
35
36#include <sys/bufobj.h>
37#include <sys/queue.h>
38#include <sys/lock.h>

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

304#define IO_EXT 0x0400 /* operate on external attributes */
305#define IO_NORMAL 0x0800 /* operate on regular data */
306#define IO_NOMACCHECK 0x1000 /* MAC checks unnecessary */
307
308#define IO_SEQMAX 0x7F /* seq heuristic max value */
309#define IO_SEQSHIFT 16 /* seq heuristic in upper 16 bits */
310
311/*
31 */
32
33#ifndef _SYS_VNODE_H_
34#define _SYS_VNODE_H_
35
36#include <sys/bufobj.h>
37#include <sys/queue.h>
38#include <sys/lock.h>

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

304#define IO_EXT 0x0400 /* operate on external attributes */
305#define IO_NORMAL 0x0800 /* operate on regular data */
306#define IO_NOMACCHECK 0x1000 /* MAC checks unnecessary */
307
308#define IO_SEQMAX 0x7F /* seq heuristic max value */
309#define IO_SEQSHIFT 16 /* seq heuristic in upper 16 bits */
310
311/*
312 * Modes. Some values same as Ixxx entries from inode.h for now.
312 * Flags for accmode_t.
313 */
314#define VEXEC 000100 /* execute/search permission */
315#define VWRITE 000200 /* write permission */
316#define VREAD 000400 /* read permission */
317#define VADMIN 010000 /* permission to administer */
318#define VSTAT 020000 /* permission to retrieve attrs */
319#define VAPPEND 040000 /* permission to write/append */
320#define VALLPERM (VEXEC | VWRITE | VREAD | VADMIN | VSTAT | VAPPEND)

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

579#define textvp_fullpath(p, rb, rfb) \
580 vn_fullpath(FIRST_THREAD_IN_PROC(p), (p)->p_textvp, rb, rfb)
581int vn_fullpath(struct thread *td, struct vnode *vn,
582 char **retbuf, char **freebuf);
583int vn_fullpath_global(struct thread *td, struct vnode *vn,
584 char **retbuf, char **freebuf);
585int vn_commname(struct vnode *vn, char *buf, u_int buflen);
586int vaccess(enum vtype type, mode_t file_mode, uid_t file_uid,
313 */
314#define VEXEC 000100 /* execute/search permission */
315#define VWRITE 000200 /* write permission */
316#define VREAD 000400 /* read permission */
317#define VADMIN 010000 /* permission to administer */
318#define VSTAT 020000 /* permission to retrieve attrs */
319#define VAPPEND 040000 /* permission to write/append */
320#define VALLPERM (VEXEC | VWRITE | VREAD | VADMIN | VSTAT | VAPPEND)

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

579#define textvp_fullpath(p, rb, rfb) \
580 vn_fullpath(FIRST_THREAD_IN_PROC(p), (p)->p_textvp, rb, rfb)
581int vn_fullpath(struct thread *td, struct vnode *vn,
582 char **retbuf, char **freebuf);
583int vn_fullpath_global(struct thread *td, struct vnode *vn,
584 char **retbuf, char **freebuf);
585int vn_commname(struct vnode *vn, char *buf, u_int buflen);
586int vaccess(enum vtype type, mode_t file_mode, uid_t file_uid,
587 gid_t file_gid, mode_t acc_mode, struct ucred *cred,
587 gid_t file_gid, accmode_t accmode, struct ucred *cred,
588 int *privused);
589int vaccess_acl_posix1e(enum vtype type, uid_t file_uid,
588 int *privused);
589int vaccess_acl_posix1e(enum vtype type, uid_t file_uid,
590 gid_t file_gid, struct acl *acl, mode_t acc_mode,
590 gid_t file_gid, struct acl *acl, accmode_t accmode,
591 struct ucred *cred, int *privused);
592void vattr_null(struct vattr *vap);
593int vcount(struct vnode *vp);
594void vdrop(struct vnode *);
595void vdropl(struct vnode *);
596int vflush(struct mount *mp, int rootrefs, int flags, struct thread *td);
597int vget(struct vnode *vp, int lockflag, struct thread *td);
598void vgone(struct vnode *vp);

--- 144 unchanged lines hidden ---
591 struct ucred *cred, int *privused);
592void vattr_null(struct vattr *vap);
593int vcount(struct vnode *vp);
594void vdrop(struct vnode *);
595void vdropl(struct vnode *);
596int vflush(struct mount *mp, int rootrefs, int flags, struct thread *td);
597int vget(struct vnode *vp, int lockflag, struct thread *td);
598void vgone(struct vnode *vp);

--- 144 unchanged lines hidden ---