summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-12-02(checkfp): Rename local `buf' to avoid shadowing previous declaration.Jim Meyering
2000-12-02(skip): Use lseek instead of worrying about fseeko or fseek.Jim Meyering
This should be portable, as we seek before doing any I/O. (fseeko): Remove; no longer used.
2000-12-02add back the parens Paul removed :-)Jim Meyering
2000-12-02(gobble_file): Do not fall back on lstat if statJim Meyering
fails; POSIX.2 does not allow this. Invoke acl only on non-symlinks, and only if lstat or stat succeeds.
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02Make idempotent, to avoid some obscure warnings.Jim Meyering
2000-12-02.Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02(OFF_T_PRINTF_FORMAT_STRING): require it.Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02(TESTS): Add follow-slink.Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02(NONZERO): Define and use it to make the code a tinyJim Meyering
bit more readable.
2000-12-02*** empty log message ***Jim Meyering
2000-12-02(sort invocation): Clarify how -t works whenJim Meyering
a sort key specifies a range of fields. From Karl O. Pinc.
2000-12-02*** empty log message ***Jim Meyering
2000-12-02.Jim Meyering
2000-12-02add test that would fail on NetBSD before the last changeJim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02(main): Remove any trailing slash unconditionally.Jim Meyering
Reported by Volker Borchert.
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02(TESTS): Add skip-seek2Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02Include <config.h> before any system include file.Jim Meyering
2000-12-02*** empty log message ***Jim Meyering
2000-12-02(skip, dd_copy): Use ssize_t to store result ofJim Meyering
safe_read, to avoid overflow e.g. on 64-bit Solaris sparc. (dd_copy): Remove unnecessary cast.
2000-12-02*** empty log message ***Jim Meyering
2000-12-02Undo most of the changes since 2000-11-24, since we'veJim Meyering
documented a standard way to do it. (skip_bytes, seek_bytes): Remove. (usage): Remove B suffix. (scanargs, skip, dd_copy, main): Remove support for B suffix.
2000-11-30*** empty log message ***Jim Meyering
2000-11-30*** empty log message ***Jim Meyering
2000-11-30(jm_MACROS): Add stdint.h to the list of headers.Jim Meyering
2000-11-30s/SIZE_T_MAX/SIZE_MAX/.Jim Meyering
2000-11-30Include <stdint.h> if HAVE_STDINT_H.Jim Meyering
(SIZE_MAX): Renamed from SIZE_T_MAX, as C99 uses SIZE_MAX. All uses changed.
2000-11-30*** empty log message ***Jim Meyering
2000-11-30(SIZE_T_MAX): Define.Jim Meyering
2000-11-30*** empty log message ***Jim Meyering
2000-11-30Port GNU "sort" to hosts where sizes don't fit in "int",Jim Meyering
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.
2000-11-30*** empty log message ***Jim Meyering
2000-11-30(dir_name_r): Fix typo: int -> size_t.Jim Meyering
2000-11-30*** empty log message ***Jim Meyering