Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apr_buckets.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
21 #ifndef APR_BUCKETS_H
22 #define APR_BUCKETS_H
23 
24 #if defined(APR_BUCKET_DEBUG) && !defined(APR_RING_DEBUG)
25 #define APR_RING_DEBUG
26 #endif
27 
28 #include "apu.h"
29 #include "apr_network_io.h"
30 #include "apr_file_io.h"
31 #include "apr_general.h"
32 #include "apr_mmap.h"
33 #include "apr_errno.h"
34 #include "apr_ring.h"
35 #include "apr.h"
36 #if APR_HAVE_SYS_UIO_H
37 #include <sys/uio.h> /* for struct iovec */
38 #endif
39 #if APR_HAVE_STDARG_H
40 #include <stdarg.h>
41 #endif
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
54 #define APR_BUCKET_BUFF_SIZE 8000
55 
57 typedef enum {
61 
114 /*
115  * Forward declaration of the main types.
116  */
117 
121 typedef struct apr_bucket apr_bucket;
124 
127 
135  const char *name;
140  int num_func;
151  enum {
156  } is_metadata;
164  void (*destroy)(void *data);
165 
176  apr_status_t (*read)(apr_bucket *b, const char **str, apr_size_t *len,
177  apr_read_type_e block);
178 
193 
204 
212 
213 };
214 
224 struct apr_bucket {
244  void *data;
252  void (*free)(void *e);
255 };
256 
266  /*
267  * The apr_bucket_list structure doesn't actually need a name tag
268  * because it has no existence independent of struct apr_bucket_brigade;
269  * the ring macros are designed so that you can leave the name tag
270  * argument empty in this situation but apparently the Windows compiler
271  * doesn't like that.
272  */
273  APR_RING_HEAD(apr_bucket_list, apr_bucket) list;
276 };
277 
278 
283 
284 /*
285  * define APR_BUCKET_DEBUG if you want your brigades to be checked for
286  * validity at every possible instant. this will slow your code down
287  * substantially but is a very useful debugging tool.
288  */
289 #ifdef APR_BUCKET_DEBUG
290 
291 #define APR_BRIGADE_CHECK_CONSISTENCY(b) do { \
292  APR_RING_CHECK_CONSISTENCY(&(b)->list, apr_bucket, link); \
293  assert(b->p != NULL); \
294  assert(b->bucket_alloc != NULL); \
295 } while (0)
296 
297 #define APR_BUCKET_CHECK_CONSISTENCY(e) \
298  APR_RING_CHECK_ELEM_CONSISTENCY((e), apr_bucket, link)
299 
300 #else
301 
307 #define APR_BRIGADE_CHECK_CONSISTENCY(b)
308 
314 #define APR_BUCKET_CHECK_CONSISTENCY(e)
315 #endif
316 
317 
334 #define APR_BRIGADE_SENTINEL(b) APR_RING_SENTINEL(&(b)->list, apr_bucket, link)
335 
341 #define APR_BRIGADE_EMPTY(b) APR_RING_EMPTY(&(b)->list, apr_bucket, link)
342 
348 #define APR_BRIGADE_FIRST(b) APR_RING_FIRST(&(b)->list)
349 
354 #define APR_BRIGADE_LAST(b) APR_RING_LAST(&(b)->list)
355 
361 #define APR_BRIGADE_INSERT_HEAD(b, e) do { \
362  apr_bucket *ap__b = (e); \
363  APR_RING_INSERT_HEAD(&(b)->list, ap__b, apr_bucket, link); \
364  APR_BRIGADE_CHECK_CONSISTENCY((b)); \
365  } while (0)
366 
372 #define APR_BRIGADE_INSERT_TAIL(b, e) do { \
373  apr_bucket *ap__b = (e); \
374  APR_RING_INSERT_TAIL(&(b)->list, ap__b, apr_bucket, link); \
375  APR_BRIGADE_CHECK_CONSISTENCY((b)); \
376  } while (0)
377 
383 #define APR_BRIGADE_CONCAT(a, b) do { \
384  APR_RING_CONCAT(&(a)->list, &(b)->list, apr_bucket, link); \
385  APR_BRIGADE_CHECK_CONSISTENCY((a)); \
386  } while (0)
387 
393 #define APR_BRIGADE_PREPEND(a, b) do { \
394  APR_RING_PREPEND(&(a)->list, &(b)->list, apr_bucket, link); \
395  APR_BRIGADE_CHECK_CONSISTENCY((a)); \
396  } while (0)
397 
403 #define APR_BUCKET_INSERT_BEFORE(a, b) do { \
404  apr_bucket *ap__a = (a), *ap__b = (b); \
405  APR_RING_INSERT_BEFORE(ap__a, ap__b, link); \
406  APR_BUCKET_CHECK_CONSISTENCY(ap__a); \
407  } while (0)
408 
414 #define APR_BUCKET_INSERT_AFTER(a, b) do { \
415  apr_bucket *ap__a = (a), *ap__b = (b); \
416  APR_RING_INSERT_AFTER(ap__a, ap__b, link); \
417  APR_BUCKET_CHECK_CONSISTENCY(ap__a); \
418  } while (0)
419 
425 #define APR_BUCKET_NEXT(e) APR_RING_NEXT((e), link)
426 
431 #define APR_BUCKET_PREV(e) APR_RING_PREV((e), link)
432 
437 #define APR_BUCKET_REMOVE(e) APR_RING_REMOVE((e), link)
438 
443 #define APR_BUCKET_INIT(e) APR_RING_ELEM_INIT((e), link)
444 
451 #define APR_BUCKET_IS_METADATA(e) ((e)->type->is_metadata)
452 
458 #define APR_BUCKET_IS_FLUSH(e) ((e)->type == &apr_bucket_type_flush)
459 
464 #define APR_BUCKET_IS_EOS(e) ((e)->type == &apr_bucket_type_eos)
465 
470 #define APR_BUCKET_IS_FILE(e) ((e)->type == &apr_bucket_type_file)
471 
476 #define APR_BUCKET_IS_PIPE(e) ((e)->type == &apr_bucket_type_pipe)
477 
482 #define APR_BUCKET_IS_SOCKET(e) ((e)->type == &apr_bucket_type_socket)
483 
488 #define APR_BUCKET_IS_HEAP(e) ((e)->type == &apr_bucket_type_heap)
489 
494 #define APR_BUCKET_IS_TRANSIENT(e) ((e)->type == &apr_bucket_type_transient)
495 
500 #define APR_BUCKET_IS_IMMORTAL(e) ((e)->type == &apr_bucket_type_immortal)
501 #if APR_HAS_MMAP
502 
507 #define APR_BUCKET_IS_MMAP(e) ((e)->type == &apr_bucket_type_mmap)
508 #endif
509 
514 #define APR_BUCKET_IS_POOL(e) ((e)->type == &apr_bucket_type_pool)
515 
516 /*
517  * General-purpose reference counting for the various bucket types.
518  *
519  * Any bucket type that keeps track of the resources it uses (i.e.
520  * most of them except for IMMORTAL, TRANSIENT, and EOS) needs to
521  * attach a reference count to the resource so that it can be freed
522  * when the last bucket that uses it goes away. Resource-sharing may
523  * occur because of bucket splits or buckets that refer to globally
524  * cached data. */
525 
536  int refcount;
537 };
538 
539 /* ***** Reference-counted bucket types ***** */
540 
552  char *base;
556  void (*free_func)(void *data);
557 };
558 
582  const char *base;
594 };
595 
596 #if APR_HAS_MMAP
597 
607 };
608 #endif
609 
623 #if APR_HAS_MMAP
624 
626  int can_mmap;
627 #endif /* APR_HAS_MMAP */
628 
630 };
631 
642 #if APR_HAS_MMAP
644 #endif
646 };
647 
653 #define APR_BUCKET_ALLOC_SIZE APR_ALIGN_DEFAULT(2*sizeof(apr_bucket_structs))
654 
655 /* ***** Bucket Brigade Functions ***** */
664  apr_bucket_alloc_t *list)
665  __attribute__((nonnull(1,2)));
666 
673  __attribute__((nonnull(1)));
674 
687  __attribute__((nonnull(1)));
688 
705  apr_bucket *e,
707  __attribute__((nonnull(1,2)));
708 
721  apr_bucket *e)
722  __attribute__((nonnull(1,2)));
723 
737  apr_off_t point,
738  apr_bucket **after_point)
739  __attribute__((nonnull(1,3)));
740 
750  int read_all,
751  apr_off_t *length)
752  __attribute__((nonnull(1,3)));
753 
762  char *c,
763  apr_size_t *len)
764  __attribute__((nonnull(1,2,3)));
765 
774  char **c,
775  apr_size_t *len,
776  apr_pool_t *pool)
777  __attribute__((nonnull(1,2,3,4)));
778 
788  apr_bucket_brigade *bbIn,
789  apr_read_type_e block,
790  apr_off_t maxbytes)
791  __attribute__((nonnull(1,2)));
792 
803  struct iovec *vec, int *nvec)
804  __attribute__((nonnull(1,2,3)));
805 
815  apr_brigade_flush flush,
816  void *ctx,
817  va_list va)
818  __attribute__((nonnull(1)));
819 
844  apr_brigade_flush flush, void *ctx,
845  const char *str, apr_size_t nbyte)
846  __attribute__((nonnull(1,4)));
847 
858  apr_brigade_flush flush,
859  void *ctx,
860  const struct iovec *vec,
861  apr_size_t nvec)
862  __attribute__((nonnull(1,4)));
863 
873  apr_brigade_flush flush, void *ctx,
874  const char *str)
875  __attribute__((nonnull(1,4)));
876 
886  apr_brigade_flush flush, void *ctx,
887  const char c)
888  __attribute__((nonnull(1)));
889 
899  apr_brigade_flush flush,
900  void *ctx, ...)
901 #if defined(__GNUC__) && __GNUC__ >= 4
902  __attribute__((sentinel))
903 #endif
904  __attribute__((nonnull(1)))
905  ;
906 
918  apr_brigade_flush flush,
919  void *ctx,
920  const char *fmt, ...)
921  __attribute__((format(printf,4,5)))
922  __attribute__((nonnull(1)));
923 
935  apr_brigade_flush flush,
936  void *ctx,
937  const char *fmt, va_list va)
938  __attribute__((nonnull(1,4)));
939 
953  apr_file_t *f,
954  apr_off_t start,
955  apr_off_t len,
956  apr_pool_t *p)
957  __attribute__((nonnull(1,2,5)));
958 
959 
960 
961 /* ***** Bucket freelist functions ***** */
976 
986  apr_allocator_t *allocator)
987  __attribute__((nonnull(1)));
988 
994  __attribute__((nonnull(1)));
995 
1005  apr_size_t size)
1006  __attribute__((nonnull(1)));
1007 
1014  apr_bucket_alloc_t *list)
1015  __attribute__((nonnull(2)));
1016 
1021 APR_DECLARE_NONSTD(void) apr_bucket_free(void *block)
1022  __attribute__((nonnull(1)));
1023 
1024 
1025 /* ***** Bucket Functions ***** */
1032 #define apr_bucket_destroy(e) do { \
1033  (e)->type->destroy((e)->data); \
1034  (e)->free(e); \
1035  } while (0)
1036 
1048 #define apr_bucket_delete(e) do { \
1049  APR_BUCKET_REMOVE(e); \
1050  apr_bucket_destroy(e); \
1051  } while (0)
1052 
1120 #define apr_bucket_read(e,str,len,block) (e)->type->read(e, str, len, block)
1121 
1128 #define apr_bucket_setaside(e,p) (e)->type->setaside(e,p)
1129 
1140 #define apr_bucket_split(e,point) (e)->type->split(e, point)
1141 
1147 #define apr_bucket_copy(e,c) (e)->type->copy(e, c)
1148 
1149 /* Bucket type handling */
1150 
1161  apr_pool_t *pool);
1162 
1171  apr_pool_t *pool);
1172 
1181  apr_size_t point);
1182 
1191  apr_bucket **c);
1192 
1203 
1210 /* There is no apr_bucket_read_notimpl, because it is a required function
1211  */
1212 
1213 
1214 /* All of the bucket types implemented by the core */
1235 #if APR_HAS_MMAP
1236 
1240 #endif
1241 
1267 
1268 
1269 /* ***** Simple buckets ***** */
1270 
1283  apr_size_t point);
1284 
1296  apr_bucket **b);
1297 
1298 
1299 /* ***** Shared, reference-counted buckets ***** */
1300 
1316  apr_off_t start,
1317  apr_size_t length);
1318 
1327 APR_DECLARE(int) apr_bucket_shared_destroy(void *data);
1328 
1341  apr_size_t point);
1342 
1353  apr_bucket **b);
1354 
1355 
1356 /* ***** Functions to Create Buckets of varying types ***** */
1357 /*
1358  * Each bucket type foo has two initialization functions:
1359  * apr_bucket_foo_make which sets up some already-allocated memory as a
1360  * bucket of type foo; and apr_bucket_foo_create which allocates memory
1361  * for the bucket, calls apr_bucket_make_foo, and initializes the
1362  * bucket's list pointers. The apr_bucket_foo_make functions are used
1363  * inside the bucket code to change the type of buckets in place;
1364  * other code should call apr_bucket_foo_create. All the initialization
1365  * functions change nothing if they fail.
1366  */
1367 
1375 
1384  __attribute__((nonnull(1)));
1385 
1394  __attribute__((nonnull(1)));
1395 
1404  __attribute__((nonnull(1)));
1405 
1414  apr_size_t nbyte,
1415  apr_bucket_alloc_t *list)
1416  __attribute__((nonnull(1,3)));
1417 
1426  const char *buf,
1427  apr_size_t nbyte)
1428  __attribute__((nonnull(1,2)));
1429 
1438  apr_size_t nbyte,
1439  apr_bucket_alloc_t *list)
1440  __attribute__((nonnull(1,3)));
1441 
1450  const char *buf,
1451  apr_size_t nbyte)
1452  __attribute__((nonnull(1,2)));
1453 
1468 APR_DECLARE(apr_bucket *) apr_bucket_heap_create(const char *buf,
1469  apr_size_t nbyte,
1470  void (*free_func)(void *data),
1471  apr_bucket_alloc_t *list)
1472  __attribute__((nonnull(1,4)));
1482 APR_DECLARE(apr_bucket *) apr_bucket_heap_make(apr_bucket *b, const char *buf,
1483  apr_size_t nbyte,
1484  void (*free_func)(void *data))
1485  __attribute__((nonnull(1,2)));
1486 
1496 APR_DECLARE(apr_bucket *) apr_bucket_pool_create(const char *buf,
1497  apr_size_t length,
1498  apr_pool_t *pool,
1499  apr_bucket_alloc_t *list)
1500  __attribute__((nonnull(1,3,4)));
1501 
1510 APR_DECLARE(apr_bucket *) apr_bucket_pool_make(apr_bucket *b, const char *buf,
1511  apr_size_t length,
1512  apr_pool_t *pool)
1513  __attribute__((nonnull(1,2,4)));
1514 
1515 #if APR_HAS_MMAP
1516 
1526  apr_off_t start,
1527  apr_size_t length,
1528  apr_bucket_alloc_t *list)
1529  __attribute__((nonnull(1,4)));
1530 
1541  apr_off_t start,
1542  apr_size_t length)
1543  __attribute__((nonnull(1,2)));
1544 #endif
1545 
1553  apr_bucket_alloc_t *list)
1554  __attribute__((nonnull(1,2)));
1562  apr_socket_t *thissock)
1563  __attribute__((nonnull(1,2)));
1564 
1572  apr_bucket_alloc_t *list)
1573  __attribute__((nonnull(1,2)));
1574 
1582  apr_file_t *thispipe)
1583  __attribute__((nonnull(1,2)));
1584 
1602  apr_off_t offset,
1603  apr_size_t len,
1604  apr_pool_t *p,
1605  apr_bucket_alloc_t *list)
1606  __attribute__((nonnull(1,4,5)));
1607 
1619  apr_off_t offset,
1620  apr_size_t len, apr_pool_t *p)
1621  __attribute__((nonnull(1,2,5)));
1622 
1630  int enabled)
1631  __attribute__((nonnull(1)));
1632 
1644  apr_size_t size);
1645 
1647 #ifdef __cplusplus
1648 }
1649 #endif
1650 
1651 #endif /* !APR_BUCKETS_H */
apr_bucket_brigade apr_bucket_brigade apr_status_t apr_status_t apr_status_t apr_status_t apr_status_t apr_status_t apr_status_t apr_brigade_vputstrs(apr_bucket_brigade *b, apr_brigade_flush flush, void *ctx, va_list va) __attribute__((nonnull(1)))
size_t apr_size_t
Definition: apr.h:375
apr_bucket * apr_bucket_shared_make(apr_bucket *b, void *data, apr_off_t start, apr_size_t length)
apr_file_t * fd
Definition: apr_buckets.h:619
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_pool_create(const char *buf, apr_size_t length, apr_pool_t *pool, apr_bucket_alloc_t *list) __attribute__((nonnull(1
Definition: apr_buckets.h:59
Definition: apr_buckets.h:546
APR Network library.
apr_status_t apr_bucket_setaside_noop(apr_bucket *data, apr_pool_t *pool)
Definition: apr_arch_file_io.h:107
char * base
Definition: apr_buckets.h:552
Definition: apr_buckets.h:153
void * data
Definition: apr_buckets.h:244
APR_RING_ENTRY(apr_bucket) link
apr_status_t apr_bucket_shared_copy(apr_bucket *a, apr_bucket **b)
int can_mmap
Definition: apr_buckets.h:626
apr_status_t __attribute__((nonnull(1)))
apr_size_t apr_bucket_alloc_aligned_floor(apr_bucket_alloc_t *list, apr_size_t size) __attribute__((nonnull(1)))
struct apr_bucket_alloc_t apr_bucket_alloc_t
Definition: apr_buckets.h:123
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:552
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_pool_make(apr_bucket *b, const char *buf, apr_size_t length, apr_pool_t *pool) __attribute__((nonnull(1
apr_bucket_brigade apr_bucket_brigade apr_status_t apr_brigade_partition(apr_bucket_brigade *b, apr_off_t point, apr_bucket **after_point) __attribute__((nonnull(1
Definition: apr_buckets.h:615
apr_bucket_brigade apr_bucket_brigade apr_status_t apr_status_t apr_brigade_length(apr_bucket_brigade *bb, int read_all, apr_off_t *length) __attribute__((nonnull(1
apr_status_t apr_status_t apr_status_t apr_status_t apr_brigade_putc(apr_bucket_brigade *b, apr_brigade_flush flush, void *ctx, const char c) __attribute__((nonnull(1)))
apr_bucket_alloc_t * bucket_alloc
Definition: apr_buckets.h:275
apr_bucket apr_bucket * apr_bucket_immortal_make(apr_bucket *b, const char *buf, apr_size_t nbyte) __attribute__((nonnull(1
struct apr_allocator_t apr_allocator_t
Definition: apr_allocator.h:41
apr_pool_t * readpool
Definition: apr_buckets.h:622
int apr_bucket_shared_destroy(void *data)
#define APR_DECLARE_NONSTD(x)
Definition: macros.h:7
Definition: apr_buckets.h:155
apr_bucket * apr_bucket_flush_create(apr_bucket_alloc_t *list) __attribute__((nonnull(1)))
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_pool
apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_transient_make(apr_bucket *b, const char *buf, apr_size_t nbyte) __attribute__((nonnull(1
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_pipe_make(apr_bucket *b, apr_file_t *thispipe) __attribute__((nonnull(1
apr_bucket_brigade apr_status_t apr_brigade_destroy(apr_bucket_brigade *b) __attribute__((nonnull(1)))
void apr_bucket_destroy_noop(void *data)
apr_pool_t * p
Definition: apr_buckets.h:264
apr_bucket_refcount refcount
Definition: apr_buckets.h:548
apr_bucket * apr_bucket_immortal_create(const char *buf, apr_size_t nbyte, apr_bucket_alloc_t *list) __attribute__((nonnull(1
apr_status_t apr_bucket apr_bucket_alloc_t * apr_bucket_alloc_create(apr_pool_t *p)
apr_bucket b
Definition: apr_buckets.h:639
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_eos
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_transient
Definition: apr_buckets.h:258
APR File I/O Handling.
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_flush
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_socket_create(apr_socket_t *thissock, apr_bucket_alloc_t *list) __attribute__((nonnull(1
APR Miscellaneous library routines.
apr_status_t apr_bucket_copy_notimpl(apr_bucket *e, apr_bucket **c)
apr_size_t alloc_len
Definition: apr_buckets.h:554
dav_buffer apr_size_t size
Definition: mod_dav.h:457
apr_bucket_refcount refcount
Definition: apr_buckets.h:604
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_file
apr_status_t(* apr_brigade_flush)(apr_bucket_brigade *bb, void *ctx)
Definition: apr_buckets.h:282
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_socket_make(apr_bucket *b, apr_socket_t *thissock) __attribute__((nonnull(1
apr_bucket_brigade * apr_brigade_split_ex(apr_bucket_brigade *b, apr_bucket *e, apr_bucket_brigade *a) __attribute__((nonnull(1
apr_status_t(* setaside)(apr_bucket *e, apr_pool_t *pool)
Definition: apr_buckets.h:192
apr_bucket_file file
Definition: apr_buckets.h:645
const char * base
Definition: apr_buckets.h:582
Definition: apr_mmap.h:62
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_heap_create(const char *buf, apr_size_t nbyte, void(*free_func)(void *data), apr_bucket_alloc_t *list) __attribute__((nonnull(1
apr_bucket * apr_bucket_flush_make(apr_bucket *b) __attribute__((nonnull(1)))
apr_status_t apr_bucket_shared_split(apr_bucket *b, apr_size_t point)
apr_bucket_brigade * bb
Definition: mod_dav.h:552
APR_RING_HEAD(apr_bucket_list, apr_bucket) list
apr_bucket * apr_bucket_eos_make(apr_bucket *b) __attribute__((nonnull(1)))
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_status_t apr_bucket_file_enable_mmap(apr_bucket *b, int enabled) __attribute__((nonnull(1)))
apr_pool_t * pool
Definition: apr_buckets.h:589
apr_status_t apr_brigade_cleanup(void *data) __attribute__((nonnull(1)))
apr_status_t(* copy)(apr_bucket *e, apr_bucket **c)
Definition: apr_buckets.h:211
apr_status_t apr_bucket_split_notimpl(apr_bucket *data, apr_size_t point)
apr_status_t(* split)(apr_bucket *e, apr_size_t point)
Definition: apr_buckets.h:203
Definition: apr_buckets.h:224
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_mmap_create(apr_mmap_t *mm, apr_off_t start, apr_size_t length, apr_bucket_alloc_t *list) __attribute__((nonnull(1
Definition: apr_arch_networkio.h:37
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_file_make(apr_bucket *b, apr_file_t *fd, apr_off_t offset, apr_size_t len, apr_pool_t *p) __attribute__((nonnull(1
Definition: apr_buckets.h:638
void(* destroy)(void *data)
Definition: apr_buckets.h:164
APR Error Codes.
Definition: apr_buckets.h:58
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_pipe_create(apr_file_t *thispipe, apr_bucket_alloc_t *list) __attribute__((nonnull(1
Definition: apr_buckets.h:564
apr_bucket_brigade * apr_brigade_create(apr_pool_t *p, apr_bucket_alloc_t *list) __attribute__((nonnull(1
#define APR_DECLARE_DATA
Definition: macros.h:17
APR Platform Definitions.
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_file_create(apr_file_t *fd, apr_off_t offset, apr_size_t len, apr_pool_t *p, apr_bucket_alloc_t *list) __attribute__((nonnull(1
apr_bucket apr_bucket apr_bucket * apr_bucket_transient_create(const char *buf, apr_size_t nbyte, apr_bucket_alloc_t *list) __attribute__((nonnull(1
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_immortal
apr_bucket_alloc_t * apr_bucket_alloc_create_ex(apr_allocator_t *allocator) __attribute__((nonnull(1)))
apr_status_t(* read)(apr_bucket *b, const char **str, apr_size_t *len, apr_read_type_e block)
Definition: apr_buckets.h:176
APR MMAP routines.
apr_status_t apr_bucket * apr_brigade_insert_file(apr_bucket_brigade *bb, apr_file_t *f, apr_off_t start, apr_off_t len, apr_pool_t *p) __attribute__((nonnull(1
Definition: apr_buckets.h:534
void(* free)(void *e)
Definition: apr_buckets.h:252
apr_status_t apr_brigade_write(apr_bucket_brigade *b, apr_brigade_flush flush, void *ctx, const char *str, apr_size_t nbyte) __attribute__((nonnull(1
int num_func
Definition: apr_buckets.h:140
apr_status_t apr_bucket_simple_copy(apr_bucket *a, apr_bucket **b)
apr_bucket_brigade apr_bucket_brigade apr_status_t apr_status_t apr_status_t apr_status_t apr_brigade_pflatten(apr_bucket_brigade *bb, char **c, apr_size_t *len, apr_pool_t *pool) __attribute__((nonnull(1
apr_read_type_e
Definition: apr_buckets.h:57
apr_off_t start
Definition: apr_buckets.h:242
apr_bucket_brigade apr_bucket_brigade apr_status_t apr_status_t apr_status_t apr_status_t apr_status_t apr_brigade_split_line(apr_bucket_brigade *bbOut, apr_bucket_brigade *bbIn, apr_read_type_e block, apr_off_t maxbytes) __attribute__((nonnull(1
#define APR_DECLARE(x)
Definition: macros.h:6
void apr_bucket_alloc_destroy(apr_bucket_alloc_t *list) __attribute__((nonnull(1)))
int refcount
Definition: apr_buckets.h:536
apr_status_t apr_bucket_file_set_buf_size(apr_bucket *e, apr_size_t size)
dav_buffer const char * str
Definition: mod_dav.h:461
apr_status_t apr_status_t apr_status_t apr_brigade_puts(apr_bucket_brigade *bb, apr_brigade_flush flush, void *ctx, const char *str) __attribute__((nonnull(1
apr_bucket_brigade apr_bucket_brigade apr_status_t apr_status_t apr_status_t apr_status_t apr_status_t apr_status_t apr_brigade_to_iovec(apr_bucket_brigade *b, struct iovec *vec, int *nvec) __attribute__((nonnull(1
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_heap
Definition: apr_buckets.h:131
apr_size_t read_size
Definition: apr_buckets.h:629
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_status_t apr_brigade_printf(apr_bucket_brigade *b, apr_brigade_flush flush, void *ctx, const char *fmt,...) __attribute__((format(printf
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_mmap_make(apr_bucket *b, apr_mmap_t *mm, apr_off_t start, apr_size_t length) __attribute__((nonnull(1
typedef void(APR_THREAD_FUNC *PFN_HSE_IO_COMPLETION)(EXTENSION_CONTROL_BLOCK *ecb
apr_bucket_alloc_t * list
Definition: apr_buckets.h:593
int apr_status_t
Definition: apr_errno.h:44
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_pipe
const apr_bucket_type_t * type
Definition: apr_buckets.h:228
apr_status_t apr_brigade_putstrs(apr_bucket_brigade *b, apr_brigade_flush flush, void *ctx,...) __attribute__((nonnull(1)))
apr_bucket_refcount refcount
Definition: apr_buckets.h:617
apr_status_t apr_bucket_setaside_notimpl(apr_bucket *data, apr_pool_t *pool)
apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket apr_bucket * apr_bucket_heap_make(apr_bucket *b, const char *buf, apr_size_t nbyte, void(*free_func)(void *data)) __attribute__((nonnull(1
apr_bucket_mmap mmap
Definition: apr_buckets.h:643
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_socket
apr_bucket_pool pool
Definition: apr_buckets.h:641
Definition: apr_buckets.h:602
apr_bucket * apr_bucket_eos_create(apr_bucket_alloc_t *list)
apr_status_t apr_brigade_vprintf(apr_bucket_brigade *b, apr_brigade_flush flush, void *ctx, const char *fmt, va_list va) __attribute__((nonnull(1
apr_bucket_alloc_t * list
Definition: apr_buckets.h:254
void apr_bucket_free(void *block) __attribute__((nonnull(1)))
enum apr_bucket_type_t::@13 is_metadata
apr_bucket_brigade apr_bucket_brigade apr_status_t apr_status_t apr_status_t apr_brigade_flatten(apr_bucket_brigade *bb, char *c, apr_size_t *len) __attribute__((nonnull(1
off_t apr_off_t
Definition: apr.h:377
apr_bucket_heap heap
Definition: apr_buckets.h:640
apr_bucket_brigade apr_bucket_brigade * apr_brigade_split(apr_bucket_brigade *b, apr_bucket *e) __attribute__((nonnull(1
apr_status_t apr_status_t apr_brigade_writev(apr_bucket_brigade *b, apr_brigade_flush flush, void *ctx, const struct iovec *vec, apr_size_t nvec) __attribute__((nonnull(1
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_mmap
apr_status_t apr_bucket_simple_split(apr_bucket *b, apr_size_t point)
void * apr_bucket_alloc(apr_size_t size, apr_bucket_alloc_t *list) __attribute__((nonnull(2)))
apr_size_t length
Definition: apr_buckets.h:234
apr_bucket_heap heap
Definition: apr_buckets.h:576
APR Rings.
const char * name
Definition: apr_buckets.h:135
apr_mmap_t * mmap
Definition: apr_buckets.h:606