From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: DOS utils problem with 3.x versions Date: Sun, 16 Oct 2005 14:59:42 +0400 Message-ID: <4352329E.9000606@aknet.ru> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="utf-8"; format="flowed" To: linux-msdos@vger.kernel.org Hello. Diego Rodr=D0=9Cguez Rodr=D0=9Cguez wrote: > What's wrong ?? dosemu docs. doesn't speack about minimal DOS version > requirements. Yes, but the reasonable requirements always do exist. If you write some program, you'll certalinly be suprised if someone will test in with linux-1.0 kernel, or will try to compile it on some gcc-1.0 etc. Now dosemu, being a PC emulator, should in fact run *any* version of DOS, and not even DOS (can run elks, minix). But the supplied utilities are guaranteed to work only with the default installation, which is =46reeDOS-based. They work with the other DOSes only as a bonus. So the utilities are really a special part. In your case the DOS doesn't set the process name in an MCB, and dosemu looks there and can't figure out what utility was started. I am not sure if we have to keep the compatibility of our utilities with such an ancient DOSes. Of course, overall, we have to keep the dependancies on DOS as fewer as possible, and in this case it is possible to make every utility to "authenticate" itself, which will mitigate the problem and will avoid the fragile code (IIRC, the name in MCB is even an undocumented feature). But you can't completely avoid the dependancies on DOS for utilities, so I am not sure if it is necessary to address that particular case by the cost of having the separate code for every utility, while right now they all are just a symlinks to generic.com. Another solution may be to extract the name from the argv[0]. This may work out right, but it is about adding some code for the questionable benefit. We can instead just fix the documentation to address the problem. If you really care about that issue, open an RFE at the SF tracker. I feel like it should be addressed, more than it shouldn't, if someone really cares. Btw, you can just submit a patch yourself. Extracting the name from argv[0] is not difficult at all. The code in question is in builtins.c file, function commands_plugin_inte6(). - To unsubscribe from this list: send the line "unsubscribe linux-msdos" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html