Jim Meyering
b08eca15fd
(search_item): Use 1' instead of +1'. The latter
...
elicits a syntax error from SunOS4's cc. From Kaveh Ghazi.
1999-05-04 14:31:27 +00:00
Jim Meyering
6f922edf2d
<ctype.h>: Don't include.
...
[!STDC_HEADERS]: Remove definitions of ctype macros.
Convert e.g., isspace to ISSPACE to use definitions from sys2.h.
Reported by Kaveh Ghazi.
1999-05-03 18:01:49 +00:00
Jim Meyering
85514c7e0b
(TOLOWER): Define.
...
(TOUPPER): Define.
1999-05-03 17:59:43 +00:00
Jim Meyering
e060631c35
(TOLOWER): Remove definition.
1999-05-03 17:55:53 +00:00
Jim Meyering
cac31ff114
*** empty log message ***
SH-UTILS-1_16h
1999-05-03 03:58:40 +00:00
Jim Meyering
f0e23dcff9
*** empty log message ***
1999-05-03 03:56:46 +00:00
Jim Meyering
b3faad27ed
.
1999-05-03 02:46:54 +00:00
Jim Meyering
38121144b2
.
1999-05-03 02:45:51 +00:00
Jim Meyering
73bc7f0777
(main): Give a better diagnostic when we fail to set the hostname.
1999-05-03 02:45:37 +00:00
Jim Meyering
99571c629e
(main): Manually handle `--', since we no longer call getopt.
1999-05-03 02:42:49 +00:00
Jim Meyering
4f40ac7422
(read_utmp): Ignore the return value from utmpname.
1999-05-03 02:38:50 +00:00
Jim Meyering
1610efe2fd
Define several tag-related make variables.
...
(cvs-dist): Use the make variables instead of shell ones.
(announcement): Automatically generate diffs for all ChangeLog files,
not just the top level one.
1999-05-01 04:33:45 +00:00
Jim Meyering
1c70e83474
*** empty log message ***
1999-05-01 04:15:43 +00:00
Jim Meyering
9a06759937
*** empty log message ***
1999-05-01 04:15:09 +00:00
Jim Meyering
6161d60dde
*** empty log message ***
1999-05-01 04:13:56 +00:00
Jim Meyering
e3cd439763
(AC_REPLACE_FUNCS): Add dup2.
1999-05-01 04:13:45 +00:00
Jim Meyering
5e1ffee4d6
(main): Manually handle `--', since we no longer
...
call getopt. Reported by Joseph S. Myers.
1999-05-01 02:29:17 +00:00
Jim Meyering
910287474f
(main): Manually handle `--', since we no longer
...
call getopt. Reported by Joseph S. Myers.
1999-05-01 02:28:54 +00:00
Jim Meyering
6faa50c135
(decode_switches): Use STDIN_FILENO, STDOUT_FILENO instead of 0, 1.
1999-05-01 02:08:30 +00:00
Jim Meyering
9fca49f67c
Always use STDIN_FILENO for input and STDOUT_FILENO
...
for output, to avoid confusion with closed input and output fds.
(input_fd, output_fd): Remove; all uses changed to STDIN_FILENO
and STDOUT_FILENO.
(open_fd): New function.
(main): Use it, instead of open, to ensure that file descriptors
don't get confused.
(skip): Don't fstat the input file; the result is no longer used.
1999-05-01 02:05:56 +00:00
Jim Meyering
8a3c0671e0
*** empty log message ***
1999-05-01 00:13:13 +00:00
Jim Meyering
2f7eb5cdf5
(usage): Document the differences between the
...
obsolescent, +POS1[-POS2] form, and the POSIX -k option.
1999-05-01 00:12:26 +00:00
Jim Meyering
8fb3745a09
add emphasis that sort's -k M,N is inclusive
1999-04-30 22:35:54 +00:00
Jim Meyering
aaba44e639
*** empty log message ***
1999-04-30 20:59:49 +00:00
Jim Meyering
1cd88b2b5e
*** empty log message ***
1999-04-30 16:48:09 +00:00
Jim Meyering
60695039c0
*** empty log message ***
1999-04-30 16:03:53 +00:00
Jim Meyering
806520fdc0
Update to reflect this change by reversing
...
the order of arguments so the symlink is the source, not the
destination (otherwise, the mv command would now succeed).
1999-04-30 16:03:46 +00:00
Jim Meyering
25a8d1f1e9
(copy_internal): Move the one-file-system test so that
...
it follows the `if (new_dst || !S_ISDIR (dst_sb.st_mode))' block.
Prior to this change, `cp --one-file-system' would traverse a file-
system boundary if the destination directory existed.
From thospel@mail.dma.be .
1999-04-30 15:40:34 +00:00
Jim Meyering
f0e50d53d5
*** empty log message ***
1999-04-30 15:24:47 +00:00
Jim Meyering
40d99818ef
(copy_internal): Don't make `mv foo symlink-to-foo' fail.
...
That is, even though source and destination are `the same,' don't fail
if the destination is a symlink. From Peter Samuelson.
1999-04-30 15:15:02 +00:00
Jim Meyering
0d6a1583c6
*** empty log message ***
1999-04-26 15:07:44 +00:00
Jim Meyering
6f48de44ae
*** empty log message ***
1999-04-26 13:31:57 +00:00
Jim Meyering
9622d45140
(main): If you can't open an output file (with seek=...) read-write,
...
then open it for write and report an error if we can't seek.
1999-04-26 13:31:49 +00:00
Jim Meyering
890a087101
.
1999-04-26 13:25:28 +00:00
Jim Meyering
bc2e8cb6ce
(utime_null): Don't pass 0666 to open; it's not needed and isn't
...
guaranteed to be portable.
1999-04-26 13:25:08 +00:00
Jim Meyering
22cce6dadc
(S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined.
...
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
1999-04-26 13:22:23 +00:00
Jim Meyering
82893aff55
(make_node_op_equals, mode_compile, mode_create_from_ref, mode_adjust):
...
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
modechange.h now includes sys/types.h.
Include xstrtol.h.
(isodigit, oatoi): Remove.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP,
S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXU, S_IRWXG,
S_IRWXO): Define if not defined.
(CHMOD_MODE_BITS): New macro.
(mode_compile): Convert from octal with xstrtoul, not our own routine.
1999-04-26 13:19:37 +00:00
Jim Meyering
c262673191
Don't assume traditional Unix mode numbering.
1999-04-26 13:14:36 +00:00
Jim Meyering
d8071546b1
Include <config.h>, <sys/types.h> for mode_t.
...
(struct mode_change): Members affected and value are now mode_t instead
of unsigned short.
1999-04-26 13:13:59 +00:00
Jim Meyering
d1e59e17e7
<config.h>, <sys/types.h>: Include for mode_t.
...
(mode_string): Now takes mode_t.
1999-04-26 13:13:36 +00:00
Jim Meyering
9afd1dd692
(make_path): Use proper mode_t types and macros.
...
Don't assume the traditional Unix values for mode bits.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRWXU): Define if not defined.
1999-04-26 13:13:00 +00:00
Jim Meyering
c1e3742914
(setst, ftypelet, mode_string): Use proper mode_t types and macros.
...
Don't assume the traditional Unix values for mode bits.
(S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): Define if not defined.
<config.h>, <sys/types.h>: Include for mode_t.
(mode_string): Now takes mode_t.
1999-04-26 13:10:11 +00:00
Jim Meyering
157b3ef61f
(main): Use proper mode_t types and macros.
...
Don't assume the traditional Unix values for mode bits.
1999-04-26 13:03:49 +00:00
Jim Meyering
73e540ea1b
(do_copy, cp_option_init, main): Use proper mode_t types and macros.
...
Don't assume the traditional Unix values for mode bits.
1999-04-26 13:03:11 +00:00
Jim Meyering
12dd796d8a
(struct cp_options.umask_kill): Use mode_t, not unsigned int.
1999-04-26 12:55:36 +00:00
Jim Meyering
d1c7f62ba8
(copy_reg, copy_internal): Use proper mode_t types and macros.
...
Don't assume the traditional Unix values for mode bits.
1999-04-26 12:54:51 +00:00
Jim Meyering
5d76644c3e
(describe_change, change_file_mode): Use proper mode_t types and macros.
...
Don't assume the traditional Unix values for mode bits.
1999-04-26 12:51:43 +00:00
Jim Meyering
750e5969ff
(main): Use proper mode_t types and macros.
...
Don't assume the traditional Unix values for mode bits.
1999-04-26 12:49:59 +00:00
Jim Meyering
6fc1cc1b6a
(isodigit): Remove unused macro.
...
(mode, cp_option_init, DIR_MODE): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
1999-04-26 12:49:16 +00:00
Jim Meyering
9e37b40aa1
(S_ISUID, S_ISGID, S_ISVTX, S_IRWXU, S_IRWXG, S_IRWXO):
...
Define if not defined.
(CHMOD_MODE_BITS): New macro.
1999-04-26 12:48:12 +00:00