Jim Meyering
b9485b8d52
(main): Use xfopen, not xtmpopen to open final output file.
1995-10-26 13:20:25 +00:00
Jim Meyering
66b9285a6f
(xtmpfopen): New function -- for opening temp files.
...
Use it instead of xfopen.
1995-10-26 13:19:10 +00:00
Jim Meyering
039942bfc1
(xfopen): Rewrite using open/fdopen in order to set
...
proper permissions on temporary files. Reported by Erik Corry
(erik@kroete2.freinet.de ).
1995-10-26 05:14:41 +00:00
Jim Meyering
45d4def5e4
Move struct dcls to precede dcls of file-scope variables.
...
(monthtab, keyhead): Separate variable dcls from type dcls.
1995-10-16 14:45:09 +00:00
Jim Meyering
b9c1393e5f
(usage): Move function definition to precede uses and
...
remove remove forward dcl.
Protoize and add `const' attribute to dcls of lots of formals.
1995-10-16 14:38:11 +00:00
Jim Meyering
a9de4d485a
Test SA_INTERRUPT, not _POSIX_VERSION,
...
to determine whether `sigaction' functions are available.
Reported by Paul Nevai <nevai@ops.mps.ohio-state.edu >.
Fix suggested by Karl Berry.
1995-10-04 03:46:35 +00:00
Jim Meyering
c253d247ca
(checkfp): Rearrange loop to avoid duplicate test.
...
Move a couple dcls from function scope into inner block.
1995-09-19 12:50:34 +00:00
Jim Meyering
b23b6bbcf7
(tempname): Replace `16' with a more readable expansion.
...
Make sure that SEQ never exceeds 99999.
1995-09-14 13:31:52 +00:00
Jim Meyering
800e219a2d
(sort): Rename local: ntemp -> n_temp_files, to avoid confusion
...
with another local, ntmp.
1995-09-14 13:09:27 +00:00
Jim Meyering
f03f8dcc44
(mergefps) [lint]: Initialize SAVEALLOC to avoid spurious
...
compiler warning. From Ulrich Drepper.
1995-08-08 04:58:46 +00:00
Jim Meyering
92c50e7f52
Annotate localizable strings with _(...). From Franc,ois.
1995-08-07 14:57:29 +00:00
Jim Meyering
f2fc6e4cad
(check): Print `disorder on...' message on standard error, not stdout.
...
This is a minor concession to POSIX which says `no output shall be produced'.
(main): Fix -k so it works. -k 2,3 was being treated like -k 2.
Reported by Marcus Daniels <marcus@sysc.pdx.edu >.
1995-07-30 05:02:37 +00:00
Jim Meyering
37ba8d9867
(main): Comment out unreachable break stmt.
1995-07-12 03:06:49 +00:00
Jim Meyering
51c3164ba3
(main): Add UCHAR casts.
1995-07-09 17:06:41 +00:00
Jim Meyering
6dfad5e900
(main): When using obsolescent +pos -pos syntax, allow
...
omission of field spec only when character offset is specified.
Otherwise, -. +. would be accepted.
1995-07-09 16:42:31 +00:00
Jim Meyering
ccfb7f032d
(main): Allow field spec, M, to be omitted in +M.N or -M.N
...
position specification. Omitting M is equivalent to specifying `0'
for M. From Rick Sladkey (jrs@world.std.com ).
1995-07-09 02:25:11 +00:00
Jim Meyering
86671a4ed0
Undefine min and/or max before defining to avoid redefinition warning
...
on systems.
1995-06-24 21:10:12 +00:00
Jim Meyering
6ebaf82426
merge with 1.12
1995-06-18 19:33:31 +00:00
Jim Meyering
1aa5954b42
(xfclose): Don't try to flush stdin, only stdout.
...
Otherwise, at least Ultrix-4.3's fflush would return EOF.
Reported by Jim Blandy (jimb@cyclic.com ).
1995-06-13 04:46:12 +00:00
Jim Meyering
7cdc7a0bd9
(usage): Include one- or two-line synopsis in --help output.
...
From Karl Berry.
1995-05-13 18:34:54 +00:00
Jim Meyering
a5da850f3f
(main): Use stat, not safe_stat. The latter was unnecessary.
1995-05-05 05:03:50 +00:00
Jim Meyering
04c2f73f6f
Patch from Mike to fix handling of +x.yn.
1995-05-05 04:37:21 +00:00
Jim Meyering
f45ff2cfaf
Don't hard-code /tmp.
...
[DEFAULT_TMPDIR]: Use this instead.
1995-05-05 04:16:12 +00:00
Jim Meyering
a3edacb315
(tempname): AND-off high bits of pid so that its decimal
...
string representation is no longer than five digits.
From Hans Verkuil (hans@wyst.hobby.nl )
1995-04-26 16:12:01 +00:00
Jim Meyering
80fab638f1
merge with 1.11.e
1995-03-21 03:50:10 +00:00
Jim Meyering
eba8aab7f2
add 1995 to Copyright dates
1995-03-09 22:20:59 +00:00
Jim Meyering
849868e342
(checkfp, mergefps): Use memcpy instead of bcopy.
...
(fillbuf): Use memmove instead of bcopy.
1995-01-28 13:04:27 +00:00
Jim Meyering
c5811b6a26
(main): Use safe_stat, not SAFE_STAT.
1994-12-20 04:03:28 +00:00
Jim Meyering
7323b7d9f2
Include "error.h" instead of simply declaring `void error ();'.
1994-12-16 05:42:47 +00:00
Jim Meyering
88442ad885
sort.c (main): Fix interpretation of field offsets when specified
...
via -k option. They were being interpreted as zero-indexed.
POSIX says they are 1-based indices.
(keycompare): Don't ignore characters at the end of words
when otherwise they compare equal. Both from Rik Faith
<faith@cs.unc.edu >.
1994-12-12 00:00:22 +00:00
Jim Meyering
f55a29ab93
(checkfp): Initialize keybeg and keylim fields.
...
Before, this command
perl -e 'print join ("\n", (1..513)), "\n";'|sort -cs -n
failed on SunOS 4 systems. From Robert H. de Vries <robert@and.nl >.
1994-12-02 16:54:56 +00:00
Jim Meyering
97f9755aeb
(xfclose): Report failed fflush. Otherwise, failed write to stdout
...
could be missed because of subsequent clearerr.
(main): Include filename in a couple error messages.
Add missing %s in an error format string.
1994-12-02 16:49:47 +00:00
Jim Meyering
67af2936fa
(tempname): Merge two very similar sprintf stmts into one.
1994-11-16 13:16:53 +00:00
Jim Meyering
159929688d
.
1994-10-31 12:55:27 +00:00
Jim Meyering
c9b696a6bd
merge with 1.9.1g
1994-10-02 23:01:05 +00:00
Jim Meyering
7079da8b5a
.
1994-10-02 22:10:57 +00:00
Jim Meyering
7960ad7d8b
.
1994-04-11 22:22:23 +00:00
Jim Meyering
8bf5a6ed18
.
1994-03-25 23:38:00 +00:00
Jim Meyering
2db44d14e4
merge with 1.9.1b
1993-12-23 19:11:21 +00:00
Jim Meyering
8c26c6bbba
merge with 1.9.1
1993-11-15 15:58:21 +00:00
Jim Meyering
f5da03589e
merge with 1.8i
1993-10-26 01:19:12 +00:00
Jim Meyering
b869639f46
merge with 1.8d+
1993-10-23 15:37:19 +00:00
Jim Meyering
d1df8c198d
merge with 1.8d
1993-10-21 22:08:53 +00:00
Jim Meyering
6587c39b3a
merge with 1.5.2
1993-05-22 05:06:39 +00:00
Jim Meyering
0f8d90bd48
sort changes from Mike
1993-03-31 06:27:07 +00:00
Jim Meyering
56b1029ccf
Always call error with errno (not zero) after failed fclose or non-zero ferror.
1993-03-30 03:32:10 +00:00
Jim Meyering
38575ad462
Merge with pre-release 1.3.6.
1992-12-10 19:34:55 +00:00
Jim Meyering
d179df1b06
Remove inclusion of <ctype.h> and definitions of is* ctype macros to system.h.
...
Change a few more uses of is* ctype macros to (protected) upper case versions.
1992-12-07 04:54:04 +00:00
Jim Meyering
750bb6aa69
Merged in changes for 1.3.5.
1992-11-19 21:03:49 +00:00
Jim Meyering
925487607c
Declared lots of external functions and variables static.
...
Made several statically-initialized arrays `const'
1992-11-08 20:19:58 +00:00