freebsd-ports/sysutils/recoverdm/files/patch-utils.h
Andrey Slusar b80a4e5d45 This program will help you recover disks with bad sectors.
You can recover files as well complete devices.

In case if finds sectors which simply cannot be recoverd, it writes an
empty sector to the outputfile and continues. If you're recovering a CD
or a DVD and the program cannot read the sector in "normal mode", then
the program will try to read the sector in "RAW mode" (without error-checking
etc.).

This toolkit also has a utility called 'mergebad': mergebad merges multiple
images into one. This can be usefull when you have, for example, multiple CD's
with the same data which are all damaged. In such case, you can then first use
recoverdm to retrieve the data from the damaged CD's into image-files and then
combine them into one image with mergebad.

WWW: http://www.vanheusden.com/recoverdm/

PR:		ports/92148
Submitted by:	Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
2006-01-23 15:14:52 +00:00

15 lines
461 B
C

*** utils.h.orig Sun Jan 22 05:13:01 2006
--- utils.h Sun Jan 22 05:20:11 2006
***************
*** 1,5 ****
--- 1,10 ----
+ #define off64_t off_t
+ #define stat64 stat
+ #define open64 open
+ #define lseek64 lseek
+
void * mymalloc(size_t size, char *what);
void * myrealloc(void *oldp, size_t newsize, char *what);
off64_t get_filesize(char *filename);
int copy_block(int fd_in, int fd_out, off64_t block_size);
void myseek(int fd, off64_t offset);