|
GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
DBMI Library (base) - directory entities management. More...
#include <string.h>#include <stdlib.h>#include <unistd.h>#include <grass/dbmi.h>#include <sys/types.h>#include <dirent.h>
Go to the source code of this file.
Macros | |
| #define | R_OK 4 |
| #define | W_OK 2 |
| #define | X_OK 1 |
Typedefs | |
| typedef struct dirent | dir_entry |
Functions | |
| DIR * | opendir () |
| dir_entry * | readdir () |
| dbDirent * | db_dirent (const char *dirname, int *n) |
| Read directory and build an array of dbDirent's. More... | |
| void | db_free_dirent_array (dbDirent *dirent, int count) |
| Free dbDirent. More... | |
| dbDirent * | db_alloc_dirent_array (int count) |
| Allocate dirent array. More... | |
DBMI Library (base) - directory entities management.
(C) 1999-2010 by 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 dirent.c.
| #define R_OK 4 |
Definition at line 21 of file dirent.c.
Referenced by font_exists(), and G_has_vector_timestamp().
| dbDirent* db_alloc_dirent_array | ( | int | count | ) |
Allocate dirent array.
| count | number of entities in the array |
Definition at line 172 of file dirent.c.
References count, db_calloc(), db_init_string(), name, and NULL.
| dbDirent* db_dirent | ( | const char * | dirname, |
| int * | n | ||
| ) |
| void db_free_dirent_array | ( | dbDirent * | dirent, |
| int | count | ||
| ) |
| DIR* opendir | ( | ) |
Referenced by clean_dir(), G_get_available_mapsets(), G_list(), G_ls2(), and M__empty().
| dir_entry* readdir | ( | ) |
Referenced by clean_dir(), G_get_available_mapsets(), G_list(), G_ls2(), and M__empty().