9 static char *filename(
const char *
name,
const char *mapset)
11 static char path[GPATH_MAX];
23 if (access(filename(
".lock", mapset), 0) == 0)
31 if (
printfile(filename(
".message", mapset)))
39 if (
printfile(filename(
".question", mapset)))
40 return G_yes(
"Select this mapset? ", -1);
53 while ((n = read(fd, buf,
sizeof buf)) > 0)
54 write(STDOUT_FILENO, buf, n);
int G__mapset_permissions(const char *mapset)
Check for user mapset permission.
int mapset_message(const char *)
int mapset_question(const char *)
int G_yes(const char *question, int dflt)
Ask a yes/no question.
char * G__file_name(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files.
int mapset_permissions(const char *)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
int printfile(const char *)