gnulib.git
25 years ago. FILEUTILS-3_16s
Jim Meyering [Sat, 25 Jul 1998 15:28:41 +0000 (15:28 +0000)]
.

25 years agoUse PARAMS macro.
Jim Meyering [Sat, 25 Jul 1998 15:01:32 +0000 (15:01 +0000)]
Use PARAMS macro.

25 years ago(xatoi): Ansideclify.
Jim Meyering [Sat, 25 Jul 1998 15:00:37 +0000 (15:00 +0000)]
(xatoi): Ansideclify.
(fstype_to_string): Ansideclify.

25 years ago(REMOTE_FS_TYPE): New macro.
Jim Meyering [Sat, 25 Jul 1998 14:55:10 +0000 (14:55 +0000)]
(REMOTE_FS_TYPE): New macro.

25 years ago(read_filesystem_list) [MOUNTED_GETMNTINFO]: Use fsp_to_string.
Jim Meyering [Sat, 25 Jul 1998 14:54:42 +0000 (14:54 +0000)]
(read_filesystem_list) [MOUNTED_GETMNTINFO]: Use fsp_to_string.
(fsp_to_string): Don't xmalloc return value (yet).

25 years ago(read_filesystem_list): If all_fs is negative, omit non-local filesytems.
Jim Meyering [Sat, 25 Jul 1998 14:41:04 +0000 (14:41 +0000)]
(read_filesystem_list): If all_fs is negative, omit non-local filesytems.
From Paul Eggert.

25 years ago.
Jim Meyering [Sat, 25 Jul 1998 13:48:45 +0000 (13:48 +0000)]
.

25 years ago.
Jim Meyering [Sat, 25 Jul 1998 13:16:38 +0000 (13:16 +0000)]
.

25 years ago(regex_compile): Declare p with non-const type on AIX.
Richard Stallman [Sat, 25 Jul 1998 06:40:50 +0000 (06:40 +0000)]
(regex_compile): Declare p with non-const type on AIX.

25 years ago(human_readable): amt -> damt, to fix typo when
Jim Meyering [Wed, 22 Jul 1998 18:30:16 +0000 (18:30 +0000)]
(human_readable): amt -> damt, to fix typo when
computing which power to use after overflow occurs during
multiplication.

From Paul Eggert.

25 years agoInclude <stdio.h> if NDEBUG is not defined; needed on SunOS 4.
Jim Meyering [Wed, 22 Jul 1998 16:57:15 +0000 (16:57 +0000)]
Include <stdio.h> if NDEBUG is not defined; needed on SunOS 4.
From Paul Eggert.

25 years ago.
Jim Meyering [Mon, 20 Jul 1998 03:58:24 +0000 (03:58 +0000)]
.

25 years ago(read_filesystem_list): Fix more memory leaks on failure.
Jim Meyering [Sat, 18 Jul 1998 12:28:31 +0000 (12:28 +0000)]
(read_filesystem_list): Fix more memory leaks on failure.
From Andreas Schwab.

25 years ago(noinst_HEADERS): Add lchown.h.
Jim Meyering [Thu, 16 Jul 1998 23:26:50 +0000 (23:26 +0000)]
(noinst_HEADERS): Add lchown.h.

25 years agoinclude lchown.h
Jim Meyering [Thu, 16 Jul 1998 23:25:29 +0000 (23:25 +0000)]
include lchown.h

25 years ago.
Jim Meyering [Thu, 16 Jul 1998 23:23:05 +0000 (23:23 +0000)]
.

25 years ago[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.
Jim Meyering [Thu, 16 Jul 1998 23:12:25 +0000 (23:12 +0000)]
[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.

25 years agoUpdate prototype.
Jim Meyering [Thu, 16 Jul 1998 23:02:19 +0000 (23:02 +0000)]
Update prototype.

25 years ago(safe_read): Change type of pointer parameter to
Jim Meyering [Thu, 16 Jul 1998 23:02:03 +0000 (23:02 +0000)]
(safe_read): Change type of pointer parameter to
`void' to avoid Irix4 cc errors.  Reported by Kaveh Ghazi.

25 years ago*** empty log message ***
Jim Meyering [Thu, 9 Jul 1998 14:29:22 +0000 (14:29 +0000)]
*** empty log message ***

25 years ago(jm_FUNC_CHOWN): Add a check to verify that the
Jim Meyering [Thu, 9 Jul 1998 14:29:11 +0000 (14:29 +0000)]
(jm_FUNC_CHOWN): Add a check to verify that the
uid and gid actually remain unchanged.

25 years ago*** empty log message ***
Jim Meyering [Wed, 8 Jul 1998 01:10:45 +0000 (01:10 +0000)]
*** empty log message ***

25 years agoRemove fclose_unlocked.
Jim Meyering [Wed, 8 Jul 1998 01:03:34 +0000 (01:03 +0000)]
Remove fclose_unlocked.

25 years agoInclude stdio.h. Required on some systems when using assert.
Jim Meyering [Sat, 4 Jul 1998 17:15:08 +0000 (17:15 +0000)]
Include stdio.h.  Required on some systems when using assert.
From Kaveh Ghazi.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 16:46:04 +0000 (16:46 +0000)]
*** empty log message ***

25 years agobump serial number
Jim Meyering [Sat, 4 Jul 1998 16:45:52 +0000 (16:45 +0000)]
bump serial number

25 years agoUse syscmd, ifelse, and sysval. Mainly as an exercise
Jim Meyering [Sat, 4 Jul 1998 16:45:18 +0000 (16:45 +0000)]
Use syscmd, ifelse, and sysval.  Mainly as an exercise
to prove that this macro can be used in packages without regex.c.

25 years agoadd warning FILEUTILS-3_16r
Jim Meyering [Sat, 4 Jul 1998 04:07:55 +0000 (04:07 +0000)]
add warning

25 years ago.
Jim Meyering [Sat, 4 Jul 1998 03:42:40 +0000 (03:42 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 01:46:23 +0000 (01:46 +0000)]
*** empty log message ***

25 years agouse $jm_with_regex, now $WITH_REGEX
Jim Meyering [Sat, 4 Jul 1998 01:46:01 +0000 (01:46 +0000)]
use $jm_with_regex, now $WITH_REGEX

25 years agoremove ifdef around inclusion of regex.h altogether!!
Jim Meyering [Sat, 4 Jul 1998 01:44:01 +0000 (01:44 +0000)]
remove ifdef around inclusion of regex.h altogether!!

25 years agoadd 100 to serial number
Jim Meyering [Sat, 4 Jul 1998 01:38:14 +0000 (01:38 +0000)]
add 100 to serial number

25 years ago(noinst_HEADERS): Add regex.h.
Jim Meyering [Sat, 4 Jul 1998 01:33:19 +0000 (01:33 +0000)]
(noinst_HEADERS): Add regex.h.

25 years ago.
Jim Meyering [Sat, 4 Jul 1998 00:48:49 +0000 (00:48 +0000)]
.

25 years ago(read_filesystem_list):
Jim Meyering [Sat, 4 Jul 1998 00:48:11 +0000 (00:48 +0000)]
(read_filesystem_list):
Don't leak memory on failure.
Don't create a dummy struct mount_entry entry;
use the address-of-the-tail-address method instead.
Preserve errno if possible on failure, setting it to 0 if inapplicable.
Close file descriptor leak if the F_SETLKW failed.
Report an error if SVR4 lock file cannot be opened for some reason
other than a nonexistent lock file.

25 years ago.
Jim Meyering [Sat, 4 Jul 1998 00:41:16 +0000 (00:41 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:40:52 +0000 (00:40 +0000)]
*** empty log message ***

25 years ago(AM_WITH_NLS): Remove intl/libintl.h if <libintl.h> is to be used.
Jim Meyering [Sat, 4 Jul 1998 00:39:41 +0000 (00:39 +0000)]
(AM_WITH_NLS): Remove intl/libintl.h if <libintl.h> is to be used.

25 years ago.
Jim Meyering [Sat, 4 Jul 1998 00:35:27 +0000 (00:35 +0000)]
.

25 years agoRequire jm_WITH_REGEX.
Jim Meyering [Sat, 4 Jul 1998 00:20:36 +0000 (00:20 +0000)]
Require jm_WITH_REGEX.

25 years ago.
Jim Meyering [Sat, 4 Jul 1998 00:19:23 +0000 (00:19 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:19:08 +0000 (00:19 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:17:52 +0000 (00:17 +0000)]
*** empty log message ***

25 years agoChange guard on <regex.h> inclusion to use new
Jim Meyering [Sat, 4 Jul 1998 00:15:37 +0000 (00:15 +0000)]
Change guard on <regex.h> inclusion to use new
symbol `! HAVE_LIBC_REGEX' defined in m4/regex.m4.

25 years ago.
Jim Meyering [Sat, 4 Jul 1998 00:05:23 +0000 (00:05 +0000)]
.

25 years agoDon't define NDEBUG, now that it's done via configure's --disable-assert option.
Jim Meyering [Wed, 1 Jul 1998 12:44:22 +0000 (12:44 +0000)]
Don't define NDEBUG, now that it's done via configure's --disable-assert option.

25 years ago(read_filesystem_list):
Jim Meyering [Tue, 30 Jun 1998 14:32:53 +0000 (14:32 +0000)]
(read_filesystem_list):
Plug file descriptor leak on failure.
Report failure if lock file can't be opened for some reason
other than nonexistence.

25 years ago(read_filesystem_list) [MOUNTED_GETMNTENT2]: FILEUTILS-3_16q
Jim Meyering [Tue, 30 Jun 1998 03:56:57 +0000 (03:56 +0000)]
(read_filesystem_list) [MOUNTED_GETMNTENT2]:
Always close stream and file descriptor before returning.

25 years ago(read_filesystem_list): If SVR4, lock /etc/.mnttab.lock if available,
Jim Meyering [Tue, 30 Jun 1998 02:15:43 +0000 (02:15 +0000)]
(read_filesystem_list): If SVR4, lock /etc/.mnttab.lock if available,
to avoid race conditions (e.g. with the automounter on Solaris 2.6).

Include <errno.h>, <fcntl.h>, <unistd.h>.

25 years agoprotoize
Jim Meyering [Mon, 29 Jun 1998 20:29:28 +0000 (20:29 +0000)]
protoize

25 years ago.
Jim Meyering [Mon, 29 Jun 1998 17:03:13 +0000 (17:03 +0000)]
.

25 years ago(fstype_to_string): Guard with #if ! HAVE_F_FSTYPENAME_IN_STATFS.
Jim Meyering [Mon, 29 Jun 1998 17:01:48 +0000 (17:01 +0000)]
(fstype_to_string): Guard with #if ! HAVE_F_FSTYPENAME_IN_STATFS.

25 years agoInclude sys/param.h. NetBSD 1.3.1 requires this
Jim Meyering [Mon, 29 Jun 1998 16:57:09 +0000 (16:57 +0000)]
Include sys/param.h.  NetBSD 1.3.1 requires this
for the definition of NGROUPS (used in a system header included
by sys/mount.h).

25 years ago * lib/xstrtol.c (bkm_scale): Don't assume that you can convert
Jim Meyering [Mon, 29 Jun 1998 15:24:43 +0000 (15:24 +0000)]
* lib/xstrtol.c (bkm_scale): Don't assume that you can convert
unsigned long to double without losing information.
(bkm_scale_by_power): New function.

* lib/xstrtol.c (__xstrtol), src/dd.c (parse_integer):
Add support for SI-like suffixes like "GB" and "TD".
* src/dd.c (usage): Describe it.

25 years ago(__ZLONG_MAX): Remove.
Jim Meyering [Mon, 29 Jun 1998 15:24:15 +0000 (15:24 +0000)]
(__ZLONG_MAX): Remove.

25 years ago(human_readable): Coalesce last two args into one, for convenience.
Jim Meyering [Mon, 29 Jun 1998 15:23:45 +0000 (15:23 +0000)]
(human_readable): Coalesce last two args into one, for convenience.

25 years ago * lib/human.c, lib/human.h (human_readable): Coalesce last two args
Jim Meyering [Mon, 29 Jun 1998 15:23:04 +0000 (15:23 +0000)]
* lib/human.c, lib/human.h (human_readable): Coalesce last two args
into one, for convenience.  All callers changed.
(human_block_size): New function.
* lib/human.c: Include <config.h> only if HAVE_CONFIG_H.
Include <stdlib.h> if HAVE_STDLIB_H;
declare getenv unless HAVE_DECL_GETENV.
(_): New macro.
Include <argmatch.h>, <error.h>, <xstrtoul.h>.
(DEFAULT_BLOCK_SIZE): New macro.
(block_size_args, block_size_types): New constants.
(humblock): New function.

25 years ago.
Jim Meyering [Mon, 29 Jun 1998 02:15:29 +0000 (02:15 +0000)]
.

25 years ago(fsp_to_string): Clean out some crufty #ifdefs
Jim Meyering [Mon, 29 Jun 1998 01:10:24 +0000 (01:10 +0000)]
(fsp_to_string): Clean out some crufty #ifdefs
now that we're using the jm_FSTYPENAME autoconf macro.

25 years ago.
Jim Meyering [Sun, 28 Jun 1998 23:51:58 +0000 (23:51 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Jun 1998 23:51:47 +0000 (23:51 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Sun, 28 Jun 1998 23:12:10 +0000 (23:12 +0000)]
.

25 years agoRequire the new macro: jm_FUNC_GLIBC_UNLOCKED_IO.
Jim Meyering [Sun, 28 Jun 1998 21:41:08 +0000 (21:41 +0000)]
Require the new macro: jm_FUNC_GLIBC_UNLOCKED_IO.

25 years ago.
Jim Meyering [Sun, 28 Jun 1998 21:40:12 +0000 (21:40 +0000)]
.

25 years ago(PTR_TO_OFFSET): Alternate definition if not `emacs'.
Richard Stallman [Tue, 9 Jun 1998 20:12:44 +0000 (20:12 +0000)]
(PTR_TO_OFFSET): Alternate definition if not `emacs'.

25 years ago(POS_AS_IN_BUFFER): Add 1 only if operating on a buffer.
Richard Stallman [Sat, 6 Jun 1998 21:59:21 +0000 (21:59 +0000)]
(POS_AS_IN_BUFFER): Add 1 only if operating on a buffer.
(re_match_2, re_search_2): Adjust startpos or pos by 1
only if acting on a buffer.
nil for re_match_object means a buffer.
(re_match_2_internal <notwordbeg>): Assume POS1 is positive.

25 years ago(re_search_2): Don't use ++ inside RE_TRANSLATE.
Richard Stallman [Mon, 25 May 1998 20:14:54 +0000 (20:14 +0000)]
(re_search_2): Don't use ++ inside RE_TRANSLATE.
(re_match_2_internal): Likewise.

25 years ago. FILEUTILS-3_16p
Jim Meyering [Mon, 25 May 1998 03:41:02 +0000 (03:41 +0000)]
.

25 years ago.
Jim Meyering [Sun, 24 May 1998 14:20:58 +0000 (14:20 +0000)]
.

25 years agoFix braino: check S_ISLNK only if lstat succeeds.
Jim Meyering [Sun, 24 May 1998 14:00:03 +0000 (14:00 +0000)]
Fix braino: check S_ISLNK only if lstat succeeds.

25 years agofix typo: s/chat/char/
Jim Meyering [Sun, 24 May 1998 13:41:57 +0000 (13:41 +0000)]
fix typo: s/chat/char/

25 years ago.
Jim Meyering [Wed, 20 May 1998 01:09:12 +0000 (01:09 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Wed, 20 May 1998 01:08:28 +0000 (01:08 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Tue, 19 May 1998 16:22:58 +0000 (16:22 +0000)]
*** empty log message ***

25 years agoAdd jm_FUNC_LCHOWN.
Jim Meyering [Tue, 19 May 1998 16:05:23 +0000 (16:05 +0000)]
Add jm_FUNC_LCHOWN.

25 years ago*** empty log message ***
Jim Meyering [Tue, 19 May 1998 16:04:24 +0000 (16:04 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Tue, 19 May 1998 16:02:59 +0000 (16:02 +0000)]
.

25 years ago.
Jim Meyering [Tue, 19 May 1998 16:01:48 +0000 (16:01 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Tue, 19 May 1998 16:01:31 +0000 (16:01 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Tue, 19 May 1998 15:51:10 +0000 (15:51 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Tue, 19 May 1998 15:49:18 +0000 (15:49 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Tue, 19 May 1998 15:15:09 +0000 (15:15 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Tue, 19 May 1998 15:06:49 +0000 (15:06 +0000)]
.

25 years ago.
Jim Meyering [Sat, 16 May 1998 23:46:05 +0000 (23:46 +0000)]
.

25 years ago.
Jim Meyering [Sat, 16 May 1998 20:33:44 +0000 (20:33 +0000)]
.

25 years ago(read_utmp): Add variant for systems that have the utmpname function.
Jim Meyering [Sat, 16 May 1998 20:26:54 +0000 (20:26 +0000)]
(read_utmp): Add variant for systems that have the utmpname function.
Ansideclify.

25 years agoremove jm_FUNC_GNU_STRFTIME
Jim Meyering [Sat, 16 May 1998 04:44:48 +0000 (04:44 +0000)]
remove jm_FUNC_GNU_STRFTIME

25 years ago(is_prime): Ansideclify.
Jim Meyering [Sat, 16 May 1998 04:39:24 +0000 (04:39 +0000)]
(is_prime): Ansideclify.
(next_prime): Ansideclify.  Add an assertion.

25 years ago(EXTRA_DIST): Remove. Automake groks the `LIBOBJS='
Jim Meyering [Sat, 16 May 1998 04:37:45 +0000 (04:37 +0000)]
(EXTRA_DIST): Remove.  Automake groks the `LIBOBJS='
lines in the m4/*.m4 macros, so the hack of including some
custom-replaced C source file names here is no longer needed.

25 years ago.
Jim Meyering [Sat, 16 May 1998 04:30:42 +0000 (04:30 +0000)]
.

25 years ago.
Jim Meyering [Thu, 14 May 1998 16:03:15 +0000 (16:03 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Wed, 13 May 1998 03:51:10 +0000 (03:51 +0000)]
*** empty log message ***

25 years ago(EXTRA_DIST): Add isc-posix.m4.
Jim Meyering [Wed, 13 May 1998 03:50:35 +0000 (03:50 +0000)]
(EXTRA_DIST): Add isc-posix.m4.

25 years ago.
Jim Meyering [Wed, 13 May 1998 03:48:43 +0000 (03:48 +0000)]
.

26 years agoundefine before redefining
Jim Meyering [Mon, 11 May 1998 15:16:40 +0000 (15:16 +0000)]
undefine before redefining

26 years ago.
Jim Meyering [Mon, 11 May 1998 12:39:16 +0000 (12:39 +0000)]
.

26 years ago.
Jim Meyering [Mon, 11 May 1998 12:33:07 +0000 (12:33 +0000)]
.

26 years agoUse am_cv_func_working_getline, not `jm_'-prefixed version.
Jim Meyering [Sun, 10 May 1998 20:58:09 +0000 (20:58 +0000)]
Use am_cv_func_working_getline, not `jm_'-prefixed version.

26 years ago*** empty log message ***
Jim Meyering [Sun, 10 May 1998 16:11:13 +0000 (16:11 +0000)]
*** empty log message ***