| 1307 | } |
| 1308 | |
| 1309 | static 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 | |
| 1316 | int __syscall_ioctl(int fd, int request, ...) { |
| 1317 | auto openFile = wasmFS.getFileTable().locked().getEntry(fd); |
no test coverage detected