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

Method mkdirat

source/kernel/kprocess.cpp:2206–2217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2204}
2205
2206U32 KProcess::mkdirat(U32 dirfd, BString path, U32 mode) {
2207 BString dir;
2208 U32 result = 0;
2209
2210 if (path.charAt(0) != '/')
2211 result = getCurrentDirectoryFromDirFD(dirfd, dir);
2212
2213 if (result)
2214 return result;
2215 BString fullPath = Fs::getFullPath(dir, path);
2216 return this->mkdir(fullPath);
2217}
2218
2219#define K_AT_SYMLINK_FOLLOW 0x400 // Follow symbolic links.
2220#define K_AT_NO_AUTOMOUNT 0x800 // Suppress terminal automount traversal

Callers 1

syscall_mkdiratFunction · 0.80

Calls 2

mkdirMethod · 0.95
charAtMethod · 0.80

Tested by

no test coverage detected