Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/procfs In procfs_readdir(), give /proc/# director...
details: https://anonhg.NetBSD.org/src/rev/874103ac2a1e
branches: trunk
changeset: 508585:874103ac2a1e
user: kleink <kleink%NetBSD.org@localhost>
date: Sat Apr 14 13:25:46 2001 +0000
description:
In procfs_readdir(), give /proc/# directories DT_DIR (rather than DT_REG).
diffstat:
sys/miscfs/procfs/procfs_vnops.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r a1fbc1a644ac -r 874103ac2a1e sys/miscfs/procfs/procfs_vnops.c
--- a/sys/miscfs/procfs/procfs_vnops.c Sat Apr 14 12:40:09 2001 +0000
+++ b/sys/miscfs/procfs/procfs_vnops.c Sat Apr 14 13:25:46 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_vnops.c,v 1.80 2001/03/30 20:25:11 fvdl Exp $ */
+/* $NetBSD: procfs_vnops.c,v 1.81 2001/04/14 13:25:46 kleink Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@@ -1058,7 +1058,7 @@
d.d_fileno = PROCFS_FILENO(p->p_pid, Pproc);
d.d_namlen = sprintf(d.d_name, "%ld",
(long)p->p_pid);
- d.d_type = DT_REG;
+ d.d_type = DT_DIR;
p = p->p_list.le_next;
break;
}
Home |
Main Index |
Thread Index |
Old Index