Diff for /embedaddon/rsync/lib/pool_alloc.3 between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/17 15:09:30 version 1.1.1.2, 2013/10/14 07:51:14
Line 95  for Line 95  for
 .I quantum  .I quantum
 will produce a quantum that should meet maximal alignment  will produce a quantum that should meet maximal alignment
 on most platforms.  on most platforms.
IfUnless
.B POOL_QALIGN.B POOL_NO_QALIGN
 is set in the  is set in the
 .IR flags ,  .IR flags ,
 allocations will be aligned to addresses that are a  allocations will be aligned to addresses that are a
 multiple of  multiple of
 .IR quantum .  .IR quantum .
   A
   .B NULL
   may be specified for the
   .I bomb
   function pointer if it is not needed.  (See the
   .B pool_alloc()
   function for how it is used.)
 If  If
 .B POOL_CLEAR  .B POOL_CLEAR
 is set in the  is set in the
 .IR flags ,  .IR flags ,
 all allocations from the pool will be initialized to zeros.  all allocations from the pool will be initialized to zeros.
You may specify aIf either
.B NULL.B POOL_PREPEND
for theor
.I bomb.B POOL_INTERN
function pointer if you don't wish to use it.  (See theis specified in the
.B pool_alloc().IR flags ,
function for how it is used.)each extent's data structure will be allocated at the start of the
 .IR size -length
 buffer (rather than as a separate, non-pool allocation), with the
 former extending the
 .I size
 to hold the structure, and the latter subtracting the structure's
 length from the indicated
 .IR size .
 .P  .P
 .B pool_destroy()  .B pool_destroy()
 destroys an allocation  destroys an allocation
Line 131  is Line 145  is
 .BR 0 ,  .BR 0 ,
 .I quantum  .I quantum
 bytes will be allocated.  bytes will be allocated.
If the pool has been created withIf the pool has been created without
.BR POOL_QALIGN ,.BR POOL_NO_QALIGN ,
 every chunk of memory that is returned will be suitably aligned.  every chunk of memory that is returned will be suitably aligned.
 You can use this with the default  You can use this with the default
 .I quantum  .I quantum
Line 169  an extent), its memory will be completely freed back t Line 183  an extent), its memory will be completely freed back t
 If  If
 .I addr  .I addr
 is  is
.BR 0 ,.BR NULL ,
 no memory will be freed, but subsequent allocations will come  no memory will be freed, but subsequent allocations will come
 from a new extent.  from a new extent.
 .P  .P

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>