file lock() and share.exe

John Charlton
2003-09-12T01:43:55Z

I have a dos application compiled with djgpp compiler in dosemu. A call to
the lock() function which works in native freedos (beta 8) always returns -1
(failed) in dosemu. I first used dosemu 1.0.2.0 which installs with SuSE
Linux 8.2 distribution. I just installed dosemu-1.1.5 and observe the exact
same behavior. The freedos version used with dosemu-1.1.5 is:
FreeDOS kernel version 1.1.24c (Build 2024c) [Jun 10 2001 22:25:01]

Without share.exe, the lock() return code is -1 and the dos error=14 (Share
not loaded). With the share from (http://www.dosemu.org/bart/share.zip)
loaded lock() still returns -1 with a different dos error errno=26 (No space
on drive).

I appreciate any help on this. I have read other postings on the 'share.exe'
topic in this list, but have not seen a resolution to this problem.

--John