ReactOS  0.4.13-dev-687-g023794c
dir.h File Reference
#include "type.h"
Include dependency graph for dir.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  direct
 
struct  dirtemplate
 
struct  odirtemplate
 

Macros

#define doff_t   int32_t
 
#define MAXDIRSIZE   (0x7fffffff)
 
#define DIRBLKSIZ   DEV_BSIZE
 
#define MAXNAMLEN   255
 
#define APPLEUFS_DIRBLKSIZ   1024
 
#define DT_UNKNOWN   0
 
#define DT_FIFO   1
 
#define DT_CHR   2
 
#define DT_DIR   4
 
#define DT_BLK   6
 
#define DT_REG   8
 
#define DT_LNK   10
 
#define DT_SOCK   12
 
#define DT_WHT   14
 
#define IFTODT(mode)   (((mode) & 0170000) >> 12)
 
#define DTTOIF(dirtype)   ((dirtype) << 12)
 
#define DIRECTSIZ(namlen)   ((sizeof(struct direct) - (MAXNAMLEN+1)) + (((namlen)+1 + 3) &~ 3))
 
#define DIRSIZ(oldfmt, dp, needswap)
 
#define OLDDIRFMT   1
 
#define NEWDIRFMT   0
 

Macro Definition Documentation

◆ APPLEUFS_DIRBLKSIZ

#define APPLEUFS_DIRBLKSIZ   1024

Definition at line 81 of file dir.h.

◆ DIRBLKSIZ

#define DIRBLKSIZ   DEV_BSIZE

Definition at line 78 of file dir.h.

◆ DIRECTSIZ

#define DIRECTSIZ (   namlen)    ((sizeof(struct direct) - (MAXNAMLEN+1)) + (((namlen)+1 + 3) &~ 3))

Definition at line 116 of file dir.h.

◆ DIRSIZ

#define DIRSIZ (   oldfmt,
  dp,
  needswap 
)
Value:
(((oldfmt) && !(needswap)) ? \
DIRECTSIZ((dp)->d_type) : DIRECTSIZ((dp)->d_namlen))
#define DIRECTSIZ(namlen)
Definition: dir.h:116

Definition at line 120 of file dir.h.

◆ doff_t

#define doff_t   int32_t

Definition at line 49 of file dir.h.

◆ DT_BLK

#define DT_BLK   6

Definition at line 98 of file dir.h.

◆ DT_CHR

#define DT_CHR   2

Definition at line 96 of file dir.h.

◆ DT_DIR

#define DT_DIR   4

Definition at line 97 of file dir.h.

◆ DT_FIFO

#define DT_FIFO   1

Definition at line 95 of file dir.h.

◆ DT_LNK

#define DT_LNK   10

Definition at line 100 of file dir.h.

◆ DT_REG

#define DT_REG   8

Definition at line 99 of file dir.h.

◆ DT_SOCK

#define DT_SOCK   12

Definition at line 101 of file dir.h.

◆ DT_UNKNOWN

#define DT_UNKNOWN   0

Definition at line 94 of file dir.h.

◆ DT_WHT

#define DT_WHT   14

Definition at line 102 of file dir.h.

◆ DTTOIF

#define DTTOIF (   dirtype)    ((dirtype) << 12)

Definition at line 108 of file dir.h.

◆ IFTODT

#define IFTODT (   mode)    (((mode) & 0170000) >> 12)

Definition at line 107 of file dir.h.

◆ MAXDIRSIZE

#define MAXDIRSIZE   (0x7fffffff)

Definition at line 50 of file dir.h.

◆ MAXNAMLEN

#define MAXNAMLEN   255

Definition at line 80 of file dir.h.

◆ NEWDIRFMT

#define NEWDIRFMT   0

Definition at line 130 of file dir.h.

◆ OLDDIRFMT

#define OLDDIRFMT   1

Definition at line 129 of file dir.h.