]>
Commit | Line | Data |
---|---|---|
f5d66ae7 JB |
1 | --- cpio-2.6/src/util.c.orig 2004-09-08 12:44:49.000000000 +0200 |
2 | +++ cpio-2.6/src/util.c 2005-01-09 02:32:52.642458816 +0100 | |
3 | @@ -428,10 +428,10 @@ | |
4 | NUM_BYTES is the number of bytes to copy. */ | |
5 | ||
6 | void | |
7 | -copy_files_tape_to_disk (int in_des, int out_des, long num_bytes) | |
8 | +copy_files_tape_to_disk (int in_des, int out_des, off_t num_bytes) | |
9 | { | |
10 | - long size; | |
11 | - long k; | |
12 | + off_t size; | |
13 | + off_t k; | |
14 | ||
15 | while (num_bytes > 0) | |
16 | { | |
17 | @@ -458,13 +458,13 @@ | |
18 | NUM_BYTES is the number of bytes to copy. */ | |
19 | ||
20 | void | |
21 | -copy_files_disk_to_tape (int in_des, int out_des, long num_bytes, | |
22 | +copy_files_disk_to_tape (int in_des, int out_des, off_t num_bytes, | |
23 | char *filename) | |
24 | { | |
25 | - long size; | |
26 | - long k; | |
27 | + off_t size; | |
28 | + off_t k; | |
29 | int rc; | |
30 | - long original_num_bytes; | |
31 | + off_t original_num_bytes; | |
32 | ||
33 | original_num_bytes = num_bytes; | |
34 | ||
35 | @@ -505,12 +505,12 @@ | |
36 | NUM_BYTES is the number of bytes to copy. */ | |
37 | ||
38 | void | |
39 | -copy_files_disk_to_disk (int in_des, int out_des, long num_bytes, | |
40 | +copy_files_disk_to_disk (int in_des, int out_des, off_t num_bytes, | |
41 | char *filename) | |
42 | { | |
43 | - long size; | |
44 | - long k; | |
45 | - long original_num_bytes; | |
46 | + off_t size; | |
47 | + off_t k; | |
48 | + off_t original_num_bytes; | |
49 | int rc; | |
50 | ||
51 | original_num_bytes = num_bytes; | |
52 | --- cpio-2.6/src/extern.h.lfs 2004-10-14 16:18:34.000000000 -0500 | |
53 | +++ cpio-2.6/src/extern.h 2004-10-14 16:20:43.000000000 -0500 | |
54 | @@ -164,9 +164,9 @@ | |
55 | void tape_buffered_read P_((char *in_buf, int in_des, long num_bytes)); | |
56 | int tape_buffered_peek P_((char *peek_buf, int in_des, int num_bytes)); | |
57 | void tape_toss_input P_((int in_des, long num_bytes)); | |
58 | -void copy_files_tape_to_disk P_((int in_des, int out_des, long num_bytes)); | |
59 | -void copy_files_disk_to_tape P_((int in_des, int out_des, long num_bytes, char *filename)); | |
60 | -void copy_files_disk_to_disk P_((int in_des, int out_des, long num_bytes, char *filename)); | |
61 | +void copy_files_tape_to_disk P_((int in_des, int out_des, off_t num_bytes)); | |
62 | +void copy_files_disk_to_tape P_((int in_des, int out_des, off_t num_bytes, char *filename)); | |
63 | +void copy_files_disk_to_disk P_((int in_des, int out_des, off_t num_bytes, char *filename)); | |
64 | void warn_if_file_changed P_((char *file_name, unsigned long old_file_size, | |
65 | unsigned long old_file_mtime)); | |
66 | void create_all_directories P_((char *name)); |