ANSI C Based OPC UA Client/Server/PubSub SDK  1.9.1.442
UaBaseFilesystem

Macros

#define UABASE_SUCCESS   0
 Result codes returned by UaBase_Mkdir and UaBase_MkPath. More...
 
#define UABASE_EEXIST   EEXIST
 Directory already exists.
 
#define UABASE_ENOENT   ENOENT
 One of the path components was not found.
 
#define UABASE_EACCES   EACCES
 Access is denied.
 
#define UABASE_EFAIL   EFAULT
 Generic error code.
 

Functions

OpcUa_Int UaBase_Mkdir (const OpcUa_CharA *a_Pathname)
 Create a directory. More...
 
OpcUa_Int UaBase_MkPath (const char *szPath)
 Create a directory and its parent directories if needed. More...
 
const char * UaBase_DirName (char *szPath)
 Returns the directory name of szPath which is the string up to, but not including, the final '/'. More...
 
const char * UaBase_BaseName (char *szPath)
 Returns the string component following the final '/' of szPath. More...
 

Detailed Description

Macro Definition Documentation

#define UABASE_SUCCESS   0

Result codes returned by UaBase_Mkdir and UaBase_MkPath.

The operation succeeded

Function Documentation

const char * UaBase_BaseName ( char *  szPath)

Returns the string component following the final '/' of szPath.

This function may modify szPath, so it may be desirable to pass a copy when calling this function.

const char * UaBase_DirName ( char *  szPath)

Returns the directory name of szPath which is the string up to, but not including, the final '/'.

This function may modify szPath, so it may be desirable to pass a copy when calling this function. If szPath does not contain a '/' the string '.' will be returned.

OpcUa_Int UaBase_Mkdir ( const OpcUa_CharA *  a_Pathname)

Create a directory.

Parameters
a_PathnameThe name of the directory to create.
Returns
One of the result codes defined in uabase_p_filesystem.h

< The operation succeeded

< Directory already exists

< One of the path components was not found

< Access is denied

< Generic error code

OpcUa_Int UaBase_MkPath ( const char *  szPath)

Create a directory and its parent directories if needed.

Parameters
szPathThe name of the directory to create.
Returns
One of the result codes defined in uabase_p_filesystem.h

< The operation succeeded

< The operation succeeded

< Directory already exists

< Access is denied

< The operation succeeded

< Directory already exists

< Access is denied

< Directory already exists

< The operation succeeded