Lines Matching refs:fn

25  * logadm/fn.c -- "filename" string module
31 * logadm that return filenames return a struct fn, and most routines
43 #include "fn.h"
56 struct fn {
61 struct fn *fn_next; /* next in list */
68 struct fn *fnl_first; /* first element of list */
69 struct fn *fnl_last; /* last element of list */
70 struct fn *fnl_rptr; /* read pointer for iterating through list */
77 * struct fn *fnp = fn_new("this is a string");
79 struct fn *
82 struct fn *fnp = MALLOC(sizeof (struct fn));
114 struct fn *
115 fn_dup(struct fn *fnp)
117 struct fn *ret = fn_new(fn_s(fnp));
128 struct fn *
129 fn_dirname(struct fn *fnp)
132 struct fn *ret;
158 fn_setn(struct fn *fnp, int n)
172 fn_setstat(struct fn *fnp, struct stat *stp)
181 fn_getstat(struct fn *fnp)
190 fn_free(struct fn *fnp)
207 fn_renew(struct fn *fnp, const char *s)
220 fn_putc(struct fn *fnp, int c)
230 err(0, "fn buffer overflow");
255 fn_puts(struct fn *fnp, const char *s)
266 fn_putfn(struct fn *fnp, struct fn *srcfnp)
279 fn_rewind(struct fn *fnp)
288 fn_getc(struct fn *fnp)
300 fn_peekc(struct fn *fnp)
312 fn_s(struct fn *fnp)
321 fn_isgz(struct fn *fnp)
367 struct fn *fnp;
382 struct fn *fnp;
400 * fn_list_addfn -- add a filename (i.e. struct fn *) to a list of filenames
403 fn_list_addfn(struct fn_list *fnlp, struct fn *fnp)
426 struct fn *
429 struct fn *ret = fnlp->fnl_rptr;
447 struct fn *fnp2 = fnlp2->fnl_first;
448 struct fn *nextfnp2;
450 /* for each fn in the second list... */
462 /* all the fn's were moved off the second list */
478 struct fn *fnp = fnlp->fnl_first;
479 struct fn *nextfnp;
482 /* for each fn in the list... */
503 struct fn *fnp;
520 struct fn *
523 struct fn *fnp;
524 struct fn *ret = NULL;