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

Method faccessat

source/kernel/kprocess.cpp:2429–2443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2427}
2428
2429U32 KProcess::faccessat(U32 dirfd, BString path, U32 mode, U32 flags) {
2430 BString dir;
2431 U32 result = 0;
2432
2433 if (path.charAt(0) != '/')
2434 result = getCurrentDirectoryFromDirFD(dirfd, dir);
2435
2436 if (result)
2437 return result;
2438 std::shared_ptr<FsNode> node = Fs::getNodeFromLocalPath(dir, path, (flags & 0x100)==0);
2439 if (!node) {
2440 return -K_ENOENT;
2441 }
2442 return internalAccess(node, mode);
2443}
2444
2445#define K_UTIME_NOW 0x3fffffff
2446#define K_UTIME_OMIT 0x3ffffffe

Callers 2

syscall_faccessatFunction · 0.80
syscall_faccessat2Function · 0.80

Calls 2

internalAccessFunction · 0.85
charAtMethod · 0.80

Tested by

no test coverage detected