Lines Matching refs:loc
46 tsdent_t *loc = ptr; in _free_tsdbuf() local
51 if (loc != NULL) { in _free_tsdbuf()
53 if ((p = loc[i].buf) != NULL) { in _free_tsdbuf()
54 destructor = loc[i].destructor; in _free_tsdbuf()
57 lfree(p, loc[i].size); in _free_tsdbuf()
60 lfree(loc, _T_NUM_ENTRIES * sizeof (tsdent_t)); in _free_tsdbuf()
68 tsdent_t *loc; in tsdalloc() local
82 if ((loc = pthread_getspecific(key)) != NULL) { in tsdalloc()
83 if ((p = loc[n].buf) != NULL) in tsdalloc()
87 loc = lmalloc(_T_NUM_ENTRIES * sizeof (tsdent_t)); in tsdalloc()
88 if (loc == NULL) in tsdalloc()
90 if ((error = thr_setspecific(key, loc)) != 0) { in tsdalloc()
91 lfree(loc, _T_NUM_ENTRIES * sizeof (tsdent_t)); in tsdalloc()
98 loc[n].buf = p = lmalloc(size); in tsdalloc()
99 loc[n].size = size; in tsdalloc()
100 loc[n].destructor = destructor; in tsdalloc()