Lines Matching defs:contents
450 /* Read the contents of PATHNAME, returning a buffer with the contents of
471 char *contents;
483 /* Try to read the contents of this file. */
485 contents = (char *)xmalloc (1 + st_size);
486 if ((read (descriptor, contents, st_size)) != st_size)
490 free (contents);
499 *filesize = convert_eols (contents, st_size);
504 contents = (char *)xrealloc (contents, 1 + *filesize);
505 contents[*filesize] = '\0';
507 return (contents);
522 char *contents = (char *)NULL;
568 contents = (char *)xrealloc
569 (contents, size += (2 * FILESYS_PIPE_BUFFER_SIZE));
571 memcpy (contents + offset, chunk, bytes_read);
580 if (contents)
581 free (contents);
582 contents = (char *)NULL;
587 *filesize = convert_eols (contents, offset);
588 contents = (char *)xrealloc (contents, 1 + *filesize);
589 contents[*filesize] = '\0';
601 return (contents);