Jim Meyering [Thu, 20 Mar 2003 13:49:39 +0000 (13:49 +0000)]
(valid_format): Also accept ` ' and `'' as valid
format flag characters.
Do not require that a field width be specified.
Do not fail when given a field width of `0'.
Jim Meyering [Wed, 19 Mar 2003 23:00:25 +0000 (23:00 +0000)]
(.x.1): Use $(LN_S) instead of 'ln -s',
because the DJGPP 2.03 port of 'ln -s' doesn't work.
Include $(EXEEXT) in program names.
Since $(LN_S) may degenerate to `cp -p', be careful
to invoke it from the destination directory.
Mostly from Richard Dawe.
Jim Meyering [Wed, 19 Mar 2003 09:03:40 +0000 (09:03 +0000)]
(jm_MACROS): Include $(EXEEXT) in DF_PROG's program
name, since automake only adds $(EXEEXT) to programs in its *_PROGRAMS.
Arrange to compile the corresponding stub function if fchdir is missing.
Jim Meyering [Tue, 18 Mar 2003 17:47:06 +0000 (17:47 +0000)]
(read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
error from mntctl.
Use mntctl's return value to drive the entry-processing loop, since
we can't rely on the value of the vmt_length member in the last
entry. On some systems doing so could result in an infinite loop.
Based in part on a patch from Mike Jetzer.
Jim Meyering [Tue, 18 Mar 2003 17:14:31 +0000 (17:14 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS): Move the MOUNTED_VMOUNT
test to precede the MOUNTED_GETMNTENT1 tests, since otherwise, AIX 5.1
systems would end up using the latter. MOUNTED_GETMNTENT1 support
is inadequate on such systems: 1) detecting whether a file system
is remote doesn't work 2) the MOUNTED_VMOUNT code reports the
HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1 code reports
merely /MOUNT_POINT. Reported by Mike Jetzer.
Jim Meyering [Tue, 18 Mar 2003 15:39:45 +0000 (15:39 +0000)]
(ME_REMOTE): Recognize as remote any file system
that has an Fs_type with the `nfs' (any case) prefix.
This is necessary at least for AIX 5.1 when it uses the
MOUNTED_GETMNTENT1 code. Reported by Mike Jetzer.
Jim Meyering [Tue, 18 Mar 2003 08:43:57 +0000 (08:43 +0000)]
[struct Word] (paren, period, punct, final): Change the
type of each member from bool <MEMBER>:1 to unsigned int <MEMBER>:1.
AIX 5.1's xlc could not compile the former.
Jim Meyering [Mon, 17 Mar 2003 21:50:30 +0000 (21:50 +0000)]
(raise): Rename from rpl_raise.
Without that change, systems lacking raise (SunOS4) would not be
able to link programs using raise. Reported by Volker Borchert.
Jim Meyering [Mon, 17 Mar 2003 19:28:31 +0000 (19:28 +0000)]
(UTILS_FUNC_DIRFD): Test the cache variable, not one
that is guaranteed to be `no'. Use `no_such_member' to indicate
that condition, rather than `-1' which is slightly misleading.
Change the name of the cache variable to have the gl_ prefix.
Prompted by a patch from Richard Dawe for DJGPP.
Jim Meyering [Fri, 14 Mar 2003 15:40:34 +0000 (15:40 +0000)]
(prev_version_file): Don't use ?= for this particular
assignment, since it causes trouble with old versions of GNU make
(e.g. 3.76.1). The other uses of `?=' are inoffensive. Details here.
http://mail.gnu.org/archive/html/bug-coreutils/2003-03/msg00028.html
Patch from Alexandre Duret-Lutz.
Jim Meyering [Fri, 14 Mar 2003 09:54:39 +0000 (09:54 +0000)]
Merge changes from Bison.
(__INT_TO_PTR) [__STDC__]: Cast result to
(void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
when compiling Bison 1.875's `bitset bset = obstack_alloc
(bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.