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

Method close

source/kernel/kprocess.cpp:1058–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058U32 KProcess::close(FD fildes) {
1059 KFileDescriptorPtr fd = this->getFileDescriptor(fildes);
1060 if (!fd) {
1061 return -K_EBADF;
1062 }
1063 clearFdHandle(fd->handle);
1064 return 0;
1065}
1066
1067U32 KProcess::open(BString path, U32 flags) {
1068 KFileDescriptorPtr fd;

Callers

nothing calls this directly

Calls 1

getFileDescriptorMethod · 0.95

Tested by

no test coverage detected