From owner-freebsd-current Sun Nov 7 11:35:37 1999 Delivered-To: freebsd-current@freebsd.org Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (Postfix) with ESMTP id 0525614CC9 for ; Sun, 7 Nov 1999 11:35:30 -0800 (PST) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.3/8.9.3) id VAA60044 for current@FreeBSD.org; Sun, 7 Nov 1999 21:35:29 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <199911071935.VAA60044@zibbi.mikom.csir.co.za> Subject: Re: doscmd broken on current? fixed In-Reply-To: <199911071301.PAA54812@zibbi.mikom.csir.co.za> from John Hay at "Nov 7, 1999 03:01:40 pm" To: current@FreeBSD.org Date: Sun, 7 Nov 1999 21:35:29 +0200 (SAT) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ok, with these patches doscmd is working for me again. I can boot dos and run the topspeed C compiler like I used to a few months ago. If nobody has any complaints I'll commit it. I'm just not 100% sure about the patch to doscmd.c and would like if someone with more knowledge about the signal stuff would just look at it. There is just too many signal related functions and structures and it isn't always clear (to me at least) what should be filled in for whom. John -- John Hay -- John.Hay@mikom.csir.co.za Index: cwd.c =================================================================== RCS file: /home/ncvs/src/usr.bin/doscmd/cwd.c,v retrieving revision 1.5 diff -u -r1.5 cwd.c --- cwd.c 1999/10/12 22:20:18 1.5 +++ cwd.c 1999/11/07 18:59:06 @@ -198,7 +198,7 @@ u_char *np; Path_t *d; u_char tmppath[1024]; - u_char snewpath = newpath; + u_char *snewpath = newpath; if (where[0] != '\0' && where[1] == ':') { drive = drlton(*where); @@ -253,7 +253,7 @@ } else { if (np[-1] != '\\') *np++ = '\\'; - while (*np = *dir++ && np - snewpath < 1023) + while ((*np = *dir++) && np - snewpath < 1023) ++np; } } Index: doscmd.c =================================================================== RCS file: /home/ncvs/src/usr.bin/doscmd/doscmd.c,v retrieving revision 1.11 diff -u -r1.11 doscmd.c --- doscmd.c 1999/10/13 23:48:35 1.11 +++ doscmd.c 1999/11/07 12:50:06 @@ -258,6 +258,7 @@ sigemptyset(&uc.uc_sigmask); sigaltstack(NULL, &uc.uc_stack); + uc.uc_mcontext.mc_onstack = uc.uc_stack.ss_flags; if (tmode) tracetrap(REGS); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message