summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-09-05(valid_options): Remove.Paul Eggert
(main): Fix some bugs in handling invalid option-combinations like "stty -F".
2004-09-05Regenerate.Paul Eggert
2004-09-03Minor stat.c patches from Pozsar Balazs for GNU/Linux.Paul Eggert
2004-09-03(HAVE_STRUCT_STATXFS_F_TYPE): Fix typo that preventedPaul Eggert
it from ever being nonzero. Reported by Pozsar Balazs in: http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00189.html (human_fstype): Add ramfs, squashfs, sysfs. Reported by Pozsar Balazs in: http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00188.html (human_fstype): Return char const *, not char *. Simplify internals a bit, and avoid casts.
2004-09-03dd minor cleanup for conversionsPaul Eggert
2004-09-03(usage): "alternated EBCDIC" -> "alternate EBCDIC".Paul Eggert
(bit_count): Remove. All uses changed to.... (multiple_bits_set): New function. (scanargs): Use it, and check separately for each set of incompatible options, to improve diagnostics. (MX): Remove. (apply_translations): Move checks for incompatible options to scanargs, so that they're done consistently.
2004-09-03dd conversion option cleanup.Paul Eggert
2004-09-03(dd invocation): Specify which conversion optionsPaul Eggert
are mutually exclusive. Give a bit more detail about ascii, ebcdic, and ibm conversions.
2004-09-03Output correct errno-related diagnostic on "paste" I/O errors.Paul Eggert
Improve diet libc port.
2004-09-03Output correct errno-related diagnostic on "paste" I/O errors.Paul Eggert
(write_error, xputchar): New functions. (paste_parallel): Use correct errno value after input error. (paste_parallel, paste_serial): Report errno value after output error.
2004-09-03(paste_parallel): Improve replacement for ENDLIST and CLOSED.Paul Eggert
2004-09-02Port to diet libc.Paul Eggert
2004-09-02(FTSENT): Use "unsigned short int" rather than the unportable "u_short".Paul Eggert
2004-09-02(fts_stat, fts_open, fts_read): Use "unsigned short int"Paul Eggert
rather than the unportable "u_short", and similarly for u_int.
2004-09-02(dummy_closed, CLOSED, dummy_endlist, ENDLIST): Remove;Paul Eggert
it's not portable C to assume FILE is a complete type. (paste_parallel): Use null instead of ENDLIST, and an explicit boolean instead of CLOSED.
2004-08-24Fix infloop-3 to match POSIX.Paul Eggert
Add blanks-1 through blanks-13.
2004-08-24(add_tab_stop): Renamed from add_tabstop. All uses changed.Paul Eggert
(parse_tab_stop): Renamed from parse_tabstop. All uses changed. (validate_tab_stop): Renamed from validate_tabstop. All uses changed. (next_file, main): Check fclose against 0, not EOF. (unexpand): Remove unnecessary casts. Add another loop nesting level, for lines, so that per-line variables are initialized cleanly. Revamp tab checking. Check for write error immediately, rather than just once at the end of the program. (TAB_STOP_SENTINEL): Remove. (tab_size): Now size_t, not uintmax_t, since we need to store the sequences of blanks. (max_column_width): New var. (usage): Say "blank" where POSIX requires this. (add_tab_stop): Calculate maximum column width. (unexpand): Store the pending blanks, instead of merely counting them. Follow POSIX's rules about -a requiring two blanks before a tab stop. Get rid of internal label and goto.
2004-08-24Revamp to resemble the new unexpand.c better.Paul Eggert
(usage): -i does not convert tabs after non-tabs. (add_tab_stop): Renamed from add_tabstop. All uses changed. (parse_tab_stop): Renamed from parse_tabstop. All uses changed. (validate_tab_stop): Renamed from validate_tabstop. All uses changed. (next_file, main): Check fclose against 0, not EOF. (expand): Remove unnecessary casts. Add another loop nesting level, for lines, so that per-line variables are initialized cleanly. Revamp tab checking. Check for write error immediately, rather than just once at the end of the program.
2004-08-24Standardize on "tab stop" (the POSIX usage)Paul Eggert
rather than "tabstop". (unexpand invocation): Use "blank" rather than "space" when POSIX requires "blank". Define "blank". Initial blanks are converted even if there's just one. For -a, convert two or more blanks only if they occur just before a tab stop.
2004-08-24POSIX-conformance fixes for "expand" and "unexpand".Paul Eggert
2004-08-20Sync from gnulib.Paul Eggert
2004-08-20Regenerate.Paul Eggert
2004-08-20Sync getopt from gnulib.Paul Eggert
2004-08-20Add getopt_.h, getopt_int.h.Paul Eggert
2004-08-19Add support for "chown : file" and the like.Paul Eggert
Also, fix a regression and some memory leaks.
2004-08-19Regenerate.Paul Eggert
2004-08-19(chown invocation): Fix synopsis:Paul Eggert
group must always be preceded by separator. "chown : file" and "chown '' file" don't change the owner or group. Update the explanation of what happens to the set-user-ID or set-group-ID bits, e.g., they sometimes are not cleared if they denote mandatory locking. Change "find"-oriented examples to use chown -h.
2004-08-19Don't use <alloca.h>, so that we don't use alloca onPaul Eggert
strings on unbounded length. alloca's performance benefits aren't that important here. (V_STRDUP): Remove. (parse_with_separator): New function, with most of the internals of the old parse_user_spec. Allow user to omit both user and group, for compatibility with FreeBSD. Clone only the user name, not the entire spec. Do not set *uid, *gid unless entirely successful. Avoid memory leak in some failing cases. Fix regression for USER.GROUP reported by Dmitry V. Levin in <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html> (parse_user_spec): Rewrite to use parse_with_separator.
2004-08-19New file, partly taken fromPaul Eggert
Dmitry V. Levin's suggestion in <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
2004-08-19(TESTS): Add separator.Paul Eggert
2004-08-19Test "chgrp '' file".Paul Eggert
2004-08-19(usage): "chown '' file" is now allowed.Paul Eggert
(main): Do not set user name to the empty string if the group name is null.
2004-08-19(describe_change): Describe changes to -1:-1Paul Eggert
without using "to OWNERSHIP" phrase.
2004-08-19(parse_group): Return gid_t rather than storing itPaul Eggert
through a pointer. Treat "chgrp '' file" as a no-op change, as FreeBSD does. (main): Set chopt.group_name to NULL if the group is the empty string.
2004-08-19"chown : file", "chown '' file", and "chgrp '' file" nowPaul Eggert
succeed without changing the uid and gid, like FreeBSD.
2004-08-18Add fts.h, search.h.Paul Eggert
2004-08-18Add .kludge-stamp.Paul Eggert
2004-08-18* coreutils.texi (printf invocation): Clarify "printf".Paul Eggert
2004-08-18(printf invocation): Clarify how "printf" isPaul Eggert
supposed to work with extra arguments, missing arguments, etc.
2004-08-11Regenerate.Paul Eggert
2004-08-11Further fix for -d regression.Paul Eggert
2004-08-11Fix typo: missing ).Paul Eggert
2004-08-11obstack fixesPaul Eggert
2004-08-11minor porting fixes (e.g., obstack)Paul Eggert
2004-08-11(gl_PREREQ_OBSTACK): RequirePaul Eggert
gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
2004-08-11Do not include error.h. (merge from gnulib).Paul Eggert
2004-08-11Include <inttypes.h> and <stdint.h> if available.Paul Eggert
(union fooround): Use uintmax_t, not long int. The rest is a merge from libc: [defined _LIBC]: Include <shlib-compat.h>. (_obstack) [defined _LIBC]: Remove after 2.3.4.
2004-08-11(settime): Recode to avoid warning with Sun Forte C 6U2.Paul Eggert
2004-08-11(O_DIRECTORY): Define to 0 if the system doesn't define.Paul Eggert
2004-08-11Test for the -d regression.Paul Eggert