Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-14 Thread Rugxulo
Hi, On Feb 14, 2015 3:44 PM, John Sowden jsow...@americansentry.net wrote: This came up when I tried to exit DOS using the dosemu exit program and it crashed. What crashed? DOSEMU? Your app? Linux? What distro? BTW, I thought exitemu was the correct way to exit DOSEMU.

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-14 Thread John Sowden
I use dosemu; been using it for 15 years. Although I still use DOS (freedos+4dos) on a network in my office (wordstar, foxpro). I needed a method of determining which OS I am running also. I set a variable in the dosemu autoexec, then I test it, using a routine in dosemu that allows you to

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-13 Thread Rugxulo
Hi again, On Tue, Feb 10, 2015 at 7:47 PM, Ralf Quint freedos...@gmail.com wrote: On 2/10/2015 5:34 PM, Rugxulo wrote: But again, DOSEMU isn't widely deployed, so lots of people don't use it. It still works fairly well, just not popular. I'm not sure if that will ever improve. I don't want

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-13 Thread Frantisek Hanzlik
Rugxulo wrote: Hi again, On Tue, Feb 10, 2015 at 7:47 PM, Ralf Quint freedos...@gmail.com wrote: On 2/10/2015 5:34 PM, Rugxulo wrote: But again, DOSEMU isn't widely deployed, so lots of people don't use it. It still works fairly well, just not popular. I'm not sure if that will ever

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-13 Thread Rugxulo
Hi, On Fri, Feb 13, 2015 at 5:42 PM, Frantisek Hanzlik fra...@hanzlici.cz wrote: Regarding to DOSEMU/SELinux interaction, it isn't too big problem tune it e.g. in SELinux permissive mode. su -c 'sysctl -w vm.mmap_min_addr=0' su -c 'sesetbool -P mmap_low_allowed 1' (That's all I know from a

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-10 Thread Rugxulo
Hi again, On Tue, Feb 10, 2015 at 7:34 PM, Rugxulo rugx...@gmail.com wrote: On Sun, Feb 8, 2015 at 1:13 PM, Frantisek Hanzlik fra...@hanzlici.cz wrote: I'm trying to write a small program that will distinguish whether running under dosemu/FreeDOS or not, and accordingly do other things. I'm

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-10 Thread Ralf Quint
On 2/10/2015 5:34 PM, Rugxulo wrote: I perform Dosemu detection according to instruction and example in this old FreeDOS maillist thread: http://marc.info/?l=freedos-devm=88425176918117w=2 I know you sent similar e-mail about mixed environments in the past. Normally you wouldn't want to split

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-10 Thread Rugxulo
Hi, On Sun, Feb 8, 2015 at 1:13 PM, Frantisek Hanzlik fra...@hanzlici.cz wrote: I'm trying to write a small program that will distinguish whether running under dosemu/FreeDOS or not, and accordingly do other things. I'm not under Linux right now, so I can't double check, but just FYI, here's

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-10 Thread Ralf Quint
On 2/10/2015 3:38 PM, Frantisek Hanzlik wrote: Ralf Quint wrote: On 2/9/2015 7:57 PM, Frantisek Hanzlik wrote: Pointers and things around them are for me still a little incomprehensible ;) If you want to program in C, then there is no way around it. For almost everything, and in particular

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-10 Thread Frantisek Hanzlik
Ralf Quint wrote: On 2/9/2015 7:57 PM, Frantisek Hanzlik wrote: Hi Eric, thanks for help, Eric Auer wrote: Hi Franta, struct dosemu_detect { char magic[8]; unsigned char ver[4]; }; static struct dosemu_detect far *p = (void far*)

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-10 Thread Eric Auer
Hi Franta, I got the impression that string declared as char mystring[]=$DOSEMU$; is in memory stored as null-terminated string. This does not help you: The OTHER string STARTS with $DOSEMU$, but is NOT null terminated, so both strings still differ. Unless you explicitly say you only

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-10 Thread Ralf Quint
On 2/10/2015 4:04 PM, Eric Auer wrote: Hi Franta, I got the impression that string declared as char mystring[]=$DOSEMU$; is in memory stored as null-terminated string. This does not help you: The OTHER string STARTS with $DOSEMU$, but is NOT null terminated, so both strings still differ.

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-10 Thread Frantisek Hanzlik
Eric Auer wrote: Hi Franta, I got the impression that string declared as char mystring[]=$DOSEMU$; is in memory stored as null-terminated string. This does not help you: The OTHER string STARTS with $DOSEMU$, but is NOT null terminated, so both strings still differ. Unless you

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-09 Thread Frantisek Hanzlik
Hi Eric, thanks for help, Eric Auer wrote: Hi Franta, struct dosemu_detect { char magic[8]; unsigned char ver[4]; }; static struct dosemu_detect far *p = (void far*) 0xF000FFE0; Note that the way how you create far pointers can differ

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-09 Thread Ralf Quint
On 2/9/2015 7:57 PM, Frantisek Hanzlik wrote: Hi Eric, thanks for help, Eric Auer wrote: Hi Franta, struct dosemu_detect { char magic[8]; unsigned char ver[4]; }; static struct dosemu_detect far *p = (void far*) 0xF000FFE0; Note that

[Freedos-user] FreeDOS program/beginner's problems

2015-02-08 Thread Frantisek Hanzlik
Hi all, I'm trying to write a small program that will distinguish whether running under dosemu/FreeDOS or not, and accordingly do other things. I ran into problems which I can not solve, so please, if someone here will be able to help. I'm using Open Watcom C 1.9 compiler on FreeDOS 1.1. And it

Re: [Freedos-user] FreeDOS program/beginner's problems

2015-02-08 Thread Eric Auer
Hi Franta, struct dosemu_detect { char magic[8]; unsigned char ver[4]; }; static struct dosemu_detect far *p = (void far*) 0xF000FFE0; Note that the way how you create far pointers can differ between compilers. In particular, with any 32 bit