Subversion Repositories HelenOS

Rev

Rev 2404 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2404 Rev 2435
Line 30... Line 30...
30
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
31
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
32
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
32
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
33
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
 */
34
 */
35
 
35
 
-
 
36
/** @addtogroup FileSystemImpl
-
 
37
* @{
-
 
38
*/
36
 
39
 
-
 
40
/**
-
 
41
 * @file    dir.h
37
/* The layout of a directory. */
42
 * @brief   The layout of a directory.
-
 
43
 */
38
 
44
 
39
 
45
 
40
#ifndef _DIR_H
46
#ifndef _DIR_H
41
#define _DIR_H
47
#define _DIR_H
42
 
48
 
43
#define DIRBLKSIZ   512     /* size of directory block */
49
#define DIRBLKSIZ   512     /**< size of directory block */
44
#define DIRSIZ      14
50
#define DIRSIZ      14      /**< directory entry name length */
45
#define DIRSIZEX    30
51
#define DIRSIZEX    30     /**< extended directory entry name length */
46
 
52
 
47
#include "inode.h"
53
#include "inode.h"
48
 
54
 
-
 
55
/**
-
 
56
 * Directory entry type
-
 
57
 */
49
typedef struct {
58
typedef struct {
50
    ino_t d_ino;
59
    ino_t d_ino;
51
    char d_name[DIRSIZ];
60
    char d_name[DIRSIZ];
52
} direct_t;
61
} direct_t;
53
 
62
 
-
 
63
/**
-
 
64
 * Extended directory entry type
-
 
65
 */
54
typedef struct {
66
typedef struct {
55
    ino_t d_ino;
67
    ino_t d_ino;
56
    char d_name[DIRSIZEX];
68
    char d_name[DIRSIZEX];
57
} directex_t;
69
} directex_t;
58
 
70
 
59
direct_t direct;
71
direct_t direct;    /**< Variable for storing a directory entry */
60
directex_t directex;
72
directex_t directex; /**< Variable for storing an extended directory entry */
61
 
73
 
62
#endif /* _DIR_H */
74
#endif /* _DIR_H */
63
 
75
 
-
 
76
/**
-
 
77
 * }
-
 
78
 */
-
 
79