diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 1997-04-15 09:02:48 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 1997-04-15 09:02:48 +0000 |
commit | 36b8baa315f8d5bf6a3e599f1cd9d89917702f57 (patch) | |
tree | 04368095e6f80871d2b03341ee51de8f829515d7 /sbin/fsdb/fsdb.h | |
parent | 992b8e3ad203e473b7b00702f9d0d510c7147253 (diff) | |
download | src-36b8baa315f8d5bf6a3e599f1cd9d89917702f57.tar.gz src-36b8baa315f8d5bf6a3e599f1cd9d89917702f57.zip |
Implement a -r option to fsdb(8), ``read/only''.
Notes
Notes:
svn path=/head/; revision=24956
Diffstat (limited to 'sbin/fsdb/fsdb.h')
-rw-r--r-- | sbin/fsdb/fsdb.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/fsdb/fsdb.h b/sbin/fsdb/fsdb.h index 76707299dd07..b7c30576d9b6 100644 --- a/sbin/fsdb/fsdb.h +++ b/sbin/fsdb/fsdb.h @@ -27,7 +27,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: fsdb.h,v 1.2 1997/03/13 12:44:52 peter Exp $ */ extern int bread __P((int fd, char *buf, daddr_t blk, long size)); @@ -45,6 +45,9 @@ struct cmdtable { const char *helptxt; unsigned int minargc; unsigned int maxargc; + unsigned int flags; +#define FL_RO 0x0000 /* for symmetry */ +#define FL_WR 0x0001 /* wants to write */ int (*handler) __P((int argc, char *argv[])); }; extern struct dinode *curinode; |