summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-05-31 19:32:53 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-05-31 19:32:53 +0000
commitfd564cd8d85a57f210321ed4edf1664c22e0a07f (patch)
tree21b0d9b8756e5a654ec63cbdc354b2dcb444d770 /sys
parentb46c5d7d550bda4bacce4b3e4d80eda23fdfa640 (diff)
Use internal type names, including __ino_t, for the members of struct
dirent. Better mnemonic and fixes non-XPG use ok matthew@ pirofti@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/dirent.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/dirent.h b/sys/sys/dirent.h
index 2d58d325611..1b4afd4c953 100644
--- a/sys/sys/dirent.h
+++ b/sys/sys/dirent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirent.h,v 1.8 2006/08/17 12:40:11 jmc Exp $ */
+/* $OpenBSD: dirent.h,v 1.9 2013/05/31 19:32:52 guenther Exp $ */
/* $NetBSD: dirent.h,v 1.12 1996/04/09 20:55:25 cgd Exp $ */
/*-
@@ -49,10 +49,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 */
+ __ino_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 */
#if __BSD_VISIBLE
#define MAXNAMLEN 255
char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */