mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-08 09:31:51 +00:00
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@305 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
f07a6ecd8b
commit
756dd6b769
@ -79,6 +79,13 @@ File::~File()
|
||||
close();
|
||||
}
|
||||
|
||||
int File::release()
|
||||
{
|
||||
int tmp = _fd;
|
||||
_fd = -1;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
void File::close()
|
||||
{
|
||||
#undef __METHOD__
|
||||
|
@ -39,6 +39,8 @@ class File {
|
||||
|
||||
int fd() const { return _fd; }
|
||||
|
||||
int release();
|
||||
|
||||
void close();
|
||||
|
||||
void adopt(File &f);
|
||||
|
Loading…
Reference in New Issue
Block a user