extern void doneline(char *input, char **vec);
extern char *fetchline(void);
-extern long long cvtnum(int blocksize, int sectorsize, char *s);
+extern long long cvtnum(unsigned int blocksize,
+ unsigned int sectorsize, char *s);
extern void cvtstr(double value, char *str, size_t sz);
extern unsigned long cvttime(char *s);
void
init_cvtnum(
- int *blocksize,
- int *sectsize)
+ unsigned int *blocksize,
+ unsigned int *sectsize)
{
if (!file || (file->flags & IO_FOREIGN)) {
*blocksize = 4096;
#define min(a,b) (((a)<(b))?(a):(b))
-extern void init_cvtnum(int *blocksize, int *sectsize);
+extern void init_cvtnum(unsigned int *blocksize, unsigned int *sectsize);
off64_t offset;
size_t length;
void *start;
- int advise = MADV_NORMAL;
- int c, blocksize, sectsize;
+ int advise = MADV_NORMAL, c;
+ unsigned int blocksize, sectsize;
while ((c = getopt(argc, argv, "drsw")) != EOF) {
switch (c) {
void *start;
void *current, *previous;
unsigned char *vec;
- int i, blocksize, sectsize;
+ int i;
+ unsigned int blocksize, sectsize;
if (argc == 1) {
offset = mapping->offset;
ssize_t length;
void *address;
char *filename;
- int blocksize, sectsize;
+ unsigned int blocksize, sectsize;
int c, prot = 0;
if (argc == 1) {
off64_t offset;
ssize_t length;
void *start;
- int c, flags = 0, blocksize, sectsize;
+ int c, flags = 0;
+ unsigned int blocksize, sectsize;
while ((c = getopt(argc, argv, "ais")) != EOF) {
switch (c) {
size_t dumplen;
char *bp;
void *start;
- int dump = 0, rflag = 0;
- int c, blocksize, sectsize;
+ int dump = 0, rflag = 0, c;
+ unsigned int blocksize, sectsize;
while ((c = getopt(argc, argv, "frv")) != EOF) {
switch (c) {
char *sp;
int seed = 'X';
int rflag = 0;
- int c, blocksize, sectsize;
+ int c;
+ unsigned int blocksize, sectsize;
while ((c = getopt(argc, argv, "rS:")) != EOF) {
switch (c) {
{
struct fsxattr fsx;
long extsize;
- int blocksize, sectsize;
+ unsigned int blocksize, sectsize;
init_cvtnum(&blocksize, §size);
extsize = (long)cvtnum(blocksize, sectsize, argv[1]);
{
off64_t offset;
long long count, total;
- int blocksize, sectsize;
+ unsigned int blocksize, sectsize;
struct timeval t1, t2;
char s1[64], s2[64], ts[64];
int Cflag, uflag, vflag;
char *length,
xfs_flock64_t *segment)
{
- int blocksize, sectsize;
+ unsigned int blocksize, sectsize;
init_cvtnum(&blocksize, §size);
memset(segment, 0, sizeof(*segment));
off64_t offset, skip = 0;
long long count, total;
unsigned int seed = 0xcdcdcdcd;
- int blocksize, sectsize;
+ unsigned int blocksize, sectsize;
struct timeval t1, t2;
char s1[64], s2[64], ts[64];
char *sp, *infile = NULL;
char **argv)
{
off64_t offset;
- int blocksize, sectsize;
+ unsigned int blocksize, sectsize;
init_cvtnum(&blocksize, §size);
offset = cvtnum(blocksize, sectsize, argv[1]);
long long
cvtnum(
- int blocksize,
- int sectorsize,
+ unsigned int blocksize,
+ unsigned int sectorsize,
char *s)
{
long long i;
/*
* Prototypes for internal functions.
*/
-extern long long cvtnum(int blocksize, int sectorsize, char *s);
extern void parseproto(xfs_mount_t *mp, xfs_inode_t *pip, char **pp,
char *name);
static long getnum(char **pp);
xfs_btree_sblock_t *block;
int blflag;
int blocklog;
- int blocksize;
+ unsigned int blocksize;
int bsflag;
int bsize;
xfs_buf_t *buf;
char *rtsize;
xfs_sb_t *sbp;
int sectorlog;
- int sectorsize;
+ unsigned int sectorsize;
int slflag;
int ssflag;
__uint64_t tmp_agsize;
long long
cvtnum(
- int blocksize,
- int sectorsize,
+ unsigned int blocksize,
+ unsigned int sectorsize,
char *s)
{
long long i;
/* xfs_mkfs.c */
extern void usage (void);
extern int isdigits (char *str);
-extern long long cvtnum (int blocksize, int sectorsize, char *s);
+extern long long cvtnum (unsigned int blocksize,
+ unsigned int sectorsize, char *s);
/* proto.c */
extern char *setup_proto (char *fname);
void
init_cvtnum(
- int *blocksize,
- int *sectsize)
+ unsigned int *blocksize,
+ unsigned int *sectsize)
{
*blocksize = 4096;
*sectsize = 512;
extern void report_init(void);
extern void state_init(void);
-extern void init_cvtnum(int *, int *);
+extern void init_cvtnum(unsigned int *, unsigned int *);