This file is indexed.

/usr/include/falcon/signals_posix.h is in falconpl-dev 0.9.6.9-git20120606-2.1+b1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
/*
   FALCON - The Falcon Programming Language.
   FILE: signals_posix.h

   POSIX-specific signal handling
   -------------------------------------------------------------------
   Author: Jan Dvorak
   Begin: Fri, 12 Feb 2010 11:23:13 +0100

   -------------------------------------------------------------------
   (C) Copyright 2009: the FALCON developers (see list in AUTHORS file)

   See LICENSE file for licensing details.
*/

#ifndef FALCON_SIGNALS_POSIX_H
#define FALCON_SIGNALS_POSIX_H

/* \file
   POSIX signals handling.
*/

#include <falcon/vm.h>
#include <falcon/vmmsg.h>
#include <falcon/mt.h>
#include <signal.h>

namespace Falcon {

/*
 * POSIX signal to VM Message translator.
 */
class FALCON_DYN_CLASS SignalReceiver: public Runnable, public BaseAlloc
{
protected:
   /*
    * VM to send messages based on signals to.
    */
   VMachine *m_targetVM;

   /*
    * Thread waiting for signals to be delivered as long
    * as the shallRun is true.
    */
   SysThread *m_thread;
   bool m_shallRun;

   /*
    * Wait for signals in ->sigset while ->shallRun is true.
    */
   void *run();

   /*
    * Function called from our signal handler to deliver
    * signal information to the helper thread.
    */
   void deliver(int signum, siginfo_t *siginfo);

   /*
    * Wake up the helper thread to check ->shallRun.
    */
   void wakeup(void);

   /*
    * For access to ->deliver().
    */
   friend void signal_handler(int signum, siginfo_t *siginfo, void *ctx);

public:
   /*
    * Initializes signal receiver with a target VM.
    */
   SignalReceiver(VMachine *targetVM);

   /*
    * Waits for the helper thread to stop.
    */
   ~SignalReceiver();

   /*
    * Starts the helper thread.
    */
   void start();

   /*
    * Asks thread to exit and waits for that.
    */
   void stop();

   /*
    * Trap given signal.
    */
   bool trap(int signum);

   /*
    * Stop traping given signal.
    */
   bool reset(int signum);
};

/*
 * Global signal receiver instance.
 */
extern SignalReceiver *signalReceiver;

}

#endif

// vim: et ts=3 sw=3 :
/* end of signals_posix.h */