+
+struct dir_entry *dir_open (const char *rep);
+void dir_sort (struct dir_entry *e);
+void dir_free (struct dir_entry **e_p);
+void repository (int cmd, const char *rep, const char *base_path);
+
+void file_extract (int cmd, const char *fname, const char *kname);
+
+void key_open (int mem);
+int key_close (void);
+void key_write (int cmd, struct it_key *k, const char *str);
+int key_compare (const void *p1, const void *p2);
+int key_qsort_compare (const void *p1, const void *p2);
+void key_logdump (int mask, const void *p);
+void key_input (const char *dict_fname, const char *isam_fname,
+ const char *key_fname, int cache);
+void key_input2 (const char *dict_fname, const char *isam_fname,
+ int nkeys, int cache);
+int merge_sort (char **buf, int from, int to);
+
+#define TEMP_FNAME "keys%d.tmp"
+#define FNAME_WORD_DICT "worddict"
+#define FNAME_WORD_ISAM "wordisam"
+#define FNAME_FILE_DICT "filedict"
+#define FNAME_SYS_IDX "sysidx"
+#define SYS_IDX_ENTRY_LEN 120
+
+struct strtab *strtab_mk (void);
+int strtab_src (struct strtab *t, const char *name, void ***infop);
+void strtab_del (struct strtab *t,
+ void (*func)(const char *name, void *info, void *data),
+ void *data);
+int index_char_cvt (int c);
+int index_word_prefix (char *string, int attrSet, int attrUse);