GRASS GIS 7 Programmer's Manual
7.8.2(2019)-exported
|
Go to the documentation of this file.
19 #include <grass/gis.h>
21 #include "gis_local_proto.h"
23 static struct Counter unique;
24 static int initialized;
87 sprintf(
name,
"%d.%d", pid, uniq);
90 while (access(
path, F_OK) == 0);
119 if (machine !=
NULL && *machine != 0) {
void G_init_counter(struct Counter *c, int v)
int G_make_mapset_element_tmp(const char *p_element)
Create element in the temporary directory.
char * G_store(const char *s)
Copy string to allocated memory.
int G_is_initialized(int *p)
const char * G_mapset(void)
Get current mapset name.
void G_initialize_done(int *p)
void G_init_tempfile(void)
Initialize environment for creating tempfiles.
char * G_file_name(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files.
void G__temp_element(char *element, int tmp)
Populates element with a path string (internal use only!)
void G_temp_element(char *element)
Populates element with a path string.
char * G_tempfile_pid(int pid)
Create tempfile from process id.
int G_debug(int level, const char *msg,...)
Print debugging message.
char * G_tempfile(void)
Returns a temporary file name.
const char * G__machine_name(void)
int G_counter_next(struct Counter *c)
int G_make_mapset_element(const char *p_element)
Create element in the current mapset.