Lines Matching defs:lep
71 struct logtab_ent *lep = NULL;
74 if ((lep = (struct logtab_ent *)malloc(sizeof (*lep))) == NULL) {
77 (void) memset((char *)lep, 0, sizeof (*lep));
91 if ((lep->le_buffer = strdup(tmp)) == NULL) {
101 if ((lep->le_path = strdup(tmp)) == NULL) {
111 if ((lep->le_tag = strdup(tmp)) == NULL) {
121 lep->le_state = atoi(tmp);
123 *lepp = lep;
127 logtab_ent_free(lep);
136 logtab_putent(FILE *fd, struct logtab_ent *lep)
144 lep->le_buffer,
145 lep->le_path,
146 lep->le_tag,
147 lep->le_state);
213 struct logtab_ent *lep;
219 while ((error = logtab_getent(fd, &lep)) > 0) {
222 found = strcmp(buffer, lep->le_buffer) == 0;
224 found = found && (strcmp(path, lep->le_path) == 0);
226 found = found && (strcmp(tag, lep->le_tag) == 0);
228 found = found && (state == lep->le_state);
231 logtab_ent_free(lep);
240 tmpl->lel_le = lep;
297 struct logtab_ent *lep;
303 while ((error = logtab_getent(fd, &lep)) > 0) {
306 found = strcmp(buffer, lep->le_buffer) == 0;
308 found = found && (strcmp(path, lep->le_path) == 0);
310 found = found && (strcmp(tag, lep->le_tag) == 0);
311 if (found && (lep->le_state == LES_ACTIVE)) {
313 lep->le_state = LES_INACTIVE;
323 lelp->lel_le = lep;
389 logtab_ent_free(struct logtab_ent *lep)
391 if (lep->le_buffer)
392 free(lep->le_buffer);
393 if (lep->le_path)
394 free(lep->le_path);
395 if (lep->le_tag)
396 free(lep->le_tag);
397 free(lep);