|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
--- cpio-2.6/src/util.c.lfs 2004-09-08 12:44:49.000000000 +0200
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+++ cpio-2.6/src/util.c 2006-03-25 13:34:10.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
@@ -207,7 +207,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
Exit with an error if end of file is reached. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
static int
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
-disk_fill_input_buffer (int in_des, int num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+disk_fill_input_buffer (int in_des, off_t num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
in_buff = input_buffer;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
num_bytes = (num_bytes < DISK_IO_BLOCK_SIZE) ? num_bytes : DISK_IO_BLOCK_SIZE;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -227,10 +227,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
When `out_buff' fills up, flush it to file descriptor OUT_DES. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
-tape_buffered_write (char *in_buf, int out_des, long num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+tape_buffered_write (char *in_buf, int out_des, off_t num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- register long bytes_left = num_bytes; /* Bytes needing to be copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- register long space_left; /* Room left in output buffer. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t bytes_left = num_bytes; /* Bytes needing to be copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t space_left; /* Room left in output buffer. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
while (bytes_left > 0)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -254,10 +254,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
When `out_buff' fills up, flush it to file descriptor OUT_DES. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
-disk_buffered_write (char *in_buf, int out_des, long num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+disk_buffered_write (char *in_buf, int out_des, off_t num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- register long bytes_left = num_bytes; /* Bytes needing to be copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- register long space_left; /* Room left in output buffer. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t bytes_left = num_bytes; /* Bytes needing to be copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t space_left; /* Room left in output buffer. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
while (bytes_left > 0)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -282,10 +282,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
When `in_buff' is exhausted, refill it from file descriptor IN_DES. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
-tape_buffered_read (char *in_buf, int in_des, long num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+tape_buffered_read (char *in_buf, int in_des, off_t num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- register long bytes_left = num_bytes; /* Bytes needing to be copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- register long space_left; /* Bytes to copy from input buffer. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t bytes_left = num_bytes; /* Bytes needing to be copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t space_left; /* Bytes to copy from input buffer. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
while (bytes_left > 0)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -376,10 +376,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
/* Skip the next NUM_BYTES bytes of file descriptor IN_DES. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
-tape_toss_input (int in_des, long num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+tape_toss_input (int in_des, off_t num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
- register long bytes_left = num_bytes; /* Bytes needing to be copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- register long space_left; /* Bytes to copy from input buffer. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t bytes_left = num_bytes; /* Bytes needing to be copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t space_left; /* Bytes to copy from input buffer. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
while (bytes_left > 0)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
@@ -404,12 +404,12 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
}
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
static void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
501abeb |
-write_nuls_to_file (long num_bytes, int out_des,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- void (*writer) (char *in_buf, int out_des, long num_bytes))
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+write_nuls_to_file (off_t num_bytes, int out_des,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ void (*writer) (char *in_buf, int out_des, off_t num_bytes))
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- long blocks;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- long extra_bytes;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- long i;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t blocks;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t extra_bytes;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t i;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
blocks = num_bytes / 512;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
extra_bytes = num_bytes % 512;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -428,7 +428,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
NUM_BYTES is the number of bytes to copy. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
-copy_files_tape_to_disk (int in_des, int out_des, long num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+copy_files_tape_to_disk (int in_des, int out_des, off_t num_bytes)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long size;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long k;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
@@ -458,13 +458,13 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
NUM_BYTES is the number of bytes to copy. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
-copy_files_disk_to_tape (int in_des, int out_des, long num_bytes,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+copy_files_disk_to_tape (int in_des, int out_des, off_t num_bytes,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
char *filename)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long size;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long k;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
int rc;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- long original_num_bytes;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t original_num_bytes;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
original_num_bytes = num_bytes;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
@@ -476,10 +476,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
num_bytes : DISK_IO_BLOCK_SIZE))
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
if (rc > 0)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- error (0, 0, _("File %s shrunk by %ld bytes, padding with zeros"),
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
+ error (0, 0, _("File %s shrunk by %lld bytes, padding with zeros"),
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
filename, num_bytes);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
else
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- error (0, 0, _("Read error at byte %ld in file %s, padding with zeros"),
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
+ error (0, 0, _("Read error at byte %lld in file %s, padding with zeros"),
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
original_num_bytes - num_bytes, filename);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
write_nuls_to_file (num_bytes, out_des, tape_buffered_write);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
break;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
@@ -505,12 +505,12 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
NUM_BYTES is the number of bytes to copy. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
-copy_files_disk_to_disk (int in_des, int out_des, long num_bytes,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+copy_files_disk_to_disk (int in_des, int out_des, off_t num_bytes,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
char *filename)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long size;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long k;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- long original_num_bytes;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t original_num_bytes;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
int rc;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
original_num_bytes = num_bytes;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
@@ -520,10 +520,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
if (rc = disk_fill_input_buffer (in_des, num_bytes))
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
if (rc > 0)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- error (0, 0, _("File %s shrunk by %ld bytes, padding with zeros"),
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
+ error (0, 0, _("File %s shrunk by %lld bytes, padding with zeros"),
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
filename, num_bytes);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
else
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
- error (0, 0, _("Read error at byte %ld in file %s, padding with zeros"),
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
+ error (0, 0, _("Read error at byte %lld in file %s, padding with zeros"),
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
original_num_bytes - num_bytes, filename);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
write_nuls_to_file (num_bytes, out_des, disk_buffered_write);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
edfc3dd |
break;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -544,7 +544,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
/* Warn if file changed while it was being copied. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
-warn_if_file_changed (char *file_name, unsigned long old_file_size,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+warn_if_file_changed (char *file_name, off_t old_file_size,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
unsigned long old_file_mtime)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
struct stat new_file_stat;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -696,8 +696,8 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
temp = (temp + 1) % hash_size)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
if (hash_table[temp]->inode == node_num
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- && hash_table[start]->major_num == major_num
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- && hash_table[start]->minor_num == minor_num)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ && hash_table[temp]->major_num == major_num
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ && hash_table[temp]->minor_num == minor_num)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
return hash_table[temp]->file_name;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
}
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
}
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
--- cpio-2.6/src/copyin.c.lfs 2004-09-08 13:10:02.000000000 +0200
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+++ cpio-2.6/src/copyin.c 2006-03-25 13:35:43.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
@@ -106,7 +106,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
header type. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
static void
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
-tape_skip_padding (int in_file_des, int offset)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+tape_skip_padding (int in_file_des, off_t offset)
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
{
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
int pad;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
@@ -911,7 +911,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
printf ("%3u, %3u ", file_hdr->c_rdev_maj,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
file_hdr->c_rdev_min);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
else
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
- printf ("%8lu ", file_hdr->c_filesize);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+ printf ("%8llu ", file_hdr->c_filesize);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
printf ("%s ", tbuf + 4);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
@@ -1153,7 +1153,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
tape_buffered_read (ascii_header, in_des, 70L);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
ascii_header[70] = '\0';
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
sscanf (ascii_header,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
- "%6lo%6lo%6lo%6lo%6lo%6lo%6lo%11lo%6lo%11lo",
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+ "%6lo%6lo%6lo%6lo%6lo%6lo%6lo%11lo%6lo%11llo",
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
&dev, &file_hdr->c_ino,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
&file_hdr->c_mode, &file_hdr->c_uid, &file_hdr->c_gid,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
&file_hdr->c_nlink, &rdev, &file_hdr->c_mtime,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
@@ -1211,7 +1211,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
tape_buffered_read (ascii_header, in_des, 104L);
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
ascii_header[104] = '\0';
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
sscanf (ascii_header,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
- "%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx%8lx",
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+ "%8lx%8lx%8lx%8lx%8lx%8lx%8llx%8lx%8lx%8lx%8lx%8lx%8lx",
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
&file_hdr->c_ino, &file_hdr->c_mode, &file_hdr->c_uid,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
&file_hdr->c_gid, &file_hdr->c_nlink, &file_hdr->c_mtime,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
&file_hdr->c_filesize, &file_hdr->c_dev_maj, &file_hdr->c_dev_min,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
--- cpio-2.6/src/extern.h.lfs 2004-09-08 12:49:57.000000000 +0200
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+++ cpio-2.6/src/extern.h 2006-03-25 13:34:10.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
@@ -161,14 +161,14 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
void tape_empty_output_buffer P_((int out_des));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
void disk_empty_output_buffer P_((int out_des));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
void swahw_array P_((char *ptr, int count));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
-void tape_buffered_write P_((char *in_buf, int out_des, long num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
-void tape_buffered_read P_((char *in_buf, int in_des, long num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+void tape_buffered_write P_((char *in_buf, int out_des, off_t num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+void tape_buffered_read P_((char *in_buf, int in_des, off_t num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
int tape_buffered_peek P_((char *peek_buf, int in_des, int num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
-void tape_toss_input P_((int in_des, long num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
-void copy_files_tape_to_disk P_((int in_des, int out_des, long num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
-void copy_files_disk_to_tape P_((int in_des, int out_des, long num_bytes, char *filename));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
-void copy_files_disk_to_disk P_((int in_des, int out_des, long num_bytes, char *filename));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
-void warn_if_file_changed P_((char *file_name, unsigned long old_file_size,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+void tape_toss_input P_((int in_des, off_t num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+void copy_files_tape_to_disk P_((int in_des, int out_des, off_t num_bytes));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+void copy_files_disk_to_tape P_((int in_des, int out_des, off_t num_bytes, char *filename));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+void copy_files_disk_to_disk P_((int in_des, int out_des, off_t num_bytes, char *filename));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+void warn_if_file_changed P_((char *file_name, off_t old_file_size,
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
unsigned long old_file_mtime));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
void create_all_directories P_((char *name));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
void prepare_append P_((int out_file_des));
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
--- cpio-2.6/src/cpiohdr.h.lfs 2003-11-21 15:48:13.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
cd1ff72 |
+++ cpio-2.6/src/cpiohdr.h 2006-03-25 13:34:10.000000000 +0100
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -34,8 +34,8 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
unsigned short c_mtimes[2];
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
unsigned short c_namesize;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
unsigned short c_filesizes[2];
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- unsigned long c_mtime; /* Long-aligned copy of `c_mtimes'. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- unsigned long c_filesize; /* Long-aligned copy of `c_filesizes'. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ unsigned int c_mtime; /* aligned copy of `c_mtimes'. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ unsigned int c_filesize; /* aligned copy of `c_filesizes'. */
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
char *c_name;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
};
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
@@ -76,7 +76,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
unsigned long c_gid;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
unsigned long c_nlink;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
unsigned long c_mtime;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
- unsigned long c_filesize;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
+ off_t c_filesize;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long c_dev_maj;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long c_dev_min;
|
|
![](https://seccdn.libravatar.org/avatar/11ab33e42b90ad33e3a94f1a8146947bf50f6a3054fe9550956ef93ddd2e1fad?s=16&d=retro) |
9cadd2b |
long c_rdev_maj;
|