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 };
629 
640 #if APR_HAS_MMAP
642 #endif
644 };
645 
651 #define APR_BUCKET_ALLOC_SIZE APR_ALIGN_DEFAULT(2*sizeof(apr_bucket_structs))
652 
653 /* ***** Bucket Brigade Functions ***** */
662  apr_bucket_alloc_t *list)
663  __attribute__((nonnull(1,2)));
664 
671  __attribute__((nonnull(1)));
672 
685  __attribute__((nonnull(1)));
686 
703  apr_bucket *e,
705  __attribute__((nonnull(1,2)));
706 
719  apr_bucket *e)
720  __attribute__((nonnull(1,2)));
721 
735  apr_off_t point,
736  apr_bucket **after_point)
737  __attribute__((nonnull(1,3)));
738 
748  int read_all,
749  apr_off_t *length)
750  __attribute__((nonnull(1,3)));
751 
760  char *c,
761  apr_size_t *len)
762  __attribute__((nonnull(1,2,3)));
763 
772  char **c,
773  apr_size_t *len,
774  apr_pool_t *pool)
775  __attribute__((nonnull(1,2,3,4)));
776 
786  apr_bucket_brigade *bbIn,
787  apr_read_type_e block,
788  apr_off_t maxbytes)
789  __attribute__((nonnull(1,2)));
790 
801  struct iovec *vec, int *nvec)
802  __attribute__((nonnull(1,2,3)));
803 
813  apr_brigade_flush flush,
814  void *ctx,
815  va_list va)
816  __attribute__((nonnull(1)));
817 
842  apr_brigade_flush flush, void *ctx,
843  const char *str, apr_size_t nbyte)
844  __attribute__((nonnull(1,4)));
845 
856  apr_brigade_flush flush,
857  void *ctx,
858  const struct iovec *vec,
859  apr_size_t nvec)
860  __attribute__((nonnull(1,4)));
861 
871  apr_brigade_flush flush, void *ctx,
872  const char *str)
873  __attribute__((nonnull(1,4)));
874 
884  apr_brigade_flush flush, void *ctx,
885  const char c)
886  __attribute__((nonnull(1)));
887 
897  apr_brigade_flush flush,
898  void *ctx, ...)
899 #if defined(__GNUC__) && __GNUC__ >= 4
900  __attribute__((sentinel))
901 #endif
902  __attribute__((nonnull(1)))
903  ;
904 
916  apr_brigade_flush flush,
917  void *ctx,
918  const char *fmt, ...)
919  __attribute__((format(printf,4,5)))
920  __attribute__((nonnull(1)));
921 
933  apr_brigade_flush flush,
934  void *ctx,
935  const char *fmt, va_list va)
936  __attribute__((nonnull(1,4)));
937 
951  apr_file_t *f,
952  apr_off_t start,
953  apr_off_t len,
954  apr_pool_t *p)
955  __attribute__((nonnull(1,2,5)));
956 
957 
958 
959 /* ***** Bucket freelist functions ***** */
974 
984  apr_allocator_t *allocator)
985  __attribute__((nonnull(1)));
986 
992  __attribute__((nonnull(1)));
993 
1000  apr_bucket_alloc_t *list)
1001  __attribute__((nonnull(2)));
1002 
1007 APR_DECLARE_NONSTD(void) apr_bucket_free(void *block)
1008  __attribute__((nonnull(1)));
1009 
1010 
1011 /* ***** Bucket Functions ***** */
1018 #define apr_bucket_destroy(e) do { \
1019  (e)->type->destroy((e)->data); \
1020  (e)->free(e); \
1021  } while (0)
1022 
1034 #define apr_bucket_delete(e) do { \
1035  APR_BUCKET_REMOVE(e); \
1036  apr_bucket_destroy(e); \
1037  } while (0)
1038 
1106 #define apr_bucket_read(e,str,len,block) (e)->type->read(e, str, len, block)
1107 
1114 #define apr_bucket_setaside(e,p) (e)->type->setaside(e,p)
1115 
1126 #define apr_bucket_split(e,point) (e)->type->split(e, point)
1127 
1133 #define apr_bucket_copy(e,c) (e)->type->copy(e, c)
1134 
1135 /* Bucket type handling */
1136 
1147  apr_pool_t *pool);
1148 
1157  apr_pool_t *pool);
1158 
1167  apr_size_t point);
1168 
1177  apr_bucket **c);
1178 
1189 
1196 /* There is no apr_bucket_read_notimpl, because it is a required function
1197  */
1198 
1199 
1200 /* All of the bucket types implemented by the core */
1221 #if APR_HAS_MMAP
1222 
1226 #endif
1227 
1253 
1254 
1255 /* ***** Simple buckets ***** */
1256 
1269  apr_size_t point);
1270 
1282  apr_bucket **b);
1283 
1284 
1285 /* ***** Shared, reference-counted buckets ***** */
1286 
1302  apr_off_t start,
1303  apr_size_t length);
1304 
1313 APR_DECLARE(int) apr_bucket_shared_destroy(void *data);
1314 
1327  apr_size_t point);
1328 
1339  apr_bucket **b);
1340 
1341 
1342 /* ***** Functions to Create Buckets of varying types ***** */
1343 /*
1344  * Each bucket type foo has two initialization functions:
1345  * apr_bucket_foo_make which sets up some already-allocated memory as a
1346  * bucket of type foo; and apr_bucket_foo_create which allocates memory
1347  * for the bucket, calls apr_bucket_make_foo, and initializes the
1348  * bucket's list pointers. The apr_bucket_foo_make functions are used
1349  * inside the bucket code to change the type of buckets in place;
1350  * other code should call apr_bucket_foo_create. All the initialization
1351  * functions change nothing if they fail.
1352  */
1353 
1361 
1370  __attribute__((nonnull(1)));
1371 
1380  __attribute__((nonnull(1)));
1381 
1390  __attribute__((nonnull(1)));
1391 
1400  apr_size_t nbyte,
1401  apr_bucket_alloc_t *list)
1402  __attribute__((nonnull(1,3)));
1403 
1412  const char *buf,
1413  apr_size_t nbyte)
1414  __attribute__((nonnull(1,2)));
1415 
1424  apr_size_t nbyte,
1425  apr_bucket_alloc_t *list)
1426  __attribute__((nonnull(1,3)));
1427 
1436  const char *buf,
1437  apr_size_t nbyte)
1438  __attribute__((nonnull(1,2)));
1439 
1454 APR_DECLARE(apr_bucket *) apr_bucket_heap_create(const char *buf,
1455  apr_size_t nbyte,
1456  void (*free_func)(void *data),
1457  apr_bucket_alloc_t *list)
1458  __attribute__((nonnull(1,4)));
1468 APR_DECLARE(apr_bucket *) apr_bucket_heap_make(apr_bucket *b, const char *buf,
1469  apr_size_t nbyte,
1470  void (*free_func)(void *data))
1471  __attribute__((nonnull(1,2)));
1472 
1482 APR_DECLARE(apr_bucket *) apr_bucket_pool_create(const char *buf,
1483  apr_size_t length,
1484  apr_pool_t *pool,
1485  apr_bucket_alloc_t *list)
1486  __attribute__((nonnull(1,3,4)));
1487 
1496 APR_DECLARE(apr_bucket *) apr_bucket_pool_make(apr_bucket *b, const char *buf,
1497  apr_size_t length,
1498  apr_pool_t *pool)
1499  __attribute__((nonnull(1,2,4)));
1500 
1501 #if APR_HAS_MMAP
1502 
1512  apr_off_t start,
1513  apr_size_t length,
1514  apr_bucket_alloc_t *list)
1515  __attribute__((nonnull(1,4)));
1516 
1527  apr_off_t start,
1528  apr_size_t length)
1529  __attribute__((nonnull(1,2)));
1530 #endif
1531 
1539  apr_bucket_alloc_t *list)
1540  __attribute__((nonnull(1,2)));
1548  apr_socket_t *thissock)
1549  __attribute__((nonnull(1,2)));
1550 
1558  apr_bucket_alloc_t *list)
1559  __attribute__((nonnull(1,2)));
1560 
1568  apr_file_t *thispipe)
1569  __attribute__((nonnull(1,2)));
1570 
1588  apr_off_t offset,
1589  apr_size_t len,
1590  apr_pool_t *p,
1591  apr_bucket_alloc_t *list)
1592  __attribute__((nonnull(1,4,5)));
1593 
1605  apr_off_t offset,
1606  apr_size_t len, apr_pool_t *p)
1607  __attribute__((nonnull(1,2,5)));
1608 
1616  int enabled)
1617  __attribute__((nonnull(1)));
1618 
1620 #ifdef __cplusplus
1621 }
1622 #endif
1623 
1624 #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
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)))
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:556
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
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:637
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:461
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:643
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:556
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
Definition: apr_buckets.h:155
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:636
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
enum apr_bucket_type_t::@12 is_metadata
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
dav_buffer const char * str
Definition: mod_dav.h:465
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
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:641
APR_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_socket
apr_bucket_pool pool
Definition: apr_buckets.h:639
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)))
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:638
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
Definition: apr_buckets.h:153
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