Add epoll and do more release readiness changes
This change also pays off some of the remaining technical debt with stdio, file descriptors, and memory managemnt polyfills.
This commit is contained in:
@@ -29,10 +29,10 @@ textwindows int ioctl$tiocswinsz$nt(int fd, const struct winsize *ws) {
|
||||
uint32_t mode;
|
||||
struct NtCoord coord;
|
||||
if (!ws) return efault();
|
||||
if (!isfdkind(fd, kFdFile)) return ebadf();
|
||||
if (!__isfdkind(fd, kFdFile)) return ebadf();
|
||||
if (!GetConsoleMode(g_fds.p[fd].handle, &mode)) return enotty();
|
||||
coord.X = ws->ws_col;
|
||||
coord.Y = ws->ws_row;
|
||||
if (!SetConsoleScreenBufferSize(g_fds.p[fd].handle, coord)) return winerr();
|
||||
if (!SetConsoleScreenBufferSize(g_fds.p[fd].handle, coord)) return __winerr();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user