| 2427 | } |
| 2428 | |
| 2429 | U32 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 |
no test coverage detected