git-svn-id: https://profuse.googlecode.com/svn/branches/v2@305 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock 2010-05-31 00:07:02 +00:00
parent f07a6ecd8b
commit 756dd6b769
2 changed files with 9 additions and 0 deletions

View File

@ -79,6 +79,13 @@ File::~File()
close();
}
int File::release()
{
int tmp = _fd;
_fd = -1;
return tmp;
}
void File::close()
{
#undef __METHOD__

View File

@ -39,6 +39,8 @@ class File {
int fd() const { return _fd; }
int release();
void close();
void adopt(File &f);