Lines Matching refs:contents
448 /* Read the contents of PATHNAME, returning a buffer with the contents of
469 char *contents;
481 /* Try to read the contents of this file. */
483 contents = (char *)xmalloc (1 + st_size);
484 if ((read (descriptor, contents, st_size)) != st_size)
488 free (contents);
497 *filesize = convert_eols (contents, st_size);
502 contents = (char *)xrealloc (contents, 1 + *filesize);
503 contents[*filesize] = '\0';
505 return (contents);
520 char *contents = (char *)NULL;
566 contents = (char *)xrealloc
567 (contents, size += (2 * FILESYS_PIPE_BUFFER_SIZE));
569 memcpy (contents + offset, chunk, bytes_read);
578 if (contents)
579 free (contents);
580 contents = (char *)NULL;
585 *filesize = convert_eols (contents, offset);
586 contents = (char *)xrealloc (contents, 1 + *filesize);
587 contents[*filesize] = '\0';
599 return (contents);