diff options
author | Miles Bader <miles@gnu.org> | 1996-05-02 01:00:58 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-02 01:00:58 +0000 |
commit | 661dcbc1e978bb49ff9a0eea77696afffe1e99ea (patch) | |
tree | 985d8a6aa5da784ffb518156039a459e672508ae | |
parent | 67bc3298ce3574dd53b084ad0c4776f9f4a7555c (diff) |
(problem, warning, pextend, pfail, force): New declarations.
(pinode): Update declaration.
-rw-r--r-- | ufs-fsck/fsck.h | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/ufs-fsck/fsck.h b/ufs-fsck/fsck.h index 437b1737..7d55bea6 100644 --- a/ufs-fsck/fsck.h +++ b/ufs-fsck/fsck.h @@ -24,6 +24,9 @@ #include <stdlib.h> #include <stdio.h> #include <dirent.h> + +#define swab_disk 0 + #include "../ufs/fs.h" #include "../ufs/dinode.h" #include "../ufs/dir.h" @@ -101,25 +104,29 @@ struct dups *duplist; /* head of dup list */ struct dups *muldup; /* end of unique duplicate dup block numbers */ -struct fs *sblock; +extern struct fs *sblock; + +extern daddr_t maxfsblock; +extern int maxino; +extern int direct_symlink_extension; -daddr_t maxfsblock; -int maxino; -int direct_symlink_extension; +extern int newinofmt; -int newinofmt; +/* Terse automatic mode for noninteractive use; punts on severe problems. */ +extern int preen; -int preen; +extern int readfd, writefd; -int readfd, writefd; +extern int fix_denied; -int fix_denied; +extern int fsmodified; -int fsmodified; +extern int lfdir; -int lfdir; +/* Total number of files found on the partition. */ +extern daddr_t num_files; -mode_t lfmode; +extern mode_t lfmode; extern char *lfname; #define NBBY 8 @@ -167,10 +174,10 @@ void allblock_iterate (struct dinode *, int (*)(daddr_t, int, off_t)); void record_directory (struct dinode *, ino_t); struct dirinfo *lookup_directory (ino_t); +void errexit (char *, ...) __attribute__ ((format (printf, 1, 2), noreturn)); +void warning (int, char *, ...) __attribute__ ((format (printf, 2, 3))); +void problem (int, char *, ...) __attribute__ ((format (printf, 2, 3))); +void pinode (int, ino_t, char *fmt, ...) __attribute__ ((format (printf, 3, 4))); +void pextend (char *, ...) __attribute__ ((format (printf, 1, 2))); +void pfix (char *fix), pfail (char *reason); int reply (char *); -void pfix (char *fix); -void pinode (ino_t, char *fmt, ...) __attribute__ ((format (printf, 2, 3))); -int pwarn (char *, ...) __attribute__ ((format (printf, 1, 2))); -int pfatal (char *, ...) __attribute__ ((format (printf, 1, 2))); -void errexit (char *, ...) __attribute__ ((format (printf, 1, 2), - noreturn)); |