Lines Matching refs:fbuf
83 char *fbuf = NULL;
99 if ((fbuf = (char *)malloc(fsize)) == NULL) {
104 free(fbuf);
128 slen = snprintf(fbuf, nlen, "%s", ptr);
130 slen = snprintf(fbuf + plen, nlen - plen, ":%s", ptr);
132 fbuf[0] = '\0';
143 device = strtok_r(fbuf, ":", &lasts);
155 free(fbuf);
162 free(fbuf);
179 _da_read_file(char *fname, char **fbuf, time_t *ftime, rwlock_t *flock,
213 if (*fbuf != NULL) {
214 free(*fbuf);
215 *fbuf = NULL;
217 if ((*fbuf = malloc(fsize)) == NULL) {
222 if (read(fd, *fbuf, fsize) < fsize) {
223 free(*fbuf);
233 free(*fbuf);
238 free(*fbuf);