Deleted Added
full compact
filedesc.h (2165) filedesc.h (3304)
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)filedesc.h 8.1 (Berkeley) 6/2/93
34 * $Id: filedesc.h,v 1.2 1994/08/02 07:52:59 davidg Exp $
34 * $Id: filedesc.h,v 1.3 1994/08/21 04:41:46 paul Exp $
35 */
36
37#ifndef _SYS_FILEDESC_H_
38#define _SYS_FILEDESC_H_
39
40/*
41 * This structure is used for the management of descriptors. It may be
42 * shared by multiple processes.

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

93
94#ifdef KERNEL
95/*
96 * Kernel global variables and routines.
97 */
98int fdalloc __P((struct proc *p, int want, int *result));
99int fdavail __P((struct proc *p, int n));
100int falloc __P((struct proc *p, struct file **resultfp, int *resultfd));
35 */
36
37#ifndef _SYS_FILEDESC_H_
38#define _SYS_FILEDESC_H_
39
40/*
41 * This structure is used for the management of descriptors. It may be
42 * shared by multiple processes.

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

93
94#ifdef KERNEL
95/*
96 * Kernel global variables and routines.
97 */
98int fdalloc __P((struct proc *p, int want, int *result));
99int fdavail __P((struct proc *p, int n));
100int falloc __P((struct proc *p, struct file **resultfp, int *resultfd));
101void ffree __P((struct file *));
101struct filedesc *fdcopy __P((struct proc *p));
102void fdfree __P((struct proc *p));
102struct filedesc *fdcopy __P((struct proc *p));
103void fdfree __P((struct proc *p));
104int closef __P((struct file *fp,struct proc *p));
105void fdcloseexec __P((struct proc *p));
103#endif
104
105#endif
106#endif
107
108#endif