Lines Matching refs:buf

295 /* NOTE: buf must be at least DAV_TIMEBUF_SIZE chars in size */
296 static void dav_format_time(int style, apr_time_t sec, char *buf, apr_size_t buflen)
307 apr_snprintf(buf, buflen, "%.4d-%.2d-%.2dT%.2d:%.2d:%.2dZ",
316 apr_snprintf(buf, buflen, "%s, %.2d %s %d %.2d:%.2d:%.2d GMT",
383 status = apr_file_read(inf, pbuf->buf, &len);
410 status = apr_file_write_full(outf, pbuf->buf, len, NULL);
1004 const void *buf, apr_size_t bufsize)
1008 status = apr_file_write_full(stream->f, buf, bufsize, NULL);
1515 fsctx->path1.buf[fsctx->path1.cur_len++] = '/';
1516 fsctx->path1.buf[fsctx->path1.cur_len] = '\0'; /* in pad area */
1519 if (fsctx->path2.buf != NULL) {
1521 fsctx->path2.buf[fsctx->path2.cur_len++] = '/';
1522 fsctx->path2.buf[fsctx->path2.cur_len] = '\0'; /* in pad area */
1535 if ((status = apr_dir_open(&dirp, fsctx->path1.buf, pool)) != APR_SUCCESS) {
1572 status = apr_stat(&fsctx->info1.finfo, fsctx->path1.buf,
1586 if (fsctx->path2.buf != NULL) {
1591 fsctx->info1.pathname = fsctx->path1.buf;
1592 fsctx->info2.pathname = fsctx->path2.buf;
1595 fsctx->res1.uri = fsctx->uri_buf.buf;
1617 fsctx->uri_buf.buf[fsctx->uri_buf.cur_len - 1] = '/';
1618 fsctx->uri_buf.buf[fsctx->uri_buf.cur_len] = '\0';
1653 fsctx->path1.buf[fsctx->path1.cur_len - 1] = '\0';
1664 fsctx->path1.buf[fsctx->path1.cur_len - 1] = '/';
1672 apr_size_t len = strlen(fsctx->locknull_buf.buf + offset);
1681 fsctx->locknull_buf.buf + offset, len + 1, 0);
1683 fsctx->locknull_buf.buf + offset, len + 1, 0);
1684 if (fsctx->path2.buf != NULL) {
1686 fsctx->locknull_buf.buf + offset,
1691 fsctx->info1.pathname = fsctx->path1.buf;
1692 fsctx->info2.pathname = fsctx->path2.buf;
1695 fsctx->res1.uri = fsctx->uri_buf.buf;
1750 fsctx->path1.buf[--fsctx->path1.cur_len] = '\0';
1751 fsctx->uri_buf.buf[--fsctx->uri_buf.cur_len] = '\0';
1752 if (fsctx->path2.buf != NULL) {
1753 fsctx->path2.buf[--fsctx->path2.cur_len] = '\0';
1797 fsctx.info1.pathname = fsctx.path1.buf;
1822 fsctx.info2.pathname = fsctx.path2.buf;
1830 && fsctx.uri_buf.buf[fsctx.uri_buf.cur_len - 1] != '/') {
1833 fsctx.uri_buf.buf[fsctx.uri_buf.cur_len++] = '/';
1834 fsctx.uri_buf.buf[fsctx.uri_buf.cur_len] = '\0';
1838 fsctx.res1.uri = fsctx.uri_buf.buf;
1920 char buf[DAV_TIMEBUF_SIZE];
1942 buf, sizeof(buf));
1943 value = buf;
1951 apr_snprintf(buf, sizeof(buf), "%" APR_OFF_T_FMT, resource->info->finfo.size);
1952 value = buf;
1962 buf, sizeof(buf));
1963 value = buf;