Lines Matching refs:descriptor
75 Descriptors::open(int descriptor, const char* name, int flags, int mode) in open() argument
83 gold_assert(lock_initialized || descriptor < 0); in open()
88 if (descriptor >= 0) in open()
92 gold_assert(static_cast<size_t>(descriptor) in open()
94 Open_descriptor* pod = &this->open_descriptors_[descriptor]; in open()
100 if (descriptor == this->stack_top_) in open()
107 descriptor, name); in open()
108 return descriptor; in open()
126 if (descriptor >= 0 && errno == ENOENT) in open()
195 Descriptors::release(int descriptor, bool permanent) in release() argument
199 gold_assert(descriptor >= 0 in release()
200 && (static_cast<size_t>(descriptor) in release()
202 Open_descriptor* pod = &this->open_descriptors_[descriptor]; in release()
207 if (::close(descriptor) < 0) in release()
218 this->stack_top_ = descriptor; in release()
224 descriptor, pod->name); in release()