GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
GIS library - Mapset user permission routines. More...
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | G__make_mapset_element (const char *p_element) |
Create element in the current mapset. More... | |
int | G__make_mapset_element_misc (const char *dir, const char *name) |
Create misc element in the current mapset. More... | |
int | G__mapset_permissions (const char *mapset) |
Check for user mapset permission. More... | |
int | G__mapset_permissions2 (const char *gisdbase, const char *location, const char *mapset) |
Check for user mapset permission. More... | |
GIS library - Mapset user permission routines.
(C) 1999-2008 The GRASS development team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file mapset_msc.c.
int G__make_mapset_element | ( | const char * | p_element | ) |
Create element in the current mapset.
Make the specified element in the current mapset will check for the existence of the element and do nothing if it is found so this routine can be called even if the element already exists.
element | element to be created in mapset |
Definition at line 34 of file mapset_msc.c.
References errno, G__file_name(), G_fatal_error(), G_mapset(), and G_mkdir().
Referenced by db_set_default_connection(), G3d_makeMapsetMapDirectory(), G__make_mapset_element_misc(), G__quant_export(), G__temp_element(), I_list_groups(), I_list_subgroups(), and Vect_copy().
int G__make_mapset_element_misc | ( | const char * | dir, |
const char * | name | ||
) |
Create misc element in the current mapset.
dir | directory path |
name | element name |
Definition at line 82 of file mapset_msc.c.
References buf, G__make_mapset_element(), and sprintf().
Referenced by G__quant_export(), G__write_fp_format(), I_fopen_signature_file_new(), I_fopen_sigset_file_new(), I_fopen_subgroup_file_append(), and I_fopen_subgroup_file_new().
int G__mapset_permissions | ( | const char * | mapset | ) |
Check for user mapset permission.
mapset | mapset name |
Definition at line 115 of file mapset_msc.c.
References G__file_name(), G_stat(), and stat.
Referenced by G__gisinit(), G_mapset(), and mapset_permissions().
int G__mapset_permissions2 | ( | const char * | gisdbase, |
const char * | location, | ||
const char * | mapset | ||
) |
Check for user mapset permission.
gisdbase | full path to GISDBASE |
location | location name |
mapset | mapset name |
Definition at line 144 of file mapset_msc.c.