Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
83f1f03e
Commit
83f1f03e
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Don't assume signal handlers are (void *)(), 'cause under mach they are
(int *)().
parent
6d25839c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ldb/interrupt.c
+6
-6
6 additions, 6 deletions
ldb/interrupt.c
ldb/interrupt.h
+10
-3
10 additions, 3 deletions
ldb/interrupt.h
with
16 additions
and
9 deletions
ldb/interrupt.c
+
6
−
6
View file @
83f1f03e
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/interrupt.c,v 1.2
8
1991/0
5
/2
4
1
7:50:13
wlott Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/interrupt.c,v 1.2
9
1991/0
9
/2
7
1
0:31:55
wlott Exp $ */
/* Interrupt handing magic. */
...
...
@@ -26,7 +26,7 @@ boolean internal_errors_enabled = 0;
struct
sigcontext
*
lisp_interrupt_contexts
[
MAX_INTERRUPTS
];
union
interrupt_handler
interrupt_handlers
[
NSIG
];
void
(
*
interrupt_low_level_handlers
[
NSIG
])()
=
{
0
};
SIGHDLRTYPE
(
*
interrupt_low_level_handlers
[
NSIG
])()
=
{
0
};
static
int
pending_signal
=
0
,
pending_code
=
0
,
pending_mask
=
0
;
static
boolean
maybe_gc_pending
=
FALSE
;
...
...
@@ -195,7 +195,7 @@ void interrupt_handle_pending(context)
* the two main signal handlers. *
\****************************************************************/
void
interrupt_handle_now
(
signal
,
code
,
context
)
SIGHDLRTYPE
interrupt_handle_now
(
signal
,
code
,
context
)
int
signal
,
code
;
struct
sigcontext
*
context
;
{
...
...
@@ -244,7 +244,7 @@ struct sigcontext *context;
undo_fake_foreign_function_call
(
context
);
}
static
void
maybe_now_maybe_later
(
signal
,
code
,
context
)
static
SIGHDLRTYPE
maybe_now_maybe_later
(
signal
,
code
,
context
)
int
signal
,
code
;
struct
sigcontext
*
context
;
{
...
...
@@ -336,7 +336,7 @@ struct sigcontext *context;
void
interrupt_install_low_level_handler
(
signal
,
handler
)
int
signal
;
void
(
*
handler
)();
SIGHDLRTYPE
(
*
handler
)();
{
struct
sigvec
sv
;
...
...
@@ -351,7 +351,7 @@ void (*handler)();
unsigned
long
install_handler
(
signal
,
handler
)
int
signal
;
void
(
*
handler
)();
SIGHDLRTYPE
(
*
handler
)();
{
struct
sigvec
sv
;
int
oldmask
;
...
...
This diff is collapsed.
Click to expand it.
ldb/interrupt.h
+
10
−
3
View file @
83f1f03e
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/interrupt.h,v 1.
2
1991/0
5
/2
4
1
7:50:52
wlott Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/interrupt.h,v 1.
3
1991/0
9
/2
7
1
0:32:30
wlott Exp $ */
#if !defined(_INCLUDE_INTERRUPT_H_)
#define _INCLUDE_INTERRUPT_H_
...
...
@@ -9,12 +9,19 @@
extern
struct
sigcontext
*
lisp_interrupt_contexts
[
MAX_INTERRUPTS
];
#ifdef SUNOS
#define SIGHDLRTYPE void
#else
#define SIGHDLRTYPE int
#endif
union
interrupt_handler
{
lispobj
lisp
;
void
(
*
c
)();
SIGHDLRTYPE
(
*
c
)();
};
extern
void
interrupt_handle_now
(),
interrupt_handle_pending
();
extern
SIGHDLRTYPE
interrupt_handle_now
();
extern
void
interrupt_handle_pending
();
extern
void
interrupt_internal_error
();
extern
union
interrupt_handler
interrupt_handlers
[
NSIG
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment