diff options
author | marcel <marcel@FreeBSD.org> | 1999-09-29 20:09:19 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-09-29 20:09:19 +0000 |
commit | d4e70391772e9b3fa25d96b93d50278ea1c125ef (patch) | |
tree | 8397c40eb0fbcd1e79470ce8389a29cbebc02ca6 /usr.bin/doscmd/AsyncIO.c | |
parent | 073b941095e3deeaae66ec3452643c4db25deb08 (diff) | |
download | FreeBSD-src-d4e70391772e9b3fa25d96b93d50278ea1c125ef.zip FreeBSD-src-d4e70391772e9b3fa25d96b93d50278ea1c125ef.tar.gz |
Unbreak doscmd after the sigset_t change:
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 :-).
Diffstat (limited to 'usr.bin/doscmd/AsyncIO.c')
-rw-r--r-- | usr.bin/doscmd/AsyncIO.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/doscmd/AsyncIO.c b/usr.bin/doscmd/AsyncIO.c index 92c7e98..992fee5 100644 --- a/usr.bin/doscmd/AsyncIO.c +++ b/usr.bin/doscmd/AsyncIO.c @@ -28,7 +28,10 @@ * SUCH DAMAGE. * * BSDI AsyncIO.c,v 2.2 1996/04/08 19:32:10 bostic Exp + * + * $FreeBSD$ */ + #include <stdio.h> #include <sys/param.h> #include <sys/types.h> @@ -269,7 +272,7 @@ if (0) * STEP 3: Call the handler */ (*handlers[fd].func)(handlers[fd].arg, - &sf->sf_siginfo.si_sc); + (regcontext_t*)&sf->sf_uc); /* * STEP 4: Just turn SIGIO off. No check. |