Last change
on this file since 1223 was 821, checked in by Bruno Cornec, 18 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
|
Rev | Line | |
---|
[821] | 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 |
|
---|
| 29 | errcode_t badblocks_list_create(badblocks_list *ret, int size)
|
---|
| 30 | {
|
---|
| 31 | return ext2fs_badblocks_list_create(ret, size);
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | void badblocks_list_free(badblocks_list bb)
|
---|
| 35 | {
|
---|
| 36 | ext2fs_badblocks_list_free(bb);
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | errcode_t badblocks_list_add(badblocks_list bb, blk_t blk)
|
---|
| 40 | {
|
---|
| 41 | return ext2fs_badblocks_list_add(bb, blk);
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | int badblocks_list_test(badblocks_list bb, blk_t blk)
|
---|
| 45 | {
|
---|
| 46 | return ext2fs_badblocks_list_test(bb, blk);
|
---|
| 47 | }
|
---|
| 48 |
|
---|
| 49 | errcode_t badblocks_list_iterate_begin(badblocks_list bb,
|
---|
| 50 | badblocks_iterate *ret)
|
---|
| 51 | {
|
---|
| 52 | return ext2fs_badblocks_list_iterate_begin(bb, ret);
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk)
|
---|
| 56 | {
|
---|
| 57 | return ext2fs_badblocks_list_iterate(iter, blk);
|
---|
| 58 | }
|
---|
| 59 |
|
---|
| 60 | void 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.