mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-09 13:30:34 +00:00
minor cleanups
This commit is contained in:
parent
93fd6cb58c
commit
0cc361bab0
@ -112,10 +112,11 @@ namespace MPW
|
||||
|
||||
fprintf(stderr, " interactive(%02x)\n", fd);
|
||||
|
||||
d0 = kEINVAL;
|
||||
//d0 = kEINVAL;
|
||||
|
||||
|
||||
#if 0
|
||||
// linkgs reads from stdin and
|
||||
// doesn't work quite right when
|
||||
// this returns 0. So, don't.
|
||||
|
||||
if (fd < 0 || fd >= FDTable.size() || !FDTable[fd])
|
||||
{
|
||||
@ -126,9 +127,6 @@ namespace MPW
|
||||
int tty = ::isatty(fd);
|
||||
d0 = tty ? 0 : kEINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
memoryWriteWord(f.error, parm + 2);
|
||||
return d0;
|
||||
@ -148,15 +146,11 @@ namespace MPW
|
||||
f.count = memoryReadLong(parm + 12);
|
||||
f.buffer = memoryReadLong(parm + 16);
|
||||
|
||||
// linkgs reads from stdin and
|
||||
// doesn't work quite right when
|
||||
// this returns 0. So, don't.
|
||||
|
||||
f.error = 0;
|
||||
|
||||
int fd = f.cookie;
|
||||
|
||||
fprintf(stderr, " interactive(%02x)\n", fd);
|
||||
fprintf(stderr, " fname(%02x)\n", fd);
|
||||
|
||||
memoryWriteWord(f.error, parm + 2);
|
||||
return kEINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user