Lines Matching defs:buf
58 # define lstat(path, buf) stat(path, buf)
66 ssize_t readlink(const char *pathname, char *buf, size_t bufsiz)
362 char *buf, *copy = NULL;
372 buf = app_malloc(buflen, "filename buffer");
397 if (BIO_snprintf(buf, buflen, "%s%s%s",
400 if (lstat(buf, &st) < 0)
402 if (S_ISLNK(st.st_mode) && handle_symlink(filename, buf) == 0)
404 errs += do_file(filename, buf, h);
420 BIO_snprintf(buf, buflen, "%08x.%s%d", bp->hash,
424 ep->filename, buf);
430 BIO_snprintf(buf, buflen, "%s%s%n%08x.%s%d",
435 ep->filename, &buf[n]);
436 if (unlink(buf) < 0 && errno != ENOENT) {
439 opt_getprog(), buf, strerror(errno));
442 if (symlink(ep->filename, buf) < 0) {
452 BIO_snprintf(buf, buflen, "%s%s%n%08x.%s%d",
457 &buf[n]);
458 if (unlink(buf) < 0 && errno != ENOENT) {
461 opt_getprog(), buf, strerror(errno));
475 OPENSSL_free(buf);