This file is indexed.

/usr/include/assa-3.5/assa/SigSet.h is in libassa-3.5-5-dev 3.5.1-6.

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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// -*- c++ -*-
//------------------------------------------------------------------------------
//                            SigSet.h
//------------------------------------------------------------------------------
//  Copyright (c) 1997 by Vladislav Grinchenko
//
//  This library is free software; you can redistribute it and/or
//  modify it under the terms of the GNU Library General Public
//  License as published by the Free Software Foundation; either
//  version 2 of the License, or (at your option) any later version.
//------------------------------------------------------------------------------
#ifndef _SigSet_h
#define _SigSet_h

// System includes
//
#include <signal.h>
#include <errno.h>

namespace ASSA {

#if !defined(WIN32)

/** @file SigSet.h 

SigSet is a wrapper for UNIX sigset_t structure that provides
all manipulators on this structure as well.

The conversoin operator that converts SigSet to a pointer to the
internal sigset_t data member for direct use with C-library
functions can be used as follows:

   SigSet  source;
   sigset_t*  targetp;

   targetp = source;

Because lvalue is expected to be of the type sigset_t*, and there is
a conversion operator defined for SigSet, the conversion happens
automatically.

Another example would be to use it in conjunction with 'struct sigaction':

   struct sigaction action;
   SigSet siganls_to_block;

   // manipulat signal set in some meaningful way

   action.sa_mask = *signals_to_block;
*/

class SigSet
{
public:
	/** Default constructor creates SigSet object with
	    an empty signal set. 
	*/
	SigSet();

	/** Copy constructor from <tt>source_</tt>.
	 */
	SigSet(sigset_t* source_);
	
	/** Destructor
	 */
	~SigSet();

	/** This function initializes a signal set to be empty,
	    no signals in it.

	    @return 0 on success, -1 on error, with errno set to
	    error number.
	*/
	int empty (void);

	/** This function initializes a signal set to be full;
	    all the signals defined by POSIX will be in the set.

	    @return 0 on success, -1 on error, with errno set to
	    error number.
	*/
	int fill(void);

	/** This function adds the signal numbered <tt>signo_</tt>
	    to the set.

	    @return 0 on success, -1 on error, with errno set to
	    error number.
	*/
	int add(int signo_);

	/** This function removes the signal <tt>signo_</tt> from
	    the set.
	    @return 0 on success, -1 on error, with errno set to
	    error number.
	*/
	int del(int signo_);

	/** Use this function to tell whether the signal <tt>signo_</tt>
	    is in the set.
	    @return 0 on success, -1 on error, with errno set to
	    error number.
	*/
	int is_member(int signo_);

	/** Conversion operator to <tt>sigset_t</tt> structure.
	    @return pointer to the internal <tt>sigset_t</tt> structure.
	 */
	operator sigset_t *();

private:
	/** POSIX signal set */
	sigset_t m_sigset; 
};

inline
SigSet::
SigSet() { 	(int) sigemptyset(&m_sigset); }

inline
SigSet::
SigSet(sigset_t* s_) { m_sigset = *s_; }

inline 
SigSet::
~SigSet() { /* no-op */ }

inline int
SigSet::
empty(void) { return sigemptyset(&m_sigset); }

inline int
SigSet::
fill(void) { return sigfillset(&m_sigset); }

inline int
SigSet::
add(int signo_) { return sigaddset(&m_sigset,signo_); }

inline int
SigSet::
del(int signo_) { return sigdelset(&m_sigset,signo_); }

inline int
SigSet::
is_member(int signo_) { return sigismember(&m_sigset,signo_); }

inline 
SigSet::
operator sigset_t *() {	return &m_sigset; }

#endif // !defined(WIN32)

} // end namespace ASSA

#endif /* _SigSet_h */