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

Method openat

source/kernel/kprocess.cpp:2189–2204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2187}
2188
2189U32 KProcess::openat(FD dirfd, BString path, U32 flags) {
2190 BString dir;
2191 U32 result = 0;
2192
2193 if (path.charAt(0)!='/')
2194 result = getCurrentDirectoryFromDirFD(dirfd, dir);
2195
2196 if (result)
2197 return result;
2198 KFileDescriptorPtr fd;
2199 result = this->openFile(dir, path, flags, fd);
2200 if (result || !fd) {
2201 return result;
2202 }
2203 return fd->handle;
2204}
2205
2206U32 KProcess::mkdirat(U32 dirfd, BString path, U32 mode) {
2207 BString dir;

Callers 1

syscall_openatFunction · 0.80

Calls 2

openFileMethod · 0.95
charAtMethod · 0.80

Tested by

no test coverage detected