Lines Matching defs:entry
70 struct uvwasi_fd_wrap_t* entry;
95 entry = (struct uvwasi_fd_wrap_t*)
96 uvwasi__malloc(uvwasi, sizeof(*entry) + mp_len + mp_len + rp_len + 3);
97 if (entry == NULL)
101 mp_copy = (char*)(entry + 1);
114 uvwasi__free(uvwasi, entry);
126 uvwasi__free(uvwasi, entry);
150 uvwasi__free(uvwasi, entry);
156 table->fds[index] = entry;
158 r = uv_mutex_init(&entry->mutex);
164 entry->id = index;
165 entry->fd = fd;
166 entry->sock = sock;
167 entry->path = mp_copy;
168 entry->real_path = rp_copy;
169 entry->normalized_path = np_copy;
170 entry->type = type;
171 entry->rights_base = rights_base;
172 entry->rights_inheriting = rights_inheriting;
173 entry->preopen = preopen;
176 uv_mutex_lock(&entry->mutex);
177 *wrap = entry;
242 struct uvwasi_fd_wrap_t* entry;
249 entry = table->fds[i];
251 if (entry == NULL)
254 uv_mutex_destroy(&entry->mutex);
255 uvwasi__free(uvwasi, entry);
357 struct uvwasi_fd_wrap_t* entry;
365 entry = table->fds[id];
367 if (entry == NULL || entry->id != id)
371 if ((~entry->rights_base & rights_base) != 0 ||
372 (~entry->rights_inheriting & rights_inheriting) != 0) {
376 uv_mutex_lock(&entry->mutex);
377 *wrap = entry;
385 struct uvwasi_fd_wrap_t* entry;
393 entry = table->fds[id];
395 if (entry == NULL || entry->id != id)
398 uv_mutex_destroy(&entry->mutex);
399 uvwasi__free(uvwasi, entry);
451 /* Move the source entry to the destination slot in the table. */
458 /* Clean up what's left of the old destination entry. */