libite 2.6.1
|
#include <errno.h>
#include <libgen.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "lite.h"
Go to the source code of this file.
Functions | |
int | mkpath (const char *dir, mode_t mode) |
int | fmkpath (mode_t mode, const char *fmt,...) |
int | makepath (const char *dir) |
int fmkpath | ( | mode_t | mode, |
const char * | fmt, | ||
... ) |
Formatted version of mkpath().
mode | A mode_t mode to create directories with |
fmt | Formatted string to be composed into a pathname |
Definition at line 66 of file makepath.c.
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.
Definition at line 105 of file makepath.c.
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 |
Definition at line 40 of file makepath.c.