1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00
Commit Graph

9105 Commits

Author SHA1 Message Date
Jim Meyering 7ddc6c5927 *** empty log message *** 2000-07-29 08:15:37 +00:00
Jim Meyering 043c4958de remove prematurely-added ISSLASH definition 2000-07-29 08:15:01 +00:00
Jim Meyering 3819c2d7cb (dir_name): Assert that there are no trailing slashes. 2000-07-29 08:10:46 +00:00
Jim Meyering ba8620bf01 *** empty log message *** 2000-07-29 08:00:17 +00:00
Jim Meyering e32586114e (dir_name) [MSDOS]: Declare `lim' to be const. 2000-07-29 08:00:11 +00:00
Jim Meyering 7102df4dd3 *** empty log message *** 2000-07-29 06:17:27 +00:00
Jim Meyering 586254e713 Include <limits.h>, <stdlib.h>, <wchar.h>, <wctype.h>.
(quote_name): Use mbrtowc to step through the filename string while
replacing nonprintables with question marks. Return the screen width,
not the strlen length. Do no output if the out stream is NULL.
(length_of_file_name_and_frills): Use the quote_name return value.
2000-07-29 06:17:02 +00:00
Jim Meyering cbcd5929c1 *** empty log message *** 2000-07-29 06:09:43 +00:00
Jim Meyering e6db9876a0 tweak comments 2000-07-29 06:09:22 +00:00
Jim Meyering f247c7bd44 (mbswidth): Add a flags argument.
(mbswidth): New declaration.
(MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
2000-07-29 06:02:28 +00:00
Jim Meyering e7a7601ef4 . 2000-07-29 05:47:42 +00:00
Jim Meyering 3330c7dab7 *** empty log message *** 2000-07-29 05:42:14 +00:00
Jim Meyering d0f57e1004 (temp_dir): Remove.
(temp_dirs, temp_dir_count, temp_dir_alloc): New vars.
(process_id): New var.
(usage): Describe new use of -T.
(add_temp_dir): New function.
(tempname): Use new temp_dirs array.
Do not discard information from the process-id or sequence
number, unless we have short file names.
(sighandle): Use process_id instead of getpid.
(main): Initialize process_id.
Add support for the new use of -T.
2000-07-29 05:41:55 +00:00
Jim Meyering 9b14de28be sort's -T option can now appear multiple times. 2000-07-29 05:31:44 +00:00
Jim Meyering 9133ae8f15 *** empty log message *** 2000-07-29 05:25:34 +00:00
Jim Meyering d86f9d40a5 (change_file_owner): Save errno from a possibly failed chown,
and use that later.  Otherwise, errno itself could be clobbered before used.
2000-07-25 22:23:05 +00:00
Jim Meyering ebd74667bc (change_file_mode): Save errno from a possibly failed chown,
and use that later.  Otherwise, errno itself could be clobbered before used.
2000-07-25 22:22:52 +00:00
Jim Meyering d3938d3118 (change_file_group): Save errno from a possibly failed chown,
and use that later.  Otherwise, errno itself could be clobbered before used.
2000-07-25 22:22:29 +00:00
Jim Meyering c0186d3cbb Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
2000-07-25 13:06:31 +00:00
Jim Meyering 289dacfa49 tweak diagnostic 2000-07-25 12:28:33 +00:00
Jim Meyering 1bfc7036c0 *** empty log message *** 2000-07-25 12:27:01 +00:00
Jim Meyering cb1df652a7 Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
2000-07-25 12:26:52 +00:00
Jim Meyering 135a310ca1 Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
2000-07-25 12:18:06 +00:00
Jim Meyering 01bd168259 (main): Remove unnecessary "%s" argument. 2000-07-25 12:16:16 +00:00
Jim Meyering 50631d7b81 *** empty log message *** 2000-07-24 16:30:03 +00:00
Jim Meyering 18051fbbb3 (mbswidth): Add a flags argument.
(mbsnwidth): New function.
2000-07-24 16:29:57 +00:00
Jim Meyering ddc825a0f0 Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
2000-07-24 09:32:07 +00:00
Jim Meyering 2071a4054e *** empty log message *** 2000-07-24 06:42:26 +00:00
Jim Meyering 80dbd557de (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration. 2000-07-24 06:42:17 +00:00
Jim Meyering b083f93482 *** empty log message *** 2000-07-24 06:42:04 +00:00
Jim Meyering 66a0218c1a (_XOPEN_SOURCE): Don't define; this causes problems on Solaris 7.
(wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
2000-07-24 06:41:58 +00:00
Jim Meyering 50c130325e *** empty log message *** 2000-07-24 06:14:32 +00:00
Jim Meyering 1978f56515 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
so that mbstate_t is always defined.

Do not inspect MB_LEN_MAX, since it's incorrectly defined to
be 1 in at least one GCC installation, and this configuration
error is likely to be common.  Ignoring MB_LEN_MAX hurts
performance on hosts that have mbrtowc but have only unibyte
locales, but I assume these hosts are rare.
2000-07-24 06:14:19 +00:00
Jim Meyering d53f7b9a5d *** empty log message *** 2000-07-23 21:48:28 +00:00
Jim Meyering d565aeb336 Streamline by invoking multibyte code only if needed.
<wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
(MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
(quotearg_buffer_restyled): If a unibyte locale, don't bother to
invoke multibyte primitives.
2000-07-23 21:48:17 +00:00
Jim Meyering 5294c10e84 *** empty log message *** 2000-07-23 21:06:22 +00:00
Jim Meyering 64eece7c53 fix typos (missing commas) FILEUTILS-4_0x 2000-07-23 18:44:35 +00:00
Jim Meyering 894d51af47 *** empty log message *** 2000-07-23 18:29:44 +00:00
Jim Meyering 6407eda7df *** empty log message *** 2000-07-23 16:27:38 +00:00
Jim Meyering e67940b416 Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
rather than if _POSIX_VERSION is defined.  Remove declarations of
getpwuid, getgrgid, and getuid, now that they're in sys2.h.
2000-07-23 16:27:13 +00:00
Jim Meyering 57a16fe8c1 . 2000-07-23 15:36:43 +00:00
Jim Meyering 62ab4baa06 (main): Give a better diagnostic for e.g.,
`dd if=/dev/fd0 seek=100000000000'.
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add many, more precise diagnostics.
2000-07-23 15:36:34 +00:00
Jim Meyering 00652253f7 *** empty log message *** 2000-07-23 15:28:29 +00:00
Jim Meyering 6a3f36dacb [!HAVE_DECL_GETPWUID]: Declare getpwuid.
[!HAVE_DECL_GETGRGID]: Declare getgrgid.
[!HAVE_DECL_GETUID]: Declare getuid.
2000-07-23 15:28:24 +00:00
Jim Meyering dafbd8d26d *** empty log message *** 2000-07-23 15:27:19 +00:00
Jim Meyering 0c96a22ac7 (jm_CHECK_DECLS): Check for declarations of these, too:
getgrgid, getpwuid, getuid.
2000-07-23 15:27:11 +00:00
Jim Meyering 3091cce80a *** empty log message *** 2000-07-23 13:58:48 +00:00
Jim Meyering a83726fb4e *** empty log message *** 2000-07-23 11:07:09 +00:00
Jim Meyering 2bfbe02e2f Rename tests (and hence files) to have a short
enough prefix so that they're not truncated on 8+3 file systems.
Reported by Eli Zaretskii.
2000-07-23 11:07:05 +00:00
Jim Meyering 92d2c54ae9 *** empty log message *** 2000-07-23 11:01:19 +00:00