11 #if !defined(DT_DIR) || defined(__APPLE__)
21 typedef struct __dirstream *
AVDIR;
24 # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
25 typedef struct __dirstream *
AVDIR;
26 typedef struct __dirstream *
DAVDIR;
40 #define ISAVMAGIC(_dir) (!memcmp((_dir), &avmagicdir, sizeof(avmagicdir)))
42 #if defined(_RPMDIR_INTERNAL)
52 #if defined(WITH_PTHREADS)
59 typedef struct rpmavx_s * rpmavx;
78 #if defined(__LCLINT__)
89 #if defined(_RPMDIR_INTERNAL)
96 rpmavx rpmavxUnlink ( rpmavx avx)
98 #define rpmavxUnlink(_avx) \
99 ((rpmavx)rpmioUnlinkPoolItem((rpmioItem)(_avx), __FUNCTION__, __FILE__, __LINE__))
107 rpmavx rpmavxLink ( rpmavx avx)
109 #define rpmavxLink(_avx) \
110 ((rpmavx)rpmioLinkPoolItem((rpmioItem)(_avx), __FUNCTION__, __FILE__, __LINE__))
118 rpmavx rpmavxFree( rpmavx avx)
121 #define rpmavxFree(_avx) \
122 ((rpmavx)rpmioFreePoolItem((rpmioItem)(_avx), __FUNCTION__, __FILE__, __LINE__))
127 void *
rpmavxNew(
const char *uri,
struct stat *st)
133 int rpmavxAdd(rpmavx avx,
const char * path,
134 mode_t
mode,
size_t size, time_t mtime)
182 DIR *
Opendir(
const char * path)
204 int (*filter) (
const struct dirent *),
205 int (*compar) (
const void *,
const void *))
215 void Seekdir(DIR * dir, off_t offset)
int Scandir(const char *path, struct dirent ***nl, int(*filter)(const struct dirent *), int(*compar)(const void *, const void *))
scandir(3) clone.
struct __dirstream * DAVDIR
int rpmavxAdd(rpmavx avx, const char *path, mode_t mode, size_t size, time_t mtime)
struct dirent * Readdir(DIR *dir)
readdir(3) clone.
unsigned short rpmuint16_t
int Closedir(DIR *dir)
closedir(3) clone.
void Rewinddir(DIR *dir)
rewinddir(3) clone.
DIR * Opendir(const char *path)
opendir(3) clone.
void * rpmavxNew(const char *uri, struct stat *st)
off_t Telldir(DIR *dir)
telldir(3) clone.
const char const bson * data
int Alphasort(const void *a, const void *b)
int Versionsort(const void *a, const void *b)
struct dirent * avReaddir(DIR *dir)
struct __dirstream * AVDIR
DIR * avOpendir(const char *path, const char **av, rpmuint16_t *modes)
const char const char size_t size
void Seekdir(DIR *dir, off_t offset)
seekdir(3) clone.