"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "dosfstools-2.11/dosfsck/check.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 /* check.h  -  Check and repair a PC/MS-DOS file system */
    2 
    3 /* Written 1993 by Werner Almesberger */
    4 
    5 
    6 #ifndef _CHECK_H
    7 #define _CHECK_H
    8 
    9 loff_t alloc_rootdir_entry(DOS_FS *fs, DIR_ENT *de, const char *pattern);
   10 
   11 /* Allocate a free slot in the root directory for a new file. The file name is
   12    constructed after 'pattern', which must include a %d type format for printf
   13    and expand to exactly 11 characters. The name actually used is written into
   14    the 'de' structure, the rest of *de is cleared. The offset returned is to
   15    where in the filesystem the entry belongs. */
   16 
   17 int scan_root(DOS_FS *fs);
   18 
   19 /* Scans the root directory and recurses into all subdirectories. See check.c
   20    for all the details. Returns a non-zero integer if the file system has to
   21    be checked again. */
   22 
   23 #endif