file.h File Reference
#include "common.h"
#include <stdio.h>
#include <sys/types.h>
#include <stddef.h>
#include <stdlib.h>
#include "bu/defines.h"
#include "bu/magic.h"
Include dependency graph for file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define BU_FNMATCH_NOESCAPE   0x01
#define BU_FNMATCH_PATHNAME   0x02
#define BU_FNMATCH_PERIOD   0x04
#define BU_FNMATCH_CASEFOLD   0x10
#define BU_FNMATCH_NOMATCH   1 /* Match failed. */
#define BU_RTLD_LAZY   1
#define BU_RTLD_NOW   2
#define BU_RTLD_GLOBAL   0x100
#define BU_RTLD_LOCAL   0


int bu_file_exists (const char *path, int *fd)
int bu_same_file (const char *fn1, const char *fn2)
int bu_same_fd (int fd1, int fd2)
int bu_file_readable (const char *path)
int bu_file_writable (const char *path)
int bu_file_executable (const char *path)
int bu_file_directory (const char *path)
int bu_file_symbolic (const char *path)
int bu_file_delete (const char *path)
size_t bu_file_glob (const char *pattern, char ***matches)
char * bu_file_path_canonicalize (const char *path)
int bu_fnmatch (const char *pattern, const char *pathname, int flags)
size_t bu_dir_list (const char *path, const char *pattern, char ***files)
char * bu_realpath (const char *path, char *resolved_path)
const char * bu_argv0_full_path (void)
const char * bu_getprogname (void)
void bu_setprogname (const char *path)
char * bu_getcwd (char *buf, size_t size)
const char * bu_brlcad_dir (const char *dirkey, int fail_quietly)
const char * bu_brlcad_root (const char *rhs, int fail_quietly)
const char * bu_brlcad_data (const char *rhs, int fail_quietly)
const char * bu_which (const char *cmd)
const char * bu_whereis (const char *cmd)
FILE * bu_temp_file (char *filepath, size_t len)
int bu_fchmod (int fd, unsigned long pmode)
size_t bu_argv_from_string (char *argv[], size_t lim, char *lp)
void bu_free_argv (int argc, char *argv[])
void bu_free_array (int argc, char *argv[], const char *str)
char ** bu_dup_argv (int argc, const char *argv[])
char ** bu_dupinsert_argv (int insert, int insertArgc, const char *insertArgv[], int argc, const char *argv[])
char ** bu_argv_from_path (const char *path, int *ac)
int bu_suspend_interrupts (void)
int bu_restore_interrupts (void)
void * bu_dlopen (const char *path, int mode)
void * bu_dlsym (void *path, const char *symbol)
int bu_dlclose (void *handle)
const char * bu_dlerror (void)
int bu_fseek (FILE *stream, off_t offset, int origin)
off_t bu_ftell (FILE *stream)