All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: DOS utils problem with 3.x versions
Date: Sun, 16 Oct 2005 14:59:42 +0400	[thread overview]
Message-ID: <4352329E.9000606@aknet.ru> (raw)

Hello.

Diego RodrМguez RodrМguez 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
FreeDOS-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

             reply	other threads:[~2005-10-16 10:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-16 10:59 Stas Sergeev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-16  8:12 DOS utils problem with 3.x versions Diego Rodríguez Rodríguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4352329E.9000606@aknet.ru \
    --to=stsp@aknet.ru \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.