Deleted Added
full compact
kern_descrip.c (46153) kern_descrip.c (46381)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94
1/*
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94
39 * $Id: kern_descrip.c,v 1.58 1999/01/08 17:31:08 eivind Exp $
39 * $Id: kern_descrip.c,v 1.59 1999/04/28 10:53:22 dt Exp $
40 */
41
42#include "opt_compat.h"
43#include "opt_devfs.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/sysproto.h>

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

1254 error = SYSCTL_OUT(req, (caddr_t)fp, sizeof (struct file));
1255 if (error)
1256 return (error);
1257 }
1258 return (0);
1259}
1260
1261SYSCTL_PROC(_kern, KERN_FILE, file, CTLTYPE_OPAQUE|CTLFLAG_RD,
40 */
41
42#include "opt_compat.h"
43#include "opt_devfs.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/sysproto.h>

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

1254 error = SYSCTL_OUT(req, (caddr_t)fp, sizeof (struct file));
1255 if (error)
1256 return (error);
1257 }
1258 return (0);
1259}
1260
1261SYSCTL_PROC(_kern, KERN_FILE, file, CTLTYPE_OPAQUE|CTLFLAG_RD,
1262 0, 0, sysctl_kern_file, "S,file", "");
1262 0, 0, sysctl_kern_file, "S,file", "Entire file table");
1263
1263
1264SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc,
1265 CTLFLAG_RW, &maxfilesperproc, 0, "");
1264SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc, CTLFLAG_RW,
1265 &maxfilesperproc, 0, "Maximum files allowed open per process");
1266
1266
1267SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW, &maxfiles, 0, "");
1267SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW,
1268 &maxfiles, 0, "Maximum number of files");
1268
1269static int fildesc_devsw_installed;
1270#ifdef DEVFS
1271static void *devfs_token_stdin;
1272static void *devfs_token_stdout;
1273static void *devfs_token_stderr;
1274static void *devfs_token_fildesc[NUMFDESC];
1275#endif

--- 38 unchanged lines hidden ---
1269
1270static int fildesc_devsw_installed;
1271#ifdef DEVFS
1272static void *devfs_token_stdin;
1273static void *devfs_token_stdout;
1274static void *devfs_token_stderr;
1275static void *devfs_token_fildesc[NUMFDESC];
1276#endif

--- 38 unchanged lines hidden ---