summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-07 04:08:44 +0000
committerbde <bde@FreeBSD.org>1998-07-07 04:08:44 +0000
commitc0cb9588c8ede9e78d65e52ec2741147e6266dd6 (patch)
tree28959629c6d5eb5ab54eafc3946e5db4378efb57 /sys/fs/procfs/procfs.h
parent3349737cd7487ec09250821873b7f3810971f7ad (diff)
downloadFreeBSD-src-c0cb9588c8ede9e78d65e52ec2741147e6266dd6.zip
FreeBSD-src-c0cb9588c8ede9e78d65e52ec2741147e6266dd6.tar.gz
Quick fix for type mismatches which were fatal if longs aren't 32
bits. We used a private, wrong, version of `struct dirent' to help break getdirentries(), and we use a silly check that the size of this struct is a power of 2 to help break mount() if getdirentries() would not work. This fix just changes the struct to match `struct dirent' (except for the name length).
Diffstat (limited to 'sys/fs/procfs/procfs.h')
-rw-r--r--sys/fs/procfs/procfs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h
index 9adee8a..b727e16 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.18 1997/12/30 08:46:41 bde Exp $
+ * $Id: procfs.h,v 1.19 1998/05/19 00:00:13 tegge Exp $
*/
/*
@@ -103,10 +103,10 @@ struct pfsnode {
*/
#define PROCFS_NAMELEN 8
struct pfsdent {
- u_long d_fileno;
- u_short d_reclen;
- u_char d_type;
- u_char d_namlen;
+ 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)
OpenPOWER on IntegriCloud