mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Apply some touchups
This commit is contained in:
parent
9f149e1de3
commit
2f3bd90216
139 changed files with 1188 additions and 1154 deletions
|
@ -22,14 +22,14 @@
|
|||
#include "libc/calls/termios.internal.h"
|
||||
#include "libc/dce.h"
|
||||
|
||||
void *termios2host(union metatermios *t, const struct termios *lt) {
|
||||
if (IsXnu()) {
|
||||
void *__termios2host(union metatermios *t, const struct termios *lt) {
|
||||
if (!IsXnu() && !IsFreebsd() && !IsOpenbsd() && !IsNetbsd()) {
|
||||
return lt;
|
||||
} else if (IsXnu()) {
|
||||
COPY_TERMIOS(&t->xnu, lt);
|
||||
return &t->xnu;
|
||||
} else if (IsFreebsd() || IsOpenbsd()) {
|
||||
} else {
|
||||
COPY_TERMIOS(&t->bsd, lt);
|
||||
return &t->bsd;
|
||||
} else {
|
||||
return lt;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue