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

SCM Repository

[smlnj] Diff of /sml/trunk/src/runtime/mach-dep/signal-sysdep.h
ViewVC logotype

Diff of /sml/trunk/src/runtime/mach-dep/signal-sysdep.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1896, Fri Feb 24 22:25:49 2006 UTC revision 1897, Sat Feb 25 01:15:52 2006 UTC
# Line 1  Line 1 
1  /* signal-sysdep.h  /* signal-sysdep.h
2   *   *
3   * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.   * COPYRIGHT (c) 2006 The SML/NJ Fellowship.
4   *   *
5   * O.S. and machine dependent signal definitions for UNIX systems:   * O.S. and machine dependent signal definitions for UNIX systems:
6   *   *
# Line 14  Line 14 
14   *   SIG_GetPC(scp)             get the PC from the context   *   SIG_GetPC(scp)             get the PC from the context
15   *   SIG_SetPC(scp, addr)       set the PC in the context to the address   *   SIG_SetPC(scp, addr)       set the PC in the context to the address
16   *   SIG_SetHandler(sig, h)     set the signal handler   *   SIG_SetHandler(sig, h)     set the signal handler
17     *   SIG_SetDefault(sig)        set the handler for sig to SIG_DFL
18     *   SIG_SetIgnore(sig)         set the handler for sig to SIG_IGN
19   *   SIG_GetHandler(sig, h)     get the current handler into h   *   SIG_GetHandler(sig, h)     get the current handler into h
20   *   SIG_Flags                  flags used when setting a handler   *   SIG_Flags                  flags used when setting a handler
21   *   SIG_ClearMask(mask)        clear the given signal mask.   *   SIG_ClearMask(mask)        clear the given signal mask.
# Line 137  Line 139 
139          __svec.sv_handler = (h);                        \          __svec.sv_handler = (h);                        \
140          sigvec ((sig), &__svec, 0);                     \          sigvec ((sig), &__svec, 0);                     \
141      }      }
142    #define SIG_SetIgnore(sig)      SIG_SetHandler(sig, SIG_IGN)
143    #define SIG_SetDefault(sig)     SIG_SetHandler(sig, SIG_DFL)
144  #define SIG_GetHandler(sig, h)  {                       \  #define SIG_GetHandler(sig, h)  {                       \
145          struct sigvec __svec;                           \          struct sigvec __svec;                           \
146          sigvec ((sig), NIL(struct sigvec *), &__svec);  \          sigvec ((sig), NIL(struct sigvec *), &__svec);  \

Legend:
Removed from v.1896  
changed lines
  Added in v.1897

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