Delete VAX/OS2/DOS/AMIGA code from GNU Make

This commit is contained in:
Justine Tunney 2022-03-18 21:37:41 -07:00
parent 14e192e5ba
commit 10a766ebd0
463 changed files with 2517 additions and 201015 deletions

View file

@ -28,7 +28,8 @@
#include "libc/str/str.h"
#include "libc/sysv/errfuns.h"
static textwindows dontinline int sys_ttyname_nt(int fd, char *buf, size_t size) {
static textwindows dontinline int sys_ttyname_nt(int fd, char *buf,
size_t size) {
uint32_t mode;
if (GetConsoleMode(g_fds.p[fd].handle, &mode)) {
if (mode & kNtEnableVirtualTerminalInput) {
@ -70,6 +71,9 @@ static int ttyname_linux(int fd, char *buf, size_t size) {
return 0;
}
/**
* Returns name of terminal, reentrantly.
*/
int ttyname_r(int fd, char *buf, size_t size) {
if (IsLinux()) {
return ttyname_linux(fd, buf, size);