mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 09:18:31 +00:00
Delete VAX/OS2/DOS/AMIGA code from GNU Make
This commit is contained in:
parent
14e192e5ba
commit
10a766ebd0
463 changed files with 2517 additions and 201015 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue