summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-02 01:00:58 +0000
committerMiles Bader <miles@gnu.org>1996-05-02 01:00:58 +0000
commite2a0654a90138268ac9985b29f25cd32e16aae1a (patch)
tree4b495bcdb516d509bc0baa4b920cc463598a9a4c /ufs-fsck
parent774d7327d94ffe25b65fa1f4a4f48a053b6b518e (diff)
(problem, warning, pextend, pfail, force): New declarations.
(pinode): Update declaration.
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/fsck.h41
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));