summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/dos.c
Commit message (Collapse)AuthorAgeFilesLines
* WARNS=2 fixupmarkm2001-12-021-1/+1
|
* Silence some more warnings, mostly from `-W -Wwrite-strings'.tg2001-08-081-4/+4
|
* Fix warnings resulting from `-Wredundant-decls -Wstrict-prototypes'.tg2001-08-071-2/+0
|
* Fix warnings from `-Wmissing-prototypes'. Staticize.tg2001-08-031-4/+4
|
* Mark debug() and fatal() as __printflike() and fix resulting warnings.tg2001-07-311-4/+4
|
* Clean up the code a bit:tg2001-07-241-32/+31
| | | | | | | - add $FreeBSD$; - remove unused variables; - add missing headers and prototypes; - -Wshadow.
* Implement file truncation (DOS function 0x21, sub 0x40).tg2001-05-221-4/+20
| | | | | PR: 20925 Submitted by: Tatsuya Kudoh <cdr@cosmonet.org>
* Correct typo to get DOS function 0x51 (get PSP) to work.tg2001-05-221-1/+1
| | | | | PR: 15547 Submitted by: Atushi Sakauchi <sakauchi@yamame.to>
* DOS function 0x0a (buffered keyboard input) returned immediately.tg2001-05-221-1/+1
| | | | | PR: 15531 Submitted by: Atushi Sakauchi <sakauchi@yamame.to>
* Fix DOS function 4c (exit with return code).tg2001-05-221-0/+1
| | | | | PR: 15528 Submitted by: Atushi Sakauchi <sakauchi@yamame.to>
* Fix typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | Seperate does not exist in the english language.
* Add `_PATH_DEVZERO'.obrien2000-12-091-2/+3
| | | | Use _PATH_* where where possible.
* Unbreak doscmd after the sigset_t change:marcel1999-09-291-35/+35
| | | | | | | | | | | | doscmd heavily depends on struct sigcontext which luckily is mostly passed between functions as usion regcontext_t. By redefining union regcontext_t in terms of mcontext_t almost all bases are covered. It also seems to me that doscmd was in a transitional state. The redundant definitions made it difficult to get a clear overview and could easily cause oversight. To make sure my changes were ok, I went as far as to complete the transition. It was not exactly necessary, but I expect to have to come back here some more ("whistle" if I'm wrong :-).
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* o for unknown int21 functions, set the CY bit to indicate failureimp1998-07-171-2/+34
| | | | | | | | | | | o When reporting a int21 function we don't know about yet, report AH as the major and AL as the minor, as opposed to reporting AL as the major. o Add support for 21:44:7: ioctl check output status. We optimistically say that output is always ready. o Add half support for 21:23: get file size. We always now return failure. This function isn't supported, according to the interrupt list, by the DOS box in windows, so I don't feel too bad.
* o remove -f from doscmd man page, as it is not implemented.imp1998-07-161-1/+21
| | | | | | | | | | | | | | | | | o Remove init printf o Don't set optind from return value for do_args. getopt has already done this. o Bump EMS memory from 1M to 10M (this really should be a command line option). o Open /dev/null when requested to open emmxxxx0 to allow many programs checking to see if EMS is installed to find it. o Route int67 to ems_entry to allow EMS to be used when DOS is emulated as well as when DOS is booted. This may obviate the need for the driver doing anything at all in a really booted situation and won't hurt that case. I can now run the DOS program I'm interested in running with enough EMS memory that its "advanced" functions are enabled and working.
* o fix bug in conversion of DOS 32-bit signed number to FreeBSD's 64-bitimp1998-07-021-2/+2
| | | | | | off_t. This fixed the primitive 'copy protection' that the program I'm using.
* Make sourcer's main program execute in X mode.imp1998-07-011-2/+2
| | | | | | | | o Make the dos emulation treat c: and C: the same way. Sourcer was doing a chdir("c:\\") rather than a chdir("C:\\"); o use drlton() in all places where we used to use -'A' so that we're always case independent. o use drntol() in all places where we used to use + 'A' for similar reasons
* Add our doscmd to the tree. This is a result of work from BSDI, anddyson1997-08-091-0/+2508
a group of dos emulator developers. Submitted by: Jonathan Lemon <jlemon@americantv.com> Obtained from: BSDI
OpenPOWER on IntegriCloud