Commit Graph
18160 Commits
Author SHA1 Message Date
Jim Meyering 7a4f3edeb0 *** empty log message *** 2004-04-08 15:21:23 +00:00
Jim Meyering 470a15a00e (set_fd_flags): Don't OR in -1 when fcntl fails.
Rename parameter, flags, to avoid shadowing global.
2004-04-08 15:20:33 +00:00
Jim Meyering a660c7e165 New dd conv= symbols nocreat, excl, fdatasync, fsync,
and new dd options iflag= and oflag=.
2004-04-08 10:25:27 +00:00
Jim Meyering ba2e895b06 *** empty log message *** 2004-04-08 10:25:03 +00:00
Jim Meyering a021886f98 (jm_MACROS): Check for fdatasync within
-lrt and -lposix4, so that it can be used in Solaris 2.5.1 and later.
2004-04-08 10:24:58 +00:00
Jim Meyering 0c5fbdba06 New dd conv= symbols nocreat, excl, fdatasync, fsync,
and new dd options iflag= and oflag=.

(usage): Document.
(fdatasync) [!HAVE_FDATASYNC]: New macro.
(C_NOCREAT, C_EXCL, C_FDATASYNC, C_FSYNC): New macros.
(input_flags, output_flags): New vars.
(LONGEST_SYMBOL): New macro.
(struct symbol_value): Renamed from struct conversion.  Members
symbol and value renamed from convname and conversion.  The
symbol value is now an array instead of a pointer; this saves
a bit of space and time in practice.  All uses changed.
(conversions): Add nocreat, excl, fdatasync, fsync.  Now const.
(flags): New constant array.
(iflag_error_msgid, oflag_error_msgid): New constants.
(parse_symbols): Renamed from parse_conversion and generalized
to handle either conversion or flag symbols.
(scanargs): Adjust uses of parse_symbols accodingly.  Add
support for iflag= and oflag=.  Reject attempts to use
both excl and nocreat.
(set_fd_flags): New function.
(dd_copy): Just return X rather than calling quit (X), since our
caller invokes quit with the returned value.  Add support for
fdatasync and fsync.
(main): Add support for iflags=, oflags=, and new conv= symbols.
2004-04-08 10:22:05 +00:00
Jim Meyering 273184066e (O_DIRECT, O_DSYNC, O_NDELAY, O_NOFOLLOW, O_RSYNC, O_SYNC):
Define to 0 if not already defined.
2004-04-08 08:14:02 +00:00
Jim Meyering 6be212659d *** empty log message *** 2004-04-07 10:56:00 +00:00
Jim Meyering 0993dd1a59 stty now provides support for Linux's iutf8 input mode. 2004-04-07 09:53:34 +00:00
Jim Meyering 733e79ed1f Add support for IUTF8 input flag. 2004-04-07 09:52:22 +00:00
Jim Meyering ef1c6a32bf *** empty log message *** 2004-04-07 09:52:10 +00:00
Jim Meyering e1e509dd3f *** empty log message *** 2004-04-07 09:51:24 +00:00
Jim Meyering 246870834b (stty invocation - Input): Document new iutf8 option. 2004-04-07 09:50:48 +00:00
Jim Meyering 05433f3c37 *** empty log message *** 2004-04-06 13:55:12 +00:00
Jim Meyering faa858b57b (makedev) [mkdev && !makedev]: Define makedev to mkdev.
For Interix.
2004-04-06 13:55:00 +00:00
Jim Meyering 8ae1cfddb7 *** empty log message *** 2004-04-06 13:54:02 +00:00
Jim Meyering b9bf29b6df *** empty log message *** 2004-04-04 16:24:29 +00:00
Jim Meyering 378375a2bd (stat invocation): Correct --format description. 2004-04-04 16:24:25 +00:00
Jim Meyering 4cd3d96335 *** empty log message *** 2004-04-04 16:22:29 +00:00
Jim Meyering c0c9569dc4 A specified format is no longer automatically newline terminated.
If you want a newline at the end of your format, use `\n'.

(print_it): Don't print a newline at the end of
every format.
(do_statfs): Add a newline at end of each default format string.
2004-04-04 16:22:26 +00:00
Jim Meyering c2afe164ac *** empty log message *** 2004-04-04 06:56:19 +00:00
Jim Meyering b275fab12c . 2004-04-04 06:55:58 +00:00
Jim Meyering f8707d3711 *** empty log message *** 2004-04-04 06:54:16 +00:00
Jim Meyering 17248a88e0 (jm_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR. 2004-04-04 06:54:11 +00:00
Jim Meyering 96326862eb New files, from gnulib. 2004-04-04 06:53:53 +00:00
Jim Meyering 8d553e22b1 Sync from gnulib. 2004-04-04 06:53:20 +00:00
Jim Meyering 8c5584a151 Sync from gnulib. 2004-04-04 06:51:11 +00:00
Jim Meyering fef1640957 . 2004-04-04 06:50:03 +00:00
Jim Meyering c8768c6951 . 2004-04-04 06:49:21 +00:00
Jim Meyering 197e2c2faf Sync from gnulib. 2004-04-04 06:40:50 +00:00
Jim Meyering 1f22a555be New files, from gnulib 2004-04-04 06:39:39 +00:00
Jim Meyering 6b8c597df2 *** empty log message *** 2004-04-04 06:39:02 +00:00
Jim Meyering cad5238789 sync from gnulib 2004-04-04 06:35:26 +00:00
Jim Meyering 22408841d1 . 2004-04-04 06:35:14 +00:00
Jim Meyering 1a39890f3c (main): Adjust to new calling convention for set_cloexec_flag. 2004-04-04 06:33:44 +00:00
Jim Meyering e71b27609e Add strdup.h. 2004-04-02 22:25:17 +00:00
Jim Meyering 601fdc5f75 whoops. add strdup.h, not xstrdup.h. 2004-04-02 22:22:00 +00:00
Jim Meyering d2377406d6 (libfetish_a_SOURCES): Add allocsa.c, allocsa.h and strdup.h. 2004-04-02 22:20:06 +00:00
Jim Meyering a1f9dd8cc7 align some continuation-backslashes 2004-04-01 17:14:46 +00:00
Jim Meyering aa38cbbb5c tweak indentation 2004-04-01 17:13:07 +00:00
Jim Meyering 31d71eb07c remove obsolete comment 2004-04-01 17:12:22 +00:00
Jim Meyering 2d217a9c81 also check for atoll 2004-03-31 17:32:11 +00:00
Jim Meyering dee056cd1b . 2004-03-31 09:01:47 +00:00
Jim Meyering a43f3fe3cf *** empty log message *** 2004-03-31 08:39:35 +00:00
Jim Meyering 99b004b46b (run_tests): Remove `.orig' file.
Remove debugging diagnostic.
2004-03-31 08:39:22 +00:00
Jim Meyering 41bef30872 *** empty log message *** 2004-03-31 08:30:22 +00:00
Jim Meyering a448e764c3 whoops. Remove old code, too, <blush>. 2004-03-31 08:27:27 +00:00
Jim Meyering 9ff9deed71 *** empty log message *** 2004-03-31 08:25:13 +00:00
Jim Meyering 35e3e7e672 Specifying an invalid --width=N (-w) or --gap-size=N (-g)
would not elicit an error.

Include "xstrtol.h" and "quotearg.h".
(main): Don't use atoi.  Use xstrtoul instead.
2004-03-31 08:25:04 +00:00
Jim Meyering 75e3763623 . 2004-03-31 07:49:30 +00:00