X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftarget-signal.lisp;h=447d181a86d5f9666d075667d01470c68687dd86;hb=5edd74f6911093805a009a152b32216b3dba59f7;hp=849d528a6d0bd670cdac467a8e9fe95611a4f8de;hpb=80722c917cade18ab933fd313b13c56c6073ae01;p=sbcl.git diff --git a/src/code/target-signal.lisp b/src/code/target-signal.lisp index 849d528..447d181 100644 --- a/src/code/target-signal.lisp +++ b/src/code/target-signal.lisp @@ -18,9 +18,9 @@ ;;;; system calls that deal with signals #!-sb-fluid (declaim (inline real-unix-kill)) -(sb!alien:def-alien-routine ("kill" real-unix-kill) sb!c-call:int - (pid sb!c-call:int) - (signal sb!c-call:int)) +(sb!alien:define-alien-routine ("kill" real-unix-kill) sb!alien:int + (pid sb!alien:int) + (signal sb!alien:int)) ;;; Send the signal SIGNAL to the process with process id PID. SIGNAL ;;; should be a valid signal number or a keyword of the standard UNIX @@ -29,9 +29,9 @@ (real-unix-kill pid (unix-signal-number signal))) #!-sb-fluid (declaim (inline real-unix-killpg)) -(sb!alien:def-alien-routine ("killpg" real-unix-killpg) sb!c-call:int - (pgrp sb!c-call:int) - (signal sb!c-call:int)) +(sb!alien:define-alien-routine ("killpg" real-unix-killpg) sb!alien:int + (pgrp sb!alien:int) + (signal sb!alien:int)) ;;; Send the signal SIGNAL to the all the process in process group ;;; PGRP. SIGNAL should be a valid signal number or a keyword of the @@ -47,15 +47,15 @@ ;;; can pull it out of the CMU CL sources, or the old SBCL sources; ;;; but you might also consider doing things the SBCL way and moving ;;; this kind of C-level work down to C wrapper functions.) -(sb!alien:def-alien-routine ("sigsetmask" unix-sigsetmask) - sb!c-call:unsigned-long - (mask sb!c-call:unsigned-long)) +(sb!alien:define-alien-routine ("sigsetmask" unix-sigsetmask) + sb!alien:unsigned-long + (mask sb!alien:unsigned-long)) ;;;; C routines that actually do all the work of establishing signal handlers -(sb!alien:def-alien-routine ("install_handler" install-handler) - sb!c-call:unsigned-long - (signal sb!c-call:int) - (handler sb!c-call:unsigned-long)) +(sb!alien:define-alien-routine ("install_handler" install-handler) + sb!alien:unsigned-long + (signal sb!alien:int) + (handler sb!alien:unsigned-long)) ;;;; interface to enabling and disabling signal handlers @@ -117,7 +117,7 @@ (defun sigquit-handler (signal code context) (declare (ignore signal code context)) - (throw 'sb!impl::top-level-catcher nil)) + (throw 'sb!impl::toplevel-catcher nil)) (defun sb!kernel:signal-cold-init-or-reinit () #!+sb-doc @@ -142,8 +142,8 @@ ;;; CMU CL comment: ;;; Magically converted by the compiler into a break instruction. -(defun do-pending-interrupt () - (do-pending-interrupt)) +(defun receive-pending-interrupt () + (receive-pending-interrupt)) ;;; stale code which I'm insufficiently motivated to test -- WHN 19990714 #|