IDZEBRA
2.2.7
|
#include <stdio.h>
#include <assert.h>
#include <sys/types.h>
#include <direntz.h>
#include <fcntl.h>
#include <time.h>
#include <yaz/snprintf.h>
#include "index.h"
Go to the source code of this file.
Functions | |
static int | repComp (const char *a, const char *b, size_t len) |
static void | fileDelete_r (ZebraHandle zh, struct dirs_info *di, struct dirs_entry *dst, const char *base, char *src) |
static void | file_update_r (ZebraHandle zh, struct dirs_info *di, struct dirs_entry *dst, const char *base, char *src, int level) |
static void | file_update_top (ZebraHandle zh, Dict dict, const char *path) |
static ZEBRA_RES | zebra_open_fmatch (ZebraHandle zh, Dict *dictp) |
ZEBRA_RES | zebra_remove_file_match (ZebraHandle zh) |
ZEBRA_RES | zebra_update_file_match (ZebraHandle zh, const char *path) |
|
static |
Definition at line 77 of file update_file.c.
References action_delete, action_update, dir_free(), dir_open(), dir_sort(), dirs_add(), dirs_del(), dirs_dir, dirs_file, dirs_last(), dirs_mkdir(), dirs_read(), fileDelete_r(), dirs_entry::kind, dir_entry::kind, zebra_session::m_follow_links, dir_entry::mtime, dirs_entry::mtime, dir_entry::name, dirs_entry::path, zebra_session::path_reg, repComp(), dirs_entry::sysno, zebra_extract_file(), and ZEBRA_OK.
Referenced by file_update_top().
|
static |
Definition at line 213 of file update_file.c.
References action_update, dict, dirs_add(), dirs_fopen(), dirs_free(), dirs_open(), dirs_read(), file_update_r(), zebra_session::m_flag_rw, zebra_session::m_follow_links, dirs_entry::mtime, zebra_session::path_reg, dirs_entry::sysno, zebra_extract_file(), zebra_file_stat(), and ZEBRA_OK.
Referenced by zebra_update_file_match().
|
static |
Definition at line 48 of file update_file.c.
References action_delete, dirs_del(), dirs_dir, dirs_file, dirs_read(), dirs_rmdir(), dirs_entry::kind, dirs_entry::path, repComp(), dirs_entry::sysno, and zebra_extract_file().
Referenced by file_update_r().
|
static |
Definition at line 41 of file update_file.c.
Referenced by file_update_r(), and fileDelete_r().
|
static |
Definition at line 278 of file update_file.c.
References zebra_register::bfs, dict_open_res(), FMATCH_DICT, zebra_session::m_flag_rw, zebra_session::reg, zebra_session::res, ZEBRA_FAIL, ZEBRA_OK, zebraExplain_get_database_ord(), and zebra_register::zei.
Referenced by zebra_remove_file_match(), and zebra_update_file_match().
ZEBRA_RES zebra_remove_file_match | ( | ZebraHandle | zh | ) |
Definition at line 294 of file update_file.c.
References dict, dict_clean(), dict_close(), ZEBRA_FAIL, ZEBRA_OK, and zebra_open_fmatch().
Referenced by zebra_drop_database().
ZEBRA_RES zebra_update_file_match | ( | ZebraHandle | zh, |
const char * | path | ||
) |
Definition at line 307 of file update_file.c.
References zebra_session::basenames, dict, dict_close(), file_update_top(), dirs_entry::path, zebra_session::reg, ZEBRA_FAIL, ZEBRA_OK, zebra_open_fmatch(), zebraExplain_curDatabase(), zebraExplain_newDatabase(), and zebra_register::zei.
Referenced by zebra_repository_index().