MCPcopy Index your code
hub / github.com/python/cpython / ioctl

Function ioctl

Platforms/emscripten/web_example_pyrepl_jspi/src.mjs:157–164  ·  view source on GitHub ↗
(stream, request, varargs)

Source from the content-addressed store, hash-verified

155 return (PTY.readable ? POLLIN : 0) | (PTY.writable ? POLLOUT : 0);
156 },
157 ioctl(stream, request, varargs) {
158 if (request === FIONREAD) {
159 const res = PTY.fromLdiscToUpperBuffer.length;
160 Module.HEAPU32[varargs / 4] = res;
161 return 0;
162 }
163 throw new Error("Unimplemented ioctl request");
164 },
165};
166
167async function setupStdio(Module) {

Callers 3

openptyFunction · 0.85
getheightwidthMethod · 0.85
getpendingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…