summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1998-12-19 00:30:01 +0000
committerdt <dt@FreeBSD.org>1998-12-19 00:30:01 +0000
commitc38333521ca4a466ceb5fd9343b434579dcc4ae5 (patch)
tree9a772b04e6b84acc11b2d7c07e265f3ff995c7aa
parente03090ed3781e2076d464cf8b10e4268a40c5b7a (diff)
downloadFreeBSD-src-c38333521ca4a466ceb5fd9343b434579dcc4ae5.zip
FreeBSD-src-c38333521ca4a466ceb5fd9343b434579dcc4ae5.tar.gz
Make <sys/dirent.h> and <dirent.h> self-sufficient, using new __intN_t types.
-rw-r--r--sys/sys/dirent.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/sys/dirent.h b/sys/sys/dirent.h
index 854ec38..33b2d7f 100644
--- a/sys/sys/dirent.h
+++ b/sys/sys/dirent.h
@@ -31,12 +31,14 @@
* SUCH DAMAGE.
*
* @(#)dirent.h 8.3 (Berkeley) 8/10/94
- * $Id: dirent.h,v 1.7 1997/02/22 09:45:02 peter Exp $
+ * $Id: dirent.h,v 1.8 1997/04/10 13:54:19 bde Exp $
*/
#ifndef _SYS_DIRENT_H_
#define _SYS_DIRENT_H_
+#include <machine/ansi.h>
+
/*
* The dirent structure defines the format of directory entries returned by
* the getdirentries(2) system call.
@@ -49,10 +51,10 @@
*/
struct dirent {
- u_int32_t d_fileno; /* file number of entry */
- u_int16_t d_reclen; /* length of this record */
- u_int8_t d_type; /* file type, see below */
- u_int8_t d_namlen; /* length of string in d_name */
+ __uint32_t d_fileno; /* file number of entry */
+ __uint16_t d_reclen; /* length of this record */
+ __uint8_t d_type; /* file type, see below */
+ __uint8_t d_namlen; /* length of string in d_name */
#ifdef _POSIX_SOURCE
char d_name[255 + 1]; /* name must be no longer than this */
#else
OpenPOWER on IntegriCloud