| 1065 | } |
| 1066 | |
| 1067 | U32 KProcess::open(BString path, U32 flags) { |
| 1068 | KFileDescriptorPtr fd; |
| 1069 | |
| 1070 | U32 result = this->openFile(this->currentDirectory, path, flags, fd); |
| 1071 | if (result || !fd) { |
| 1072 | return result; |
| 1073 | } |
| 1074 | return fd->handle; |
| 1075 | } |
| 1076 | |
| 1077 | U32 KProcess::read(KThread* thread, FD fildes, U32 bufferAddress, U32 bufferLen) { |
| 1078 | KFileDescriptorPtr fd = this->getFileDescriptor(fildes); |