Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/ptyfs Cosmetic; cleanup unused junk and fix comme...
details: https://anonhg.NetBSD.org/src/rev/9bc57b39500d
branches: trunk
changeset: 571117:9bc57b39500d
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 11 05:46:10 2004 +0000
description:
Cosmetic; cleanup unused junk and fix comments.
diffstat:
sys/miscfs/ptyfs/ptyfs.h | 16 +++-------------
sys/miscfs/ptyfs/ptyfs_vfsops.c | 6 +++---
2 files changed, 6 insertions(+), 16 deletions(-)
diffs (74 lines):
diff -r f4409ceaeccb -r 9bc57b39500d sys/miscfs/ptyfs/ptyfs.h
--- a/sys/miscfs/ptyfs/ptyfs.h Thu Nov 11 05:41:44 2004 +0000
+++ b/sys/miscfs/ptyfs/ptyfs.h Thu Nov 11 05:46:10 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptyfs.h,v 1.1 2004/11/11 01:40:32 christos Exp $ */
+/* $NetBSD: ptyfs.h,v 1.2 2004/11/11 05:46:10 christos Exp $ */
/*
* Copyright (c) 1993
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)ptyfs.h 8.9 (Berkeley) 5/14/95
+ * @(#)procfs.h 8.9 (Berkeley) 5/14/95
*/
/*
@@ -68,7 +68,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)ptyfs.h 8.9 (Berkeley) 5/14/95
+ * @(#)procfs.h 8.9 (Berkeley) 5/14/95
*/
#ifdef _KERNEL
@@ -108,9 +108,6 @@
* Kernel stuff follows
*/
#ifdef _KERNEL
-#define CNEQ(cnp, s, len) \
- ((cnp)->cn_namelen == (len) && \
- (memcmp((s), (cnp)->cn_nameptr, (len)) == 0))
#define UIO_MX 32
@@ -132,13 +129,6 @@
void ptyfs_hashinit(void);
void ptyfs_hashreinit(void);
void ptyfs_hashdone(void);
-int ptyfs_getfp(struct ptyfsnode *, struct proc **, struct file **);
-
-/* functions to check whether or not files should be displayed */
-int ptyfs_validfile(struct proc *, struct mount *);
-int ptyfs_validfpregs(struct proc *, struct mount *);
-int ptyfs_validregs(struct proc *, struct mount *);
-int ptyfs_validmap(struct proc *, struct mount *);
extern int (**ptyfs_vnodeop_p)(void *);
extern struct vfsops ptyfs_vfsops;
diff -r f4409ceaeccb -r 9bc57b39500d sys/miscfs/ptyfs/ptyfs_vfsops.c
--- a/sys/miscfs/ptyfs/ptyfs_vfsops.c Thu Nov 11 05:41:44 2004 +0000
+++ b/sys/miscfs/ptyfs/ptyfs_vfsops.c Thu Nov 11 05:46:10 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptyfs_vfsops.c,v 1.1 2004/11/11 01:40:32 christos Exp $ */
+/* $NetBSD: ptyfs_vfsops.c,v 1.2 2004/11/11 05:46:10 christos Exp $ */
/*
* Copyright (c) 1992, 1993, 1995
@@ -34,11 +34,11 @@
*/
/*
- * Kernel params Filesystem
+ * Pseudo-tty Filesystem
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.1 2004/11/11 01:40:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.2 2004/11/11 05:46:10 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
Home |
Main Index |
Thread Index |
Old Index