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