aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index f8987ae8611a..d28faac16cbe 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1,4 +1,11 @@
/*
+ * Copyright (c) UNIX System Laboratories, Inc. All or some portions
+ * of this file are derived from material licensed to the
+ * University of California by American Telephone and Telegraph Co.
+ * or UNIX System Laboratories, Inc. and are reproduced herein with
+ * the permission of UNIX System Laboratories, Inc.
+ */
+/*
* Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
* All rights reserved.
*
@@ -31,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)kern_descrip.c 7.28 (Berkeley) 6/25/91
- * $Id: kern_descrip.c,v 1.4 1993/10/16 15:24:11 rgrimes Exp $
+ * $Id: kern_descrip.c,v 1.6.2.1 1994/05/04 07:54:36 rgrimes Exp $
*/
#include "param.h"
@@ -50,6 +57,8 @@
#include "syslog.h"
#include "resourcevar.h"
+#include "vm/vm_user.h"
+
/*
* Descriptor management.
*/
@@ -61,6 +70,7 @@ extern int maxfdescs; /* maximum number of file descriptors to a process */
* System calls on descriptors.
*/
/* ARGSUSED */
+int
getdtablesize(p, uap, retval)
struct proc *p;
struct args *uap;
@@ -80,6 +90,7 @@ struct dup_args {
};
/* ARGSUSED */
+int
dup(p, uap, retval)
struct proc *p;
struct dup_args *uap;
@@ -118,6 +129,7 @@ struct dup2_args {
};
/* ARGSUSED */
+int
dup2(p, uap, retval)
struct proc *p;
struct dup2_args *uap;
@@ -168,6 +180,7 @@ struct fcntl_args {
};
/* ARGSUSED */
+int
fcntl(p, uap, retval)
struct proc *p;
register struct fcntl_args *uap;
@@ -317,6 +330,7 @@ struct close_args {
int fd;
};
+int
close(p, uap, retval)
struct proc *p;
struct close_args *uap;
@@ -352,6 +366,7 @@ struct fstat_args {
};
/* ARGSUSED */
+int
fstat(p, uap, retval)
struct proc *p;
register struct fstat_args *uap;
@@ -389,6 +404,7 @@ fstat(p, uap, retval)
*/
int fdexpand;
+int
fdalloc(p, want, result)
struct proc *p;
int want;
@@ -457,6 +473,7 @@ fdalloc(p, want, result)
* Check to see whether n user file descriptors
* are available to the process p.
*/
+int
fdavail(p, n)
struct proc *p;
register int n;
@@ -479,6 +496,7 @@ fdavail(p, n)
* Create a new open file structure and allocate
* a file decriptor for the process that refers to it.
*/
+int
falloc(p, resultfp, resultfd)
register struct proc *p;
struct file **resultfp;
@@ -526,6 +544,7 @@ falloc(p, resultfp, resultfd)
/*
* Free a file descriptor.
*/
+void
ffree(fp)
register struct file *fp;
{
@@ -659,6 +678,7 @@ fdcloseexec(p)
* Internal form of close.
* Decrement reference count on file structure.
*/
+int
closef(fp, p)
register struct file *fp;
register struct proc *p;
@@ -713,6 +733,7 @@ struct flock_args {
};
/* ARGSUSED */
+int
flock(p, uap, retval)
struct proc *p;
register struct flock_args *uap;
@@ -759,6 +780,7 @@ flock(p, uap, retval)
* references to this file will be direct to the other driver.
*/
/* ARGSUSED */
+int
fdopen(dev, mode, type)
dev_t dev;
int mode, type;
@@ -779,6 +801,7 @@ fdopen(dev, mode, type)
/*
* Duplicate the specified descriptor to a free descriptor.
*/
+int
dupfdopen(fdp, indx, dfd, mode)
register struct filedesc *fdp;
register int indx, dfd;