This file is indexed.

/usr/include/COS/CosExternalization.hh is in libcos4-dev 4.1.6-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
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __CosExternalization_hh__
#define __CosExternalization_hh__

#ifndef __CORBA_H_EXTERNAL_GUARD__
#include <omniORB4/CORBA.h>
#endif

#ifndef  USE_stub_in_nt_dll
# define USE_stub_in_nt_dll_NOT_DEFINED_CosExternalization
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_CosExternalization
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_CosExternalization
#endif


#include "COS_sysdep.h"
#ifndef __CosNaming_hh_EXTERNAL_GUARD__
#define __CosNaming_hh_EXTERNAL_GUARD__
#include "CosNaming.hh"
#endif
#ifndef __CosLifeCycle_hh_EXTERNAL_GUARD__
#define __CosLifeCycle_hh_EXTERNAL_GUARD__
#include "CosLifeCycle.hh"
#endif
#ifndef __CosObjectIdentity_hh_EXTERNAL_GUARD__
#define __CosObjectIdentity_hh_EXTERNAL_GUARD__
#include "CosObjectIdentity.hh"
#endif
#ifndef __corbaidl_hh_EXTERNAL_GUARD__
#define __corbaidl_hh_EXTERNAL_GUARD__
#include "corbaidl.hh"
#endif
#ifndef __boxes_hh_EXTERNAL_GUARD__
#define __boxes_hh_EXTERNAL_GUARD__
#include "boxes.hh"
#endif
#ifndef __ir_hh_EXTERNAL_GUARD__
#define __ir_hh_EXTERNAL_GUARD__
#include "ir.hh"
#endif
#ifndef __CosRelationships_hh_EXTERNAL_GUARD__
#define __CosRelationships_hh_EXTERNAL_GUARD__
#include "CosRelationships.hh"
#endif
#ifndef __CosGraphs_hh_EXTERNAL_GUARD__
#define __CosGraphs_hh_EXTERNAL_GUARD__
#include "CosGraphs.hh"
#endif
#ifndef __CosStream_hh_EXTERNAL_GUARD__
#define __CosStream_hh_EXTERNAL_GUARD__
#include "CosStream.hh"
#endif



#ifdef USE_stub_in_nt_dll
# ifndef USE_core_stub_in_nt_dll
#  define USE_core_stub_in_nt_dll
# endif
# ifndef USE_dyn_stub_in_nt_dll
#  define USE_dyn_stub_in_nt_dll
# endif
#endif

#ifdef _core_attr
# error "A local CPP macro _core_attr has already been defined."
#else
# ifdef  USE_core_stub_in_nt_dll
#  define _core_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _core_attr
# endif
#endif

#ifdef _dyn_attr
# error "A local CPP macro _dyn_attr has already been defined."
#else
# ifdef  USE_dyn_stub_in_nt_dll
#  define _dyn_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _dyn_attr
# endif
#endif





_CORBA_MODULE CosExternalization

_CORBA_MODULE_BEG

  class InvalidFileNameError : public ::CORBA::UserException {
  public:
    
    

    inline InvalidFileNameError() {
      pd_insertToAnyFn    = insertToAnyFn;
      pd_insertToAnyFnNCP = insertToAnyFnNCP;
    }
    InvalidFileNameError(const InvalidFileNameError&);
    
    InvalidFileNameError& operator=(const InvalidFileNameError&);
    virtual ~InvalidFileNameError();
    virtual void _raise() const;
    static InvalidFileNameError* _downcast(::CORBA::Exception*);
    static const InvalidFileNameError* _downcast(const ::CORBA::Exception*);
    static inline InvalidFileNameError* _narrow(::CORBA::Exception* _e) {
      return _downcast(_e);
    }
    
    inline void operator>>=(cdrStream&) const { }
    inline void operator<<=(cdrStream&) { }

    static _core_attr insertExceptionToAny    insertToAnyFn;
    static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

    virtual ::CORBA::Exception* _NP_duplicate() const;

    static _core_attr const char* _PD_repoId;
    static _core_attr const char* _PD_typeId;

  private:
    virtual const char* _NP_typeId() const;
    virtual const char* _NP_repoId(int*) const;
    virtual void _NP_marshal(cdrStream&) const;
  };

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_InvalidFileNameError;

  class ContextAlreadyRegistered : public ::CORBA::UserException {
  public:
    
    

    inline ContextAlreadyRegistered() {
      pd_insertToAnyFn    = insertToAnyFn;
      pd_insertToAnyFnNCP = insertToAnyFnNCP;
    }
    ContextAlreadyRegistered(const ContextAlreadyRegistered&);
    
    ContextAlreadyRegistered& operator=(const ContextAlreadyRegistered&);
    virtual ~ContextAlreadyRegistered();
    virtual void _raise() const;
    static ContextAlreadyRegistered* _downcast(::CORBA::Exception*);
    static const ContextAlreadyRegistered* _downcast(const ::CORBA::Exception*);
    static inline ContextAlreadyRegistered* _narrow(::CORBA::Exception* _e) {
      return _downcast(_e);
    }
    
    inline void operator>>=(cdrStream&) const { }
    inline void operator<<=(cdrStream&) { }

    static _core_attr insertExceptionToAny    insertToAnyFn;
    static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

    virtual ::CORBA::Exception* _NP_duplicate() const;

    static _core_attr const char* _PD_repoId;
    static _core_attr const char* _PD_typeId;

  private:
    virtual const char* _NP_typeId() const;
    virtual const char* _NP_repoId(int*) const;
    virtual void _NP_marshal(cdrStream&) const;
  };

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ContextAlreadyRegistered;

#ifndef __CosExternalization_mStream__
#define __CosExternalization_mStream__

  class Stream;
  class _objref_Stream;
  class _impl_Stream;
  
  typedef _objref_Stream* Stream_ptr;
  typedef Stream_ptr StreamRef;

  class Stream_Helper {
  public:
    typedef Stream_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_Stream, Stream_Helper> Stream_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Stream,Stream_Helper > Stream_out;

#endif

  // interface Stream
  class Stream {
  public:
    // Declarations for this interface type.
    typedef Stream_ptr _ptr_type;
    typedef Stream_var _var_type;

    static _ptr_type _duplicate(_ptr_type);
    static _ptr_type _narrow(::CORBA::Object_ptr);
    static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
    
    static _ptr_type _nil();

    static inline void _marshalObjRef(_ptr_type, cdrStream&);

    static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
      omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
      if (o)
        return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
      else
        return _nil();
    }

    static _core_attr const char* _PD_repoId;

    // Other IDL defined within this scope.
    
  };

  class _objref_Stream :
    public virtual CosLifeCycle::_objref_LifeCycleObject
  {
  public:
    void externalize(::CosStream::Streamable_ptr theObject);
    CosStream::Streamable_ptr internalize(::CosLifeCycle::FactoryFinder_ptr there);
    void begin_context();
    void end_context();
    void flush();

    inline _objref_Stream()  { _PR_setobj(0); }  // nil
    _objref_Stream(omniIOR*, omniIdentity*);

  protected:
    virtual ~_objref_Stream();

    
  private:
    virtual void* _ptrToObjRef(const char*);

    _objref_Stream(const _objref_Stream&);
    _objref_Stream& operator = (const _objref_Stream&);
    // not implemented

    friend class Stream;
  };

  class _pof_Stream : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_Stream() : _OMNI_NS(proxyObjectFactory)(Stream::_PD_repoId) {}
    virtual ~_pof_Stream();

    virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
    virtual _CORBA_Boolean is_a(const char*) const;
  };

  class _impl_Stream :
    public virtual CosLifeCycle::_impl_LifeCycleObject
  {
  public:
    virtual ~_impl_Stream();

    virtual void externalize(::CosStream::Streamable_ptr theObject) = 0;
    virtual CosStream::Streamable_ptr internalize(::CosLifeCycle::FactoryFinder_ptr there) = 0;
    virtual void begin_context() = 0;
    virtual void end_context() = 0;
    virtual void flush() = 0;
    
  public:  // Really protected, workaround for xlC
    virtual _CORBA_Boolean _dispatch(omniCallHandle&);

  private:
    virtual void* _ptrToInterface(const char*);
    virtual const char* _mostDerivedRepoId();
    
  };


  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Stream;

#ifndef __CosExternalization_mStreamFactory__
#define __CosExternalization_mStreamFactory__

  class StreamFactory;
  class _objref_StreamFactory;
  class _impl_StreamFactory;
  
  typedef _objref_StreamFactory* StreamFactory_ptr;
  typedef StreamFactory_ptr StreamFactoryRef;

  class StreamFactory_Helper {
  public:
    typedef StreamFactory_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_StreamFactory, StreamFactory_Helper> StreamFactory_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_StreamFactory,StreamFactory_Helper > StreamFactory_out;

#endif

  // interface StreamFactory
  class StreamFactory {
  public:
    // Declarations for this interface type.
    typedef StreamFactory_ptr _ptr_type;
    typedef StreamFactory_var _var_type;

    static _ptr_type _duplicate(_ptr_type);
    static _ptr_type _narrow(::CORBA::Object_ptr);
    static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
    
    static _ptr_type _nil();

    static inline void _marshalObjRef(_ptr_type, cdrStream&);

    static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
      omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
      if (o)
        return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
      else
        return _nil();
    }

    static _core_attr const char* _PD_repoId;

    // Other IDL defined within this scope.
    
  };

  class _objref_StreamFactory :
    public virtual ::CORBA::Object,
    public virtual omniObjRef
  {
  public:
    Stream_ptr create();

    inline _objref_StreamFactory()  { _PR_setobj(0); }  // nil
    _objref_StreamFactory(omniIOR*, omniIdentity*);

  protected:
    virtual ~_objref_StreamFactory();

    
  private:
    virtual void* _ptrToObjRef(const char*);

    _objref_StreamFactory(const _objref_StreamFactory&);
    _objref_StreamFactory& operator = (const _objref_StreamFactory&);
    // not implemented

    friend class StreamFactory;
  };

  class _pof_StreamFactory : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_StreamFactory() : _OMNI_NS(proxyObjectFactory)(StreamFactory::_PD_repoId) {}
    virtual ~_pof_StreamFactory();

    virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
    virtual _CORBA_Boolean is_a(const char*) const;
  };

  class _impl_StreamFactory :
    public virtual omniServant
  {
  public:
    virtual ~_impl_StreamFactory();

    virtual Stream_ptr create() = 0;
    
  public:  // Really protected, workaround for xlC
    virtual _CORBA_Boolean _dispatch(omniCallHandle&);

  private:
    virtual void* _ptrToInterface(const char*);
    virtual const char* _mostDerivedRepoId();
    
  };


  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_StreamFactory;

#ifndef __CosExternalization_mFileStreamFactory__
#define __CosExternalization_mFileStreamFactory__

  class FileStreamFactory;
  class _objref_FileStreamFactory;
  class _impl_FileStreamFactory;
  
  typedef _objref_FileStreamFactory* FileStreamFactory_ptr;
  typedef FileStreamFactory_ptr FileStreamFactoryRef;

  class FileStreamFactory_Helper {
  public:
    typedef FileStreamFactory_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_FileStreamFactory, FileStreamFactory_Helper> FileStreamFactory_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_FileStreamFactory,FileStreamFactory_Helper > FileStreamFactory_out;

#endif

  // interface FileStreamFactory
  class FileStreamFactory {
  public:
    // Declarations for this interface type.
    typedef FileStreamFactory_ptr _ptr_type;
    typedef FileStreamFactory_var _var_type;

    static _ptr_type _duplicate(_ptr_type);
    static _ptr_type _narrow(::CORBA::Object_ptr);
    static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
    
    static _ptr_type _nil();

    static inline void _marshalObjRef(_ptr_type, cdrStream&);

    static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
      omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
      if (o)
        return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
      else
        return _nil();
    }

    static _core_attr const char* _PD_repoId;

    // Other IDL defined within this scope.
    
  };

  class _objref_FileStreamFactory :
    public virtual ::CORBA::Object,
    public virtual omniObjRef
  {
  public:
    Stream_ptr create(const char* theFileName);

    inline _objref_FileStreamFactory()  { _PR_setobj(0); }  // nil
    _objref_FileStreamFactory(omniIOR*, omniIdentity*);

  protected:
    virtual ~_objref_FileStreamFactory();

    
  private:
    virtual void* _ptrToObjRef(const char*);

    _objref_FileStreamFactory(const _objref_FileStreamFactory&);
    _objref_FileStreamFactory& operator = (const _objref_FileStreamFactory&);
    // not implemented

    friend class FileStreamFactory;
  };

  class _pof_FileStreamFactory : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_FileStreamFactory() : _OMNI_NS(proxyObjectFactory)(FileStreamFactory::_PD_repoId) {}
    virtual ~_pof_FileStreamFactory();

    virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
    virtual _CORBA_Boolean is_a(const char*) const;
  };

  class _impl_FileStreamFactory :
    public virtual omniServant
  {
  public:
    virtual ~_impl_FileStreamFactory();

    virtual Stream_ptr create(const char* theFileName) = 0;
    
  public:  // Really protected, workaround for xlC
    virtual _CORBA_Boolean _dispatch(omniCallHandle&);

  private:
    virtual void* _ptrToInterface(const char*);
    virtual const char* _mostDerivedRepoId();
    
  };


  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_FileStreamFactory;

_CORBA_MODULE_END



_CORBA_MODULE POA_CosExternalization
_CORBA_MODULE_BEG

  class Stream :
    public virtual CosExternalization::_impl_Stream,
    public virtual POA_CosLifeCycle::LifeCycleObject
  {
  public:
    virtual ~Stream();

    inline ::CosExternalization::Stream_ptr _this() {
      return (::CosExternalization::Stream_ptr) _do_this(::CosExternalization::Stream::_PD_repoId);
    }
  };

  class StreamFactory :
    public virtual CosExternalization::_impl_StreamFactory,
    public virtual ::PortableServer::ServantBase
  {
  public:
    virtual ~StreamFactory();

    inline ::CosExternalization::StreamFactory_ptr _this() {
      return (::CosExternalization::StreamFactory_ptr) _do_this(::CosExternalization::StreamFactory::_PD_repoId);
    }
  };

  class FileStreamFactory :
    public virtual CosExternalization::_impl_FileStreamFactory,
    public virtual ::PortableServer::ServantBase
  {
  public:
    virtual ~FileStreamFactory();

    inline ::CosExternalization::FileStreamFactory_ptr _this() {
      return (::CosExternalization::FileStreamFactory_ptr) _do_this(::CosExternalization::FileStreamFactory::_PD_repoId);
    }
  };

_CORBA_MODULE_END



_CORBA_MODULE OBV_CosExternalization
_CORBA_MODULE_BEG

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

void operator<<=(::CORBA::Any& _a, const CosExternalization::InvalidFileNameError& _s);
void operator<<=(::CORBA::Any& _a, const CosExternalization::InvalidFileNameError* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosExternalization::InvalidFileNameError*& _sp);

void operator<<=(::CORBA::Any& _a, const CosExternalization::ContextAlreadyRegistered& _s);
void operator<<=(::CORBA::Any& _a, const CosExternalization::ContextAlreadyRegistered* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosExternalization::ContextAlreadyRegistered*& _sp);

void operator<<=(::CORBA::Any& _a, CosExternalization::Stream_ptr _s);
void operator<<=(::CORBA::Any& _a, CosExternalization::Stream_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosExternalization::Stream_ptr& _s);

void operator<<=(::CORBA::Any& _a, CosExternalization::StreamFactory_ptr _s);
void operator<<=(::CORBA::Any& _a, CosExternalization::StreamFactory_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosExternalization::StreamFactory_ptr& _s);

void operator<<=(::CORBA::Any& _a, CosExternalization::FileStreamFactory_ptr _s);
void operator<<=(::CORBA::Any& _a, CosExternalization::FileStreamFactory_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosExternalization::FileStreamFactory_ptr& _s);



inline void
CosExternalization::Stream::_marshalObjRef(::CosExternalization::Stream_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
CosExternalization::StreamFactory::_marshalObjRef(::CosExternalization::StreamFactory_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
CosExternalization::FileStreamFactory::_marshalObjRef(::CosExternalization::FileStreamFactory_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_CosExternalization
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_CosExternalization
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_CosExternalization
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_CosExternalization
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_CosExternalization
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_CosExternalization
#endif

#endif  // __CosExternalization_hh__