summaryrefslogblamecommitdiffstats
path: root/cpukit/posix/src/psignalsetprocesssignals.c
blob: b755c2db89018a2fd9b0e1fc4c0462027a96a541 (plain) (tree)
1
2
3
4
5
6
7
8






                                            
  




                                                           
                                         

   



                   






                               
                                
                         
                                  
                                    
                                    

                  



                                        
                                     
 

                                                     
                                   
                                           
 
/**
 *  @file
 *
 *  @brief POSIX Signals Set Process Signals
 *  @ingroup POSIX_SIGNALS
 */

/*
 *  COPYRIGHT (c) 1989-2007.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.org/license/LICENSE.
 */

#if HAVE_CONFIG_H
#include "config.h"
#endif

#include <errno.h>
#include <pthread.h>
#include <signal.h>

#include <rtems/system.h>
#include <rtems/score/isr.h>
#include <rtems/score/thread.h>
#include <rtems/score/wkspace.h>
#include <rtems/seterr.h>
#include <rtems/posix/threadsup.h>
#include <rtems/posix/psignalimpl.h>
#include <rtems/posix/pthreadimpl.h>
#include <stdio.h>

void _POSIX_signals_Set_process_signals(
  sigset_t   mask
)
{
  Thread_queue_Context queue_context;

  _Thread_queue_Context_initialize( &queue_context );
  _POSIX_signals_Acquire( &queue_context );
    _POSIX_signals_Pending |= mask;
  _POSIX_signals_Release( &queue_context );
}