Lines Matching defs:rs
70 struct rthread_storage *rs;
87 for (rs = _initial_thread.local_storage; rs; rs = rs->next) {
88 if (rs->keyid == key)
89 rs->data = NULL;
101 struct rthread_storage *rs;
105 rs = NULL;
111 for (rs = self->local_storage; rs; rs = rs->next) {
112 if (rs->keyid == key)
115 if (!rs) {
116 rs = calloc(1, sizeof(*rs));
117 if (!rs)
119 rs->keyid = key;
120 rs->data = NULL;
121 rs->next = self->local_storage;
122 self->local_storage = rs;
126 return (rs);
132 struct rthread_storage *rs;
137 rs = _rthread_findstorage(key);
138 if (!rs)
141 return (rs->data);
148 struct rthread_storage *rs;
153 rs = _rthread_findstorage(key);
154 if (!rs)
156 rs->data = (void *)data;
165 struct rthread_storage *rs;
170 for (rs = thread->local_storage; rs; rs = rs->next) {
171 if (!rs->data)
173 if (rkeys[rs->keyid].destructor) {
175 rkeys[rs->keyid].destructor;
176 void *data = rs->data;
177 rs->data = NULL;
184 for (rs = thread->local_storage; rs; rs = thread->local_storage) {
185 thread->local_storage = rs->next;
186 free(rs);