MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / isTTY

Function isTTY

system/lib/wasmfs/syscalls.cpp:1309–1314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1307}
1308
1309static bool isTTY(std::shared_ptr<File>& file) {
1310 // TODO: Full TTY support. For now, just see stdin/out/err as terminals and
1311 // nothing else.
1312 return file == SpecialFiles::getStdin() ||
1313 file == SpecialFiles::getStdout() || file == SpecialFiles::getStderr();
1314}
1315
1316int __syscall_ioctl(int fd, int request, ...) {
1317 auto openFile = wasmFS.getFileTable().locked().getEntry(fd);

Callers 1

__syscall_ioctlFunction · 0.85

Calls 3

getStdinFunction · 0.85
getStdoutFunction · 0.85
getStderrFunction · 0.85

Tested by

no test coverage detected