21#include "gis_local_proto.h"
23static struct Counter unique;
24static int initialized;
103 sprintf(
name,
"%d.%d", pid, uniq);
105 }
while (access(
path, F_OK) == 0);
122 char path[GPATH_MAX];
123 char name[GNAME_MAX];
133 sprintf(
name,
"%d.%d", pid, uniq);
135 }
while (access(
path, F_OK) == 0);
165 if (machine !=
NULL && *machine != 0) {
191 if (machine !=
NULL && *machine != 0) {
196 if (basedir && *basedir)
void G_initialize_done(int *p)
void G_init_counter(struct Counter *c, int v)
int G_is_initialized(int *p)
int G_counter_next(struct Counter *c)
int G_debug(int level, const char *msg,...)
Print debugging message.
char * G_file_name(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files.
char * G_file_name_basedir(char *path, const char *element, const char *name, const char *mapset, const char *basedir)
Builds full path names to GIS data files in temporary directory (for internal use only)
const char * G__machine_name(void)
const char * G_mapset(void)
Get current mapset name.
int G_make_mapset_object_group_tmp(const char *type)
Create directory for type of objects in the temporary directory.
int G_make_mapset_object_group(const char *type)
Create directory for group of elements of a given type.
int G_make_mapset_object_group_basedir(const char *type, const char *basedir)
Create directory for type of objects in the temporary directory.
char * G_store(const char *s)
Copy string to allocated memory.
void G_temp_element(char *element)
Populates element with a path string.
char * G_tempfile_pid(int pid)
Create tempfile from process id.
void G__temp_element(char *element, int tmp)
Populates element with a path string (internal use only!)
char * G_tempfile(void)
Returns a temporary file name.
void G__temp_element_basedir(char *element, const char *basedir)
Populates element with a path string (internal use only!)
char * G_tempfile_pid_basedir(int pid, const char *basedir)
Create tempfile from process id in given base directory.
void G_init_tempfile(void)
Initialize environment for creating tempfiles.
char * G_tempfile_basedir(const char *basedir)
Returns a temporary file name.