Merge in Lite2: use fixed-width types and add whiteout file type.
Reviewed by: davidg & bde
This commit is contained in:
parent
77f8092585
commit
e829f6bd60
@ -30,8 +30,8 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)dirent.h 8.1 (Berkeley) 6/2/93
|
||||
* $Id: dirent.h,v 1.3 1994/08/21 04:41:38 paul Exp $
|
||||
* @(#)dirent.h 8.3 (Berkeley) 8/10/94
|
||||
* $Id: dirent.h,v 1.5 1996/02/24 04:48:20 hsu Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_DIRENT_H_
|
||||
@ -49,10 +49,10 @@
|
||||
*/
|
||||
|
||||
struct dirent {
|
||||
unsigned long d_fileno; /* file number of entry */
|
||||
unsigned short d_reclen; /* length of this record */
|
||||
unsigned char d_type; /* file type, see below */
|
||||
unsigned char d_namlen; /* length of string in d_name */
|
||||
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 */
|
||||
#ifdef _POSIX_SOURCE
|
||||
char d_name[255 + 1]; /* name must be no longer than this */
|
||||
#else
|
||||
@ -72,6 +72,7 @@ struct dirent {
|
||||
#define DT_REG 8
|
||||
#define DT_LNK 10
|
||||
#define DT_SOCK 12
|
||||
#define DT_WHT 14
|
||||
|
||||
/*
|
||||
* Convert between stat structure types and directory types.
|
||||
|
Loading…
x
Reference in New Issue
Block a user