* val. Otherwise, pass -1 to get default permissions.
*/
-#include <errno.h>
-#include <unistd.h>
-#include <sys/stat.h>
#include "libbb.h"
-int bb_make_directory (char *path, long mode, int flags)
+/* This function is used from NOFORK applets. It must not allocate anything */
+
+int FAST_FUNC bb_make_directory(char *path, long mode, int flags)
{
mode_t mask;
const char *fail_msg;
} while (1);
- bb_perror_msg ("cannot %s directory '%s'", fail_msg, path);
+ bb_perror_msg("cannot %s directory '%s'", fail_msg, path);
return -1;
}