summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-11-26Include config.h, stdio.h, sys/types.h. and system.h here instead.Jim Meyering
2000-11-26Include config.h, stdio.h, sys/types.h. and system.h here instead.Jim Meyering
2000-11-26don't include system.h hereJim Meyering
2000-11-26(skip): Perform the `records < blocksize' testJim Meyering
at the top of the loop, not at the bottom.
2000-11-26(skip): New arg COUNT_BYTES. Read with BLOCKSIZEJim Meyering
bytes, but consider RECORDS to be a byte count if COUNT_BYTES is nonzero.
2000-11-26(skip_bytes, seek_bytes): Now booleans, not counts.Jim Meyering
(seek_records): Renamed from seek_record, for consistency with skip_records and max_records. All uses changed. (usage, scanargs): Remove bseek=n and bskip=n; instead, use seek=nB and skip=nB. (enum Unit, Unit): Remove. (skip, dd_copy, main): Undo most recent change. (dd_copy, main): Pass blocksize of 1 as appropriate when skip_bytes or seek_bytes is nonzero. (main): Rework ftruncate failure diagnostic to always use byte count.
2000-11-25more post-merge clean-up.Jim Meyering
Fix a merge bug exposed by new test.
2000-11-25remove bskipJim Meyering
adapt skip to skip either by bytes or by blocks
2000-11-25(S_TYPEISSHM): New macro.Jim Meyering
(main): Report failed fstat. Complain only when ftruncate fails on a regular file, a directory, or a shared memory object.
2000-11-24bskip/bseek patch from Chris Sylvain <csylvain@umm.edu> merged inJim Meyering
2000-11-24Declare a pointer parameters to be `const' as appropriate.Jim Meyering
2000-11-24(main): Use ftruncate only on regular files.Jim Meyering
Based on a patch from Michael Stone. Reported by andras@kolumbus.fi at http://bugs.debian.org/77174.
2000-11-23(show_point): Before accepting an entry as a match, make sure thatJim Meyering
the mount directory exists and has the required device number. Before, e.g., `df /floppy' would mistakenly report on the root partition if /floppy were not listed in /etc/mtab but / was. Patch from Eirik Fuller (http://bugs.debian.org/76923).
2000-11-23(mode_changed): New function.Jim Meyering
(change_file_mode): Use it to determine accurately when -c should make chmod announce there's been a change.
2000-11-19(main): Do not assume EOF == -1.Jim Meyering
Handle the case correctly when digits options immediately precede a non-option.
2000-11-19(BLOCK_SIZE_OPTION, COLOR_OPTION, FORMAT_OPTION,Jim Meyering
INDICATOR_STYLE_OPTION, QUOTING_STYLE_OPTION, SHOW_CONTROL_CHARS_OPTION, SORT_OPTION, TIME_OPTION): New enum values, to ensure that option values can't collide with chars. (long_options, decode_switches): Use them.
2000-11-19(GETOPT_HELP_CHAR, GETOPT_VERSION_CHAR): Now enumJim Meyering
constants rather than macros. Use values that cannot conflict with C characters or with -1, CHAR_MAX + 1, etc.
2000-11-18(count_entry): Don't omit the size of a directory entryJim Meyering
merely because we couldn't `chdir' into it. That would give subtly different results in some cases. Reported by Mattias Wadenstein via Michael Stone.
2000-11-18Revert change of 2000-11-11. It inadvertently changeJim Meyering
the output format of `ls -l --full-time'.
2000-11-18(main): When failing to create a directory, give onlyJim Meyering
one diagnostic, not two. Reported by Volker Borchert.
2000-11-18(main): With --parents, remove any trailing slashesJim Meyering
from the argument to the final mkdir call. Required for NetBSD.
2000-11-18revert mysteriously-applied last delta!Jim Meyering
2000-11-17Declare global `tab' to be of type *unsigned* char,Jim Meyering
so join works with 8-bit delimiter characters.
2000-11-17Explicitly include sys/types.h before including system.h.Jim Meyering
2000-11-16Include sys/types.h before system.h.Jim Meyering
2000-11-16Declare global `tab' to be of type *unsigned* char,Jim Meyering
so join works with 8-bit delimiter characters. Reported by Antonio Rendas.
2000-11-13(ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC shouldJim Meyering
be tested with #ifdef, not with #if.
2000-11-12(print_long_format): Remove obsolete comment (strftime vs. ctime).Jim Meyering
From Paul Eggert.
2000-11-12(show_date): Add a comment explaining why theJim Meyering
format string must not be translatable via _(). From Paul Eggert.
2000-11-12(<langinfo.h>): Include if HAVE_LANGINFO_H.Jim Meyering
(DATE_FMT_LANGINFO): New macro, taken from sh-utils/src/date.c. (print_long_format): Use it to determine "date" format. Do not wrap "%b %e %Y" and "%b %e %H:%M" in _(), as it results in incorrect behavior when LC_ALL is unset, LC_TIME is "C", and LC_MESSAGES or LANG is set to something disagreeing with the POSIX locale.
2000-11-11(print_long_format): Wrap the --full-time' date formatJim Meyering
string in _(...), so it too may be internationalized. Suggestion from Jungshik Shin.
2000-11-10(main): Interpret a lone numeric argument of 8 or 10Jim Meyering
digits as a file name, rather than as a date/time in the obsolescent `MMDDhhmm[YY]' format. Reported by Wenjun Zheng.
2000-11-09Do not set the permissions of the final directoryJim Meyering
component if it was not just created. Based on a patch from Volker Borchert.
2000-11-06(print_header): Mark strings for translation.Jim Meyering
2000-11-06(skip): st_size is not defined for directories.Jim Meyering
2000-11-05(main): Use make_dir instead of using mkdir directly.Jim Meyering
Diagnose as failure when mkdir tries to create (without the --parent (-p) option) a directory that already exists.
2000-11-01remove const attribute for PARENTSJim Meyering
2000-11-01Fix bad typo! free the string, PARENTS, not the function, dir_name.Jim Meyering
2000-11-01(main): Better diagnostics.Jim Meyering
2000-10-31`mkdir -p' would create parent directories with permissionsJim Meyering
that did not account for the umask. [introduced with the 2000-09-30 change that became part of fileutils-4.0.28] Include dirname.h. Compute the parent directory `mode' unconditionally, effectively as `$(umask -S),u+wx'. Use make_path to create only the parent directories, thus using the same code, both with and without -p, to create the final component in each file name. Reported by Bob Proulx.
2000-10-30Include "system.h" after wctype.h (not before) to avoidJim Meyering
a compilation error on Solaris 5.5.1 systems.
2000-10-29(do_copy): When constructing dst_path for use with theJim Meyering
--parents option, first remove any trailing slashes from the command line argument. Otherwise, tests/cp/cp-parent would fail on NetBSD.
2000-10-29(DT_INIT): Define.Jim Meyering
[enum filetype]: Remove the #ifdef, and use DT_INIT on the initializers instead.
2000-10-28[enum filetype] (arg_directory): Rather than `100', useJim Meyering
a number that should never conflict with another DT_* value. From Ulrich Drepper.
2000-10-28(main): In call to gobble_file with `"."', use `directory'Jim Meyering
as the type, not `unknown'. From Ulrich Drepper.
2000-10-28Make `ls' a lot more efficient on systems (e.g., linux-2.4.*)Jim Meyering
that save file type information in directory entries. [enum filetype] (unknown): Add members (as yet unused): (HAVE_STRUCT_DIRENT_D_TYPE): Define. (format_needs_type): New global. (main): Set it. (print_dir): Set `type' from directory entry, if possible. (gobble_file): Add a parameter, TYPE. Stat the file only if its type is unknown and we need the type. Patch from Ulrich Drepper.
2000-10-28Include assert.h.Jim Meyering
(fillrand): Add a parameter, size_max. Add an assertion. Adjust caller. (dopass): Break out of the `for (;;)' loop if size < offset. That can happen now that dopass is called with SIZE == -1. (do_wipefd): Accept a length of zero only for a regular file. If lseek fails or returns 0 for a non-regular file, let dopass determine the length. Inspired by a patch from Alan Iwi.
2000-10-26(usage): Mention the time zone, UTC, and write the dateJim Meyering
in ISO format in the description of %s. Suggestion from Karl Berry.
2000-10-25Include dirname.h.Jim Meyering
(main): Use dir_name_r rather than open-coding it.
2000-10-22include stdio.hJim Meyering