Lines Matching defs:ds_header
145 static char *ds_header;
160 if ((ds_header = (char *)realloc(ds_header,
163 if (read(ds_fd, ds_header + ds_headsize, BLK_SIZE) < BLK_SIZE)
200 if ((ds_header = (char *)calloc(BLK_SIZE, 1)) == NULL) {
206 memcpy(ds_header, buf, BLK_SIZE);
307 if (!ds_header) { /* If the header hasn't been read yet */
319 if ((ds_header = (char *)calloc(BLK_SIZE, 1)) == NULL) {
334 if (read(ds_fd, ds_header, BLK_SIZE) != BLK_SIZE) {
348 while (strncmp(ds_header, HDR_PREFIX, 20) != 0) {
359 while (read(ds_fd, ds_header, BLK_SIZE) > 0)
369 (void) free(ds_header);
382 if (read(ds_fd, ds_header, BLK_SIZE) != BLK_SIZE) {
392 while (strstr(ds_header, HDR_SUFFIX) == NULL) {
394 if ((ds_header = (char *)realloc(ds_header,
403 (void) memset(ds_header + header_size, '\0',
408 if (read(ds_fd, ds_header + header_size, BLK_SIZE) !=
429 pds_header = ds_header;
438 memcpy(ds_header_raw, ds_header, header_size);
454 (void) free(ds_header);
462 (void) free(ds_header);
476 (void) free(ds_header);
484 (void) free(ds_header);
517 (void) free(ds_header);
918 if (oflag == O_RDONLY && ds_header && ds_totread == 0)
1012 if (ds_header)
1013 (void) free(ds_header);
1014 ds_header = (char *)NULL;