/usr/include/sp/PosixStorage.h is in libsp1-dev 1.3.4-1.2.1-47.3ubuntu1.
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 | // Copyright (c) 1994, 1995 James Clark
// See the file COPYING for copying permission.
#ifndef PosixStorage_INCLUDED
#define PosixStorage_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "StorageManager.h"
#include "DescriptorManager.h"
#include "Vector.h"
#include "StringC.h"
#include "CharsetInfo.h"
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
class Messenger;
class CharsetInfo;
class UnivCharsetDesc;
class Filename;
class OutputCodingSystem;
class SP_API PosixStorageManager : public IdStorageManager {
public:
PosixStorageManager(const char *type,
const CharsetInfo *filenameCharset,
#ifndef SP_WIDE_SYSTEM
const OutputCodingSystem *filenameCodingSystem,
#endif
int maxFDs);
StorageObject *makeStorageObject(const StringC &id,
const StringC &baseId,
Boolean search,
Boolean mayRewind,
Messenger &,
StringC &foundId);
Boolean resolveRelative(const StringC &, StringC &, Boolean syntactic = 0)
const;
const char *type() const;
void addSearchDir(const StringC &);
Boolean transformNeutral(StringC &, Boolean fold, Messenger &) const;
private:
Boolean isAbsolute(const StringC &) const;
StringC extractDir(const StringC &) const;
StringC combineDir(const StringC &, const StringC &) const;
PosixStorageManager(const PosixStorageManager &); // undefined
void operator=(const PosixStorageManager &); // undefined
DescriptorManager descriptorManager_;
#ifndef SP_WIDE_SYSTEM
const OutputCodingSystem *filenameCodingSystem_;
#endif
const char *type_;
Vector<StringC> searchDirs_;
};
class SP_API PosixFdStorageManager : public IdStorageManager {
public:
PosixFdStorageManager(const char *type,
const CharsetInfo *filenameCharset);
StorageObject *makeStorageObject(const StringC &id,
const StringC &baseId,
Boolean,
Boolean mayRewind,
Messenger &mgr,
StringC &foundId);
const char *type() const;
Boolean inheritable() const;
private:
PosixFdStorageManager(const PosixFdStorageManager &); // undefined
void operator=(const PosixFdStorageManager &); // undefined
const char *type_;
};
#ifdef SP_NAMESPACE
}
#endif
#endif /* not PosixStorage_INCLUDED */
|