Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

wvfile.cc

Go to the documentation of this file.
00001 /*
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  * 
00005  * A simple class to access filesystem files using WvStreams.
00006  */
00007 #include "wvfile.h"
00008 
00009 bool WvFile::open(const WvString &filename, int mode, int create_mode)
00010 {
00011     if (rwfd >= 0)
00012         close();
00013     rwfd = ::open(filename, mode | O_NONBLOCK, create_mode);
00014     if (rwfd < 0)
00015     {
00016         seterr(errno);
00017         return false;
00018     }
00019 
00020     fcntl(rwfd, F_SETFD, 1);
00021     return true;
00022 }

Generated on Fri Apr 5 15:16:51 2002 for WvStreams by doxygen1.2.15