MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getNextFileDescriptorHandle

Method getNextFileDescriptorHandle

source/kernel/kprocess.cpp:434–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434U32 KProcess::getNextFileDescriptorHandle(int after) {
435 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(fdsMutex);
436 U32 i=after;
437
438 while (1) {
439 if (!this->fds[i])
440 return i;
441 i++;
442 }
443}
444
445KFileDescriptorPtr KProcess::allocFileDescriptor(const std::shared_ptr<KObject>& kobject, U32 accessFlags, U32 descriptorFlags, S32 handle, U32 afterHandle) {
446 if (handle<0) {

Callers 1

allocFileDescriptorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected