From c0cb9588c8ede9e78d65e52ec2741147e6266dd6 Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 7 Jul 1998 04:08:44 +0000 Subject: 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). --- sys/fs/procfs/procfs.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/fs/procfs/procfs.h') 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) -- cgit v1.1