Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pagghiu/SaneCppLibraries
/ standardFileDescriptorIsOpen
Function
standardFileDescriptorIsOpen
Tests/Libraries/File/FileTest.cpp:23–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
{
22
#if !SC_PLATFORM_WINDOWS
23
static bool standardFileDescriptorIsOpen(int fileDescriptor)
24
{
25
errno = 0;
26
return ::fcntl(fileDescriptor, F_GETFD) != -1 or errno != EBADF;
27
}
28
#endif
29
} // namespace
30
Callers
1
testOpenStdHandles
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected