Lines Matching defs:dbfile

1796 CA_DB *load_index(char *dbfile, DB_ATTR *db_attr)
1810 if (BIO_read_filename(in,dbfile) <= 0)
1812 perror(dbfile);
1813 BIO_printf(bio_err,"unable to open '%s'\n",dbfile);
1820 BIO_snprintf(buf[0], sizeof buf[0], "%s.attr", dbfile);
1822 BIO_snprintf(buf[0], sizeof buf[0], "%s-attr", dbfile);
1899 int save_index(const char *dbfile, const char *suffix, CA_DB *db)
1911 j = strlen(dbfile) + strlen(suffix);
1919 j = BIO_snprintf(buf[2], sizeof buf[2], "%s.attr", dbfile);
1921 j = BIO_snprintf(buf[2], sizeof buf[2], "%s-attr", dbfile);
1924 j = BIO_snprintf(buf[1], sizeof buf[1], "%s.attr.%s", dbfile, suffix);
1926 j = BIO_snprintf(buf[1], sizeof buf[1], "%s-attr-%s", dbfile, suffix);
1929 j = BIO_snprintf(buf[0], sizeof buf[0], "%s.%s", dbfile, suffix);
1931 j = BIO_snprintf(buf[0], sizeof buf[0], "%s-%s", dbfile, suffix);
1938 perror(dbfile);
1939 BIO_printf(bio_err,"unable to open '%s'\n", dbfile);
1966 int rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix)
1971 i = strlen(dbfile) + strlen(old_suffix);
1972 j = strlen(dbfile) + strlen(new_suffix);
1981 j = BIO_snprintf(buf[4], sizeof buf[4], "%s.attr", dbfile);
1983 j = BIO_snprintf(buf[4], sizeof buf[4], "%s-attr", dbfile);
1987 dbfile, new_suffix);
1990 dbfile, new_suffix);
1994 dbfile, new_suffix);
1997 dbfile, new_suffix);
2001 dbfile, old_suffix);
2004 dbfile, old_suffix);
2008 dbfile, old_suffix);
2011 dbfile, old_suffix);
2015 dbfile, buf[1]);
2017 if (rename(dbfile,buf[1]) < 0 && errno != ENOENT
2024 dbfile, buf[1]);
2030 buf[0],dbfile);
2032 if (rename(buf[0],dbfile) < 0)
2036 buf[0],dbfile);
2038 rename(buf[1],dbfile);
2054 rename(dbfile,buf[0]);
2055 rename(buf[1],dbfile);
2069 rename(dbfile,buf[0]);
2070 rename(buf[1],dbfile);