libite
|
#include <errno.h>
#include <libgen.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "lite.h"
Functions | |
int | mkpath (const char *dir, mode_t mode) |
makepath() but takes a mode_t argument. More... | |
int | fmkpath (mode_t mode, const char *fmt,...) |
Formatted version of mkpath(). More... | |
int | makepath (const char *dir) |
Create all components of the specified directory. More... | |
int fmkpath | ( | mode_t | mode, |
const char * | fmt, | ||
... | |||
) |
int makepath | ( | const char * | dir | ) |
Create all components of the specified directory.
dir | Directory to create. |
EINVAL | on bad argument, or |
ENOMEM | when it fails allocating temporary memory. |
For other error codes see the mkdir(2) syscall description.
int mkpath | ( | const char * | dir, |
mode_t | mode | ||
) |
makepath() but takes a mode_t argument.
dir | Directory to created, relative or absolute |
mode | A &mode_t mode to create dir with |