summaryrefslogtreecommitdiff
path: root/user/dmraid/off_t.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-14 20:10:28 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-14 20:16:59 -0500
commit3d8c6f85bf17ef480cc46435948fee2adc714699 (patch)
tree0a419913d5321cc96fa46e56be490ee3c61aa87f /user/dmraid/off_t.patch
parentb2ca694512b2184aa2a6a9082b5cfa10409e27d9 (diff)
downloadpackages-3d8c6f85bf17ef480cc46435948fee2adc714699.tar.gz
packages-3d8c6f85bf17ef480cc46435948fee2adc714699.tar.bz2
packages-3d8c6f85bf17ef480cc46435948fee2adc714699.tar.xz
packages-3d8c6f85bf17ef480cc46435948fee2adc714699.zip
user/dmraid: new package
Diffstat (limited to 'user/dmraid/off_t.patch')
-rw-r--r--user/dmraid/off_t.patch77
1 files changed, 77 insertions, 0 deletions
diff --git a/user/dmraid/off_t.patch b/user/dmraid/off_t.patch
new file mode 100644
index 000000000..3a7263bc9
--- /dev/null
+++ b/user/dmraid/off_t.patch
@@ -0,0 +1,77 @@
+--- dmraid/include/dmraid/format.h.old 2010-03-18 16:53:16.000000000 +0000
++++ dmraid/include/dmraid/format.h 2018-07-15 01:14:39.710000000 +0000
+@@ -213,7 +213,7 @@
+ extern void *alloc_private(struct lib_context *lc, const char *who,
+ size_t size);
+ extern void *alloc_private_and_read(struct lib_context *lc, const char *who,
+- size_t size, char *path, loff_t offset);
++ size_t size, char *path, off_t offset);
+ extern struct raid_set *join_superset(struct lib_context *lc,
+ char *(*f_name) (struct lib_context * lc,
+ struct raid_dev * rd,
+--- dmraid/include/dmraid/misc.h.old 2010-10-27 11:31:46.000000000 +0000
++++ dmraid/include/dmraid/misc.h 2018-07-15 01:14:39.710000000 +0000
+@@ -33,9 +33,9 @@
+ extern int mk_dir(struct lib_context *lc, const char *dir);
+
+ extern int read_file(struct lib_context *lc, const char *who, char *path,
+- void *buffer, size_t size, loff_t offset);
++ void *buffer, size_t size, off_t offset);
+ extern int write_file(struct lib_context *lc, const char *who, char *path,
+- void *buffer, size_t size, loff_t offset);
++ void *buffer, size_t size, off_t offset);
+
+ extern int yes_no_prompt(struct lib_context *lc, const char *prompt, ...);
+
+--- dmraid/lib/misc/file.c.old 2010-01-11 16:19:29.000000000 +0000
++++ dmraid/lib/misc/file.c 2018-07-15 01:14:39.710000000 +0000
+@@ -53,10 +53,10 @@
+
+ static int
+ rw_file(struct lib_context *lc, const char *who, int flags,
+- char *path, void *buffer, size_t size, loff_t offset)
++ char *path, void *buffer, size_t size, off_t offset)
+ {
+ int fd, ret = 0;
+- loff_t o;
++ off_t o;
+ struct {
+ ssize_t(*func) ();
+ const char *what;
+@@ -73,7 +73,7 @@
+ #else
+ #define DMRAID_LSEEK lseek64
+ #endif
+- if (offset && (o = DMRAID_LSEEK(fd, offset, SEEK_SET)) == (loff_t) - 1)
++ if (offset && (o = DMRAID_LSEEK(fd, offset, SEEK_SET)) == (off_t) - 1)
+ log_err(lc, "%s: seeking device \"%s\" to %" PRIu64,
+ who, path, offset);
+ else if (rw->func(fd, buffer, size) != size)
+@@ -88,14 +88,14 @@
+
+ int
+ read_file(struct lib_context *lc, const char *who, char *path,
+- void *buffer, size_t size, loff_t offset)
++ void *buffer, size_t size, off_t offset)
+ {
+ return rw_file(lc, who, O_RDONLY, path, buffer, size, offset);
+ }
+
+ int
+ write_file(struct lib_context *lc, const char *who, char *path,
+- void *buffer, size_t size, loff_t offset)
++ void *buffer, size_t size, off_t offset)
+ {
+ /* O_CREAT|O_TRUNC are noops on a devnode. */
+ return rw_file(lc, who, O_WRONLY | O_CREAT | O_TRUNC, path,
+--- dmraid/lib/format/format.c.old 2009-09-16 11:45:14.000000000 +0000
++++ dmraid/lib/format/format.c 2018-07-15 01:14:39.720000000 +0000
+@@ -183,7 +183,7 @@
+ /* Allocate private space in format handlers and read data off device. */
+ void *
+ alloc_private_and_read(struct lib_context *lc, const char *who,
+- size_t size, char *path, loff_t offset)
++ size_t size, char *path, off_t offset)
+ {
+ void *ret;
+