Jim Meyering
257c5c4737
revert back to using lower case _unlocked wrapper names
1998-06-29 15:57:45 +00:00
Jim Meyering
dd9470cb58
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
1998-06-29 02:11:07 +00:00
Jim Meyering
dba300a0d0
CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAX
...
Remove definitions of those symbols.
* src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h
since it now includes limit.h which defines RE_DUP_MAX.
* src/nl.c: Likewise.
* src/tac.c: Likewise.
1998-01-10 22:12:03 +00:00
Jim Meyering
f54368ec1b
s/__P/PARAMS/
1997-12-21 22:39:53 +00:00
Jim Meyering
979f238fb3
(fseeko): Define a stub if ! HAVE_FSEEKO.
...
(skip): Use fseeko if available. Don't use lseek; it causes
the stdio stream to become out of sync with respect to the
underyling file descriptor.
From Paul Eggert.
1997-11-08 21:02:01 +00:00
Jim Meyering
b480949713
Remove old-style xmalloc and xrealloc decls.
...
(decode_format_string): Cast first arg of xrealloc to char*.
1997-10-25 04:41:18 +00:00
Jim Meyering
3fa5a54f68
(LONG_MAX): Define if not defined.
1997-10-18 19:49:50 +00:00
Jim Meyering
42a2bc2846
(STREQ): Remove definition.
1997-10-14 12:50:28 +00:00
Jim Meyering
3f3f566627
update bug-reporting address
1997-10-07 23:55:52 +00:00
Jim Meyering
aa298d7bbe
[struct tspec] (hexl_mode_trailer): Rename from `trailer.'
...
(dump_hexl_mode_trailer): Rename from dump_string_trailer.
Use fputs and putchar instead of trivial or %-less printfs.
(decode_one_format): Parenthesize each field_width assignment in an
argument list to make the side effect a little more apparent.
(write_block): Use fputs and putchar instead of trivial or %-less printfs.
(dump_strings): Cast string_min to off_t to avoid long-standing warning.
1997-09-22 04:59:57 +00:00
Jim Meyering
f1e4f5cf82
Patch from John Kodis.
1997-09-21 20:23:58 +00:00
Jim Meyering
3e9c67e385
tweak message strings
1997-09-15 18:46:42 +00:00
Jim Meyering
821279c98b
tweak message strings
1997-09-15 18:45:47 +00:00
Jim Meyering
9aef26e3d0
(main) [--traditional]: Don't give diagnostic about there
...
being more than three arguments if there are *no* arguments specified.
Reported by Jochen Hein.
1997-09-14 16:03:58 +00:00
Jim Meyering
dbc538f92b
update copyrights for 1997
1997-02-09 04:46:02 +00:00
Jim Meyering
e8bcfd934a
Move alloca-related preprocessor code into system.h.
1997-02-03 05:08:19 +00:00
Jim Meyering
e077b7593b
bracket bug address with <> and append a period
1997-02-01 04:24:58 +00:00
Jim Meyering
c2d2dec516
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
1997-02-01 02:00:04 +00:00
Jim Meyering
a8bcd782c4
update for changed xstrtou?l
1997-01-25 06:21:24 +00:00
Jim Meyering
e298f1f300
(usage): Alphabetize options like sort -f would.
1996-11-23 22:06:55 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
630b771f1b
(main): update --version output again
1996-10-04 04:25:46 +00:00
Jim Meyering
3361bd2bca
(main): update --version output to conform to coding standard
1996-10-04 04:15:08 +00:00
Jim Meyering
c609ba2d13
(usage): Tell where to report bugs.
1996-09-02 15:34:25 +00:00
Jim Meyering
e549af7279
(OFF_T_MAX): Remove definition.
...
(main): Compare against LONG_MAX rather than OFF_T_MAX.
1996-07-17 03:13:54 +00:00
Jim Meyering
03cc8c8ca3
[OFF_T_MAX]: Use (unsigned long)1' rather than (off_t)1'
...
so the left operand of the << isn't signed.
From Kaveh Ghazi.
1996-07-16 05:14:00 +00:00
Jim Meyering
53e41464fd
(decode_one_format): Use %lu (not %d) printf formats
...
corresponding to unsigned long, SIZE.
1996-05-31 00:51:48 +00:00
Jim Meyering
090a56eb9c
(decode_one_format): Take another parameter.
...
Give a specific diagnostic for invalid format spec here rather
than an overly general one from caller's caller.
(decode_format_string): Update caller.
(main): Don't give diagnostic here when decode_format_string fails.
Remove assertions that could fail on some Crays because they don't
have a two-byte type.
Johan Danielsson (joda@pdc.kth.se ) reported the failed assertions.
1996-05-30 05:09:56 +00:00
Jim Meyering
59d334f4d4
update Copyright years for 1996
1996-04-24 04:50:53 +00:00
Jim Meyering
c07d15973c
(decode_one_format): Use printf's L modifier for long doubles,
...
not `l'. From Eric Backus.
1996-04-21 21:07:13 +00:00
Jim Meyering
5beebbd8da
Include <values.h>.
...
[!BITSPERBYTE]: Define.
[OFF_T_MAX]: Use BITSPERBYTE, not 8, and cast the result to off_t.
1996-04-21 14:17:13 +00:00
Jim Meyering
47f70113d4
Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
...
This doesn't change `error (1' calls.
1996-03-24 14:58:01 +00:00
Jim Meyering
4229a555fc
Don't include version.h.
...
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 22:30:54 +00:00
Jim Meyering
715765a548
(main): Initialize for internationalized message support: call setlocale,
...
bindtextdomain, and textdomain.
1996-03-09 20:19:13 +00:00
Jim Meyering
815b5ca1d5
(WINDOWS_SETFILEMODE_BINARY): New macro.
...
(skip) [_WIN32 && _O_BINARY]: Use it.
(read_char): Likewise.
(read_block): Likewise.
Based on changes by Gary Newman <gnewman@shore.net >.
1996-03-02 05:45:45 +00:00
Jim Meyering
7956c15081
s/non-zero/nonzero/g
1995-11-27 03:09:18 +00:00
Jim Meyering
77469b714b
(*format_address): Tweak dcl.
1995-11-15 22:16:30 +00:00
Jim Meyering
849a1c46cf
(skip): Cast fseek's offset argument to `long'.
...
Erik Bennett <bennett@cvo.oneworld.com > reported that this is
necessary on BSDI systems. And if offset doesn't fit in a long,
then try using lseek instead.
1995-11-11 22:08:16 +00:00
Jim Meyering
acb7c4ee48
Add __P in dcl of format_address function.
1995-11-11 03:28:38 +00:00
Jim Meyering
6f6a35a9a1
Indent cpp directives.
1995-10-19 22:38:39 +00:00
Jim Meyering
a42c7fe2d1
Prootize.
1995-10-18 03:45:44 +00:00
Jim Meyering
9a12d05216
(decode_one_format): Remove spurious semicolon.
1995-09-27 15:58:18 +00:00
Jim Meyering
92c50e7f52
Annotate localizable strings with _(...). From Franc,ois.
1995-08-07 14:57:29 +00:00
Jim Meyering
c20ee98ac8
(dump): Convert to use smaller -- but seemingly equivalent -- patch.
1995-07-12 03:06:03 +00:00
Jim Meyering
67718aff76
(dump): Correct loop-termination criterion.
...
Before, running `printf 1234| ./od --width=4 --read-bytes=4'
printed output for 8 bytes -- the last four were garbage.
This happened only when the dump limit, N, was specified (with
--read-bytes=N) and N was a multiple of bytes_per_block
(usually 16, but 4 in this example). From Andreas Schwab.
1995-07-07 04:46:03 +00:00
Jim Meyering
6ebaf82426
merge with 1.12
1995-06-18 19:33:31 +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
73daf89227
(write_block): Declare index I as unsigned int, not int.
...
(get_lcm): Likewise.
(dump_strings): Likewise.
(main): Likewise.
(dump): Cast BYTES_PER_BLOCK to off_t in MIN expression.
(dump_strings): Declare bufsize to be of type size_t, not int.
1995-04-14 04:27:46 +00:00
Jim Meyering
b94687cecb
Detect when -N argument is too large to fit in an off_t.
1995-03-16 21:54:02 +00:00