source: trunk/minix/commands/i386/mtools-3.9.7/mtoolsDirent.h@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.3 KB
Line 
1#ifndef MTOOLS_DIRENTRY_H
2#define MTOOLS_DIRENTRY_H
3
4#include "sysincludes.h"
5#include "vfat.h"
6
7typedef struct direntry_t {
8 struct Stream_t *Dir;
9 /* struct direntry_t *parent; parent level */
10 int entry; /* slot in parent directory (-3 if root) */
11 struct directory dir; /* descriptor in parent directory (random if
12 * root)*/
13 char name[MAX_VNAMELEN+1]; /* name in its parent directory, or
14 * NULL if root */
15 int beginSlot; /* begin and end slot, for delete */
16 int endSlot;
17} direntry_t;
18
19#include "stream.h"
20
21int vfat_lookup(direntry_t *entry, const char *filename, int length,
22 int flags, char *shortname, char *longname);
23
24struct directory *dir_read(direntry_t *entry, int *error);
25
26void initializeDirentry(direntry_t *entry, struct Stream_t *Dir);
27int isNotFound(direntry_t *entry);
28direntry_t *getParent(direntry_t *entry);
29void dir_write(direntry_t *entry);
30void low_level_dir_write(direntry_t *entry);
31int fatFreeWithDirentry(direntry_t *entry);
32int labelit(char *dosname,
33 char *longname,
34 void *arg0,
35 direntry_t *entry);
36int isSubdirOf(Stream_t *inside, Stream_t *outside);
37char *getPwd(direntry_t *entry);
38void fprintPwd(FILE *f, direntry_t *entry, int escape);
39int write_vfat(Stream_t *, char *, char *, int, direntry_t *);
40#endif
Note: See TracBrowser for help on using the repository browser.