This file is indexed.

/usr/include/GNUstep/NGStreams/NGStreamExceptions.h is in libsope-dev 2.2.17-1build2.

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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/*
  Copyright (C) 2000-2005 SKYRIX Software AG

  This file is part of SOPE.

  SOPE is free software; you can redistribute it and/or modify it under
  the terms of the GNU Lesser General Public License as published by the
  Free Software Foundation; either version 2, or (at your option) any
  later version.

  SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
  License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with SOPE; see the file COPYING.  If not, write to the
  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
  02111-1307, USA.
*/

#ifndef __NGStreams_NGStreamExceptions_H__
#define __NGStreams_NGStreamExceptions_H__

#import <Foundation/NSException.h>
#include <NGStreams/NGStream.h>

@class NSData;

@interface NGIOException : NSException

- (id)init;
- (id)initWithReason:(NSString *)_reason;
+ (void)raiseWithReason:(NSString *)_reason;
+ (void)raiseOnStream:(id)_stream reason:(NSString *)_reason;
+ (void)raiseOnStream:(id)_stream;

@end

static inline BOOL NGIsIOException(NSException *_exception) {
  return [_exception isKindOfClass:[NGIOException class]];
}

// ******************** NGStreamException *************************

@class NSValue;

@interface NGStreamException : NGIOException
{
@protected
  NSValue *streamPointer; /* only valid if stream is not deallocated */
}

- (id)init;
- (id)initWithStream:(id<NGStream>)_stream;
- (id)initWithStream:(id<NGStream>)_stream reason:(NSString *)_reason;
- (id)initWithStream:(id<NGStream>)_stream format:(NSString *)_format,...;
+ (id)exceptionWithStream:(id<NGStream>)_stream;
+ (id)exceptionWithStream:(id<NGStream>)_stream reason:(NSString *)_reason;
+ (void)raiseWithStream:(id<NGStream>)_stream;
+ (void)raiseWithStream:(id<NGStream>)_stream format:(NSString *)_format,...;
+ (void)raiseWithStream:(id<NGStream>)_stream reason:(NSString *)_reason;

@end

static inline BOOL NGIsStreamException(NSException *_exception) {
  return [_exception isKindOfClass:[NGStreamException class]];
}

// ******************** NGEndOfStreamException ********************

@interface NGEndOfStreamException : NGStreamException
{
@protected
  unsigned readCount; // number of bytes that could be read in
  unsigned safeCount; // number of bytes that were requested
  NSData   *data;
}

- (id)initWithStream:(id<NGStream>)_stream;

- (id)initWithStream:(id<NGStream>)_stream
  readCount:(unsigned)_readCount
  safeCount:(unsigned)_safeCount
  data:(NSData *)_data;

- (NSData *)readBytes; // the bytes read before EOF

@end

static inline BOOL NGIsEndOfStreamException(NSException *_exception) {
  return [_exception isKindOfClass:[NGEndOfStreamException class]];
}

// ******************** open state exceptions *********************

@interface NGCouldNotOpenStreamException : NGStreamException
@end

@interface NGCouldNotCloseStreamException : NGStreamException
@end

@interface NGStreamNotOpenException : NGStreamException
@end

static inline BOOL NGIsCouldNotOpenStreamException(NSException *_exception) {
  return [_exception isKindOfClass:[NGCouldNotOpenStreamException class]];
}
static inline BOOL NGIsCouldNotCloseStreamException(NSException *_exception) {
  return [_exception isKindOfClass:[NGCouldNotCloseStreamException class]];
}
static inline BOOL NGIsStreamNotOpenException(NSException *_exception) {
  return [_exception isKindOfClass:[NGStreamNotOpenException class]];
}

// ******************** NGStreamErrors ****************************

@interface NGStreamErrorException : NGStreamException
{
@protected
  int osErrorCode;
}

- (id)initWithStream:(id<NGStream>)_stream errorCode:(int)_code;
+ (void)raiseWithStream:(id<NGStream>)_stream errorCode:(int)_code;

- (int)operationSystemErrorCode;
- (NSString *)operatingSystemError;

@end

static inline BOOL NGIsStreamErrorException(NSException *_exception) {
  return [_exception isKindOfClass:[NGStreamErrorException class]];
}

@interface NGStreamReadErrorException : NGStreamErrorException
@end

@interface NGStreamWriteErrorException : NGStreamErrorException
@end

@interface NGStreamSeekErrorException : NGStreamErrorException
@end

static inline BOOL NGIsStreamReadErrorException(NSException *_exception) {
  return [_exception isKindOfClass:[NGStreamReadErrorException class]];
}
static inline BOOL NGIsStreamWriteErrorException(NSException *_exception) {
  return [_exception isKindOfClass:[NGStreamWriteErrorException class]];
}
static inline BOOL NGIsStreamSeekErrorException(NSException *_exception) {
  return [_exception isKindOfClass:[NGStreamSeekErrorException class]];
}

// ******************** NGStreamModeExceptions ********************

@interface NGStreamModeException : NGStreamException
@end

@interface NGUnknownStreamModeException : NGStreamModeException
{
@protected
  NSString *streamMode;
}

- (id)initWithStream:(id<NGStream>)_stream mode:(NSString *)_streamMode;

@end

@interface NGReadOnlyStreamException : NGStreamModeException
@end

@interface NGWriteOnlyStreamException : NGStreamModeException
@end

static inline BOOL NGIsStreamModeException(NSException *_exception) {
  return [_exception isKindOfClass:[NGStreamModeException class]];
}
static inline BOOL NGIsUnknownStreamModeException(NSException *_exception) {
  return [_exception isKindOfClass:[NGUnknownStreamModeException class]];
}
static inline BOOL NGIsReadOnlyStreamException(NSException *_exception) {
  return [_exception isKindOfClass:[NGReadOnlyStreamException class]];
}
static inline BOOL NGIsWriteOnlyStreamException(NSException *_exception) {
  return [_exception isKindOfClass:[NGWriteOnlyStreamException class]];
}

// ******************** NGIOAccessException ***********************

@interface NGIOAccessException : NGIOException
@end

@interface NGIOSearchAccessException : NGIOAccessException
@end

#endif /* __NGStreams_NGStreamExceptions_H__ */