GRASS GIS 7 Programmer's Manual
7.8.2(2019)-exported
|
#include <grass/config.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "gis_local_proto.h"
Go to the source code of this file.
Functions | |
int | G_open_new_misc (const char *dir, const char *element, const char *name) |
open a new database file More... | |
int | G_open_old_misc (const char *dir, const char *element, const char *name, const char *mapset) |
open a database file for reading More... | |
int | G_open_update_misc (const char *dir, const char *element, const char *name) |
open a database file for update More... | |
FILE * | G_fopen_new_misc (const char *dir, const char *element, const char *name) |
open a new database file More... | |
FILE * | G_fopen_old_misc (const char *dir, const char *element, const char *name, const char *mapset) |
open a database file for reading More... | |
FILE * | G_fopen_append_misc (const char *dir, const char *element, const char *name) |
FILE * | G_fopen_modify_misc (const char *dir, const char *element, const char *name) |
FILE* G_fopen_append_misc | ( | const char * | dir, |
const char * | element, | ||
const char * | name | ||
) |
Definition at line 222 of file open_misc.c.
FILE* G_fopen_modify_misc | ( | const char * | dir, |
const char * | element, | ||
const char * | name | ||
) |
Definition at line 235 of file open_misc.c.
FILE* G_fopen_new_misc | ( | const char * | dir, |
const char * | element, | ||
const char * | name | ||
) |
open a new database file
The database file name under the element in the current mapset is created and opened for writing (but not reading). The UNIX fopen( ) routine, with "w" write mode, is used to open the file. If the file does not exist, the NULL pointer is returned. Otherwise the file is positioned at the end of the file and the file descriptor from the fopen( ) is returned.
element | |
name |
Definition at line 182 of file open_misc.c.
FILE* G_fopen_old_misc | ( | const char * | dir, |
const char * | element, | ||
const char * | name, | ||
const char * | mapset | ||
) |
open a database file for reading
The database file name under the element in the specified mapset is opened for reading (but not for writing). The UNIX fopen( ) routine, with "r" read mode, is used to open the file. If the file does not exist, the NULL pointer is returned. Otherwise the file descriptor from the fopen( ) is returned.
element | |
name | |
mapset |
Definition at line 210 of file open_misc.c.
int G_open_new_misc | ( | const char * | dir, |
const char * | element, | ||
const char * | name | ||
) |
open a new database file
The database file name under the element in the current mapset is created and opened for writing (but not reading). The UNIX open( ) routine is used to open the file. If the file does not exist, -1 is returned. Otherwise the file is positioned at the end of the file and the file descriptor from the open( ) is returned.
element | |
name |
Definition at line 113 of file open_misc.c.
int G_open_old_misc | ( | const char * | dir, |
const char * | element, | ||
const char * | name, | ||
const char * | mapset | ||
) |
open a database file for reading
The database file name under the element in the specified mapset is opened for reading (but not for writing). The UNIX open( ) routine is used to open the file. If the file does not exist, -1 is returned. Otherwise the file descriptor from the open( ) is returned.
element | |
name | |
mapset |
Definition at line 134 of file open_misc.c.
int G_open_update_misc | ( | const char * | dir, |
const char * | element, | ||
const char * | name | ||
) |
open a database file for update
The database file name under the element in the current mapset is opened for reading and writing. The UNIX open( ) routine is used to open the file. If the file does not exist, -1 is returned. Otherwise the file is positioned at the end of the file and the file descriptor from the open( ) is returned.
element | |
name |
Definition at line 155 of file open_misc.c.