d7f1386801db6630031abad677f97be10ed9b2ab
1 /* file.h - Additional file attributes */
3 /* Written 1993 by Werner Almesberger */
9 typedef enum { fdt_none
,fdt_drop
,fdt_undelete
} FD_TYPE
;
11 typedef struct _fptr
{
12 char name
[MSDOS_NAME
];
14 struct _fptr
*first
; /* first entry */
15 struct _fptr
*next
; /* next file in directory */
22 char *file_name(unsigned char *fixed
);
24 /* Returns a pointer to a pretty-printed representation of a fixed MS-DOS file
27 int file_cvt(unsigned char *name
,unsigned char *fixed
);
29 /* Converts a pretty-printed file name to the fixed MS-DOS format. Returns a
30 non-zero integer on success, zero on failure. */
32 void file_add(char *path
,FD_TYPE type
);
34 /* Define special attributes for a path. TYPE can be either FDT_DROP or
37 FDSC
**file_cd(FDSC
**curr
,char *fixed
);
39 /* Returns a pointer to the directory descriptor of the subdirectory FIXED of
40 CURR, or NULL if no such subdirectory exists. */
42 FD_TYPE
file_type(FDSC
**curr
,char *fixed
);
44 /* Returns the attribute of the file FIXED in directory CURR or FDT_NONE if no
45 such file exists or if CURR is NULL. */
47 void file_modify(FDSC
**curr
,char *fixed
);
49 /* Performs the necessary operation on the entry of CURR that is named FIXED. */
51 void file_unused(void);
53 /* Displays warnings for all unused file attributes. */