From 57e38ac21c9a43597c01b6bd20bb8a202e8c2bfa Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 28 Jan 2014 01:29:35 +0000 Subject: [PATCH] add a struct for the 4.3BSD struct direct --- sys/compat/sys/dirent.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/compat/sys/dirent.h b/sys/compat/sys/dirent.h index 77d78db7d6d0..0ce682dec7b2 100644 --- a/sys/compat/sys/dirent.h +++ b/sys/compat/sys/dirent.h @@ -1,4 +1,4 @@ -/* $NetBSD: dirent.h,v 1.2 2005/12/11 12:20:29 christos Exp $ */ +/* $NetBSD: dirent.h,v 1.3 2014/01/28 01:29:35 christos Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -34,6 +34,13 @@ #ifndef _COMPAT_SYS_DIRENT_H_ #define _COMPAT_SYS_DIRENT_H_ +struct dirent43 { + u_int32_t d_fileno; /* file number of entry */ + u_int16_t d_reclen; /* length of this record */ + u_int16_t d_namlen; /* length of string in d_name */ + char d_name[255 + 1]; /* name must be no longer than this */ +}; + struct dirent12 { u_int32_t d_fileno; /* file number of entry */ u_int16_t d_reclen; /* length of this record */