~ubuntu-branches/debian/stretch/jfsutils/stretch

« back to all changes in this revision

Viewing changes to xpeek/xpeek.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Hornburg (Racke)
  • Date: 2005-01-07 10:12:20 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050107101220-ka3f7smw42zysmk1
Tags: 1.1.7-1
* new upstream release (Closes: #289106)
* start synopsis with lowercase

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *
3
 
 *   Copyright (c) International Business Machines  Corp., 2000
 
2
 *   Copyright (c) International Business Machines Corp., 2000-2002
4
3
 *
5
4
 *   This program is free software;  you can redistribute it and/or modify
6
5
 *   it under the terms of the GNU General Public License as published by
7
 
 *   the Free Software Foundation; either version 2 of the License, or
 
6
 *   the Free Software Foundation; either version 2 of the License, or 
8
7
 *   (at your option) any later version.
9
 
 *
 
8
 * 
10
9
 *   This program is distributed in the hope that it will be useful,
11
10
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
12
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
13
12
 *   the GNU General Public License for more details.
14
13
 *
15
14
 *   You should have received a copy of the GNU General Public License
16
 
 *   along with this program;  if not, write to the Free Software
 
15
 *   along with this program;  if not, write to the Free Software 
17
16
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
 
 *
19
 
 *   MODULE_NAME:       xpeek.h
20
 
 *
21
 
 *   FUNCTION:          common data & function prototypes
22
 
 *
23
 
 */
24
 
 
 
17
 */
 
18
/*
 
19
 *   FUNCTION: common data & function prototypes
 
20
 */
25
21
#include <jfs_types.h>
26
22
 
27
23
/* system includes */
45
41
#define XPEEK_ERROR     -1
46
42
 
47
43
/* Global Data */
48
 
extern int32_t  bsize;
49
 
extern HFILE    fd;
50
 
extern int16_t  l2bsize;
 
44
extern int bsize;
 
45
extern HFILE fd;
 
46
extern short l2bsize;
51
47
 
52
48
/* xpeek functions */
53
49
 
55
51
void cbblfsck(void);
56
52
void directory(void);
57
53
void display(void);
58
 
void display_iag(iag_t *);
 
54
void display_iag(struct iag *);
59
55
void display_inode(struct dinode *);
60
 
int32_t  display_super(struct superblock *);
 
56
int display_super(struct superblock *);
61
57
void dmap(void);
62
58
void dtree(void);
63
59
void help(void);
64
 
int32_t  find_iag(uint32_t iagnum, uint32_t which_table, int64_t *address);
65
 
int32_t  find_inode(uint32_t inum, uint32_t which_table, int64_t *address);
 
60
int find_iag(unsigned iagnum, unsigned which_table, int64_t * address);
 
61
int find_inode(unsigned inum, unsigned which_table, int64_t * address);
66
62
void fsckwsphdr(void);
67
63
void iag(void);
68
64
void inode(void);
69
65
void logsuper(void);
70
 
int32_t  m_parse(char *, int32_t, char **);
71
 
int32_t  more(void);
 
66
int m_parse(char *, int, char **);
 
67
int more(void);
72
68
char prompt(char *);
73
69
void superblock(void);
74
70
void s2perblock(void);
75
71
void xtree(void);
76
72
 
77
 
int32_t xRead(int64_t, uint32_t, char*);
78
 
int32_t xWrite(int64_t, uint32_t, char*);
 
73
int xRead(int64_t, unsigned, char *);
 
74
int xWrite(int64_t, unsigned, char *);
79
75
 
80
76
#define fputs(string,fd) { fputs(string,fd); fflush(fd); }