~ubuntu-branches/debian/jessie/ufsutils/jessie

« back to all changes in this revision

Viewing changes to sbin/dumpfs/dumpfs.c

  • Committer: Package Import Robot
  • Author(s): Robert Millan
  • Date: 2014-05-22 18:05:36 UTC
  • mfrom: (11.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20140522180536-nsmuhw6ryv9awr88
Tags: 10.0-3
Fix FTBFS due to missing <libutil.h> by adding a libutil-freebsd-dev
build-dep (Closes: #741088). Thanks Cyril Brulebois.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
#define afs     disk.d_fs
78
78
#define acg     disk.d_cg
79
79
 
80
 
struct uufsd disk;
 
80
static struct uufsd disk;
81
81
 
82
 
int     dumpfs(const char *);
83
 
int     dumpfsid(void);
84
 
int     dumpcg(void);
85
 
int     dumpfreespace(const char *, int);
86
 
void    dumpfreespacecg(int);
87
 
int     marshal(const char *);
88
 
void    pbits(void *, int);
89
 
void    pblklist(void *, int, off_t, int);
90
 
void    ufserr(const char *);
91
 
void    usage(void) __dead2;
 
82
static int      dumpfs(const char *);
 
83
static int      dumpfsid(void);
 
84
static int      dumpcg(void);
 
85
static int      dumpfreespace(const char *, int);
 
86
static void     dumpfreespacecg(int);
 
87
static int      marshal(const char *);
 
88
static void     pbits(void *, int);
 
89
static void     pblklist(void *, int, off_t, int);
 
90
static void     ufserr(const char *);
 
91
static void     usage(void) __dead2;
92
92
 
93
93
int
94
94
main(int argc, char *argv[])
143
143
        exit(eval);
144
144
}
145
145
 
146
 
int
 
146
static int
147
147
dumpfsid(void)
148
148
{
149
149
 
151
151
        return 0;
152
152
}
153
153
 
154
 
int
 
154
static int
155
155
dumpfs(const char *name)
156
156
{
157
157
        time_t fstime;
310
310
        return (1);
311
311
}
312
312
 
313
 
int
 
313
static int
314
314
dumpcg(void)
315
315
{
316
316
        time_t cgtime;
371
371
        return (0);
372
372
}
373
373
 
374
 
int
 
374
static int
375
375
dumpfreespace(const char *name, int fflag)
376
376
{
377
377
        int i;
387
387
        return (1);
388
388
}
389
389
 
390
 
void
 
390
static void
391
391
dumpfreespacecg(int fflag)
392
392
{
393
393
 
395
395
            fflag);
396
396
}
397
397
 
398
 
int
 
398
static int
399
399
marshal(const char *name)
400
400
{
401
401
        struct fs *fs;
450
450
        return 0;
451
451
}
452
452
 
453
 
void
 
453
static void
454
454
pbits(void *vp, int max)
455
455
{
456
456
        int i;
472
472
        printf("\n");
473
473
}
474
474
 
475
 
void
 
475
static void
476
476
pblklist(void *vp, int max, off_t offset, int fflag)
477
477
{
478
478
        int i, j;
493
493
        }
494
494
}
495
495
 
496
 
void
 
496
static void
497
497
ufserr(const char *name)
498
498
{
499
499
        if (disk.d_error != NULL)
502
502
                warn("%s", name);
503
503
}
504
504
 
505
 
void
 
505
static void
506
506
usage(void)
507
507
{
508
508
        (void)fprintf(stderr, "usage: dumpfs [-flm] filesys | device\n");