Searched defs:buf (Results 1 - 25 of 80) sorted by relevance

1234

/httpd/server/
H A Dapreq_error.c24 static char *stuffbuffer(char *buf, apr_size_t bufsize, const char *s) argument
26 apr_cpystrn(buf,s,bufsize);
27 return buf;
98 APREQ_DECLARE(char *) apreq_strerror(apr_status_t statcode, char *buf, argument
102 return apr_strerror(statcode, buf, bufsize);
103 return stuffbuffer(buf, bufsize, apreq_error_string(statcode));
H A Derror_bucket.c42 const char *buf, apr_pool_t *p)
48 h->data = apr_pstrdup(p, buf);
55 AP_DECLARE(apr_bucket *) ap_bucket_error_create(int error, const char *buf, argument
67 return ap_bucket_error_make(b, error, buf, p);
41 ap_bucket_error_make(apr_bucket *b, int error, const char *buf, apr_pool_t *p) argument
H A Dutil_md5.c53 AP_DECLARE(char *) ap_md5_binary(apr_pool_t *p, const unsigned char *buf, int length) argument
67 apr_md5_update(&my_md5, buf, (unsigned int)length);
153 unsigned char buf[4096]; /* keep this a multiple of 64 */ local
158 nbytes = sizeof(buf);
159 while (apr_file_read(infile, buf, &nbytes) == APR_SUCCESS) {
160 apr_md5_update(&context, buf, nbytes);
161 nbytes = sizeof(buf);
H A Dapreq_cookie.c430 char *buf, apr_size_t len)
483 return apr_snprintf(buf, len, format, c->v.name, c->v.data,
522 return apr_snprintf(buf, len, format, c->v.name, c->v.data, version,
429 apreq_cookie_serialize(const apreq_cookie_t *c, char *buf, apr_size_t len) argument
H A Dapreq_parser_multipart.c80 const char *buf; local
90 s = apr_bucket_read(e, &buf, &blen, APR_BLOCK_READ);
100 if (strncmp(buf,start_string,bytes_to_check) != 0)
123 const char *buf; local
129 s = apr_bucket_read(e, &buf, &len, APR_BLOCK_READ);
141 if (strncmp(bdry + off, buf, MIN(len, blen - off)) == 0) {
163 * and retest buf against the full bdry.
182 const char *match = apr_strmatch(pattern, buf, len);
184 idx = match - buf;
186 idx = apreq_index(buf
[all...]
/httpd/include/
H A Dutil_varbuf.h50 char *buf; member in struct:ap_varbuf
84 * Grow a resizable buffer. If the vb->buf cannot be grown in place, it will
90 * @note ap_varbuf_grow() will usually at least double vb->buf's size with
115 * @param len The number of characters of *str to concatenate to the buf
117 * @note if len != 0, vb->buf will always be NUL-terminated
134 * copy. It works even if 0-bytes are embedded in vb->buf, prepend, or
137 * strlen(vb->buf).
169 * strlen(vb->buf) first.
186 * strlen(vb->buf) first.
/httpd/test/
H A Dtest-writev.c54 char buf[100]; local
88 for( i = 0; i < sizeof( buf ); ++i ) {
89 buf[i] = 'x';
91 vector[0].iov_base = buf;
92 vector[0].iov_len = sizeof(buf);
93 vector[1].iov_base = buf;
94 vector[1].iov_len = sizeof(buf);
95 vector[2].iov_base = buf;
96 vector[2].iov_len = sizeof(buf);
H A Dtime-sem.c215 struct semid_ds *buf; member in union:semun
/httpd/modules/proxy/
H A Dajp_link.c23 char *buf; local
30 buf = (char *)msg->buf;
35 status = apr_socket_send(sock, buf, &written);
42 buf += written;
49 static apr_status_t ilink_read(apr_socket_t *sock, apr_byte_t *buf, argument
58 status = apr_socket_recv(sock, (char *)(buf + rdlen), &length);
82 status = ilink_read(sock, msg->buf, hlen);
98 status = ilink_read(sock, msg->buf + hlen, blen);
111 blen, (int)msg->buf[hle
[all...]
H A Dajp.h113 apr_byte_t *buf; member in struct:ajp_msg
375 * @param buf buffer pointer for dump message
379 apr_size_t count, char **buf);
H A Dajp_msg.c39 * @param buf buffer pointer for dump message
43 apr_size_t count, char **buf)
59 *buf = apr_palloc(pool, bl);
60 if (!*buf)
62 apr_snprintf(*buf, bl,
66 current = *buf + strlen(*buf);
69 rl = bl - (current - *buf);
81 x = msg->buf[i + j];
91 x = msg->buf[
42 ajp_msg_dump(apr_pool_t *pool, ajp_msg_t *msg, char *err, apr_size_t count, char **buf) argument
119 char *buf, *next; local
204 apr_byte_t *buf; local
[all...]
/httpd/modules/debugging/
H A Dmod_dumpio.c70 const char *buf; local
72 apr_status_t rv = apr_bucket_read(b, &buf, &nbytes, APR_BLOCK_READ);
84 memcpy(xlatebuf, buf, logbytes);
103 b->type->name, (int)logbytes, buf);
105 buf += logbytes;
/httpd/modules/examples/
H A Dmod_case_filter.c70 char *buf; local
85 buf = apr_bucket_alloc(len, c->bucket_alloc);
87 buf[n] = apr_toupper(data[n]);
89 pbktOut = apr_bucket_heap_create(buf, len, apr_bucket_free,
H A Dmod_case_filter_in.c92 char *buf; local
112 buf = ap_malloc(len);
114 buf[n] = apr_toupper(data[n]);
116 pbktOut = apr_bucket_heap_create(buf, len, 0, c->bucket_alloc);
/httpd/modules/ssl/
H A Dssl_engine_log.c122 char buf[HUGE_STRING_LEN]; local
126 apr_vsnprintf(buf, sizeof buf, format, ap);
128 msglen = strlen(buf);
173 n = BIO_read(bio, buf + msglen, sizeof buf - msglen - 1);
175 buf[msglen + n] = '\0';
184 apr_snprintf(buf + msglen, sizeof buf - msglen,
189 ap_log_rerror(file, line, APLOG_MODULE_INDEX, level, rv, r, "%s", buf);
[all...]
H A Dssl_engine_rand.c178 char buf[50]; local
180 apr_snprintf(buf, sizeof(buf), "%.0f",
182 i = atoi(buf)+1;
H A Dssl_util_ocsp.c66 char buf[HUGE_STRING_LEN]; local
106 while ((len = BIO_read(request, buf, sizeof buf)) > 0) {
107 char *wbuf = buf;
H A Dssl_util.c97 static char buf[MAX_STRING_LEN]; local
110 buf[k++] = c;
112 buf[k] = NUL;
115 return buf;
/httpd/os/win32/
H A Dap_regkey.c453 char *buf; local
478 buf = apr_palloc(pool, valuelen);
479 rv = apr_conv_ucs2_to_utf8(value, &size, buf, &valuelen);
484 buf[(alloclen - valuelen)] = '\0';
485 buf[(alloclen - valuelen) + 1] = '\0';
494 buf = (char *)value;
495 if (size < 2 || buf[size - 1] != '\0' || buf[size - 2] != '\0') {
496 buf = apr_palloc(pool, size + 2);
497 memcpy(buf, valu
542 apr_wchar_t *buf; local
581 char *buf; local
[all...]
/httpd/support/
H A Dpasswd_common.c55 const char *buf = "Error: out of memory\n"; local
56 int written, count = strlen(buf);
58 written = write(STDERR_FILENO, buf, count);
62 buf += written;
122 char buf[MAX_STRING_LEN + 1]; local
130 if (apr_file_read_full(file_stdin, buf, sizeof(buf) - 1,
132 || nread == sizeof(buf) - 1) {
135 buf[nread] = '\0';
136 if (nread >= 1 && buf[nrea
[all...]
/httpd/modules/cache/
H A Dmod_socache_memcache.c201 char buf[MC_KEY_LEN]; local
204 if (socache_mc_id2key(ctx, id, idlen, buf, sizeof buf)) {
214 rv = apr_memcache_set(ctx->mc, buf, (char*)ucaData, nData,
220 "with %d bytes of data", buf, nData);
233 char buf[MC_KEY_LEN], *data; local
236 if (socache_mc_id2key(ctx, id, idlen, buf, sizeof buf)) {
243 rv = apr_memcache_getp(ctx->mc, p, buf, &data, &data_len, NULL);
267 char buf[MC_KEY_LE local
[all...]
/httpd/modules/cluster/
H A Dmod_heartbeat.c49 char buf[256]; local
81 len = apr_snprintf(buf, sizeof(buf), msg_format, MSG_VERSION, ready, busy);
100 rv = apr_socket_sendto(sock, ctx->mcast_addr, 0, buf, &len);
/httpd/modules/filters/
H A Dmod_sed.c101 * Allocate a new bucket from buf and sz and append to ctx->bb
103 static apr_status_t append_bucket(sed_filter_ctxt* ctx, char* buf, int sz) argument
109 b = apr_bucket_pool_create(buf, sz, ctx->r->pool,
115 b = apr_bucket_transient_create(buf, sz,
150 static apr_status_t sed_write_output(void *dummy, char *buf, int sz) argument
164 memcpy(ctx->curoutbuf, buf, remainbytes);
165 buf += remainbytes;
176 char* newbuf = apr_pmemdup(ctx->tpool, buf, sz);
184 memcpy(ctx->curoutbuf, buf, sz);
189 memcpy(ctx->curoutbuf, buf, s
344 const char *buf = NULL; local
439 const char *buf = NULL; local
[all...]
/httpd/modules/mappers/
H A Dmod_vhost_alias.c237 static APR_INLINE void vhost_alias_checkspace(request_rec *r, char *buf, argument
241 if (*pdest + size > buf + HUGE_STRING_LEN) {
244 r->filename = apr_pstrcat(r->pool, r->filename, buf, NULL);
247 r->filename = apr_pstrdup(r->pool, buf);
249 *pdest = buf;
261 char buf[HUGE_STRING_LEN]; local
281 dest = buf;
285 vhost_alias_checkspace(r, buf, &dest, 1);
294 vhost_alias_checkspace(r, buf, &dest, 1);
302 vhost_alias_checkspace(r, buf,
[all...]
/httpd/os/unix/
H A Dunixd.c239 struct semid_ds *buf; member in union:semun
244 struct semid_ds buf = { { 0 } }; local
247 buf.sem_perm.uid = ap_unixd_config.user_id;
248 buf.sem_perm.gid = ap_unixd_config.group_id;
249 buf.sem_perm.mode = 0600;
250 ick.buf = &buf;

Completed in 26 milliseconds

1234