Make <sys/dirent.h> and <dirent.h> self-sufficient, using new __intN_t types.

This commit is contained in:
Dmitrij Tejblum 1998-12-19 00:30:01 +00:00
parent 68626e8df3
commit 80bea3fbbd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41929

View File

@ -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