summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-05-31 19:32:52 +0000
committerguenther <guenther@openbsd.org>2013-05-31 19:32:52 +0000
commitd41644d5efced6bd6675b2db2cc974774a06e34e (patch)
treeb217ae85e5a2961fabd1422d26a7a9441a74793c /sys
parentRename tpms(4), the driver for Apple USB touchpads, to utpms(4) and move (diff)
downloadwireguard-openbsd-d41644d5efced6bd6675b2db2cc974774a06e34e.tar.xz
wireguard-openbsd-d41644d5efced6bd6675b2db2cc974774a06e34e.zip
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 */