• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zip30/

Lines Matching defs:disk

106 #define CENDSK  30              /* disk number start */
112 #define ENDDSK 0 /* number of this disk */
113 #define ENDBEG 2 /* number of the starting disk */
114 #define ENDSUB 4 /* entries on this disk */
117 #define ENDOFF 12 /* offset of central on starting disk */
150 # define ZIP64_EFIELD_OFS_DISK (ZIP64_EFIELD_OFS_OFS + 8) /* zip64 extra field: offset to start disk # */
373 char *disk;
418 /* insert .zip extension before disk name */
420 /* save disk name */
421 if ((disk = strdup(r)) == NULL)
424 strcat(t, disk);
425 free(disk);
1116 /* disk number */
1809 sprintf(errbuf, "starts on disk %lu: ", z->dsk);
2174 /* don't assume reading the right disk */
2202 /* For utilities assume archive is on one disk for now */
2496 zipwarn("multiple disk information ignored", "");
2532 /* check for disk information */
2539 ziperr(ZE_FORM, "multiple disk archives not yet supported");
3181 The input path for the .zip file is in in_path. If this is a multiple disk
3212 int skip_disk = 0; /* 1 if user asks to skip current disk */
3213 int skipped_disk = 0; /* 1 if skipped start disk and start offset is useless */
3224 ulg in_cd_start_disk; /* central directory start disk */
3225 uzoff_t in_cd_start_offset; /* offset of start of cd on cd start disk */
3316 number of this disk 2 bytes
3317 number of the disk with the
3320 central directory on this disk 2 bytes
3326 the starting disk number 4 bytes
3349 /* the first field should be number of this (the last) disk */
3353 /* assume this is this disk - if Zip64 it may not be as the
3354 disk number may be bigger than this field can hold
3358 /* Central Directory disk, offset, and total entries */
3366 zipwarn("End record (EOCDR) has bad disk numbers - ignoring EOCDR", "");
3394 sprintf(errbuf, " Found end record (EOCDR) - says expect single disk archive");
3402 /* if total disks is other than 1 then this is not start disk */
3405 /* if total_disks = 0, then guess if this is a single-disk archive
3422 /* could be multi-disk aborted signature at top */
3426 /* multi-disk spanning signature */
3437 printf("Is this a single-disk archive? (y/n): ");
3443 zipmessage(" Assuming single-disk archive", "");
3450 /* if quiet assume single-disk archive */
3455 printf("Is this a single-disk archive? (y/n): ");
3461 zipmessage(" Assuming single-disk archive", "");
3474 /* Now read the archive starting with first disk. Find local headers,
3477 /* Multi-volume file names end in .z01, .z02, ..., .z10, .zip for 11 disk archive */
3479 /* Unless quiet, always close the in_path disk and ask user for first disk,
3481 only one disk.
3494 /* get the path for this disk */
3514 /* user asked to skip this disk */
3516 sprintf(errbuf, "skipping disk %lu ...\n", current_in_disk);
3525 /* skip this current disk - this works because central directory entries
3696 disk number start 2 bytes
3909 zipmessage(" Found spanning marker, but did not expect split (multi-disk) archive...", "");
3912 zipmessage(" Found spanning marker - expected as this is split (multi-disk) archive...", "");
3930 sprintf(errbuftemp, "on disk %lu at %s\n", current_in_disk,
3940 /* close disk and do next disk */
3950 } /* for each disk */
3984 the path for each split is created from the current disk number
4036 ulg in_cd_start_disk; /* central directory start disk */
4037 uzoff_t in_cd_start_offset; /* offset of start of cd on cd start disk */
4045 int skip_disk = 0; /* 1 if user asks to skip current disk */
4046 int skipped_disk = 0; /* 1 if skipped start disk and start offset is useless */
4129 number of this disk 2 bytes
4130 number of the disk with the
4133 central directory on this disk 2 bytes
4139 the starting disk number 4 bytes
4154 /* the first field should be number of this (the last) disk */
4158 /* Assume EOCDR disk is this disk. If a lot of disks, the Zip64 field
4160 value as the disk number may be bigger than this field can hold.
4164 /* Central Directory disk, offset, and total entries */
4197 /* if total disks is other than 1 then multi-disk archive */
4245 /* Also check for an offset if fix and single disk archive. */
4290 number of the disk with the
4339 /* read disk and offset to Zip64 EOCDR and total disks */
4408 number of the disk with the
4456 /* read disk and offset to Zip64 EOCDR and total disks */
4461 /* set the current disk */
4468 /* Zip64 EOCDR not on this disk */
4470 /* done with this disk (since apparently there are no CD entries
4475 /* get the path for the disk with the Zip64 EOCDR */
4544 number of this disk 4 bytes
4545 number of the disk with the
4548 central directory on this disk 8 bytes
4554 the starting disk number 8 bytes
4604 /* Multi-volume file names end in .z01, .z02, ..., .z10, .zip for 11 disk archive */
4612 /* if the central directory starts on other than this disk, close this disk */
4614 /* close current disk */
4620 central directory fits on the last disk, but it doesn't have to.
4625 /* get the path for this disk */
4627 /* last disk is archive.zip */
4651 /* user asked to skip this disk */
4652 sprintf(errbuf, "skipping disk %lu ...\n", current_in_disk);
4659 /* last disk is archive.zip */
4671 /* skip this current disk - this works because central directory entries
4680 /* skipped start CD disk so start searching for CD signature at start of disk */
4730 sprintf(errbuftemp, "on disk %lu at %s\n", current_in_disk,
4737 sprintf(errbuf, "unexpected signature on disk %lu at %s\n",
4750 fprintf(mesg, "central directory header signature on disk %lu at %s\n",
4768 disk number start 2 bytes
5063 /* close disk and do next disk */
5074 } /* for each disk */
5176 * what you read off the disk. In fact you read whatever data was in the same
5177 * disk tracks before the zipfile was allocated. You would be amazed at the
5278 disk number (dsk) is larger than can fit in the below standard fields then a
5383 If the local header doesn't fit we need to save it for the next disk.
5617 disk number (dsk) is larger than can fit in the below standard fields then a
5709 append_ushort_to_mem((ush)z->dsk, &block, &offset, &blocksize); /* disk number start */
5737 append_ushort_to_mem((ush)z->dsk, &block, &offset, &blocksize); /* disk number start */
5873 /* 4 bytes number of this disk */
5875 /* 4 bytes number of the disk with the start of the central directory */
5877 /* 8 bytes total number of entries in the central directory on this disk */
5883 /* 8 bytes offset of start of central directory with respect to the starting disk number */
5891 /* 4 bytes number of the disk with the start of the zip64 end of central directory */
5905 /* 2 bytes number of this disk */
5910 /* 2 bytes number of the disk with the start of the central directory */
5917 /* 2 bytes total number of entries in the central directory on this disk */
5937 /* 4 bytes offset of start of central directory with respect to the starting disk number */
5947 /* 2 bytes number of this disk */
5949 /* 2 bytes number of the disk with the start of the central directory */
5951 /* 2 bytes total number of entries in the central directory on this disk */
5957 /* 4 bytes offset of start of central directory with respect to the starting disk number */
6030 /* don't assume reading the right disk */
6032 /* if start not on current disk then close current disk */
6059 /* user asks to skip this disk */
6309 /* update disk and offset */
6399 /* missing disk */
6410 /* fix == 2 skips right to next disk */