1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-10-24 02:08:57 +03:00

Commit Graph

  • 7e93c0f64b Initial revision Jim Meyering 1995-07-27 14:43:01 +00:00
  • 1126d3b93e remove trailing blanks Jim Meyering 1995-07-27 14:15:09 +00:00
  • c02e97e2c5 . Jim Meyering 1995-07-27 04:04:18 +00:00
  • f7ccdd300d . Jim Meyering 1995-07-27 03:57:20 +00:00
  • 8904d4a45c Remove spurious space. Jim Meyering 1995-07-27 03:57:10 +00:00
  • 8c17f50aea (tail_bytes) [from_start]: For regular files, seek relative to the initial input file pointer position, not necessarily from the beginning of the file. [!from_start]: Don't back up past the initial position of the input file pointer. (tail_lines): Call file_lines only if FD refers to a regular file with its file pointer positioned at beginning of file. Otherwise, call pipe_lines. This is a kludge. Once there's a decent test suite, fix this properly. Before, (echo 1; echo 2) > k; sh -c 'read x; tail' < k would output both lines of the input file even though the first had already been read. Reported by John Roll (john@panic.harvard.edu). Jim Meyering 1995-07-27 03:56:35 +00:00
  • 28e28e6d74 (have_read_stdin): New global variable. (md5_file, md5_check): Set it. (main): Use it. Jim Meyering 1995-07-27 03:45:11 +00:00
  • 7732d5d7cf (main): When too few arguments are given, don't just issue the usage message; also report why. Jim Meyering 1995-07-25 04:50:04 +00:00
  • 5f33b78417 [_LIBC || STDC_HEADERS] (TOLOWER): Define to tolower. Jim Meyering 1995-07-25 02:48:00 +00:00
  • 6abd6fdd72 (md5_check): New function -- extracted from main. Jim Meyering 1995-07-22 05:16:40 +00:00
  • 0e7bce124f reformat comment Jim Meyering 1995-07-21 06:27:39 +00:00
  • 35eda3509e . Jim Meyering 1995-07-21 06:23:11 +00:00
  • 58b1195eb4 (md5_file): New function -- extracted from main. (main): Call the new function instead of doing all that in an if stmt. Always use "%s" format rather than raw filename as format argument in printf-style functions like error. Otherwise, filenames containing e.g. %s' lose. Remove all traces of old format'. There is only one format now. The compatible one. Jim Meyering 1995-07-21 06:18:58 +00:00
  • bb79abc8a3 (md5_stream): Update prototype. [__P]: Define macro. Jim Meyering 1995-07-21 04:48:03 +00:00
  • 574cc98b23 (md5_stream): Check for read failure and return indication of success rather than second argument. Jim Meyering 1995-07-21 04:46:50 +00:00
  • 855741c7cb Use EXIT_FAILURE and EXIT_SUCCESS. (main): Report an error if md5_stream fails. Otherwise, running md5sum dir-on-mounted-filesystem' always reported the checksum for an empty file. Now it gets the is a directory' error. Greg McGary reported that the released version got stuck in an infinite loop with such arguments. Jim Meyering 1995-07-21 04:45:40 +00:00
  • d58bdcd4fa (split_3): Accept only old format. Properly handle file names with leading and trailing white space. Jim Meyering 1995-07-20 21:09:57 +00:00
  • 1ae54a6140 more comment tweaks Jim Meyering 1995-07-20 19:22:28 +00:00
  • db566dba37 Correct typo in Copyright. Reformat paragraph so line with new FSF address fits in 80 columns. Jim Meyering 1995-07-20 19:13:23 +00:00
  • 3d699e8ee0 (usage): Move it to precede all other functions. Fiddle comments. Jim Meyering 1995-07-20 19:10:08 +00:00
  • e20e0ba392 New version from Drepper. Jim Meyering 1995-07-20 19:08:08 +00:00
  • dfe3d8837e . Jim Meyering 1995-07-20 17:52:49 +00:00
  • e59ec88ea2 . Jim Meyering 1995-07-16 23:43:17 +00:00
  • 66c43ec708 . Jim Meyering 1995-07-16 23:41:17 +00:00
  • e692090b89 . Jim Meyering 1995-07-16 23:39:51 +00:00
  • 1e74962c8a Add #else block after #ifdef VMS. (main): Rename local variable. Add FIXME: allow newlines in filenames. Detect and report failed fclose calls on stdout and checkfile_stream. Jim Meyering 1995-07-16 05:47:55 +00:00
  • 14aaf3eab3 (build_spec_list): Declare CLOSING_DELIM_IDX and CLOSING_BRACKET_IDX to be of type size_t, not int. (main): Declare NR and CHARS_READ to be of type long, not int. Jim Meyering 1995-07-16 05:39:09 +00:00
  • adfa243b0d (unqote): Comment out unreachable break stmts. (append_range): Declare FIRST and LAST parameters to be unsigned int, not size_t. (find_closing_delim): Clean up interface, separating boolean success indicator and index. (find_bracketed_repeat): Likewise. (build_spec_list): Adapt to use new interfaces. Jim Meyering 1995-07-12 03:13:40 +00:00
  • 37ba8d9867 (main): Comment out unreachable break stmt. Jim Meyering 1995-07-12 03:06:49 +00:00
  • c20ee98ac8 (dump): Convert to use smaller -- but seemingly equivalent -- patch. Jim Meyering 1995-07-12 03:06:03 +00:00
  • 21aa588967 Reorder functions so main is last, so no forward dcls are needed. Jim Meyering 1995-07-12 03:01:33 +00:00
  • ba34723398 (tail): Explicitly cast to long the N_UNITS argumennt in call to tail_lines. Otherwise, NetBSD lost because N_UNITS (of type off_t, a 64-bit type on NetBSD) wasn't converted to the target type, long. Reported by Dan Hagerty (hag@gnu.ai.it.edu). Jim Meyering 1995-07-12 02:59:44 +00:00
  • 51c3164ba3 (main): Add UCHAR casts. Jim Meyering 1995-07-09 17:06:41 +00:00
  • 307526e92d . Jim Meyering 1995-07-09 16:42:40 +00:00
  • 6dfad5e900 (main): When using obsolescent +pos -pos syntax, allow omission of field spec only when character offset is specified. Otherwise, -. +. would be accepted. Jim Meyering 1995-07-09 16:42:31 +00:00
  • 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). Jim Meyering 1995-07-09 02:25:11 +00:00
  • bb5590f7b6 . Jim Meyering 1995-07-07 04:46:18 +00:00
  • 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. Jim Meyering 1995-07-07 04:46:03 +00:00
  • b9d3dc4101 Remove trailing white space. Jim Meyering 1995-07-06 16:07:07 +00:00
  • 20b6a5b40a (od): Remove space beteen -w and optional argument. Jim Meyering 1995-07-06 16:06:32 +00:00
  • 72d4155c90 . Jim Meyering 1995-07-03 03:12:54 +00:00
  • e7c2d62889 . Jim Meyering 1995-07-03 03:11:05 +00:00
  • c8e05ecd8d (split_3): Rewrite to parse Plumb/Lankester format as well. (main): Write (de facto) standard Plumb/Lankester format. New option: --quiet. Check option no longer takes an argument. When checking, exit status reflects success. Jim Meyering 1995-07-03 03:10:59 +00:00
  • 9c8e5123bd Remove unused dcl of isnumber. Jim Meyering 1995-06-25 01:46:32 +00:00
  • 9a5882ba80 (parse_group): Use xstrtoul instead of isnumber; the latter would silently overflow, accepting a group id larger than INT_MAX. (isnumber): Remove now-unused static function. (change_file_group) [MAXUID]: Give a more descriptive message when numeric group id is larger than MAXUID. Jim Meyering 1995-06-25 01:44:35 +00:00
  • 7981e85eb3 merge with 1.12a Jim Meyering 1995-06-24 22:02:25 +00:00
  • 1d7e1a535b . Jim Meyering 1995-06-24 21:34:02 +00:00
  • 4610e33cb2 Don't conditionalize use of "inline". Autoconf takes care of defining it away for compilers that don't grok it. Jim Meyering 1995-06-24 21:33:52 +00:00
  • 9cda676546 . Jim Meyering 1995-06-24 21:22:11 +00:00
  • f5ff11c61d . Jim Meyering 1995-06-24 21:17:13 +00:00
  • 86671a4ed0 Undefine min and/or max before defining to avoid redefinition warning on systems. Jim Meyering 1995-06-24 21:10:12 +00:00
  • 5cd7a18539 (read_input): Rename paramater MAX to MAX_N_BYTES. To avoid potential conflict with max macro from some system's header files and bad pre-ANSI compilers. Jim Meyering 1995-06-24 21:07:55 +00:00
  • 4b366ceed5 [uint32]: When testing for 32-bit arithmetic type, also check `unsigned long', as a concession to systems with int's smaller than 32 bits. Jim Meyering 1995-06-24 20:53:17 +00:00
  • eb5665733a (usage): Fix typo. Jim Meyering 1995-06-24 20:38:52 +00:00
  • ec8d1fce62 (main): Include program name in --version output. Jim Meyering 1995-06-22 18:43:14 +00:00
  • 4afe3f334a [join]: Redefine. Otherwise, systems (Unicos for one) with headers that have a different prototype for `join' get an error. Jim Meyering 1995-06-22 04:03:33 +00:00
  • b27934a727 . Jim Meyering 1995-06-22 04:00:26 +00:00
  • e7d420aabb [word]: Redefine. Otherwise, systems (Unicos for one) with headers that define `word' to be a type get syntax errors because of the variable by the same name. Jim Meyering 1995-06-22 03:59:55 +00:00
  • 3f76720636 (interrupt_handler): Declare to have a single integer parameter. Otherwise, some compilers failed with a type mismatch error in sa_handler assignment. Jim Meyering 1995-06-22 03:59:27 +00:00
  • 3fba1e486e (main): Remove spurious colon in getopt spec string. From Ken Pizzini <kenp@spry.com>. Jim Meyering 1995-06-22 03:58:21 +00:00
  • 59f93bf56c (md5_file): Initialize two elements of LEN portably, rather than with ANSI aggregate initialization. Reported by Edzer Pebesma <Edzer.Pebesma@rivm.nl>. Jim Meyering 1995-06-20 12:00:55 +00:00
  • 6ebaf82426 merge with 1.12 Jim Meyering 1995-06-18 19:33:31 +00:00
  • d96ba2d153 . Jim Meyering 1995-06-18 14:24:56 +00:00
  • 2adaaa8521 . Jim Meyering 1995-06-18 14:21:58 +00:00
  • 755cdcee27 (process_buffer): Copy values from struct into individual local variables before performing computation on them, then copy results back into returned struct. Solely for better optimization by compilers that can't keep struct members in registers. From Ulrich Drepper. Jim Meyering 1995-06-18 14:21:50 +00:00
  • 643a49ea6c . Jim Meyering 1995-06-16 04:25:05 +00:00
  • 583e66e5b0 . Jim Meyering 1995-06-16 04:21:08 +00:00
  • 769f82b90b . Jim Meyering 1995-06-16 04:15:25 +00:00
  • 19ffe3f16e (split_3): Unprotoize. (hex_digits): Unprotoize. (main): Interpret `no file args' as request to read from stdin. (usage): Reflect that change. Jim Meyering 1995-06-16 04:13:36 +00:00
  • 66196f8fd7 Half-assed patch from Karl -- probably need to change file name' to filename'. Jim Meyering 1995-06-16 03:59:41 +00:00
  • 820cd5c090 . Jim Meyering 1995-06-16 03:26:56 +00:00
  • cdfc0cf26f Remove unnecessary uses of `defined' in #if* tests. Don't use #elif. Some older compilers don't grok it. (split_3): New function to parse out sum, flag, and filename when reading check file. (hex_digits): Remove length parameter since string parameter is now nul-terminated. (main): Don't allocate separate arrays for filename and sum when checking. Get pointers into line buffer with split_3 instead of using sscanf. Jim Meyering 1995-06-16 03:14:19 +00:00
  • aab046d29b Don't include values.h. [__P]: Undefine it. Jim Meyering 1995-06-15 18:44:48 +00:00
  • ad1b9f0851 . Jim Meyering 1995-06-15 18:44:27 +00:00
  • f9f17d4b0f merge with 1.11.5b Jim Meyering 1995-06-15 16:46:34 +00:00
  • 33969b2c90 patch from drepper Jim Meyering 1995-06-15 15:02:01 +00:00
  • 88b9522242 Alloca fix for ConvexOS-11.0. Jim Meyering 1995-06-15 14:55:26 +00:00
  • 2907e4e4f1 Use void* alloca, not char*. The latter lost on convexOS. Jim Meyering 1995-06-15 03:57:49 +00:00
  • 84876e7e9e md5sum docs from Ulrich. Jim Meyering 1995-06-15 03:43:52 +00:00
  • 8f6e9e8827 (main): Rename char binary' to type_flag to avoid confusion with int binary'. Jim Meyering 1995-06-15 03:18:13 +00:00
  • 9387b92371 Don't use #elif. Some old C compilers don't recognize it. (hex_digits): New function. (result): Give ctx parameter the `const' attribute. (usage): Rewrite to make it clearer that there are three modes. (main): Process all options before generating any output. In particular, collect all --string options rather than operating on them as they are encountered. Jim Meyering 1995-06-15 03:15:37 +00:00
  • a04bfe9cbf . Jim Meyering 1995-06-14 03:44:16 +00:00
  • f7c77084b4 . Jim Meyering 1995-06-14 02:24:18 +00:00
  • 60437a80ca [NDEBUG]: Define it to disable assertions. (is_char_class_member): Set a variable in each branch of switch stmt and return that value after the switch (rather than returning directly from every branch). (unquote): More int->size_t changes. (build_spec_list): More int->size_t changes. Be very careful about comparison now that variables are unsigned: Use i + 2 < len rather than i < len - 2. The latter failed for len < 2. Jim Meyering 1995-06-14 02:23:48 +00:00
  • 891c9b5cc7 . Jim Meyering 1995-06-13 04:46:19 +00:00
  • 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). Jim Meyering 1995-06-13 04:46:12 +00:00
  • 46a1fec4a5 . Jim Meyering 1995-06-13 04:33:45 +00:00
  • ca73f85acf [struct Spec_list] (indefinite_repeat_element): New member. Use size_t rather than int or unsigned long where reasonable. (get_spec_status): Make interface cleaner. (get_s1_spec_status): New function. (get_s2_spec_status): New function. (validate): Use new functions. Jim Meyering 1995-06-13 04:08:59 +00:00
  • da78e2df64 Indent some things. (long_options): Add NULL entry. From Uli. Touch up some comments. (process_buffer): Bracket definition of OP with do...while(0) so stmts can be semicolon terminated. Jim Meyering 1995-06-13 04:02:22 +00:00
  • bcee3d43ca (non_neg_strtol): Don't compare signed and unsigned. Jim Meyering 1995-06-12 18:28:24 +00:00
  • afe762e4e6 [!__GNUC__]: Define INLINE to /* empty */. Jim Meyering 1995-06-12 14:42:41 +00:00
  • 5b45da2a71 . Jim Meyering 1995-06-12 05:27:12 +00:00
  • bb789f462c . Jim Meyering 1995-06-12 05:25:04 +00:00
  • a14d08e891 Remove now-obsolete comment and leading space. Jim Meyering 1995-06-12 05:09:57 +00:00
  • 81ca3a8b6c Remove now-obsolete comment and leading space. Jim Meyering 1995-06-12 05:08:16 +00:00
  • fd9df74e75 . Jim Meyering 1995-06-11 19:56:29 +00:00
  • c502988b26 Use invalid', not illegal' in error message. Jim Meyering 1995-06-11 19:54:49 +00:00
  • 1d1094a69e Remove trailing white space. Jim Meyering 1995-06-11 19:37:03 +00:00
  • 8ddb66cff4 [SWAP]: Parenthesize uses of macro argument. Don't use autoconf macros that require running test programs. Jim Meyering 1995-06-11 06:16:17 +00:00
  • 3763a4f24e From Ulrich Drepper. Jim Meyering 1995-06-11 06:04:15 +00:00