summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-30 11:33:49 +0000
committerJim Meyering <jim@meyering.net>2000-11-30 11:33:49 +0000
commitd92f4ac85e7e63bb2ba07addd1acc974b5361e18 (patch)
tree36215bc838d9b98250ca0225e7d43167bb584876 /INSTALL
parent21b8c52ae9153f2f9f7a3ebb32f8525884651593 (diff)
downloadcoreutils-d92f4ac85e7e63bb2ba07addd1acc974b5361e18.tar.xz
Port GNU "sort" to hosts where sizes don't fit in "int",
e.g. 64-bit Solaris (sparc). ("human.h", "xstrtol.h"): Include. (struct line): length member is now size_t, not int. (struct lines): Likewise for used, alloc, limit members. (struct buffer): Likewise for used, alloc, left, newline_free members. (struct keyfield): Likewise for sword, schar, eword, echar members. (sortalloc, mergealloc, linelength): Now size_t, not int. (initbuf, fillbuf, initlines, begfield, limfield, findlines, numcompare, getmonth, keycompare, compare, checkfp, mergefps, sortlines, sort): Accept, return, and use size_t for sizes, not int. (fillbuf, initlines, findlines, checkfp, sort): Check for overflow when computing buffer sizes. (begfield, limfield): Do not index past end of array. (checkfp): Return a boolean, not a line number, as the line number may not fit in int. All callers changed. Use uintmax_t for line numbers, not int. (sort): Don't allocate tmp until we need it (and know the right size). (parse_field_count): New function. (main): Use it to check for overflow in field counts. "outfile" is now a pointer to const.
Diffstat (limited to 'INSTALL')
0 files changed, 0 insertions, 0 deletions