Apply some touchups

This commit is contained in:
Justine Tunney 2021-02-07 06:11:44 -08:00
parent 9f149e1de3
commit 2f3bd90216
139 changed files with 1188 additions and 1154 deletions

View file

@ -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;
}
}