/usr/include/bglibs/path/path.h is in libbg1-dev 1.106-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #ifndef LIB__PATH__H__
#define LIB__PATH__H__
#include "str/str.h"
/** \defgroup path path: Filename manipulation functions
@{ */
/** Make path_match include files starting with dots. */
#define PATH_MATCH_DOTFILES 1
extern int path_merge(str* path, const char* start);
extern int fnmatch(const char* filename, const char* pattern,
unsigned options);
extern int has_magic(const char* s);
extern int path_match(const char* pattern, str* result, unsigned options);
extern int path_contains(const char* path, const char* part);
extern int path_mktemp(const char* prefix, str* filename);
extern int path_mkdirs(const char* path, unsigned mode);
/** @} */
#endif
|