(file) Return to Signal.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Signal.h between version 1.13 and 1.22

version 1.13, 2003/05/30 17:58:20 version 1.22, 2006/01/30 16:17:07
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 55 
Line 63 
 # define PEGASUS_SIGPIPE  SIGPIPE # define PEGASUS_SIGPIPE  SIGPIPE
 # define PEGASUS_SIGTERM  SIGTERM # define PEGASUS_SIGTERM  SIGTERM
 # define PEGASUS_SIGUSR1  SIGUSR1 # define PEGASUS_SIGUSR1  SIGUSR1
   # define PEGASUS_SIGCHLD  SIGCHLD
  
 #else // PEGASUS_HAS_SIGNALS #else // PEGASUS_HAS_SIGNALS
  
Line 64 
Line 73 
 # define PEGASUS_SIGPIPE  13 # define PEGASUS_SIGPIPE  13
 # define PEGASUS_SIGTERM  15 # define PEGASUS_SIGTERM  15
 # define PEGASUS_SIGUSR1  16 # define PEGASUS_SIGUSR1  16
   # define PEGASUS_SIGCHLD  18
  
 #endif // PEGASUS_HAS_SIGNALS #endif // PEGASUS_HAS_SIGNALS
  
  
 #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)  #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || (PEGASUS_OS_SOLARIS)
 extern "C" { extern "C" {
 #endif #endif
  
 typedef void (* signal_handler)(int, PEGASUS_SIGINFO_T *, void *); typedef void (* signal_handler)(int, PEGASUS_SIGINFO_T *, void *);
  
 #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)  #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) || (PEGASUS_OS_SOLARIS)
 } }
 #endif #endif
  
Line 92 
Line 102 
  
       // these functions should throw exceptions       // these functions should throw exceptions
  
       void registerHandler(Uint32 signum, signal_handler _sighandler);      void registerHandler(unsigned signum, signal_handler _sighandler);
  
       void activate(Uint32 signum);      void activate(unsigned signum);
  
       //void activateAll();       //void activateAll();
  
       void deactivate(Uint32 signum);      void deactivate(unsigned signum);
  
       void deactivateAll();       void deactivateAll();
  
       static void ignore(Uint32 signum);      static void ignore(unsigned signum);
  
    private:    private:
  
 #ifdef PEGASUS_HAS_SIGNALS #ifdef PEGASUS_HAS_SIGNALS
       enum
       {
           PEGASUS_NSIG = 32
       };
   
       static void verifySignum(unsigned signum);
   
       typedef struct {       typedef struct {
           int signum;
           int active;           int active;
           signal_handler sh;           signal_handler sh;
           struct sigaction oldsa;           struct sigaction oldsa;
       } register_handler;       } register_handler;
  
       register_handler reg_handler[32];      register_handler reg_handler[PEGASUS_NSIG + 1];
       Mutex reg_mutex;       Mutex reg_mutex;
  
       void deactivate_i(Uint32 signum);      void deactivate_i(register_handler &rh);
   
       register_handler &getHandler(unsigned sigum);
 #endif #endif
  
 }; };


Legend:
Removed from v.1.13  
changed lines
  Added in v.1.22

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2