Jim Meyering
8b4ac20908
(skip): Use lseek instead of worrying about fseeko or fseek.
...
This should be portable, as we seek before doing any I/O.
(fseeko): Remove; no longer used.
2000-12-02 21:08:01 +00:00
Jim Meyering
1a0d9ea086
add back the parens Paul removed :-)
2000-12-02 20:55:25 +00:00
Jim Meyering
e49511faef
(gobble_file): Do not fall back on lstat if stat
...
fails; POSIX.2 does not allow this. Invoke acl only on
non-symlinks, and only if lstat or stat succeeds.
2000-12-02 20:55:02 +00:00
Jim Meyering
e05c32a868
*** empty log message ***
2000-12-02 20:52:09 +00:00
Jim Meyering
c2f898236f
*** empty log message ***
2000-12-02 20:45:40 +00:00
Jim Meyering
501ebc1cba
Make idempotent, to avoid some obscure warnings.
2000-12-02 20:45:30 +00:00
Jim Meyering
77182607c0
.
2000-12-02 18:52:17 +00:00
Jim Meyering
6769657fa3
*** empty log message ***
2000-12-02 18:52:03 +00:00
Jim Meyering
dab453378b
(OFF_T_PRINTF_FORMAT_STRING): require it.
2000-12-02 18:51:26 +00:00
Jim Meyering
aa266c29eb
*** empty log message ***
2000-12-02 18:04:19 +00:00
Jim Meyering
6b94589fa4
*** empty log message ***
2000-12-02 18:02:05 +00:00
Jim Meyering
0d849addb3
*** empty log message ***
2000-12-02 17:44:04 +00:00
Jim Meyering
1698b85090
*** empty log message ***
2000-12-02 17:40:26 +00:00
Jim Meyering
a538ba0149
*** empty log message ***
2000-12-02 17:39:59 +00:00
Jim Meyering
41f20fd38f
*** empty log message ***
2000-12-02 14:53:18 +00:00
Jim Meyering
1c8189de61
(TESTS): Add follow-slink.
2000-12-02 14:53:07 +00:00
Jim Meyering
525e76fce0
*** empty log message ***
2000-12-02 14:52:45 +00:00
Jim Meyering
d91624bd99
*** empty log message ***
2000-12-02 14:43:34 +00:00
Jim Meyering
1c71127370
(NONZERO): Define and use it to make the code a tiny
...
bit more readable.
2000-12-02 14:43:28 +00:00
Jim Meyering
4f1553c89f
*** empty log message ***
2000-12-02 14:28:23 +00:00
Jim Meyering
1b9cb7ea23
(sort invocation): Clarify how -t works when
...
a sort key specifies a range of fields. From Karl O. Pinc.
2000-12-02 14:28:11 +00:00
Jim Meyering
479aba180c
*** empty log message ***
2000-12-02 14:10:37 +00:00
Jim Meyering
8eeae63a74
.
2000-12-02 14:04:05 +00:00
Jim Meyering
07584e33ec
add test that would fail on NetBSD before the last change
2000-12-02 14:02:34 +00:00
Jim Meyering
33ba435db5
*** empty log message ***
2000-12-02 13:22:57 +00:00
Jim Meyering
73fe66c783
*** empty log message ***
2000-12-02 13:22:14 +00:00
Jim Meyering
cc27b86c60
(main): Remove any trailing slash unconditionally.
...
Reported by Volker Borchert.
2000-12-02 13:20:37 +00:00
Jim Meyering
9db47bb808
*** empty log message ***
2000-12-02 12:15:00 +00:00
Jim Meyering
8bf3961df0
*** empty log message ***
2000-12-02 12:05:15 +00:00
Jim Meyering
df7d583cc2
(TESTS): Add skip-seek2
2000-12-02 12:05:03 +00:00
Jim Meyering
271e41850b
*** empty log message ***
2000-12-02 12:04:32 +00:00
Jim Meyering
97b58344c5
*** empty log message ***
2000-12-02 09:58:43 +00:00
Jim Meyering
627dac6c07
Include <config.h> before any system include file.
2000-12-02 09:58:31 +00:00
Jim Meyering
0742bc284e
*** empty log message ***
2000-12-02 08:19:31 +00:00
Jim Meyering
acca4638b8
(skip, dd_copy): Use ssize_t to store result of
...
safe_read, to avoid overflow e.g. on 64-bit Solaris sparc.
(dd_copy): Remove unnecessary cast.
2000-12-02 08:19:21 +00:00
Jim Meyering
05aabec021
*** empty log message ***
2000-12-02 08:14:33 +00:00
Jim Meyering
e996c1bd77
Undo most of the changes since 2000-11-24, since we've
...
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-12-02 08:12:56 +00:00
Jim Meyering
b529a77be8
*** empty log message ***
2000-11-30 20:36:08 +00:00
Jim Meyering
4faf0a9a17
*** empty log message ***
2000-11-30 20:35:02 +00:00
Jim Meyering
3e50cea2f5
(jm_MACROS): Add stdint.h to the list of headers.
2000-11-30 20:34:23 +00:00
Jim Meyering
339738f351
s/SIZE_T_MAX/SIZE_MAX/.
2000-11-30 20:30:04 +00:00
Jim Meyering
a48a4d5c63
Include <stdint.h> if HAVE_STDINT_H.
...
(SIZE_MAX): Renamed from SIZE_T_MAX, as C99 uses SIZE_MAX.
All uses changed.
2000-11-30 20:27:49 +00:00
Jim Meyering
57a0382b5f
*** empty log message ***
2000-11-30 11:39:19 +00:00
Jim Meyering
835a8fa634
(SIZE_T_MAX): Define.
2000-11-30 11:39:08 +00:00
Jim Meyering
4ff7ab63ab
*** empty log message ***
2000-11-30 11:33:57 +00:00
Jim Meyering
d92f4ac85e
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.
2000-11-30 11:33:49 +00:00
Jim Meyering
21b8c52ae9
*** empty log message ***
2000-11-30 09:36:04 +00:00
Jim Meyering
7303ca25db
(dir_name_r): Fix typo: int -> size_t.
2000-11-30 09:35:52 +00:00
Jim Meyering
060fb58f86
*** empty log message ***
2000-11-30 07:45:38 +00:00
Jim Meyering
d185a442b9
s/ifval/m4_ifval/ to accommodate new autoconf.
2000-11-30 07:44:58 +00:00