[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] System call bindings



Hello!

Why not copy directly name if Pdomain(1) thread is active, this will be more logical, is there any trouble with this?

I don't understand.

Ok I'm looking in source code

there is:

copy8_3 (dta->dta_pat, slash);
This is I suppose the way to pass from longfilename to short
If I understand you not need to do something here if Pdomain is put to 1 by client

And at:
strncpy (dta->dta_name, slash, TOS_NAMELEN-1);
change by  strncpy (dta->dta_name, slash, PATH_MAX-1); if Pdomain = 1;

It could looks something like this if I understand:
if (p->domain == DOM_TOS) copy8_3 (dta->dta_pat, slash);
....
if (p->domain == DOM_TOS) strncpy (dta->dta_name, slash, TOS_NAMELEN-1);
else strncpy (dta->dta_name, slash, PATH_MAX-1);

So you want to change the OS call semantic as it's currently defined? Sorry, this is not possible as it would break any compatibility to existing programs. At the moment it's not required to pass a 256 byte buffer in the DTA if running as Pdomain(1).


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnaumann@freemint.de