mirror of
https://github.com/ksherlock/mpw.git
synced 2024-12-22 00:29:18 +00:00
fiofname
This commit is contained in:
parent
05d7518d98
commit
3c65212ba3
15
mpw/mpw.cpp
15
mpw/mpw.cpp
@ -116,6 +116,8 @@ namespace {
|
||||
const char *cp = (const char *)memoryPointer(name);
|
||||
sname.assign(cp);
|
||||
|
||||
fprintf(stderr, " open(%s, %04x)\n", sname.c_str(), f.flags);
|
||||
|
||||
if (f.flags & kO_RSRC)
|
||||
sname.append(_PATH_RSRCFORKSPEC);
|
||||
|
||||
@ -440,6 +442,15 @@ namespace {
|
||||
return kEINVAL;
|
||||
}
|
||||
|
||||
uint32_t ftrap_iofname(uint32_t parm, uint32_t arg)
|
||||
{
|
||||
// return file name.
|
||||
// AsmIIgs uses this...
|
||||
memoryWriteWord(0, parm + 2);
|
||||
return kEINVAL;
|
||||
}
|
||||
|
||||
|
||||
void ftrap_ioctl(uint16_t trap)
|
||||
{
|
||||
// returns an mpw_errno in d0 [???]
|
||||
@ -473,9 +484,11 @@ namespace {
|
||||
d0 = ftrap_interactive(fd, arg);
|
||||
break;
|
||||
|
||||
case kFIOFNAME:
|
||||
d0 = ftrap_iofname(fd, arg);
|
||||
break;
|
||||
|
||||
case kFIOLSEEK:
|
||||
case kFIOFNAME:
|
||||
case kFIOREFNUM:
|
||||
case kFIOSETEOF:
|
||||
fprintf(stderr, "ioctl - unsupported op %04x\n", cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user