Deleted Added
full compact
file.h (180059) file.h (181905)
1/*-
2 * Copyright (c) 1982, 1986, 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 * @(#)file.h 8.3 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1982, 1986, 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 * @(#)file.h 8.3 (Berkeley) 1/9/95
30 * $FreeBSD: head/sys/sys/file.h 180059 2008-06-27 05:39:04Z jhb $
30 * $FreeBSD: head/sys/sys/file.h 181905 2008-08-20 08:31:58Z ed $
31 */
32
33#ifndef _SYS_FILE_H_
34#define _SYS_FILE_H_
35
36#ifndef _KERNEL
37#include <sys/types.h> /* XXX */
38#include <sys/fcntl.h>

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

57#define DTYPE_SOCKET 2 /* communications endpoint */
58#define DTYPE_PIPE 3 /* pipe */
59#define DTYPE_FIFO 4 /* fifo (named pipe) */
60#define DTYPE_KQUEUE 5 /* event queue */
61#define DTYPE_CRYPTO 6 /* crypto */
62#define DTYPE_MQUEUE 7 /* posix message queue */
63#define DTYPE_SHM 8 /* swap-backed shared memory */
64#define DTYPE_SEM 9 /* posix semaphore */
31 */
32
33#ifndef _SYS_FILE_H_
34#define _SYS_FILE_H_
35
36#ifndef _KERNEL
37#include <sys/types.h> /* XXX */
38#include <sys/fcntl.h>

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

57#define DTYPE_SOCKET 2 /* communications endpoint */
58#define DTYPE_PIPE 3 /* pipe */
59#define DTYPE_FIFO 4 /* fifo (named pipe) */
60#define DTYPE_KQUEUE 5 /* event queue */
61#define DTYPE_CRYPTO 6 /* crypto */
62#define DTYPE_MQUEUE 7 /* posix message queue */
63#define DTYPE_SHM 8 /* swap-backed shared memory */
64#define DTYPE_SEM 9 /* posix semaphore */
65#define DTYPE_PTS 10 /* pseudo teletype master device */
65
66#ifdef _KERNEL
67
68struct file;
69struct ucred;
70
71typedef int fo_rdwr_t(struct file *fp, struct uio *uio,
72 struct ucred *active_cred, int flags,

--- 234 unchanged lines hidden ---
66
67#ifdef _KERNEL
68
69struct file;
70struct ucred;
71
72typedef int fo_rdwr_t(struct file *fp, struct uio *uio,
73 struct ucred *active_cred, int flags,

--- 234 unchanged lines hidden ---