"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "dosfstools-2.11/dosfsck/file.h" of archive dosfstools-2.11.src.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 /* file.h  -  Additional file attributes */
    2 
    3 /* Written 1993 by Werner Almesberger */
    4 
    5 
    6 #ifndef _FILE_H
    7 #define _FILE_H
    8 
    9 typedef enum { fdt_none,fdt_drop,fdt_undelete } FD_TYPE;
   10 
   11 typedef struct _fptr {
   12     char name[MSDOS_NAME];
   13     FD_TYPE type;
   14     struct _fptr *first; /* first entry */
   15     struct _fptr *next; /* next file in directory */
   16 } FDSC;
   17 
   18 
   19 extern FDSC *fp_root;
   20 
   21 
   22 char *file_name(unsigned char *fixed);
   23 
   24 /* Returns a pointer to a pretty-printed representation of a fixed MS-DOS file
   25    name. */
   26 
   27 int file_cvt(unsigned char *name,unsigned char *fixed);
   28 
   29 /* Converts a pretty-printed file name to the fixed MS-DOS format. Returns a
   30    non-zero integer on success, zero on failure. */
   31 
   32 void file_add(char *path,FD_TYPE type);
   33 
   34 /* Define special attributes for a path. TYPE can be either FDT_DROP or
   35    FDT_UNDELETE. */
   36 
   37 FDSC **file_cd(FDSC **curr,char *fixed);
   38 
   39 /* Returns a pointer to the directory descriptor of the subdirectory FIXED of
   40    CURR, or NULL if no such subdirectory exists. */
   41 
   42 FD_TYPE file_type(FDSC **curr,char *fixed);
   43 
   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. */
   46 
   47 void file_modify(FDSC **curr,char *fixed);
   48 
   49 /* Performs the necessary operation on the entry of CURR that is named FIXED. */
   50 
   51 void file_unused(void);
   52 
   53 /* Displays warnings for all unused file attributes. */
   54 
   55 #endif