General Purpose library for Freestanding C++ and POSIX systems
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

26 行
556 B

#pragma once
#include <cstddef>
#include <atomic>
namespace gp {
template<typename> class buffer;
class file_description {
std::atomic_int64_t ref_counter;
public:
virtual void read() = 0;
virtual void write() = 0;
virtual void set_attr() = 0;
virtual void get_attr() = 0;
virtual void seek() = 0;
virtual void close() = 0;
static file_description* open(class system&, gp::buffer<std::byte>);
static file_description* create(class system&, gp::buffer<std::byte>);
static file_description* remove(class system&, gp::buffer<std::byte>);
};
}