summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-04-30 06:31:28 +0000
committerbde <bde@FreeBSD.org>2000-04-30 06:31:28 +0000
commitf92678d782a1d44f8a20d0c7fffead80514f2d40 (patch)
treebd1e17a17b9d4e6f20dd3c288d75e8b52db13324
parent0fa9118e2c155ae48741c8f2772bda4d83014994 (diff)
downloadFreeBSD-src-f92678d782a1d44f8a20d0c7fffead80514f2d40.zip
FreeBSD-src-f92678d782a1d44f8a20d0c7fffead80514f2d40.tar.gz
Removed superfluous forward declaration of struct klist. Forward
declarations of structs for use in prototypes are only necessary if the struct is not otherwise declared in scope. Removed prototypes for fdissequential() and fdsequential(). These functions never existed in FreeBSD. Fixed most style bugs in FreeBSD changes (mainly disordered prototypes and prototypes without parameter names).
-rw-r--r--sys/sys/filedesc.h38
1 files changed, 16 insertions, 22 deletions
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index 9b07cfe..0a43b83 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -35,7 +35,7 @@
*/
#ifndef _SYS_FILEDESC_H_
-#define _SYS_FILEDESC_H_
+#define _SYS_FILEDESC_H_
#include <sys/queue.h>
@@ -56,8 +56,6 @@
#define NDFILE 20
#define NDEXTENT 50 /* 250 bytes in 256-byte alloc. */
-struct klist;
-
struct filedesc {
struct file **fd_ofiles; /* file structures for open files */
char *fd_ofileflags; /* per-process open file flags */
@@ -102,7 +100,7 @@ struct filedesc0 {
#define OFILESIZE (sizeof(struct file *) + sizeof(char))
/*
- * This structure that holds the information needed to send a SIGIO or
+ * This structure holds the information needed to send a SIGIO or
* a SIGURG signal to a process or process group when new data arrives
* on a device or socket. The structure is placed on an SLIST belonging
* to the proc or pgrp so that the entire list may be revoked when the
@@ -126,28 +124,24 @@ struct sigio {
SLIST_HEAD(sigiolst, sigio);
#ifdef _KERNEL
-/*
- * Kernel global variables and routines.
- */
-int dupfdopen __P((struct filedesc *, int, int, int, int));
+int closef __P((struct file *fp, struct proc *p));
+int dupfdopen __P((struct filedesc *fdp, int indx, int dfd, int mode,
+ int error));
+int falloc __P((struct proc *p, struct file **resultfp, int *resultfd));
int fdalloc __P((struct proc *p, int want, int *result));
int fdavail __P((struct proc *p, int n));
-int falloc __P((struct proc *p, struct file **resultfp, int *resultfd));
-void ffree __P((struct file *));
-struct filedesc *fdinit __P((struct proc *p));
-struct filedesc *fdshare __P((struct proc *p));
+void fdcloseexec __P((struct proc *p));
struct filedesc *fdcopy __P((struct proc *p));
void fdfree __P((struct proc *p));
-int closef __P((struct file *fp,struct proc *p));
-void fdcloseexec __P((struct proc *p));
+struct filedesc *fdinit __P((struct proc *p));
+struct filedesc *fdshare __P((struct proc *p));
+void ffree __P((struct file *fp));
+pid_t fgetown __P((struct sigio *sigio));
+int fsetown __P((pid_t pgid, struct sigio **sigiop));
+void funsetown __P((struct sigio *sigio));
+void funsetownlst __P((struct sigiolst *sigiolst));
int getvnode __P((struct filedesc *fdp, int fd, struct file **fpp));
-int fdissequential __P((struct file *));
-void fdsequential __P((struct file *, int));
-pid_t fgetown __P((struct sigio *));
-int fsetown __P((pid_t, struct sigio **));
-void funsetown __P((struct sigio *));
-void funsetownlst __P((struct sigiolst *));
void setugidsafety __P((struct proc *p));
-#endif
+#endif /* _KERNEL */
-#endif
+#endif /* !_SYS_FILEDESC_H_ */
OpenPOWER on IntegriCloud