Home | History | Annotate | Download | only in gold

Lines Matching refs:descriptor

75 Descriptors::open(int descriptor, const char* name, int flags, int mode)
83 gold_assert(lock_initialized || descriptor < 0);
88 if (descriptor >= 0)
92 gold_assert(static_cast<size_t>(descriptor)
94 Open_descriptor* pod = &this->open_descriptors_[descriptor];
100 if (descriptor == this->stack_top_)
106 gold_debug(DEBUG_FILES, "Reused existing descriptor %d for \"%s\"",
107 descriptor, name);
108 return descriptor;
126 if (descriptor >= 0 && errno == ENOENT)
137 gold_debug(DEBUG_FILES, "Opened new descriptor %d for \"%s\"",
173 gold_debug(DEBUG_FILES, "Opened new descriptor %d for \"%s\"",
192 // Release a descriptor.
195 Descriptors::release(int descriptor, bool permanent)
199 gold_assert(descriptor >= 0
200 && (static_cast<size_t>(descriptor)
202 Open_descriptor* pod = &this->open_descriptors_[descriptor];
207 if (::close(descriptor) < 0)
218 this->stack_top_ = descriptor;
223 gold_debug(DEBUG_FILES, "Released descriptor %d for \"%s\"",
224 descriptor, pod->name);
227 // Close some descriptor. The lock is held when this is called. We
228 // close the descriptor on the top of the free stack. Note that this
230 // used descriptor. That is because the linker tends to cycle through
233 // we closed a descriptor.
249 gold_debug(DEBUG_FILES, "Closed descriptor %d for \"%s\"",
283 gold_debug(DEBUG_FILES, "Closed descriptor %d for \"%s\" (close_all)",