dosfstools  4.2
About: dosfstools are utilities to create, check and label (MS-DOS) FAT filesystems.
  Fossies Dox: dosfstools-4.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fsck.fat.c File Reference
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <limits.h>
#include <unistd.h>
#include <termios.h>
#include <getopt.h>
#include "common.h"
#include "fsck.fat.h"
#include "io.h"
#include "boot.h"
#include "fat.h"
#include "file.h"
#include "check.h"
#include "charconv.h"
Include dependency graph for fsck.fat.c:

Go to the source code of this file.

Functions

static void restore_termios (void)
 
static void usage (char *name, int exitval)
 
int main (int argc, char **argv)
 

Variables

int rw = 0
 
int list = 0
 
int test = 0
 
int verbose = 0
 
long fat_table = 0
 
int no_spaces_in_sfns = 0
 
int only_uppercase_label = 0
 
int boot_only = 0
 
unsigned n_files = 0
 
void * mem_queue = NULL
 
static struct termios original_termios
 

Function Documentation

◆ main()

◆ restore_termios()

static void restore_termios ( void  )
static

Definition at line 61 of file fsck.fat.c.

References original_termios.

Referenced by main().

◆ usage()

static void usage ( char *  name,
int  exitval 
)
static

Definition at line 67 of file fsck.fat.c.

References DEFAULT_DOS_CODEPAGE.

Referenced by main().

Variable Documentation

◆ boot_only

int boot_only = 0

Definition at line 54 of file fsck.fat.c.

Referenced by main().

◆ fat_table

long fat_table = 0

Definition at line 51 of file fsck.fat.c.

Referenced by main().

◆ list

int list = 0

Definition at line 50 of file fsck.fat.c.

Referenced by main().

◆ mem_queue

void* mem_queue = NULL

Definition at line 56 of file fsck.fat.c.

Referenced by main().

◆ n_files

unsigned n_files = 0

Definition at line 55 of file fsck.fat.c.

Referenced by main().

◆ no_spaces_in_sfns

int no_spaces_in_sfns = 0

Definition at line 52 of file fsck.fat.c.

Referenced by main().

◆ only_uppercase_label

int only_uppercase_label = 0

Definition at line 53 of file fsck.fat.c.

Referenced by check_boot_label(), check_label(), get_new_label(), and main().

◆ original_termios

struct termios original_termios
static

Definition at line 56 of file fsck.fat.c.

Referenced by main(), and restore_termios().

◆ rw

int rw = 0

Definition at line 50 of file fsck.fat.c.

Referenced by main().

◆ test

int test = 0

Definition at line 50 of file fsck.fat.c.

Referenced by main().

◆ verbose

int verbose = 0

Definition at line 50 of file fsck.fat.c.

Referenced by main().