StdioStorage.cxx revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994, 1995 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __GNUG__
#pragma implementation
#endif
#include "splib.h"
#include "StdioStorage.h"
#include "Message.h"
#include "types.h"
#include "ErrnoMessageArg.h"
#include "StringOf.h"
#include "StringC.h"
#include "CodingSystem.h"
#include "StdioStorageMessages.h"
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <errno.h>
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
class StdioStorageObject : public StorageObject {
public:
size_t getBlockSize() const;
private:
enum ErrorIndex {
};
};
const CharsetInfo *filenameCharset,
{
}
const StringC &,
{
errno = 0;
if (!fp) {
return 0;
}
}
const char *StdioStorageManager::type() const
{
return type_;
}
{
}
{
if (fp_) {
fp_ = 0;
}
}
{
if (fp_) {
errno = 0;
return 0;
}
return 1;
}
return 1;
}
{
return BUFSIZ;
}
{
if (!fp_)
return 0;
errno = 0;
size_t n = 0;
while (n < bufSize) {
if (c == EOF) {
return 0;
}
fp_ = 0;
break;
}
buf[n++] = c;
}
nread = n;
return n > 0;
}
const MessageType2 &msg,
int err)
{
}
#ifdef SP_NAMESPACE
}
#endif