mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 23:28:59 +00:00
Issue 9990 - New API ast_mkdir, which creates parent directories as necessary (and is faster than an outcall to mkdir -p)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -593,6 +593,16 @@ int _ast_vasprintf(char **ret, const char *file, int lineno, const char *func, c
|
||||
*/
|
||||
void ast_enable_packet_fragmentation(int sock);
|
||||
|
||||
/*!
|
||||
\brief Recursively create directory path
|
||||
\param path The directory path to create
|
||||
\param mode The permissions with which to try to create the directory
|
||||
\return 0 on success or an error code otherwise
|
||||
|
||||
Creates a directory path, creating parent directories as needed.
|
||||
*/
|
||||
int ast_mkdir(const char *path, int mode);
|
||||
|
||||
#define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
#include "asterisk/strings.h"
|
||||
|
Reference in New Issue
Block a user