BRL-CAD
Loading...
Searching...
No Matches
glob.h File Reference
#include "common.h"
#include "bu/defines.h"
#include "bu/vls.h"
Include dependency graph for glob.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bu_dirent
 
struct  bu_stat
 
struct  bu_glob_context
 

Macros

#define BU_GLOB_APPEND   0x0001
 
#define BU_GLOB_NOSORT   0x0020
 
#define BU_GLOB_NOESCAPE   0x2000
 
#define BU_GLOB_NOMATCH   (-1)
 
#define BU_GLOB_ABORTED   (-2)
 

Typedefs

typedef struct bu_glob_context bu_glob_t
 

Functions

struct bu_glob_contextbu_glob_ctx_create (void)
 
void bu_glob_ctx_destroy (struct bu_glob_context *)
 
int bu_glob (const char *pattern, int flags, struct bu_glob_context *context)
 

Macro Definition Documentation

◆ BU_GLOB_APPEND

#define BU_GLOB_APPEND   0x0001

Append to output from previous call.

Definition at line 83 of file glob.h.

◆ BU_GLOB_NOSORT

#define BU_GLOB_NOSORT   0x0020

Do not sort results.

Definition at line 84 of file glob.h.

◆ BU_GLOB_NOESCAPE

#define BU_GLOB_NOESCAPE   0x2000

Treat backslash as ordinary character.

Definition at line 85 of file glob.h.

◆ BU_GLOB_NOMATCH

#define BU_GLOB_NOMATCH   (-1)

Returned by bu_glob when there are no matches.

Definition at line 133 of file glob.h.

◆ BU_GLOB_ABORTED

#define BU_GLOB_ABORTED   (-2)

Returned by bu_glob after an unignored error.

Definition at line 134 of file glob.h.