22 return mkdir(path, 0777);
37 if (c == GRASS_DIRSEP || c == HOST_DIRSEP)
56 || (isalpha(path[0]) && (path[1] ==
':') &&
G_is_dirsep(path[2]))
77 for (i = path; *i; i++) {
78 if (*i == GRASS_DIRSEP)
99 for (i = path; *i; i++) {
100 if (*i == HOST_DIRSEP)
120 return stat(file_name, buf);
138 return stat(file_name, buf);
140 return lstat(file_name, buf);
int G_stat(const char *file_name, struct stat *buf)
Get file status.
int G_mkdir(const char *path)
Creates a new directory.
char * G_convert_dirseps_to_host(char *path)
Converts directory separator characters in a string to the native host separator character (/ on Unix...
int G_lstat(const char *file_name, struct stat *buf)
Get file status.
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
int G_is_absolute_path(const char *path)
Checks if a specified path looks like an absolute path on the host system.
int G_is_dirsep(char c)
Checks if a specified character is a valid directory separator character on the host system...
char * G_convert_dirseps_from_host(char *path)
Converts directory separator characters in a string from the native host character to the GRASS separ...