]> mj.ucw.cz Git - libucw.git/commit
big_alloc() now takes a 64-bit argument.
authorMartin Mares <mj@ucw.cz>
Fri, 2 Feb 2007 12:54:46 +0000 (13:54 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 2 Feb 2007 12:54:46 +0000 (13:54 +0100)
commit7442c1c86d2210ca3ef1538115f4a0423cd2f046
treed345fb8057068904db64c7d76cb39c094a516f2f
parent5ff0a5b047624c8f215da9cd6c7182d609fcbd01
big_alloc() now takes a 64-bit argument.

We would like to allocate buffers larger than 4 GB on 64-bit machines.
I've purposefully used u64 instead of size_t, because configuration
variables for buffer sizes will be usually u64's and big_alloc() is
the proper place to report buffer size errors.
lib/bigalloc.c
lib/lib.h