Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/runtime/include/ml-signals.h
ViewVC logotype

Annotation of /sml/trunk/src/runtime/include/ml-signals.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download) (as text)

1 : monnier 249 /* ml-signals.h
2 :     *
3 :     * COPYRIGHT (c) 1995 by AT&T Bell Laboratories.
4 :     */
5 :    
6 :     #ifndef _ML_SIGNALS_
7 :     #define _ML_SIGNALS_
8 :    
9 :     typedef struct { /* an item in the pending signal queue */
10 :     int sigNum; /* the ID number of the pending signal */
11 :     int count; /* the count of how many of this kind */
12 :     /* of signal are pending. */
13 :     } pending_sig_t;
14 :    
15 :     /* The state of ML signal handlers; these definitions must agree with
16 :     * the values used in src/sml-nj/boot/smlnj/signals.sml.
17 :     */
18 :     #define ML_SIG_IGNORE 0
19 :     #define ML_SIG_DEFAULT 1
20 :     #define ML_SIG_ENABLED 2
21 :    
22 :     /** Utility functions **/
23 :     extern void ChooseSignal (vproc_state_t *vsp);
24 :     extern void EnqueueSignal (vproc_state_t *vsp, int sigCode);
25 :     extern ml_val_t MakeResumeCont (ml_state_t *msp, ml_val_t resume[]);
26 :     extern ml_val_t MakeHandlerArg (ml_state_t *msp, ml_val_t resume[]);
27 :     extern void LoadResumeState (ml_state_t *msp);
28 :     extern bool_t GCSignal (vproc_state_t *vsp);
29 :    
30 :     /* OS dependent implementations of signal operations. */
31 :     extern ml_val_t ListSignals (ml_state_t *msp);
32 :     extern void PauseUntilSignal (vproc_state_t *vsp);
33 :     extern void SetSignalState (vproc_state_t *vsp, int sigNum, int sigState);
34 :     extern int GetSignalState (vproc_state_t *vsp, int sigNum);
35 :     extern void SetSignalMask (ml_val_t sigList);
36 :     extern ml_val_t GetSignalMask (ml_state_t *msp);
37 :    
38 :     #endif /* !_ML_SIGNALS_ */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0