summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-04-11duhJim Meyering
2003-04-11Include error.h after system.h, not before.Jim Meyering
2003-04-11Remove anachronistic casts of xmalloc,Jim Meyering
xrealloc, and xcalloc return values and of xrealloc's first argument.
2003-04-11include xalloc.hJim Meyering
2003-04-11do not cast xmalloc return valueJim Meyering
2003-04-10(wrapf): Declare with format attribute.Jim Meyering
2003-04-10.Jim Meyering
2003-04-10(fs.h): New rule to generate fs.h from stat.c.Jim Meyering
(BUILT_SOURCES): Add fs.h, now that it's generated. (EXTRA_DIST): Add extract-magic.
2003-04-10add commentJim Meyering
2003-04-10(human_fstype) [__linux__]: Append each hex constant fromJim Meyering
fs.h in a comment after the corresponding `case S_MAGIC_...:' statement.
2003-04-10now it's automatically generatedJim Meyering
2003-04-10New script to extract fs.h definitions from stat.c.Jim Meyering
2003-04-10(human_fstype): Handle Linux's devpts.Jim Meyering
2003-04-10(S_MAGIC_DEVPTS): New magic for Linux's devpts.Jim Meyering
2003-04-09(line_bytes_split): Arg is of type size_t, sinceJim Meyering
that's all that is supported for now. (main): Check for overflow in obsolescent line count option.
2003-04-09(bytes_split): Use size_t temporary (rather thanJim Meyering
uintmax_t original) in remaining computations. From Paul Eggert.
2003-04-09Handle command line option arguments larger than 2^31.Jim Meyering
This allows e.g., splitting into files of size 2GB and larger, and running split --lines=N with N=2^31 or more. But for --line-bytes=N, the restriction that N <= SIZE_MAX remains (for now), due to the way it is implemented. Include "inttostr.h". (bytes_split, lines_split, line_bytes_split, main): Use uintmax_t, not size_t, for file sizes. (main): Give a better diagnostic for option arguments == 0. Use umaxtostr to print file sizes.
2003-04-09(lines_split): Rename local, nlines -> n_lines.Jim Meyering
2003-04-08(usage): Mention that --directory (-d) works only on some systems.Jim Meyering
2003-04-08(main): Use STDIN_FILENO, not literal `0'.Jim Meyering
2003-04-08(main): Rename local variable: s/accum/n_units/.Jim Meyering
2003-04-08also change NCHARS, in comments, to N_BYTESJim Meyering
2003-04-08Rename local variables: nchars -> n_bytes.Jim Meyering
2003-04-07Add #include directives for Ultrix 4.4.Jim Meyering
Based on a suggested change from Bert Deknuydt.
2003-04-05.Jim Meyering
2003-04-05*** empty log message ***Jim Meyering
2003-04-05Make `kill -t' output signal descriptions (not `?') on Tru64.Jim Meyering
(sys_siglist): Also check for __sys_siglist.
2003-04-04(PERL): Remove unnecessary definition.Jim Meyering
2003-04-04Because of inappropriate (but POSIX-mandated) behavior of rename,Jim Meyering
`mv a b' would not remove `a' in some unusual cases. Work around this by unlinking `a' when necessary. (same_file_ok): Add an output parameter. Set it in the offending case. (copy_internal): When necessary, unlink SRC_PATH and inform caller.
2003-04-04Clean up rules for automatically generated sources:Jim Meyering
(dircolors.h, wheel-size.h, wheel.h, false.c): Make each generated file be read-only. Add each file name to BUILT_SOURCES separately. (MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES).
2003-04-04Put LOCALEDIR macro definition in new file: localedir.h.Jim Meyering
(DEFS): Remove definition. (localedir.h): New rule. (BUILT_SOURCES, DISTCLEANFILES): Add localedir.h.
2003-04-04Include "localedir.h".Jim Meyering
2003-04-02.Jim Meyering
2003-04-02.Jim Meyering
2003-04-02(false.c): Change all occurrences of `(EXIT_SUCCESS)' to `(EXIT_FAILURE)'.Jim Meyering
Reported by Paul Jarc,
2003-03-30(is_empty_dir): Don't let a failing closedirJim Meyering
clobber errno. Spotted by Arnold Robbins.
2003-03-30Fix typo in comment.Jim Meyering
2003-03-27Remove Arnold Robbins' obsolete e-mail addressJim Meyering
from `written by...' comment, at his request.
2003-03-27Fix buffer overrun problem reported by TAKAI Kousuke, alongJim Meyering
with some other POSIX incompatibilities. (print_esc): Do not treat \x specially if POSIXLY_CORRECT. Avoid buffer overrun if the format ends in backslash. Treat incomplete escape sequences as strings of characters, as POSIX requires. (print_formatted): Allow multiple flags. Avoid buffer overrun if the format is incomplete.
2003-03-27.Jim Meyering
2003-03-26(struct cp_options): Add a comment.Jim Meyering
2003-03-22D'oh.Jim Meyering
2003-03-22Don't include <sys/sysmacros.h>.Jim Meyering
That is already done via system.h. Otherwise, the multiple inclusion would evoke redefinition warnings from Cray's /bin/cc (Cray Standard C Version 4.0.3 (057126) Mar 22 2003 22:02:28). (human_fstype): Factor some directives `up', out of this function. Cast away `const' to avoid error from Cray's /bin/cc.
2003-03-20(valid_format): Also accept ` ' and `'' as validJim Meyering
format flag characters. Do not require that a field width be specified. Do not fail when given a field width of `0'.
2003-03-20.Jim Meyering
2003-03-19(all-local): Append $(EXEEXT) to use of `su'Jim Meyering
(install-root): Likewise. (install-exec-local): Likewise.
2003-03-19.Jim Meyering
2003-03-18[struct Word] (paren, period, punct, final): Change theJim Meyering
type of each member from bool <MEMBER>:1 to unsigned int <MEMBER>:1. AIX 5.1's xlc could not compile the former.
2003-03-16(rm): Put two local variables in static storage,Jim Meyering
so they can't be clobbered by the potential longjmp.
2003-03-15.Jim Meyering