Lines Matching refs:adrf
42 adrf_start(adrf_t *adrf, adr_t *adr, FILE *fp)
44 adrf->adrf_fp = fp;
45 adrf->adrf_adr = adr;
46 adrf->adrf_adr->adr_now = NULL;
53 adrf_char(adrf_t *adrf, char *cp, int count)
60 if ((c = fgetc(adrf->adrf_fp)) == EOF)
63 adrf->adrf_adr->adr_now += sizeof (char);
72 adrf_short(adrf_t *adrf, short *sp, int count)
79 if ((c = fgetc(adrf->adrf_fp)) == EOF)
82 if ((c = fgetc(adrf->adrf_fp)) == EOF)
85 adrf->adrf_adr->adr_now += sizeof (short);
93 int adrf_int(adrf_t *adrf, int32_t *lp, int count);
94 int adrf_long(adrf_t *adrf, int32_t *lp, int count);
100 adrf_int32(adrf_t *adrf, int32_t *lp, int count)
110 if ((c = fgetc(adrf->adrf_fp)) == EOF)
115 adrf->adrf_adr->adr_now += sizeof (int32_t);
121 adrf_int64(adrf_t *adrf, int64_t *lp, int count)
131 if ((c = fgetc(adrf->adrf_fp)) == EOF)
136 adrf->adrf_adr->adr_now += sizeof (int64_t);
141 int adrf_u_int(adrf_t *adrf, uint32_t *cp, int count);
142 int adrf_u_long(adrf_t *adrf, uint32_t *cp, int count);
148 adrf_u_int32(adrf_t *adrf, uint32_t *cp, int count)
150 return (adrf_int32(adrf, (int32_t *)cp, count));
154 adrf_u_char(adrf_t *adrf, uchar_t *cp, int count)
156 return (adrf_char(adrf, (char *)cp, count));
160 adrf_u_int64(adrf_t *adrf, uint64_t *lp, int count)
162 return (adrf_int64(adrf, (int64_t *)lp, count));
166 adrf_u_short(adrf_t *adrf, ushort_t *sp, int count)
168 return (adrf_short(adrf, (short *)sp, count));
172 adrf_peek(adrf_t *adrf)
174 return (ungetc(fgetc(adrf->adrf_fp), adrf->adrf_fp));