| 2187 | } |
| 2188 | |
| 2189 | U32 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 | |
| 2206 | U32 KProcess::mkdirat(U32 dirfd, BString path, U32 mode) { |
| 2207 | BString dir; |
no test coverage detected