MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Threads Debugging Library Functions   tdthrsetsigpending(3CDB)



NAME
     tdthrsetsigpending, tdthrsigsetmask - manage thread sig-
     nals for libcdb

SYNOPSIS
     cc [ flag... ] file... -lcdb [ library... ]
     #include 
     #include 

     tderre tdthrsetsigpending(const tdthrhandlet * thp, const uchar t tisigpendingflag,
          const sigsett tisigmask;);


     tderre tdthrsigsetmask(const tdthrhandlet *thp, const sigsett tisigmask);


DESCRIPTION
     The tdthrsetsigpending() and tdthrsetsigmask() functions
     affect the signal state of the thread identified by thp.


     The tdthrsetsigpending() function sets the set of  pending
     signals  for  thread thp to tisigpending. The value of the
     libc-internal field that indicates whether a thread has  any
     signal  pending  is  set  to  tisigpendingflag. To be con-
     sistent, tisigpendingflag should be 0 if and only  if  all
     of the bits in tisigpending are 0.


     The tdthrsigsetmask() function sets the signal mask of the
     thread  thp  as  if  the thread had set its own signal mask
     with thrsigsetmask(3C). The new signal mask is the value of
     tisigmask.


     There is no  equivalent  to  the  SIGBLOCK  or  SIGUNBLOCK
     operations  of  thrsigsetmask(3C),  which  mask  or  unmask
     specific signals without affecting the mask state  of  other
     signals. To block or unblock specific signals,

         1.   stop either the entire process or the  thread  with
              tdthrdbsuspend(),

         2.   determine the thread's existing signal mask by cal-
              ling tdthrgetinfo(3CDB),

         3.   modify the tisigmask member  of  the  tdthrinfot
              structure as desired, and

         4.   set the new signal mask withtdthrsigsetmask().





SunOS 5.11          Last change: 20 Oct 1998                    1






Threads Debugging Library Functions   tdthrsetsigpending(3CDB)



RETURN VALUES
     TDOK       The call completed successfully.


     TDBADTH    An invalid thread handle was passed in.


     TDBER    A call to one of the imported interface routines
                 failed.


     TDER      A libcdb internal error occurred.


ATRIBUTES
     See attributes(5) for description of  the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Safe                        
    


SEE ALSO
     libcdb(3LIB),                      tdthrdbsuspend(3CDB),
     tdthrgetinfo(3CDB), attributes(5)

























SunOS 5.11          Last change: 20 Oct 1998                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™