ext.h (96707) | ext.h (102231) |
---|---|
1/* 2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank 3 * Copyright (c) 1995 Martin Husemann 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * $NetBSD: ext.h,v 1.6 2000/04/25 23:02:51 jdolecek Exp $ | 1/* 2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank 3 * Copyright (c) 1995 Martin Husemann 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * $NetBSD: ext.h,v 1.6 2000/04/25 23:02:51 jdolecek Exp $ |
32 * $FreeBSD: head/sbin/fsck_msdosfs/ext.h 96707 2002-05-16 04:10:46Z trhodes $ | 32 * $FreeBSD: head/sbin/fsck_msdosfs/ext.h 102231 2002-08-21 18:11:48Z trhodes $ |
33 */ 34 35#ifndef EXT_H 36#define EXT_H 37 38#include <sys/types.h> 39 40#include "dosfs.h" 41 42#define LOSTDIR "LOST.DIR" 43 44/* 45 * Options: 46 */ 47extern int alwaysno; /* assume "no" for all questions */ 48extern int alwaysyes; /* assume "yes" for all questions */ 49extern int preen; /* we are preening */ 50extern int rdonly; /* device is opened read only (supersedes above) */ 51 | 33 */ 34 35#ifndef EXT_H 36#define EXT_H 37 38#include <sys/types.h> 39 40#include "dosfs.h" 41 42#define LOSTDIR "LOST.DIR" 43 44/* 45 * Options: 46 */ 47extern int alwaysno; /* assume "no" for all questions */ 48extern int alwaysyes; /* assume "yes" for all questions */ 49extern int preen; /* we are preening */ 50extern int rdonly; /* device is opened read only (supersedes above) */ 51 |
52extern char *fname; /* filesystem currently checked */ | 52extern char *fname; /* file system currently checked */ |
53 54extern struct dosDirEntry *rootDir; 55 56/* 57 * function declarations 58 */ 59int ask(int, const char *, ...) __attribute__((__format__(__printf__,2,3))); 60 61/* | 53 54extern struct dosDirEntry *rootDir; 55 56/* 57 * function declarations 58 */ 59int ask(int, const char *, ...) __attribute__((__format__(__printf__,2,3))); 60 61/* |
62 * Check filesystem given as arg | 62 * Check file system given as arg |
63 */ 64int checkfilesys(const char *); 65 66/* 67 * Return values of various functions 68 */ 69#define FSOK 0 /* Check was OK */ 70#define FSBOOTMOD 1 /* Boot block was modified */ 71#define FSDIRMOD 2 /* Some directory was modified */ 72#define FSFATMOD 4 /* The FAT was modified */ 73#define FSERROR 8 /* Some unrecovered error remains */ 74#define FSFATAL 16 /* Some unrecoverable error occured */ 75#define FSDIRTY 32 /* File system is dirty */ | 63 */ 64int checkfilesys(const char *); 65 66/* 67 * Return values of various functions 68 */ 69#define FSOK 0 /* Check was OK */ 70#define FSBOOTMOD 1 /* Boot block was modified */ 71#define FSDIRMOD 2 /* Some directory was modified */ 72#define FSFATMOD 4 /* The FAT was modified */ 73#define FSERROR 8 /* Some unrecovered error remains */ 74#define FSFATAL 16 /* Some unrecoverable error occured */ 75#define FSDIRTY 32 /* File system is dirty */ |
76#define FSFIXFAT 64 /* Fix filesystem FAT */ | 76#define FSFIXFAT 64 /* Fix file system FAT */ |
77 78/* 79 * read a boot block in a machine independend fashion and translate 80 * it into our struct bootblock. 81 */ 82int readboot(int, struct bootblock *); 83 84/* --- 60 unchanged lines hidden --- | 77 78/* 79 * read a boot block in a machine independend fashion and translate 80 * it into our struct bootblock. 81 */ 82int readboot(int, struct bootblock *); 83 84/* --- 60 unchanged lines hidden --- |