IDZEBRA
2.2.7
|
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <yaz/snprintf.h>
#include "index.h"
Go to the source code of this file.
Data Structures | |
struct | dirs_info |
Macros | |
#define | DIRS_MAX_PATH 1024 |
Functions | |
static int | dirs_client_proc (char *name, const char *info, int pos, void *client) |
struct dirs_info * | dirs_open (Dict dict, const char *rep, int rw) |
struct dirs_info * | dirs_fopen (Dict dict, const char *path, int rw) |
struct dirs_entry * | dirs_read (struct dirs_info *p) |
struct dirs_entry * | dirs_last (struct dirs_info *p) |
void | dirs_mkdir (struct dirs_info *p, const char *src, time_t mtime) |
void | dirs_rmdir (struct dirs_info *p, const char *src) |
void | dirs_add (struct dirs_info *p, const char *src, zint sysno, time_t mtime) |
void | dirs_del (struct dirs_info *p, const char *src) |
void | dirs_free (struct dirs_info **pp) |
Definition at line 190 of file dirs.c.
References dirs_info::dict, dict_insert(), DIRS_MAX_PATH, dirs_entry::mtime, dirs_entry::path, dirs_info::prefix, dirs_info::rw, and dirs_entry::sysno.
Referenced by file_update_r(), and file_update_top().
|
static |
Definition at line 49 of file dirs.c.
References dirs_dir, dirs_file, dirs_info::entries, dirs_entry::kind, dirs_entry::mtime, dirs_info::no_cur, dirs_info::no_max, dirs_entry::path, dirs_info::prefix, dirs_info::prelen, and dirs_entry::sysno.
Referenced by dirs_open(), and dirs_read().
void dirs_del | ( | struct dirs_info * | p, |
const char * | src | ||
) |
Definition at line 203 of file dirs.c.
References dirs_info::dict, dict_delete(), DIRS_MAX_PATH, dirs_info::nextpath, dirs_info::nextpath_deleted, dirs_entry::path, dirs_info::prefix, and dirs_info::rw.
Referenced by file_update_r(), and fileDelete_r().
Definition at line 105 of file dirs.c.
References dict, dirs_info::dict, dict_lookup(), dirs_file, dirs_info::entries, dirs_entry::kind, dirs_entry::mtime, dirs_info::no_cur, dirs_info::no_max, dirs_info::no_read, dirs_entry::path, dirs_info::prefix, dirs_info::rw, and dirs_entry::sysno.
Referenced by file_update_top().
void dirs_free | ( | struct dirs_info ** | pp | ) |
Definition at line 217 of file dirs.c.
References dirs_info::entries.
Referenced by file_update_top(), and repositoryShow().
struct dirs_entry* dirs_last | ( | struct dirs_info * | p | ) |
Definition at line 165 of file dirs.c.
References dirs_info::last_entry.
Referenced by file_update_r().
void dirs_mkdir | ( | struct dirs_info * | p, |
const char * | src, | ||
time_t | mtime | ||
) |
Definition at line 170 of file dirs.c.
References dirs_info::dict, dict_insert(), DIRS_MAX_PATH, dirs_entry::mtime, dirs_entry::path, dirs_info::prefix, and dirs_info::rw.
Referenced by file_update_r().
Definition at line 83 of file dirs.c.
References dict, dirs_info::dict, dict_scan(), dirs_client_proc(), dirs_info::entries, dirs_info::nextpath, dirs_info::nextpath_deleted, dirs_info::no_cur, dirs_info::no_max, dirs_info::no_read, dirs_info::prefix, dirs_info::prelen, and dirs_info::rw.
Referenced by file_update_top(), and repositoryShow().
struct dirs_entry* dirs_read | ( | struct dirs_info * | p | ) |
Definition at line 134 of file dirs.c.
References dirs_info::dict, dict_scan(), dirs_client_proc(), dirs_info::entries, dirs_info::last_entry, dirs_info::nextpath, dirs_info::nextpath_deleted, dirs_info::no_cur, dirs_info::no_max, and dirs_info::no_read.
Referenced by file_update_r(), file_update_top(), fileDelete_r(), and repositoryShow().
void dirs_rmdir | ( | struct dirs_info * | p, |
const char * | src | ||
) |
Definition at line 180 of file dirs.c.
References dirs_info::dict, dict_delete(), DIRS_MAX_PATH, dirs_entry::path, dirs_info::prefix, and dirs_info::rw.
Referenced by fileDelete_r().