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

Method open

source/kernel/kprocess.cpp:1067–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065}
1066
1067U32 KProcess::open(BString path, U32 flags) {
1068 KFileDescriptorPtr fd;
1069
1070 U32 result = this->openFile(this->currentDirectory, path, flags, fd);
1071 if (result || !fd) {
1072 return result;
1073 }
1074 return fd->handle;
1075}
1076
1077U32 KProcess::read(KThread* thread, FD fildes, U32 bufferAddress, U32 bufferLen) {
1078 KFileDescriptorPtr fd = this->getFileDescriptor(fildes);

Callers

nothing calls this directly

Calls 1

openFileMethod · 0.95

Tested by

no test coverage detected