platform/upstream/coreutils.git
20 years agoNew file, with contents from file-type.h and coreutils' system.h.
Jim Meyering [Fri, 9 Apr 2004 12:13:37 +0000 (12:13 +0000)]
New file, with contents from file-type.h and coreutils' system.h.

20 years agoInclude stat-macros.h, not file-type.h.
Jim Meyering [Fri, 9 Apr 2004 12:05:45 +0000 (12:05 +0000)]
Include stat-macros.h, not file-type.h.
Move more definitions into stat-macros.h.

20 years agoundo last change
Jim Meyering [Fri, 9 Apr 2004 12:03:02 +0000 (12:03 +0000)]
undo last change

20 years ago*** empty log message ***
Jim Meyering [Fri, 9 Apr 2004 11:33:56 +0000 (11:33 +0000)]
*** empty log message ***

20 years ago(.re-list): New rule/file, to replace hard-coded list of header file names.
Jim Meyering [Fri, 9 Apr 2004 11:33:53 +0000 (11:33 +0000)]
(.re-list): New rule/file, to replace hard-coded list of header file names.
(sc_system_h_headers): Use the new file.

20 years ago*** empty log message ***
Jim Meyering [Fri, 9 Apr 2004 08:27:01 +0000 (08:27 +0000)]
*** empty log message ***

20 years agoDon't include "file-type.h", now that system.h does.
Jim Meyering [Fri, 9 Apr 2004 08:26:17 +0000 (08:26 +0000)]
Don't include "file-type.h", now that system.h does.

20 years ago*** empty log message ***
Jim Meyering [Fri, 9 Apr 2004 08:25:50 +0000 (08:25 +0000)]
*** empty log message ***

20 years agoInclude file-type.h rather than hard-coding all
Jim Meyering [Fri, 9 Apr 2004 08:25:32 +0000 (08:25 +0000)]
Include file-type.h rather than hard-coding all
of its macros definitions -- the list was slightly out of date.

20 years ago(header_regexp): Add file-type.h.
Jim Meyering [Fri, 9 Apr 2004 08:24:22 +0000 (08:24 +0000)]
(header_regexp): Add file-type.h.
(sc_system_h_headers): Don't look for sys2.h anymore.

20 years ago.
Jim Meyering [Fri, 9 Apr 2004 07:28:33 +0000 (07:28 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Apr 2004 21:37:50 +0000 (21:37 +0000)]
*** empty log message ***

20 years agoRemove noctty flag from dd.
Jim Meyering [Thu, 8 Apr 2004 21:36:45 +0000 (21:36 +0000)]
Remove noctty flag from dd.

20 years ago(O_NOCTTY): Remove redundant decl.
Jim Meyering [Thu, 8 Apr 2004 21:36:18 +0000 (21:36 +0000)]
(O_NOCTTY): Remove redundant decl.

20 years ago(flags, usage): Remove noctty flag.
Jim Meyering [Thu, 8 Apr 2004 21:36:06 +0000 (21:36 +0000)]
(flags, usage): Remove noctty flag.
(main): Always use O_NOCTTY when opening files.

20 years ago.
Jim Meyering [Thu, 8 Apr 2004 21:35:35 +0000 (21:35 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Apr 2004 21:30:22 +0000 (21:30 +0000)]
*** empty log message ***

20 years ago(set_fd_flags): Undo part of today's change: it's a little
Jim Meyering [Thu, 8 Apr 2004 21:30:18 +0000 (21:30 +0000)]
(set_fd_flags): Undo part of today's change: it's a little
cleaner -- and more efficient in the common case -- to go
ahead and OR in the -1 when fcntl fails.

20 years ago(dd_copy): Mark two diagnostics for translations.
Jim Meyering [Thu, 8 Apr 2004 21:26:28 +0000 (21:26 +0000)]
(dd_copy): Mark two diagnostics for translations.

20 years ago.
Jim Meyering [Thu, 8 Apr 2004 15:38:59 +0000 (15:38 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Apr 2004 15:38:46 +0000 (15:38 +0000)]
*** empty log message ***

20 years ago(sc_dd_max_sym_length): New target.
Jim Meyering [Thu, 8 Apr 2004 15:38:43 +0000 (15:38 +0000)]
(sc_dd_max_sym_length): New target.
(syntax-check-rules): Add it.

20 years ago(dd_LDADD, shred_LDADD): Add fdatasync's lib.
Jim Meyering [Thu, 8 Apr 2004 15:36:31 +0000 (15:36 +0000)]
(dd_LDADD, shred_LDADD): Add fdatasync's lib.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Apr 2004 15:35:46 +0000 (15:35 +0000)]
*** empty log message ***

20 years agoNew dd conv= symbols nocreat, excl, fdatasync, fsync,
Jim Meyering [Thu, 8 Apr 2004 15:35:40 +0000 (15:35 +0000)]
New dd conv= symbols nocreat, excl, fdatasync, fsync,
and new dd options iflag= and oflag=.

(dd invocation): Document them.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Apr 2004 15:31:13 +0000 (15:31 +0000)]
*** empty log message ***

20 years agoCorrect spelling: s/shasum/sha1sum.
Jim Meyering [Thu, 8 Apr 2004 15:31:08 +0000 (15:31 +0000)]
Correct spelling: s/shasum/sha1sum.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Apr 2004 15:30:46 +0000 (15:30 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Thu, 8 Apr 2004 15:26:04 +0000 (15:26 +0000)]
.

20 years ago(LONGEST_SYMBOL): Tweak comment.
Jim Meyering [Thu, 8 Apr 2004 15:25:39 +0000 (15:25 +0000)]
(LONGEST_SYMBOL): Tweak comment.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Apr 2004 15:21:23 +0000 (15:21 +0000)]
*** empty log message ***

20 years ago(set_fd_flags): Don't OR in -1 when fcntl fails.
Jim Meyering [Thu, 8 Apr 2004 15:20:33 +0000 (15:20 +0000)]
(set_fd_flags): Don't OR in -1 when fcntl fails.
Rename parameter, flags, to avoid shadowing global.

20 years agoNew dd conv= symbols nocreat, excl, fdatasync, fsync,
Jim Meyering [Thu, 8 Apr 2004 10:25:27 +0000 (10:25 +0000)]
New dd conv= symbols nocreat, excl, fdatasync, fsync,
and new dd options iflag= and oflag=.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Apr 2004 10:25:03 +0000 (10:25 +0000)]
*** empty log message ***

20 years ago(jm_MACROS): Check for fdatasync within
Jim Meyering [Thu, 8 Apr 2004 10:24:58 +0000 (10:24 +0000)]
(jm_MACROS): Check for fdatasync within
-lrt and -lposix4, so that it can be used in Solaris 2.5.1 and later.

20 years agoNew dd conv= symbols nocreat, excl, fdatasync, fsync,
Jim Meyering [Thu, 8 Apr 2004 10:22:05 +0000 (10:22 +0000)]
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.

20 years ago(O_DIRECT, O_DSYNC, O_NDELAY, O_NOFOLLOW, O_RSYNC, O_SYNC):
Jim Meyering [Thu, 8 Apr 2004 08:14:02 +0000 (08:14 +0000)]
(O_DIRECT, O_DSYNC, O_NDELAY, O_NOFOLLOW, O_RSYNC, O_SYNC):
Define to 0 if not already defined.

20 years ago*** empty log message ***
Jim Meyering [Wed, 7 Apr 2004 10:56:00 +0000 (10:56 +0000)]
*** empty log message ***

20 years agostty now provides support for Linux's iutf8 input mode.
Jim Meyering [Wed, 7 Apr 2004 09:53:34 +0000 (09:53 +0000)]
stty now provides support for Linux's iutf8 input mode.

20 years agoAdd support for IUTF8 input flag.
Jim Meyering [Wed, 7 Apr 2004 09:52:22 +0000 (09:52 +0000)]
Add support for IUTF8 input flag.

20 years ago*** empty log message ***
Jim Meyering [Wed, 7 Apr 2004 09:52:10 +0000 (09:52 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Wed, 7 Apr 2004 09:51:24 +0000 (09:51 +0000)]
*** empty log message ***

20 years ago(stty invocation - Input): Document new iutf8 option.
Jim Meyering [Wed, 7 Apr 2004 09:50:48 +0000 (09:50 +0000)]
(stty invocation - Input): Document new iutf8 option.

20 years ago*** empty log message ***
Jim Meyering [Tue, 6 Apr 2004 13:55:12 +0000 (13:55 +0000)]
*** empty log message ***

20 years ago(makedev) [mkdev && !makedev]: Define makedev to mkdev.
Jim Meyering [Tue, 6 Apr 2004 13:55:00 +0000 (13:55 +0000)]
(makedev) [mkdev && !makedev]: Define makedev to mkdev.
For Interix.

20 years ago*** empty log message ***
Jim Meyering [Tue, 6 Apr 2004 13:54:02 +0000 (13:54 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Apr 2004 16:24:29 +0000 (16:24 +0000)]
*** empty log message ***

20 years ago(stat invocation): Correct --format description.
Jim Meyering [Sun, 4 Apr 2004 16:24:25 +0000 (16:24 +0000)]
(stat invocation): Correct --format description.

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Apr 2004 16:22:29 +0000 (16:22 +0000)]
*** empty log message ***

20 years agoA specified format is no longer automatically newline terminated.
Jim Meyering [Sun, 4 Apr 2004 16:22:26 +0000 (16:22 +0000)]
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.

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Apr 2004 06:56:19 +0000 (06:56 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Sun, 4 Apr 2004 06:55:58 +0000 (06:55 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Apr 2004 06:54:16 +0000 (06:54 +0000)]
*** empty log message ***

20 years ago(jm_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR.
Jim Meyering [Sun, 4 Apr 2004 06:54:11 +0000 (06:54 +0000)]
(jm_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR.

20 years agoNew files, from gnulib.
Jim Meyering [Sun, 4 Apr 2004 06:53:53 +0000 (06:53 +0000)]
New files, from gnulib.

20 years agoSync from gnulib.
Jim Meyering [Sun, 4 Apr 2004 06:53:20 +0000 (06:53 +0000)]
Sync from gnulib.

20 years agoSync from gnulib.
Jim Meyering [Sun, 4 Apr 2004 06:51:11 +0000 (06:51 +0000)]
Sync from gnulib.

20 years ago.
Jim Meyering [Sun, 4 Apr 2004 06:50:03 +0000 (06:50 +0000)]
.

20 years ago.
Jim Meyering [Sun, 4 Apr 2004 06:49:21 +0000 (06:49 +0000)]
.

20 years agoSync from gnulib.
Jim Meyering [Sun, 4 Apr 2004 06:40:50 +0000 (06:40 +0000)]
Sync from gnulib.

20 years agoNew files, from gnulib
Jim Meyering [Sun, 4 Apr 2004 06:39:39 +0000 (06:39 +0000)]
New files, from gnulib

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Apr 2004 06:39:02 +0000 (06:39 +0000)]
*** empty log message ***

20 years agosync from gnulib
Jim Meyering [Sun, 4 Apr 2004 06:35:26 +0000 (06:35 +0000)]
sync from gnulib

20 years ago.
Jim Meyering [Sun, 4 Apr 2004 06:35:14 +0000 (06:35 +0000)]
.

20 years ago(main): Adjust to new calling convention for set_cloexec_flag.
Jim Meyering [Sun, 4 Apr 2004 06:33:44 +0000 (06:33 +0000)]
(main): Adjust to new calling convention for set_cloexec_flag.

20 years agoAdd strdup.h.
Jim Meyering [Fri, 2 Apr 2004 22:25:17 +0000 (22:25 +0000)]
Add strdup.h.

20 years agowhoops. add strdup.h, not xstrdup.h.
Jim Meyering [Fri, 2 Apr 2004 22:22:00 +0000 (22:22 +0000)]
whoops.  add strdup.h, not xstrdup.h.

20 years ago(libfetish_a_SOURCES): Add allocsa.c, allocsa.h and strdup.h.
Jim Meyering [Fri, 2 Apr 2004 22:20:06 +0000 (22:20 +0000)]
(libfetish_a_SOURCES): Add allocsa.c, allocsa.h and strdup.h.

20 years agoalign some continuation-backslashes
Jim Meyering [Thu, 1 Apr 2004 17:14:46 +0000 (17:14 +0000)]
align some continuation-backslashes

20 years agotweak indentation
Jim Meyering [Thu, 1 Apr 2004 17:13:07 +0000 (17:13 +0000)]
tweak indentation

20 years agoremove obsolete comment
Jim Meyering [Thu, 1 Apr 2004 17:12:22 +0000 (17:12 +0000)]
remove obsolete comment

20 years agoalso check for atoll
Jim Meyering [Wed, 31 Mar 2004 17:32:11 +0000 (17:32 +0000)]
also check for atoll

20 years ago.
Jim Meyering [Wed, 31 Mar 2004 09:01:47 +0000 (09:01 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Wed, 31 Mar 2004 08:39:35 +0000 (08:39 +0000)]
*** empty log message ***

20 years ago(run_tests): Remove `.orig' file.
Jim Meyering [Wed, 31 Mar 2004 08:39:22 +0000 (08:39 +0000)]
(run_tests): Remove `.orig' file.
Remove debugging diagnostic.

20 years ago*** empty log message ***
Jim Meyering [Wed, 31 Mar 2004 08:30:22 +0000 (08:30 +0000)]
*** empty log message ***

20 years agowhoops. Remove old code, too, <blush>.
Jim Meyering [Wed, 31 Mar 2004 08:27:27 +0000 (08:27 +0000)]
whoops.  Remove old code, too, <blush>.

20 years ago*** empty log message ***
Jim Meyering [Wed, 31 Mar 2004 08:25:13 +0000 (08:25 +0000)]
*** empty log message ***

20 years agoSpecifying an invalid --width=N (-w) or --gap-size=N (-g)
Jim Meyering [Wed, 31 Mar 2004 08:25:04 +0000 (08:25 +0000)]
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.

20 years ago.
Jim Meyering [Wed, 31 Mar 2004 07:49:30 +0000 (07:49 +0000)]
.

20 years ago.
Jim Meyering [Wed, 31 Mar 2004 07:48:14 +0000 (07:48 +0000)]
.

20 years ago.
Jim Meyering [Wed, 31 Mar 2004 07:47:35 +0000 (07:47 +0000)]
.

20 years agofile was essentially empty
Jim Meyering [Wed, 31 Mar 2004 07:47:26 +0000 (07:47 +0000)]
file was essentially empty

20 years ago*** empty log message ***
Jim Meyering [Wed, 31 Mar 2004 07:44:02 +0000 (07:44 +0000)]
*** empty log message ***

20 years agoRequire AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
Jim Meyering [Wed, 31 Mar 2004 07:43:57 +0000 (07:43 +0000)]
Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.

20 years ago * prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
Jim Meyering [Wed, 31 Mar 2004 07:43:41 +0000 (07:43 +0000)]
* prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.

20 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 2004 15:12:53 +0000 (15:12 +0000)]
*** empty log message ***

20 years agoadd comments
Jim Meyering [Tue, 30 Mar 2004 15:12:44 +0000 (15:12 +0000)]
add comments

20 years ago(sc_prohibit_atoi_atof): New rule.
Jim Meyering [Tue, 30 Mar 2004 15:11:24 +0000 (15:11 +0000)]
(sc_prohibit_atoi_atof): New rule.
(syntax-check-rules): Add it.

20 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 2004 15:10:27 +0000 (15:10 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 2004 13:50:48 +0000 (13:50 +0000)]
*** empty log message ***

20 years agoMerge changes from emacs (via gnulib).
Jim Meyering [Tue, 30 Mar 2004 13:50:44 +0000 (13:50 +0000)]
Merge changes from emacs (via gnulib).

20 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 2004 12:31:27 +0000 (12:31 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 2004 09:38:04 +0000 (09:38 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 2004 09:37:56 +0000 (09:37 +0000)]
*** empty log message ***

20 years agoUse new OUT_SUBST directive, so that this
Jim Meyering [Mon, 29 Mar 2004 09:37:23 +0000 (09:37 +0000)]
Use new OUT_SUBST directive, so that this
test is not sensitive to system-dependent block size differences.

20 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 2004 09:23:41 +0000 (09:23 +0000)]
*** empty log message ***

20 years agoAccept new directives: OUT_SUBST, ERR_SUBST.
Jim Meyering [Mon, 29 Mar 2004 09:23:36 +0000 (09:23 +0000)]
Accept new directives: OUT_SUBST, ERR_SUBST.
Rename `%tmp' to `%actual'.  Reverse order of last two args to
_compare_files (to actual, $expected) so as to match declaration.

20 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 2004 07:33:23 +0000 (07:33 +0000)]
*** empty log message ***

20 years ago[HAVE_SETHOSTNAME && !defined sethostname]:
Jim Meyering [Mon, 29 Mar 2004 07:30:09 +0000 (07:30 +0000)]
[HAVE_SETHOSTNAME && !defined sethostname]:
Declare sethostname, since no Solaris header does it.