Lines Matching defs:buf
93 int chopup_args(ARGS *arg, char *buf)
104 for (p = buf;;) {
209 int wrap_password_callback(char *buf, int bufsiz, int verify, void *userdata)
211 return password_callback(buf, bufsiz, verify, (PW_CB_DATA *)userdata);
1295 char *buf;
1309 buf = X509_NAME_oneline(nm, 0, 0);
1310 BIO_puts(out, buf);
1312 OPENSSL_free(buf);
1465 char buf[1024];
1491 if (!a2i_ASN1_INTEGER(in, ai, buf, 1024)) {
1518 char buf[1][BSIZE];
1534 OPENSSL_strlcpy(buf[0], serialfile, BSIZE);
1537 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", serialfile, suffix);
1539 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s-%s", serialfile, suffix);
1542 out = BIO_new_file(buf[0], "w");
1569 char buf[2][BSIZE];
1581 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", serialfile, new_suffix);
1582 j = BIO_snprintf(buf[1], sizeof(buf[1]), "%s.%s", serialfile, old_suffix);
1584 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s-%s", serialfile, new_suffix);
1585 j = BIO_snprintf(buf[1], sizeof(buf[1]), "%s-%s", serialfile, old_suffix);
1587 if (rename(serialfile, buf[1]) < 0 && errno != ENOENT
1593 "Unable to rename %s to %s\n", serialfile, buf[1]);
1597 if (rename(buf[0], serialfile) < 0) {
1599 "Unable to rename %s to %s\n", buf[0], serialfile);
1601 rename(buf[1], serialfile);
1640 char buf[BSIZE];
1663 BIO_snprintf(buf, sizeof(buf), "%s.attr", dbfile);
1665 BIO_snprintf(buf, sizeof(buf), "%s-attr", dbfile);
1667 dbattr_conf = app_load_config_quiet(buf);
1728 char buf[3][BSIZE];
1738 j = BIO_snprintf(buf[2], sizeof(buf[2]), "%s.attr", dbfile);
1739 j = BIO_snprintf(buf[1], sizeof(buf[1]), "%s.attr.%s", dbfile, suffix);
1740 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", dbfile, suffix);
1742 j = BIO_snprintf(buf[2], sizeof(buf[2]), "%s-attr", dbfile);
1743 j = BIO_snprintf(buf[1], sizeof(buf[1]), "%s-attr-%s", dbfile, suffix);
1744 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s-%s", dbfile, suffix);
1746 out = BIO_new_file(buf[0], "w");
1757 out = BIO_new_file(buf[1], "w");
1759 perror(buf[2]);
1760 BIO_printf(bio_err, "Unable to open '%s'\n", buf[2]);
1776 char buf[5][BSIZE];
1788 j = BIO_snprintf(buf[4], sizeof(buf[4]), "%s.attr", dbfile);
1789 j = BIO_snprintf(buf[3], sizeof(buf[3]), "%s.attr.%s", dbfile, old_suffix);
1790 j = BIO_snprintf(buf[2], sizeof(buf[2]), "%s.attr.%s", dbfile, new_suffix);
1791 j = BIO_snprintf(buf[1], sizeof(buf[1]), "%s.%s", dbfile, old_suffix);
1792 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", dbfile, new_suffix);
1794 j = BIO_snprintf(buf[4], sizeof(buf[4]), "%s-attr", dbfile);
1795 j = BIO_snprintf(buf[3], sizeof(buf[3]), "%s-attr-%s", dbfile, old_suffix);
1796 j = BIO_snprintf(buf[2], sizeof(buf[2]), "%s-attr-%s", dbfile, new_suffix);
1797 j = BIO_snprintf(buf[1], sizeof(buf[1]), "%s-%s", dbfile, old_suffix);
1798 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s-%s", dbfile, new_suffix);
1800 if (rename(dbfile, buf[1]) < 0 && errno != ENOENT
1805 BIO_printf(bio_err, "Unable to rename %s to %s\n", dbfile, buf[1]);
1809 if (rename(buf[0], dbfile) < 0) {
1810 BIO_printf(bio_err, "Unable to rename %s to %s\n", buf[0], dbfile);
1812 rename(buf[1], dbfile);
1815 if (rename(buf[4], buf[3]) < 0 && errno != ENOENT
1820 BIO_printf(bio_err, "Unable to rename %s to %s\n", buf[4], buf[3]);
1822 rename(dbfile, buf[0]);
1823 rename(buf[1], dbfile);
1826 if (rename(buf[2], buf[4]) < 0) {
1827 BIO_printf(bio_err, "Unable to rename %s to %s\n", buf[2], buf[4]);
1829 rename(buf[3], buf[4]);
1830 rename(dbfile, buf[0]);
1831 rename(buf[1], dbfile);
2867 int raw_read_stdin(void *buf, int siz)
2870 if (ReadFile(GetStdHandle(STD_INPUT_HANDLE), buf, siz, &n, NULL))
2878 int raw_read_stdin(void *buf, int siz)
2880 return recv(fileno_stdin(), buf, siz, 0);
2888 int raw_read_stdin(void *buf, int siz)
2890 return read(fileno_stdin(), buf, siz);
2895 int raw_write_stdout(const void *buf, int siz)
2898 if (WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), buf, siz, &n, NULL))
2909 int raw_write_stdout(const void *buf,int siz)
2911 return write(fileno(stdout),(void*)buf,siz);
2919 int raw_write_stdout(const void *buf, int siz)
2921 return write(fileno_stdout(), buf, siz);