Commit Graph

420 Commits

Author SHA1 Message Date
Andrew Bird bd5a68552e Build: Use country submodule data
Use table content from country submodule for
  "struct CountrySpecificInfoSmall specificCountriesSupported[]"
2021-12-30 11:55:17 -05:00
Andrew Bird f2cf8220de Build: Add country submodule 2021-12-30 11:55:17 -05:00
lpproj 571cf11111 fix 2nd parameter of "DOS=" statement in config.sys does not take effect in some cases:
* preceding space(s): e.g. "DOS=UMB, HIGH"
* after unknown keyword: e.g. "DOS=NOUMB,HIGH"
2021-11-23 07:22:21 -05:00
Andrew Bird 34c452a29e Share: Update submodule 2021-11-08 08:59:00 -05:00
C. Masloch cedcaee5ad dosfns, int2f: make SHARE uninstallable
Refer to https://github.com/FDOS/share/issues/10
2021-10-28 07:37:54 -04:00
Kenneth J Davis fbc95b7cc2
Updated submodule share 2021-10-25 15:27:58 -04:00
Jiří Malák 246d99c4a6 suppress NASM warning 2021-10-17 06:37:05 -04:00
Jiří Malák a69abe43aa add one directory level for files upload 2021-10-17 06:36:24 -04:00
Andrew Bird 7479889e79 CI: Split into two output directories 2021-10-16 20:43:58 -04:00
Andrew Bird fb372711e5 Update submodule share 2021-10-16 20:43:58 -04:00
Jiri Malak 6e0a415ed3 Fix incorrect date format for Czech and Slovak Republic.
Both Countries use DD.MM.YYYY date format.
Microsoft DOS also use this format.
2021-09-30 07:14:45 -04:00
Margen67 908ffb49d9 ci_build.sh: Rename BUILD_DIR
Travis is no longer the only CI so this name doesn't make sense.
2021-09-27 18:46:02 -04:00
Andrew Bird 4b3f7e0088 int2f: make share_open_check() to accept FAR
Fixes problem with GCC-ia16 compiled share not allowing open of files.
It seems that the TCC 2.01 compiled version was fortunate in that DS
happened to be correct when the interrupt was called, but this was
not the case for the GCC ia16 compiled version.

It's an analogue of this patch by @stsp for FDPP.
https://github.com/dosemu2/fdpp/commit/5b52510b
2021-09-25 19:33:16 -04:00
Andrew Bird 5b9e8fedcc dosfns: Check share table before delete/rename
Delete and Rename should not be able to remove an open file,
so check share's open file table first. Behaviour is now identical
to MS-DOS 6.22.

Note: Uses a new subfunction of the FreeDOS share multiplex
      interrupt int2f/0x10a6 called is_file_open()

A similar patch was applied to FDPP at
https://github.com/dosemu2/fdpp/commit/691721f1

Fixes dosemu2 tests:
  test_fat_ds3_share_open_rename_fcb
  test_fat_ds3_share_open_rename_ds2
  test_fat_ds3_share_open_delete_ds2
  test_fat_ds3_share_open_delete_fcb
2021-09-25 19:33:16 -04:00
Andrew Bird 78d0e09e98 Update share 2021-09-25 19:33:16 -04:00
Andrew Bird 296a37aee0 Build: Update upload artefact file selection 2021-09-24 13:33:02 -04:00
Andrew Bird 778a03f8c3 Build: Use share submodule
1/ Replace copy of share with submodule
2/ Add to the CI build
2021-09-24 11:49:13 -04:00
Kenneth J Davis 23d9c2ecf0 FCB: Rename should support asterisk wildcards - based on dosemu fdpp patch f3cb0719ca, fixes issue #43 2021-08-21 11:09:17 -04:00
Kenneth J Davis cb908cf803 add tests for FCB rename - based on tests from andrewbird https://github.com/dosemu2/fdpp/pull/42#issuecomment-446309983 2021-08-21 10:01:12 -04:00
Kenneth J Davis 79a6504e89 change test to build as exe instead of com 2021-08-20 18:25:16 -04:00
Kenneth J Davis 740e31fd2e don't overwrite CX on windows startup broadcast, windows sets this to 0 so unneeded and another program in chain may have set to nonzero for a reason 2021-08-20 18:24:45 -04:00
Kenneth J Davis b0f5e79205 _winInstanced is only used when compiled with WIN31SUPPORT, fix build error on CI 2021-08-19 14:16:50 -04:00
Kenneth J Davis 9186e6c5ed initial windows 3 enhanced support based on unstable kernel branch 2021-08-19 11:46:10 -04:00
Kenneth J Davis 292f3079be update share MAKEFILE so more path agnostic 2021-08-19 00:09:53 -04:00
Kenneth J Davis 6ada304ec2 allow opening a character device prefixed with invalid drive letter (e.g. "@:NUL") but not with invalid path 2021-08-19 00:00:29 -04:00
Kenneth J Davis c69638def9 add test for opening character devices (all pass on DOS 5,6, NT VDM, @:dev fail currently on FD kernel) 2021-08-16 22:15:41 -04:00
Kenneth J Davis 77b36d2458 revert this change - does not seem correct testing with MSDOS 5 and 6
original commit notes 'Fix an error at opening a character device prefixed with invalid drive letter (e.g. "@:NUL") (some application use it for opening character device driver)', need to test case but breaks TRUENAME asis
2021-08-15 18:00:10 -04:00
Kenneth J Davis e341cce4ed fix build error on FAT16 (non FAT32) variant because of unused label 2021-08-14 19:22:09 -04:00
Kenneth J Davis b0653c0c5f add missing #ifdef, this code is part of skeleton logic for upcoming LFN support - int 2F 1242 internal 64 bit LSEEK should only be active if LFN API available 2021-08-09 17:42:07 -04:00
Kenneth J Davis 1bb536c383 LONG SEEK actually use lower 32 bits of 64 bit value (not 16 bits) 2021-08-08 14:37:07 -04:00
Kenneth J Davis b7bcef73a1 build fixes - update inthndlr.c to compile with LFNAPI enabled (more fixes from earlier oops, lfnapi.c still doesn't compile) 2021-08-08 14:26:34 -04:00
Kenneth J Davis 74e9d4afd7 build.bat add lfn alias to lfnapi 2021-08-08 14:24:26 -04:00
Kenneth J Davis 246b0037a8 initial implementation of extended seek (0x7142 - LONG LSEEK with 64-bit file position) 2021-08-08 03:52:58 -04:00
Kenneth J Davis 15900d7827 add implementation of int 0x2F function 0x1f build CDS from dosemu2/fdpp 2021-08-08 02:19:14 -04:00
Kenneth J Davis c4d6f885f4 correct INTR macro (fix oops, LFN skeleton wasn't meant to be pushed yet) 2021-08-08 00:55:02 -04:00
Kenneth J Davis e2832a5563 skip redundant skipwh(pLine) call - its the first thing scan(...) does 2021-08-07 22:15:24 -04:00
Kenneth J Davis d410370580 add skeleton for LFN API, includes 0x71a6 implementation (call to redirector only) from dosemu2/fdpp 2021-08-07 20:43:04 -04:00
Kenneth J Davis cd4709f09b ensure offset to critical patch tables doesn't change - from a921e21edc (add 0x315 mark) 2021-07-30 23:10:15 -04:00
Kenneth J Davis dd91e3c005 From Tom Ehlert: don't split disk transfers crossing DMA boundary if BIOS indicates can handle transparently 2021-07-30 23:04:06 -04:00
Andrew Bird ab1e31e0ba fcbfns: Fix for FcbFindFirstNext [fixes #40]
The "next" part of this function never returned any results, initialise
only on the first call.

Fix by @stsp, minor edits @andrewbird
2021-07-29 20:31:25 -04:00
Tee-Kiah Chia de7f0d6489 task: don't zero parent_psp on 0x26
Patch ported from
  * f49252ac6b
See
  * https://github.com/dosemu2/fdpp/issues/112
  * https://github.com/FDOS/kernel/issues/38
2021-07-29 17:20:38 -04:00
C. Masloch 858934f152 boot, oemboot: fix to abort properly on file not found
Prior to this commit the first cluster specified from the last
compared directory entry would be used if the file is not found.
Fix the wrong (boot.asm) or missing (oemboot.asm) jump to the
error handler so that on file not found an error is displayed.

Reference: https://sourceforge.net/p/freedos/bugs/97/
"Bugs in FAT12/16 boot sector loaders if file not found"
This commit fixes the most crucial bug of this 2012-09-27 report.
2021-07-29 17:19:45 -04:00
C. Masloch f267341281 oemboot: optimise FAT12 entry loading (picked from lDOS boot)
This way of clearing the upper 4 bits of even FAT entries
saves a byte compared to the prior way. (The next commit
needs one more byte than was previously left over.)

Reference: https://hg.pushbx.org/ecm/ldosboot/file/410b870c0222/boot.asm#l1629
2021-07-29 17:19:45 -04:00
C. Masloch 4c2bda46b2 boot: put placeholder LBA_TEST_OFFSET if no ISFATx define 2021-07-29 17:19:45 -04:00
Kenneth J Davis edfb0db758 adjust padding to be same as in PC-DOS (90h/nop)
see 1dc244b09b
2021-07-22 23:32:22 -04:00
Kenneth J Davis afca594446 from RBIL int 21h/4400h (table 01423) add definition for bit 11 if SFT is not for a device (for a file) - media not removable, currently unused 2021-07-22 23:22:38 -04:00
Kenneth J Davis 9d293d7815 since both refer to critical sections to patch and we have none, i.e. both empty lists, use same location for unused hard coded critical patch list and critical patch list passed to Win3 2021-07-22 23:12:56 -04:00
Kenneth J Davis a193ba3116 from dosemu2/fdpp - zero out critical patch list
Personal NetWare Server really writes to these addresses, so
putting 0x0d0c the way DOS does, is not safe.

See dosemu2/dosemu2#428
see 94bd3eb4b5
2021-07-22 23:02:18 -04:00
Kenneth J Davis c6fafbbb2d int 21h/4400h only return low byte of SFT flags if not a device, part of dosemu2/fdpp bug #147 fix - b2b55fc1af 2021-07-22 22:31:45 -04:00
Kenneth J Davis 516a4e7e55 check for unsupported function call in console - from dosemu2/fdpp bug# 101 fix see c6efa7a203 2021-07-22 21:21:01 -04:00