#include <symlink.h>
Inheritance diagram for os::SymLink::
Public Methods | |
SymLink () | |
SymLink (const std::string &cPath, int nOpenMode=O_RDONLY) | |
SymLink (const Directory &cDir, const std::string &cName, int nOpenMode=O_RDONLY) | |
SymLink (const FileReference &cRef, int nOpenMode=O_RDONLY) | |
SymLink (const FSNode &cNode) | |
SymLink (const SymLink &cNode) | |
virtual | ~SymLink () |
virtual status_t | SetTo (const std::string &cPath, int nOpenMode=O_RDONLY) |
Open a node using a path. More... | |
virtual status_t | SetTo (const Directory &cDir, const std::string &cPath, int nOpenMode=O_RDONLY) |
Open a node using a dir/path pair. More... | |
virtual status_t | SetTo (const FileReference &cRef, int nOpenMode=O_RDONLY) |
Open the node referred to by the given os::FileReference. More... | |
virtual status_t | SetTo (const FSNode &cNode) |
Copy another FSNode. More... | |
virtual status_t | SetTo (const SymLink &cLink) |
status_t | ReadLink (std::string *pcBuffer) |
status_t | ConstructPath (const Directory &cParent, Path *pcBuffer) |
status_t | ConstructPath (const std::string &cParent, Path *pcBuffer) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from os::FSNode. |
|
Reimplemented from os::FSNode. |
|
cDir will then be ignored) or it can be relative to cDir . This have much the same semantics as setting the current working directory to cDir and then open the node by calling SetTo( const std::string& cPath, int nOpenMode ) with the path. The main advantage with this function is that it is thread-safe. You don't get any races while temporarily changing the current working directory.
For a more detailed description look at: SetTo( const std::string& cPath, int nOpenMode )
Reimplemented from os::FSNode. |
|
nOpenMode should be a compination of any of the O_* flags defined in <fcntl.h>. Their meaning is the same as when opening a file with the open() POSIX function except you can not create a file by setting the O_CREAT flag.
The following flags are accepted:
Reimplemented from os::FSNode. |