-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdirectory_protos.h
100 lines (69 loc) · 4.04 KB
/
directory_protos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/* Prototypes for functions defined in
directory.c
*/
void *AllocPooledVec(ULONG size, globaldata *g);
void FreePooledVec(void *mem, globaldata *g);
void *AllocPooledBuf(ULONG size, globaldata *g);
void FreePooledBuf(void *mem, globaldata *g);
// void *AllocMemV38(ULONG size, globaldata *g);
// void *AllocBufmemV38(ULONG size, globaldata *g);
// void FreeMemV38(void *mem, globaldata *g);
void *AllocMemPR(ULONG size, globaldata *g);
void *AllocBufmemR(ULONG size, globaldata *g);
void *AllocMemR(ULONG , ULONG , globaldata *g);
BOOL dstricmp(DSTR , STRPTR );
BOOL ddstricmp(DSTR , DSTR );
UBYTE * BCPLtoCString(STRPTR , DSTR );
UBYTE * GetFullPath(union objectinfo * , STRPTR , union objectinfo * , SIPTR * , globaldata * );
BOOL GetRoot(union objectinfo * , globaldata * );
BOOL FindObject(union objectinfo * , STRPTR , union objectinfo * , SIPTR * , globaldata * );
BOOL GetParent(union objectinfo * , union objectinfo * , SIPTR * , globaldata * );
BOOL FetchObject(ULONG diranodenr, ULONG target, union objectinfo *result, globaldata *g);
BOOL ExamineFile(listentry_t * , struct FileInfoBlock * , SIPTR * , globaldata * );
BOOL ExamineNextFile(lockentry_t * , struct FileInfoBlock * , SIPTR * , globaldata * );
void GetNextEntry(lockentry_t * , globaldata * );
BOOL ExamineAll(lockentry_t * , UBYTE * , ULONG , LONG , struct ExAllControl * , SIPTR * , globaldata * );
ULONG NewFile(BOOL, union objectinfo * , STRPTR , union objectinfo * , globaldata * );
lockentry_t * NewDir(union objectinfo * , STRPTR , SIPTR * , globaldata * );
struct cdirblock * MakeDirBlock(ULONG , ULONG , ULONG , ULONG , globaldata * );
BOOL DeleteObject(union objectinfo * , SIPTR * , globaldata * );
BOOL KillEmpty (union objectinfo *parent, globaldata *g);
LONG forced_RemoveDirEntry (union objectinfo *info, SIPTR *error, globaldata *g);
BOOL RenameAndMove(union objectinfo *, union objectinfo *, union objectinfo *, STRPTR , SIPTR * , globaldata * );
BOOL AddComment(union objectinfo * , STRPTR , SIPTR * , globaldata * );
BOOL ProtectFile(struct fileinfo * , ULONG , SIPTR * , globaldata * );
BOOL SetOwnerID(struct fileinfo *file, ULONG owner, SIPTR *error, globaldata *g);
LONG ReadSoftLink(union objectinfo *linkfi, const char *prefix, char *buffer, ULONG size, SIPTR *error, globaldata *g);
BOOL CreateSoftLink(union objectinfo *linkdir, STRPTR linkname, STRPTR softlink,
union objectinfo *newlink, SIPTR *error, globaldata *g);
BOOL CreateLink(union objectinfo *directory, STRPTR linkname, union objectinfo *object,
union objectinfo *newlink, SIPTR *error, globaldata *g);
BOOL SetDate(union objectinfo * , struct DateStamp * , SIPTR * , globaldata * );
void Touch(struct fileinfo * , globaldata * );
BOOL CreateRollover(union objectinfo *dir, STRPTR rollname, ULONG size,
union objectinfo *result, SIPTR *error, globaldata *g);
ULONG SetRollover(fileentry_t *rooi, struct rolloverinfo *roinfo, globaldata *g);
void ChangeDirEntry(struct fileinfo from, struct direntry *to, union objectinfo *destdir, struct fileinfo *result, globaldata *g);
struct cdirblock * LoadDirBlock(ULONG , globaldata * );
void GetExtraFields(struct direntry *direntry, struct extrafields *extrafields);
void AddExtraFields (struct direntry *direntry, struct extrafields *extra);
#if MULTIUSER
#if DELDIR
void GetExtraFieldsOI(union objectinfo *info, struct extrafields *extrafields, globaldata *g);
#endif
#endif
#if DELDIR
struct cdeldirblock *NewDeldirBlock(UWORD seqnr, globaldata *g);
struct deldirentry *GetDeldirEntryQuick(ULONG ddnr, globaldata *g);
ULONG SetDeldir(int nbr, globaldata *g);
#endif
void UpdateLinks(struct direntry *object, globaldata *g);
void FreeAnodesInChain(ULONG anodenr, globaldata *g);
FSIZE GetDEFileSize(struct direntry *direntry, globaldata *g);
ULONG GetDEFileSize32(struct direntry *direntry, globaldata *g);
void SetDEFileSize(struct direntry *direntry, FSIZE size, globaldata *g);
#if DELDIR
FSIZE GetDDFileSize(struct deldirentry *dde, globaldata *g);
ULONG GetDDFileSize32(struct deldirentry *dde, globaldata *g);
void SetDDFileSize(struct deldirentry *dde, FSIZE size, globaldata *g);
#endif