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