1 /* Prototypes for functions defined in
5 void *AllocPooledVec(ULONG size
, globaldata
*g
);
6 void FreePooledVec(void *mem
, globaldata
*g
);
7 void *AllocPooledBuf(ULONG size
, globaldata
*g
);
8 void FreePooledBuf(void *mem
, globaldata
*g
);
9 // void *AllocMemV38(ULONG size, globaldata *g);
10 // void *AllocBufmemV38(ULONG size, globaldata *g);
11 // void FreeMemV38(void *mem, globaldata *g);
12 void *AllocMemPR(ULONG size
, globaldata
*g
);
13 void *AllocBufmemR(ULONG size
, globaldata
*g
);
14 void *AllocMemR(ULONG
, ULONG
, globaldata
*g
);
16 BOOL
dstricmp(DSTR
, STRPTR
);
17 BOOL
ddstricmp(DSTR
, DSTR
);
18 UBYTE
* BCPLtoCString(STRPTR
, DSTR
);
20 UBYTE
* GetFullPath(union objectinfo
* , STRPTR
, union objectinfo
* , SIPTR
* , globaldata
* );
22 BOOL
GetRoot(union objectinfo
* , globaldata
* );
24 BOOL
FindObject(union objectinfo
* , STRPTR
, union objectinfo
* , SIPTR
* , globaldata
* );
26 BOOL
GetParent(union objectinfo
* , union objectinfo
* , SIPTR
* , globaldata
* );
28 BOOL
FetchObject(ULONG diranodenr
, ULONG target
, union objectinfo
*result
, globaldata
*g
);
30 BOOL
ExamineFile(listentry_t
* , struct FileInfoBlock
* , SIPTR
* , globaldata
* );
32 BOOL
ExamineNextFile(lockentry_t
* , struct FileInfoBlock
* , SIPTR
* , globaldata
* );
34 void GetNextEntry(lockentry_t
* , globaldata
* );
36 BOOL
ExamineAll(lockentry_t
* , UBYTE
* , ULONG
, LONG
, struct ExAllControl
* , SIPTR
* , globaldata
* );
38 ULONG
NewFile(BOOL
, union objectinfo
* , STRPTR
, union objectinfo
* , globaldata
* );
40 lockentry_t
* NewDir(union objectinfo
* , STRPTR
, SIPTR
* , globaldata
* );
42 struct cdirblock
* MakeDirBlock(ULONG
, ULONG
, ULONG
, ULONG
, globaldata
* );
44 BOOL
DeleteObject(union objectinfo
* , SIPTR
* , globaldata
* );
45 BOOL
KillEmpty (union objectinfo
*parent
, globaldata
*g
);
46 LONG
forced_RemoveDirEntry (union objectinfo
*info
, SIPTR
*error
, globaldata
*g
);
48 BOOL
RenameAndMove(union objectinfo
*, union objectinfo
*, union objectinfo
*, STRPTR
, SIPTR
* , globaldata
* );
50 BOOL
AddComment(union objectinfo
* , STRPTR
, SIPTR
* , globaldata
* );
52 BOOL
ProtectFile(struct fileinfo
* , ULONG
, SIPTR
* , globaldata
* );
54 BOOL
SetOwnerID(struct fileinfo
*file
, ULONG owner
, SIPTR
*error
, globaldata
*g
);
56 LONG
ReadSoftLink(union objectinfo
*linkfi
, char *buffer
, ULONG size
, SIPTR
*error
, globaldata
*g
);
58 BOOL
CreateSoftLink(union objectinfo
*linkdir
, STRPTR linkname
, STRPTR softlink
,
59 union objectinfo
*newlink
, SIPTR
*error
, globaldata
*g
);
61 BOOL
CreateLink(union objectinfo
*directory
, STRPTR linkname
, union objectinfo
*object
,
62 union objectinfo
*newlink
, SIPTR
*error
, globaldata
*g
);
64 BOOL
SetDate(union objectinfo
* , struct DateStamp
* , SIPTR
* , globaldata
* );
66 void Touch(struct fileinfo
* , globaldata
* );
68 BOOL
CreateRollover(union objectinfo
*dir
, STRPTR rollname
, ULONG size
,
69 union objectinfo
*result
, SIPTR
*error
, globaldata
*g
);
70 ULONG
SetRollover(fileentry_t
*rooi
, struct rolloverinfo
*roinfo
, globaldata
*g
);
72 void ChangeDirEntry(struct fileinfo from
, struct direntry
*to
, union objectinfo
*destdir
, struct fileinfo
*result
, globaldata
*g
);
74 struct cdirblock
* LoadDirBlock(ULONG
, globaldata
* );
76 void GetExtraFields(struct direntry
*direntry
, struct extrafields
*extrafields
);
77 void AddExtraFields (struct direntry
*direntry
, struct extrafields
*extra
);
80 void GetExtraFieldsOI(union objectinfo
*info
, struct extrafields
*extrafields
, globaldata
*g
);
85 struct cdeldirblock
*NewDeldirBlock(UWORD seqnr
, globaldata
*g
);
86 struct deldirentry
*GetDeldirEntryQuick(ULONG ddnr
, globaldata
*g
);
87 ULONG
SetDeldir(int nbr
, globaldata
*g
);
89 void UpdateLinks(struct direntry
*object
, globaldata
*g
);
90 void FreeAnodesInChain(ULONG anodenr
, globaldata
*g
);
92 FSIZE
GetDEFileSize(struct direntry
*direntry
, globaldata
*g
);
93 ULONG
GetDEFileSize32(struct direntry
*direntry
, globaldata
*g
);
94 void SetDEFileSize(struct direntry
*direntry
, FSIZE size
, globaldata
*g
);
97 FSIZE
GetDDFileSize(struct deldirentry
*dde
, globaldata
*g
);
98 ULONG
GetDDFileSize32(struct deldirentry
*dde
, globaldata
*g
);
99 void SetDDFileSize(struct deldirentry
*dde
, FSIZE size
, globaldata
*g
);