mirror of
https://github.com/ziglang/zig.git
synced 2025-12-14 10:13:07 +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
10 lines
145 B
C
10 lines
145 B
C
#include <termios.h>
|
|
#include <sys/ioctl.h>
|
|
|
|
int tcgetattr(int fd, struct termios *tio)
|
|
{
|
|
if (ioctl(fd, TCGETS, tio))
|
|
return -1;
|
|
return 0;
|
|
}
|