mirror of
https://github.com/ziglang/zig.git
synced 2025-12-14 02:03:08 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
13 lines
223 B
C
13 lines
223 B
C
#include <termios.h>
|
|
#include <sys/ioctl.h>
|
|
#include <errno.h>
|
|
|
|
int tcsetattr(int fd, int act, const struct termios *tio)
|
|
{
|
|
if (act < 0 || act > 2) {
|
|
errno = EINVAL;
|
|
return -1;
|
|
}
|
|
return ioctl(fd, TCSETS+act, tio);
|
|
}
|