GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
dirent.c File Reference
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <grass/dbmi.h>
#include <sys/types.h>
#include <dirent.h>
Include dependency graph for dirent.c:

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_entryreaddir ()
 
dbDirent * db_dirent (const char *dirname, int *n)
 
void db_free_dirent_array (dbDirent *dirent, int count)
 
dbDirent * db_alloc_dirent_array (int count)
 

Macro Definition Documentation

#define R_OK   4

Definition at line 6 of file dirent.c.

Referenced by G3d_readHeader(), and G3d_readWindow().

#define W_OK   2

Definition at line 7 of file dirent.c.

#define X_OK   1

Definition at line 8 of file dirent.c.

Typedef Documentation

typedef struct dirent dir_entry

Definition at line 16 of file dirent.c.

Function Documentation

dbDirent* db_alloc_dirent_array ( int  count)

Definition at line 147 of file dirent.c.

References count, db_calloc(), db_init_string(), render::name, and NULL.

Referenced by db_dirent().

dbDirent* db_dirent ( const char *  dirname,
int n 
)
void db_free_dirent_array ( dbDirent *  dirent,
int  count 
)

Definition at line 100 of file dirent.c.

References count, db_free(), db_free_string(), and render::name.