home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / libcs / del.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-11  |  2.0 KB  |  58 lines

  1. /*
  2.  * Copyright (c) 1990 Carnegie Mellon University
  3.  * All Rights Reserved.
  4.  * 
  5.  * Permission to use, copy, modify and distribute this software and its
  6.  * documentation is hereby granted, provided that both the copyright
  7.  * notice and this permission notice appear in all copies of the
  8.  * software, derivative works or modified versions, and any portions
  9.  * thereof, and that both notices appear in supporting documentation.
  10.  *
  11.  * THE SOFTWARE IS PROVIDED "AS IS" AND CARNEGIE MELLON UNIVERSITY
  12.  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  13.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT
  14.  * SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE FOR ANY SPECIAL, DIRECT,
  15.  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  16.  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  17.  * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  18.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  19.  *
  20.  * Users of this software agree to return to Carnegie Mellon any
  21.  * improvements or extensions that they make and grant Carnegie the
  22.  * rights to redistribute these changes.
  23.  *
  24.  * Export of this software is permitted only after complying with the
  25.  * regulations of the U.S. Deptartment of Commerce relating to the
  26.  * Export of Technical Data.
  27.  */
  28. /*  del  --  interrupt handling routine
  29.  *
  30.  *  ENABLEDEL;    will use this routine to increment the variable "_del_"
  31.  *  whenever an interrupt is received.  Other macros can test the
  32.  *  value of this variable and do interesting things.
  33.  *
  34.  *  HISTORY
  35.  * $Log:    del.c,v $
  36.  * Revision 1.2  90/12/11  17:51:22  mja
  37.  *     Add copyright/disclaimer for distribution.
  38.  * 
  39.  * 17-Apr-85  Steven Shafer (sas) at Carnegie-Mellon University
  40.  *    Modified for 4.2 BSD.
  41.  *
  42.  * 20-Nov-79  Steven Shafer (sas) at Carnegie-Mellon University
  43.  *    Rewritten for VAX.
  44.  *
  45.  */
  46.  
  47. #include <signal.h>
  48. int _del_;
  49.  
  50. struct sigvec _del_vec = {0,0,0};
  51.  
  52. del(sig,code,scp)
  53. int sig,code;
  54. struct sigcontext *scp;
  55. {
  56.   _del_ ++;
  57. }
  58.