Deleted Added
full compact
filedesc.h (247602) filedesc.h (247736)
1/*-
2 * Copyright (c) 1990, 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 * @(#)filedesc.h 8.1 (Berkeley) 6/2/93
1/*-
2 * Copyright (c) 1990, 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 * @(#)filedesc.h 8.1 (Berkeley) 6/2/93
30 * $FreeBSD: head/sys/sys/filedesc.h 247602 2013-03-02 00:53:12Z pjd $
30 * $FreeBSD: head/sys/sys/filedesc.h 247736 2013-03-03 23:23:35Z pjd $
31 */
32
33#ifndef _SYS_FILEDESC_H_
34#define _SYS_FILEDESC_H_
35
36#include <sys/queue.h>
37#include <sys/event.h>
38#include <sys/lock.h>

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

131#define FILEDESC_XLOCK_ASSERT(fdp) sx_assert(&(fdp)->fd_sx, SX_XLOCKED | \
132 SX_NOTRECURSED)
133#define FILEDESC_UNLOCK_ASSERT(fdp) sx_assert(&(fdp)->fd_sx, SX_UNLOCKED)
134
135struct thread;
136
137void filecaps_init(struct filecaps *fcaps);
138void filecaps_copy(const struct filecaps *src, struct filecaps *dst);
31 */
32
33#ifndef _SYS_FILEDESC_H_
34#define _SYS_FILEDESC_H_
35
36#include <sys/queue.h>
37#include <sys/event.h>
38#include <sys/lock.h>

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

131#define FILEDESC_XLOCK_ASSERT(fdp) sx_assert(&(fdp)->fd_sx, SX_XLOCKED | \
132 SX_NOTRECURSED)
133#define FILEDESC_UNLOCK_ASSERT(fdp) sx_assert(&(fdp)->fd_sx, SX_UNLOCKED)
134
135struct thread;
136
137void filecaps_init(struct filecaps *fcaps);
138void filecaps_copy(const struct filecaps *src, struct filecaps *dst);
139void filecaps_move(struct filecaps *src, struct filecaps *dst);
139void filecaps_free(struct filecaps *fcaps);
140
141int closef(struct file *fp, struct thread *td);
142int do_dup(struct thread *td, int flags, int old, int new,
143 register_t *retval);
144int dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode,
145 int openerror, int *indxp);
146int falloc(struct thread *td, struct file **resultfp, int *resultfd,

--- 42 unchanged lines hidden ---
140void filecaps_free(struct filecaps *fcaps);
141
142int closef(struct file *fp, struct thread *td);
143int do_dup(struct thread *td, int flags, int old, int new,
144 register_t *retval);
145int dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode,
146 int openerror, int *indxp);
147int falloc(struct thread *td, struct file **resultfp, int *resultfd,

--- 42 unchanged lines hidden ---