source: MondoRescue/branches/stable/mindi-busybox/e2fsprogs/ext2fs/bb_compat.c @ 821

Last change on this file since 821 was 821, checked in by Bruno Cornec, 14 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 1.2 KB
Line 
1/*
2 * bb_compat.c --- compatibility badblocks routines
3 *
4 * Copyright (C) 1997 Theodore Ts'o.
5 *
6 * %Begin-Header%
7 * This file may be redistributed under the terms of the GNU Public
8 * License.
9 * %End-Header%
10 */
11
12#include <stdio.h>
13#include <string.h>
14#if HAVE_UNISTD_H
15#include <unistd.h>
16#endif
17#include <fcntl.h>
18#include <time.h>
19#if HAVE_SYS_STAT_H
20#include <sys/stat.h>
21#endif
22#if HAVE_SYS_TYPES_H
23#include <sys/types.h>
24#endif
25
26#include "ext2_fs.h"
27#include "ext2fsP.h"
28
29errcode_t badblocks_list_create(badblocks_list *ret, int size)
30{
31    return ext2fs_badblocks_list_create(ret, size);
32}
33
34void badblocks_list_free(badblocks_list bb)
35{
36    ext2fs_badblocks_list_free(bb);
37}
38
39errcode_t badblocks_list_add(badblocks_list bb, blk_t blk)
40{
41    return ext2fs_badblocks_list_add(bb, blk);
42}
43
44int badblocks_list_test(badblocks_list bb, blk_t blk)
45{
46    return ext2fs_badblocks_list_test(bb, blk);
47}
48
49errcode_t badblocks_list_iterate_begin(badblocks_list bb,
50                       badblocks_iterate *ret)
51{
52    return ext2fs_badblocks_list_iterate_begin(bb, ret);
53}
54
55int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk)
56{
57    return ext2fs_badblocks_list_iterate(iter, blk);
58}
59
60void badblocks_list_iterate_end(badblocks_iterate iter)
61{
62    ext2fs_badblocks_list_iterate_end(iter);
63}
Note: See TracBrowser for help on using the repository browser.