author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 7 Mar 2007 01:44:30 +0000 (20:44 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 7 Mar 2007 19:06:25 +0000 (11:06 -0800) | ||
commit | c4001d92be61766d3494489b15590ca0147ee19d | |
tree | 7c78fe4599bf00354ca36299d11b2a1e4e9324bb | tree | snapshot |
parent | 7cadf491c6d7a29e345e1608c23b0d98cee5e848 | commit | diff |
Use off_t when we really mean a file offset.
Not all platforms have declared 'unsigned long' to be a 64 bit value,
but we want to support a 64 bit packfile (or close enough anyway)
in the near future as some projects are getting large enough that
their packed size exceeds 4 GiB.
By using off_t, the POSIX type that is declared to mean an offset
within a file, we support whatever maximum file size the underlying
operating system will handle. For most modern systems this is up
around 2^60 or higher.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Not all platforms have declared 'unsigned long' to be a 64 bit value,
but we want to support a 64 bit packfile (or close enough anyway)
in the near future as some projects are getting large enough that
their packed size exceeds 4 GiB.
By using off_t, the POSIX type that is declared to mean an offset
within a file, we support whatever maximum file size the underlying
operating system will handle. For most modern systems this is up
around 2^60 or higher.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h | diff | blob | history | |
fast-import.c | diff | blob | history | |
git-compat-util.h | diff | blob | history | |
pack-check.c | diff | blob | history | |
pack-redundant.c | diff | blob | history | |
sha1_file.c | diff | blob | history |