aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/procfs/procfs.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-06-13 20:53:16 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-06-13 20:53:16 +0000
commit7a7404d2751f7c6fae53d920537ca832a147a409 (patch)
tree9061a053fb584c58522f2c35959587a74c7ef647 /sys/fs/procfs/procfs.h
parent7b692186479c3b54853e6e4cdea00a7e3dddd703 (diff)
downloadsrc-7a7404d2751f7c6fae53d920537ca832a147a409.tar.gz
src-7a7404d2751f7c6fae53d920537ca832a147a409.zip
Eliminate the bogus procfs private almost struct dirent structure.
Spotted by: Lars Hamren Reviewed by: bde
Notes
Notes: svn path=/head/; revision=47897
Diffstat (limited to 'sys/fs/procfs/procfs.h')
-rw-r--r--sys/fs/procfs/procfs.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h
index b758d0683a22..b38ed872dc8b 100644
--- a/sys/fs/procfs/procfs.h
+++ b/sys/fs/procfs/procfs.h
@@ -37,7 +37,7 @@
* @(#)procfs.h 8.9 (Berkeley) 5/14/95
*
* From:
- * $Id: procfs.h,v 1.24 1999/04/30 13:04:20 phk Exp $
+ * $Id: procfs.h,v 1.25 1999/05/04 08:00:10 phk Exp $
*/
/*
@@ -77,6 +77,7 @@ struct pfsnode {
#define PROCFS_NOTELEN 64 /* max length of a note (/proc/$pid/note) */
#define PROCFS_CTLLEN 8 /* max length of a ctl msg (/proc/$pid/ctl */
+#define PROCFS_NAMELEN 8 /* max length of a filename component */
/*
* Kernel stuff follows
@@ -100,19 +101,6 @@ struct pfsnode {
((p2)->p_flag & P_SUGID) == 0) || \
(suser_xxx(0, (p1), PRISON_ROOT) == 0)))
-/*
- * Format of a directory entry in /proc, ...
- * This must map onto struct dirent (see <dirent.h>)
- */
-#define PROCFS_NAMELEN 8
-struct pfsdent {
- u_int32_t d_fileno;
- u_int16_t d_reclen;
- u_int8_t d_type;
- u_int8_t d_namlen;
- char d_name[PROCFS_NAMELEN];
-};
-#define UIO_MX sizeof(struct pfsdent)
#define PROCFS_FILENO(pid, type) \
(((type) < Pproc) ? \
((type) + 2) : \