mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
make tr_mkdir() private.
This commit is contained in:
parent
bb49ab9a01
commit
e5304a8aaa
2 changed files with 11 additions and 18 deletions
|
@ -519,13 +519,17 @@ tr_mkdtemp( char * template )
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
/**
|
||||||
tr_mkdir( const char * path,
|
* @brief Portability wrapper for mkdir()
|
||||||
int permissions
|
*
|
||||||
#ifdef WIN32
|
* A portability wrapper around mkdir().
|
||||||
UNUSED
|
* On WIN32, the `permissions' argument is unused.
|
||||||
#endif
|
*
|
||||||
)
|
* @return zero on success, or -1 if an error occurred
|
||||||
|
* (in which case errno is set appropriately).
|
||||||
|
*/
|
||||||
|
static int
|
||||||
|
tr_mkdir( const char * path, int permissions UNUSED)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if( path && isalpha( path[0] ) && path[1] == ':' && !path[2] )
|
if( path && isalpha( path[0] ) && path[1] == ':' && !path[2] )
|
||||||
|
|
|
@ -203,17 +203,6 @@ char* tr_basename( const char * path ) TR_GNUC_MALLOC;
|
||||||
/** @brief Portability wrapper for dirname() that uses the system implementation if available */
|
/** @brief Portability wrapper for dirname() that uses the system implementation if available */
|
||||||
char* tr_dirname( const char * path ) TR_GNUC_MALLOC;
|
char* tr_dirname( const char * path ) TR_GNUC_MALLOC;
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Portability wrapper for mkdir()
|
|
||||||
*
|
|
||||||
* A portability wrapper around mkdir().
|
|
||||||
* On WIN32, the `permissions' argument is unused.
|
|
||||||
*
|
|
||||||
* @return zero on success, or -1 if an error occurred
|
|
||||||
* (in which case errno is set appropriately).
|
|
||||||
*/
|
|
||||||
int tr_mkdir( const char * path, int permissions ) TR_GNUC_NONNULL(1);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Like mkdir, but makes parent directories as needed.
|
* Like mkdir, but makes parent directories as needed.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue