fdesc.h (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) fdesc.h (c447342094276b4d604449bb776063c7b88c4992)
1/*
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software donated to Berkeley by
6 * Jan-Simon Pendry.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)fdesc.h 8.5 (Berkeley) 1/21/94
37 *
38 * $FreeBSD$
39 */
40
1/*
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software donated to Berkeley by
6 * Jan-Simon Pendry.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)fdesc.h 8.5 (Berkeley) 1/21/94
37 *
38 * $FreeBSD$
39 */
40
41#ifdef KERNEL
41#ifdef _KERNEL
42struct fdescmount {
43 struct vnode *f_root; /* Root node */
44};
45
46#define FD_ROOT 2
47#define FD_DEVFD 3
48#define FD_STDIN 4
49#define FD_STDOUT 5

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

71
72#define VFSTOFDESC(mp) ((struct fdescmount *)((mp)->mnt_data))
73#define VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data)
74
75extern dev_t devctty;
76extern int fdesc_init __P((struct vfsconf *));
77extern int fdesc_root __P((struct mount *, struct vnode **));
78extern int fdesc_allocvp __P((fdntype, int, struct mount *, struct vnode **));
42struct fdescmount {
43 struct vnode *f_root; /* Root node */
44};
45
46#define FD_ROOT 2
47#define FD_DEVFD 3
48#define FD_STDIN 4
49#define FD_STDOUT 5

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

71
72#define VFSTOFDESC(mp) ((struct fdescmount *)((mp)->mnt_data))
73#define VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data)
74
75extern dev_t devctty;
76extern int fdesc_init __P((struct vfsconf *));
77extern int fdesc_root __P((struct mount *, struct vnode **));
78extern int fdesc_allocvp __P((fdntype, int, struct mount *, struct vnode **));
79#endif /* KERNEL */
79#endif /* _KERNEL */