Lines Matching defs:tlbs
222 struct _ti_lookbufs *tlbs;
258 tlbs = &tiptr->ti_lookbufs;
265 while (tlbs->tl_next != NULL) {
267 tlbs = tlbs->tl_next;
274 if ((tlbs->tl_next = malloc(sizeof (struct _ti_lookbufs))) ==
277 tlbs = tlbs->tl_next;
283 if ((tlbs->tl_lookcbuf = malloc(cbuf_size)) == NULL) {
285 free(tlbs);
289 ((tlbs->tl_lookdbuf = malloc(dbuf_size)) == NULL)) {
291 free(tlbs->tl_lookcbuf);
292 free(tlbs);
297 (void) memcpy(tlbs->tl_lookcbuf, cptr, csize);
299 (void) memcpy(tlbs->tl_lookdbuf, dptr, dsize);
300 tlbs->tl_lookdlen = dsize;
301 tlbs->tl_lookclen = csize;
302 tlbs->tl_next = NULL;
1228 struct _ti_lookbufs *tlbs, *prev_tlbs, *head_tlbs;
1255 tlbs = head_tlbs->tl_next;
1258 while (tlbs != NULL) {
1259 if (tlbs->tl_lookdbuf != NULL)
1260 free(tlbs->tl_lookdbuf);
1261 free(tlbs->tl_lookcbuf);
1262 prev_tlbs = tlbs;
1263 tlbs = tlbs->tl_next;
1278 struct _ti_lookbufs *tlbs, *next_tlbs;
1280 tlbs = &tiptr->ti_lookbufs;
1282 if (tlbs->tl_next) {
1286 if (tlbs->tl_lookdbuf != NULL)
1287 free(tlbs->tl_lookdbuf);
1288 free(tlbs->tl_lookcbuf);
1292 next_tlbs = tlbs->tl_next;
1293 tlbs->tl_next = next_tlbs->tl_next;
1294 tlbs->tl_lookcbuf = next_tlbs->tl_lookcbuf;
1295 tlbs->tl_lookclen = next_tlbs->tl_lookclen;
1296 tlbs->tl_lookdbuf = next_tlbs->tl_lookdbuf;
1297 tlbs->tl_lookdlen = next_tlbs->tl_lookdlen;
1322 struct _ti_lookbufs *tlbs, *prev_tlbs;
1333 tlbs = tiptr->ti_lookbufs.tl_next;
1335 while (tlbs != NULL) {
1336 if (tlbs->tl_lookdbuf != NULL)
1337 free(tlbs->tl_lookdbuf);
1338 free(tlbs->tl_lookcbuf);
1339 prev_tlbs = tlbs;
1340 tlbs = tlbs->tl_next;