From fnaumann@mail.cs.uni-magdeburg.de Tue Oct 5 09:27:10 2004 Message-ID: <41624DCF.5000400@utbm.fr> Date: Tue, 05 Oct 2004 09:31:27 +0200 From: Olivier Landemarre User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Frank Naumann CC: mint@lists.fishpool.fi Subject: Re: [MiNT] System call bindings References: <695F17FC-1546-11D9-92FA-00039357F826@epfl.ch> <4160FEE8.7080203@utbm.fr> <41610495.5050704@utbm.fr> <416118E7.10107@utbm.fr> <41611F45.7000902@utbm.fr> <1096886748.416129dc4504f@imp3-q.free.fr> <41613E8E.2040901@utbm.fr> <41615651.3040600@utbm.fr> <416166AA.60706@utbm.fr> <4161BFF7.8070605@obta.uw.edu.pl> <41624838.2000402@utbm.fr> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=1.7 required=5.0 tests=BAYES_80 autolearn=no version=2.64 X-Spam-Level: Score:* X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on portail1.utbm.fr X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: olivier.landemarre@utbm.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: X-Milter: ClamAV 0.70/0.70kjel X-Milter: milter-regex 1.5jel X-Milter: ClamAV 0.70/0.70kjel X-Milter: milter-regex 1.5jel Frank Naumann wrote: > Hello! > >> Atari doc: >> Pdomain gets or sets process execution domain. This is a number wich >> controls the behaviour of a process. The default domain is 0, wich is >> the TOS compatibility domain and in wich all system calls behave >> exactly as they do under TOS. Domain 1 is the MiNT domain; in this >> domain, the behaviour of the Fread and Fwrite system calls when >> applied to terminals are controled by the current terminal settings >> as established by the Fcntl system call. Moreover, file names >> returned from Fsfirts and Fsnext may be treated differently; MiNT >> domain process are expected to be able to deal with file names that >> are not standard 8 character name + 3 character extension, all upper >> case, DOS file names. >> ... > > > Yes, and this is what MiNT do since ever, for Pdomain(1) it don't > convert filenames to the 8+3 upper case TOS convention on Fsfirst/Fsnext. > > But that's all, I don't see any reference to return longer filenames > than there is space in the DTA struct nor that the DTA struct is > redefined. So for Fsfirst/Fsnext you get the original filenames like > they are on the disc if you are Pdomain(1) AND(!) the filename is > smaller than 14 characters (as there is no more space in the DTA struct). We return to the first problem, by default DTA is assign by the system (and not by software) when Pexec is done, no? The DTA address is push in BASEPAGE. Then if software wan't to change of DTA, it use DTA definition from osbind.h, if it's not agree with system of course it will crashed. Olivier