mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
- Actually add patches
This commit is contained in:
parent
80c17d72de
commit
73ec2b90d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=384200
16
emulators/doscmd/files/extra-patch-cwd.c
Normal file
16
emulators/doscmd/files/extra-patch-cwd.c
Normal file
@ -0,0 +1,16 @@
|
||||
This call changes internal descriptor in DIR structure so it's
|
||||
located at the top of file descriptor table. I guess it is needed
|
||||
to not interfere with other file descriptor order or to keep their
|
||||
values small. doscmd may work fine without it, but it should be
|
||||
tested.
|
||||
--- cwd.c.orig 2011-08-26 16:48:21 UTC
|
||||
+++ cwd.c
|
||||
@@ -889,7 +889,7 @@ find_first(u_char *path, int attr, dosdi
|
||||
++search->searchend;
|
||||
*search->searchend++ = '/';
|
||||
|
||||
- search->dp->dd_fd = squirrel_fd(search->dp->dd_fd);
|
||||
+ //search->dp->dd_fd = squirrel_fd(search->dp->dd_fd);
|
||||
|
||||
dta->drive = drive | 0x80;
|
||||
to_dos_fcb(dta->pattern, slash);
|
19
emulators/doscmd/files/patch-config.c
Normal file
19
emulators/doscmd/files/patch-config.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- config.c.orig 2011-08-26 16:48:21 UTC
|
||||
+++ config.c
|
||||
@@ -213,14 +213,14 @@ init_hard:
|
||||
quit(1);
|
||||
}
|
||||
errno = 0;
|
||||
- addr = (int)strtol(av[3], '\0', 0);
|
||||
+ addr = (int)strtol(av[3], NULL, 0);
|
||||
/* XXX DEBUG ISA-specific */
|
||||
if ((errno != 0) || (addr > MAXPORT)) {
|
||||
fprintf(stderr, "usage: assign com[1-4] path addr irq\n");
|
||||
quit(1);
|
||||
}
|
||||
errno = 0;
|
||||
- irq = (unsigned char)strtol(av[4], '\0', 0);
|
||||
+ irq = (unsigned char)strtol(av[4], NULL, 0);
|
||||
/* XXX DEBUG ISA-specific */
|
||||
if ((errno != 0) || (irq < 2) || (irq > 7)) {
|
||||
fprintf(stderr, "usage: assign com[1-4] path addr irq[2-7]\n");
|
20
emulators/doscmd/files/patch-int13.c
Normal file
20
emulators/doscmd/files/patch-int13.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- int13.c.orig 2011-08-26 16:48:21 UTC
|
||||
+++ int13.c
|
||||
@@ -487,7 +487,7 @@ diread(struct diskinfo *di, regcontext_t
|
||||
off_t res;
|
||||
|
||||
int drive = di - diskinfo;
|
||||
- di->multi = -1;
|
||||
+ di->multi = 3;
|
||||
|
||||
if (drive > 1) {
|
||||
drive -= 2;
|
||||
@@ -536,7 +536,7 @@ diwrite(struct diskinfo *di, regcontext_
|
||||
{
|
||||
off_t res;
|
||||
int drive = di - diskinfo;
|
||||
- di->multi = -1;
|
||||
+ di->multi = 3;
|
||||
|
||||
if (drive > 1) {
|
||||
drive -= 2;
|
11
emulators/doscmd/files/patch-trap.c
Normal file
11
emulators/doscmd/files/patch-trap.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- trap.c.orig 2011-08-26 16:48:21 UTC
|
||||
+++ trap.c
|
||||
@@ -295,7 +295,7 @@ sigbus(struct sigframe *sf)
|
||||
callback_t func;
|
||||
regcontext_t *REGS = (regcontext_t *)(&sf->sf_uc.uc_mcontext);
|
||||
|
||||
- if (!(R_EFLAGS && PSL_VM))
|
||||
+ if (!(R_EFLAGS & PSL_VM))
|
||||
fatal("SIGBUS in the emulator\n");
|
||||
|
||||
if ((int)sf->sf_siginfo != 0) {
|
Loading…
Reference in New Issue
Block a user