gnulib.git
26 years ago. FILEUTILS-3_16l
Jim Meyering [Sun, 25 Jan 1998 21:20:53 +0000 (21:20 +0000)]
.

26 years ago.
Jim Meyering [Sun, 25 Jan 1998 12:20:58 +0000 (12:20 +0000)]
.

26 years ago.
Jim Meyering [Sun, 25 Jan 1998 12:19:05 +0000 (12:19 +0000)]
.

26 years ago(__mktime_internal): Work around bug in Irix4.0.5's
Jim Meyering [Fri, 23 Jan 1998 22:02:54 +0000 (22:02 +0000)]
(__mktime_internal): Work around bug in Irix4.0.5's
C compiler.  From Kaveh Ghazi.
(TYPE_MINIMUM): Define.
(TYPE_MAXIMUM): Define.
(TIME_T_MIN): Use TYPE_MINIMUM.
(TIME_T_MAX): Use TYPE_MAXIMUM.

26 years ago.
Jim Meyering [Wed, 21 Jan 1998 15:59:28 +0000 (15:59 +0000)]
.

26 years agoFix copyright
Jim Meyering [Wed, 21 Jan 1998 15:57:48 +0000 (15:57 +0000)]
Fix copyright

26 years agoUse ANSI function definitions.
Jim Meyering [Wed, 21 Jan 1998 15:57:18 +0000 (15:57 +0000)]
Use ANSI function definitions.
Remove global declaration of backup_type.
(simple_backup_suffix): Default to `~', not `.orig'.
Use PARAMS, not __BACKUPFILE_P.
(find_backup_file_name): Add parameter, backup_type.

26 years agoRemove extern declaration of backup_type.
Jim Meyering [Wed, 21 Jan 1998 15:55:12 +0000 (15:55 +0000)]
Remove extern declaration of backup_type.
Use PARAMS, not __BACKUPFILE_P.
(VALID_BACKUP_TYPE): Define.
(find_backup_file_name): Adjust prototype.

26 years agoUse ANSI function definitions.
Jim Meyering [Tue, 20 Jan 1998 11:34:38 +0000 (11:34 +0000)]
Use ANSI function definitions.

26 years ago[enum backup_type]: Set `none' to 1.
Jim Meyering [Tue, 20 Jan 1998 11:34:04 +0000 (11:34 +0000)]
[enum backup_type]: Set `none' to 1.

26 years ago(re_match_2_internal): Use SYNTAX_TABLE_BYTE_TO_CHAR.
Richard Stallman [Fri, 16 Jan 1998 17:56:40 +0000 (17:56 +0000)]
(re_match_2_internal): Use SYNTAX_TABLE_BYTE_TO_CHAR.

(re_match_2_internal) <wordbeg, wordend>:
Call UPDATE_SYNTAX_TABLE properly with a charpos.

26 years ago.
Jim Meyering [Fri, 16 Jan 1998 11:17:02 +0000 (11:17 +0000)]
.

26 years agoMake PARAMS-defining conditionals consistent.
Jim Meyering [Fri, 16 Jan 1998 08:51:39 +0000 (08:51 +0000)]
Make PARAMS-defining conditionals consistent.

26 years agoSet errno to ENOENT, not EINVAL. This is consistent
Jim Meyering [Tue, 13 Jan 1998 10:08:11 +0000 (10:08 +0000)]
Set errno to ENOENT, not EINVAL.  This is consistent
with most other implementations.

26 years agoInclude sys/param.h only #if HAVE_SYS_PARAM_H.
Jim Meyering [Mon, 12 Jan 1998 08:13:39 +0000 (08:13 +0000)]
Include sys/param.h only #if HAVE_SYS_PARAM_H.
Move function-spanning `#if ...BSIZE' stmt to follow inclusion of
sys/param.h since BSIZE is sometimes defined in sys/param.h.
Based on a patch from Philippe De Muyter.

26 years ago. FILEUTILS-3_16k
Jim Meyering [Sun, 11 Jan 1998 09:14:29 +0000 (09:14 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sun, 11 Jan 1998 09:12:30 +0000 (09:12 +0000)]
*** empty log message ***

26 years ago. TEXTUTILS-1_22d
Jim Meyering [Sun, 11 Jan 1998 08:02:39 +0000 (08:02 +0000)]
.

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 16:24:46 +0000 (16:24 +0000)]
.

26 years ago(EXTRA_DIST): Add const.m4.
Jim Meyering [Sat, 10 Jan 1998 16:24:26 +0000 (16:24 +0000)]
(EXTRA_DIST): Add const.m4.

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 15:57:57 +0000 (15:57 +0000)]
.

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 14:25:27 +0000 (14:25 +0000)]
.

26 years ago(make_path): Reformat 3 if-stmts to test `if (newly_created_dir)' only once.
Jim Meyering [Sat, 10 Jan 1998 10:28:37 +0000 (10:28 +0000)]
(make_path): Reformat 3 if-stmts to test `if (newly_created_dir)' only once.
Suggestion from Andreas Schwab.

26 years ago(make_path): Put only newly created directories on the LEADING_DIRS list.
Jim Meyering [Sat, 10 Jan 1998 10:22:30 +0000 (10:22 +0000)]
(make_path): Put only newly created directories on the LEADING_DIRS list.

26 years ago(re_search_2): Fix call to CHAR_HEAD_P.
Richard Stallman [Fri, 9 Jan 1998 23:24:24 +0000 (23:24 +0000)]
(re_search_2): Fix call to CHAR_HEAD_P.
(re_match_2_internal): Use PTR_BYTE_POS and PT_BYTE.

26 years agoAdd %expect directive.
Jim Meyering [Tue, 6 Jan 1998 23:53:33 +0000 (23:53 +0000)]
Add %expect directive.
Move inclusion of getdate.h and dependent extern declarations down
so getdate.h's prototype follows the sometimes-enabled definition
of `const' to nothing.  Otherwise, the prototype wouldn't match
the definition because of the defined-away `const'.
(get_date): ANSI-fy definition.
From Kaveh Ghazi.

26 years ago(get_fs_usage): Add parens.
Jim Meyering [Mon, 5 Jan 1998 17:38:38 +0000 (17:38 +0000)]
(get_fs_usage): Add parens.

26 years ago(PROPAGATE_ALL_ONES): New macro.
Jim Meyering [Mon, 5 Jan 1998 17:33:54 +0000 (17:33 +0000)]
(PROPAGATE_ALL_ONES): New macro.
(get_fs_usage): If a value consists entirely of 1 bits,
propagate this info to the output by setting it to (uintmax_t) -1.

26 years ago. FILEUTILS-3_16j
Jim Meyering [Sun, 4 Jan 1998 22:46:40 +0000 (22:46 +0000)]
.

26 years ago(parse_long_options): Check for write error to stdout before exiting.
Jim Meyering [Sun, 4 Jan 1998 22:43:44 +0000 (22:43 +0000)]
(parse_long_options): Check for write error to stdout before exiting.

26 years ago(libfu_a_SOURCES): Add closeout.c.
Jim Meyering [Sun, 4 Jan 1998 22:42:38 +0000 (22:42 +0000)]
(libfu_a_SOURCES): Add closeout.c.
(noinst_HEADERS): Add closeout.h.

26 years ago.
Jim Meyering [Sun, 4 Jan 1998 21:47:31 +0000 (21:47 +0000)]
.

26 years ago.
Jim Meyering [Sat, 3 Jan 1998 22:53:52 +0000 (22:53 +0000)]
.

26 years ago.
Jim Meyering [Sat, 3 Jan 1998 22:14:58 +0000 (22:14 +0000)]
.

26 years agoGuard PARAMS-enabling definition with
Jim Meyering [Sat, 3 Jan 1998 11:56:58 +0000 (11:56 +0000)]
Guard PARAMS-enabling definition with
`defined PROTOTYPES || (defined __STDC__ && __STDC__)' to be consistent.

26 years agoGuard PARAMS-enabling definition with
Jim Meyering [Sat, 3 Jan 1998 11:56:09 +0000 (11:56 +0000)]
Guard PARAMS-enabling definition with
`defined PROTOTYPES || (defined __STDC__ && __STDC__)' to avoid
problems with Irix4's cc.  From Kaveh Ghazi.

26 years ago(make_path): Try to change ownership only if we've just created the FILEUTILS-3_16i
Jim Meyering [Fri, 2 Jan 1998 23:15:39 +0000 (23:15 +0000)]
(make_path): Try to change ownership only if we've just created the
directory.  Fix latent bug (s/&&/||/ in two places -- also, note that
it could not be exercised via install or mkdir) whereby chown would
not be invoked when only one of owner/group is not -1.

26 years agoDefine and use PARAMS, not __EXCLUDE_P.
Jim Meyering [Wed, 31 Dec 1997 11:01:35 +0000 (11:01 +0000)]
Define and use PARAMS, not __EXCLUDE_P.

26 years agoUse PARAMS, not __EXCLUDE_P.
Jim Meyering [Wed, 31 Dec 1997 11:01:18 +0000 (11:01 +0000)]
Use PARAMS, not __EXCLUDE_P.

26 years ago(invalid_arg): Use a single fprintf and whole
Jim Meyering [Mon, 29 Dec 1997 12:02:43 +0000 (12:02 +0000)]
(invalid_arg): Use a single fprintf and whole
format statements to ease translation.
Convert from K&R to ANSI function dcls.

26 years agoUse ANSI syntax, not K&R.
Jim Meyering [Sun, 28 Dec 1997 10:41:01 +0000 (10:41 +0000)]
Use ANSI syntax, not K&R.

26 years ago(make_path) [!__STDC__]: Remove K&R-style definition.
Jim Meyering [Sun, 28 Dec 1997 10:38:15 +0000 (10:38 +0000)]
(make_path) [!__STDC__]: Remove K&R-style definition.

26 years agodefine PARAMS
Jim Meyering [Sun, 28 Dec 1997 09:48:26 +0000 (09:48 +0000)]
define PARAMS

26 years agoAdd PARAMS.
Jim Meyering [Sun, 28 Dec 1997 08:04:08 +0000 (08:04 +0000)]
Add PARAMS.

26 years ago(_GNU_SOURCE): Define only if not already defined. FILEUTILS-3_16h
Jim Meyering [Thu, 25 Dec 1997 17:44:08 +0000 (17:44 +0000)]
(_GNU_SOURCE): Define only if not already defined.

26 years agoDeclare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 17:02:25 +0000 (17:02 +0000)]
Declare stpcpy only if not defined as macro.

26 years agoDeclare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 16:49:08 +0000 (16:49 +0000)]
Declare stpcpy only if not defined as macro.

26 years agoInclude <string.h> if available.
Jim Meyering [Thu, 25 Dec 1997 16:48:51 +0000 (16:48 +0000)]
Include <string.h> if available.

26 years ago.
Jim Meyering [Wed, 24 Dec 1997 13:16:54 +0000 (13:16 +0000)]
.

26 years ago.
Jim Meyering [Sun, 21 Dec 1997 22:48:08 +0000 (22:48 +0000)]
.

26 years ago.
Jim Meyering [Sun, 21 Dec 1997 12:29:32 +0000 (12:29 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:11:32 +0000 (12:11 +0000)]
*** empty log message ***

26 years agoincrement serial number
Jim Meyering [Sun, 21 Dec 1997 12:10:26 +0000 (12:10 +0000)]
increment serial number

26 years agoFix reversed types on -1 args to chown.
Jim Meyering [Sun, 21 Dec 1997 12:10:07 +0000 (12:10 +0000)]
Fix reversed types on -1 args to chown.
From Kaveh Ghazi.

26 years agoremove FIXME-describe comments
Jim Meyering [Sun, 21 Dec 1997 11:57:17 +0000 (11:57 +0000)]
remove FIXME-describe comments

26 years agoadd FIXME-describe comments
Jim Meyering [Sun, 21 Dec 1997 11:56:34 +0000 (11:56 +0000)]
add FIXME-describe comments

26 years ago(libfu_a_SOURCES): Add exclude.c.
Jim Meyering [Sun, 21 Dec 1997 11:46:49 +0000 (11:46 +0000)]
(libfu_a_SOURCES): Add exclude.c.
(noinst_HEADERS): Add exclude.h.

26 years ago.
Jim Meyering [Sun, 21 Dec 1997 11:43:34 +0000 (11:43 +0000)]
.

26 years agoUse PARAMS, not __P.
Jim Meyering [Sun, 21 Dec 1997 11:22:51 +0000 (11:22 +0000)]
Use PARAMS, not __P.

26 years ago(rpl_chown): Rename from chown.
Jim Meyering [Sun, 21 Dec 1997 11:17:20 +0000 (11:17 +0000)]
(rpl_chown): Rename from chown.
Undefine chown just after including config.h.
Include sys/stat.h.
Use correct ordering of uid and gid parameters both in function
definition and in call to chown.
With patches from Kaveh Ghazi.

26 years agos/HAVE_DECLARATION_/HAVE_DECL_/. FILEUTILS-3_16g
Jim Meyering [Sun, 14 Dec 1997 15:15:07 +0000 (15:15 +0000)]
s/HAVE_DECLARATION_/HAVE_DECL_/.

26 years agocast memcpy to char*
Jim Meyering [Sun, 14 Dec 1997 15:12:29 +0000 (15:12 +0000)]
cast memcpy to char*

26 years agoAdd #serial 1.
Jim Meyering [Sun, 14 Dec 1997 15:03:38 +0000 (15:03 +0000)]
Add #serial 1.

26 years agoadd lseek
Jim Meyering [Sun, 14 Dec 1997 12:03:55 +0000 (12:03 +0000)]
add lseek

26 years ago*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 12:03:38 +0000 (12:03 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 08:03:18 +0000 (08:03 +0000)]
*** empty log message ***

26 years agos/DECLARATION_/DECL_/g.
Jim Meyering [Sun, 14 Dec 1997 08:03:07 +0000 (08:03 +0000)]
s/DECLARATION_/DECL_/g.
Add memchr.

26 years ago*** empty log message ***
Jim Meyering [Sun, 14 Dec 1997 07:44:38 +0000 (07:44 +0000)]
*** empty log message ***

26 years agos/HAVE_DECLARATION_/HAVE_DECL_/g
Jim Meyering [Sun, 14 Dec 1997 07:40:32 +0000 (07:40 +0000)]
s/HAVE_DECLARATION_/HAVE_DECL_/g

26 years ago.
Jim Meyering [Sat, 13 Dec 1997 22:55:52 +0000 (22:55 +0000)]
.

26 years ago(GROW_FAIL_STACK): Fix test for stack size at max.
Karl Heuer [Thu, 11 Dec 1997 07:21:05 +0000 (07:21 +0000)]
(GROW_FAIL_STACK): Fix test for stack size at max.

26 years ago(GROW_FAIL_STACK): Fix previous change:
Karl Heuer [Tue, 9 Dec 1997 23:04:38 +0000 (23:04 +0000)]
(GROW_FAIL_STACK): Fix previous change:
update (fail_stack).size properly.

26 years ago(TYPICAL_FAILURE_SIZE): Renamed from MAX_FAILURE_ITEMS.
Karl Heuer [Tue, 9 Dec 1997 23:01:27 +0000 (23:01 +0000)]
(TYPICAL_FAILURE_SIZE): Renamed from MAX_FAILURE_ITEMS.
Define it simply as a number.
(DOUBLE_FAIL_STACK, regex_compile): Set the limit at the size
TYPICAL_FAILURE_SIZE specifies, rather than at twice that much.
(re_max_failures): Double the initial values.
(INIT_FAIL_STACK): Use TYPICAL_FAILURE_SIZE so that INIT_FAILURE_ALLOC
counts in the proper units.
(INIT_FAILURE_ALLOC): Increase to 20.
(FAIL_STACK_GROWTH_FACTOR): New macro.
(GROW_FAIL_STACK): Renamed from DOUBLE_FAIL_STACK.
FAIL_STACK_GROWTH_FACTOR controls what ratio to increase size by.

26 years ago.
Jim Meyering [Sat, 6 Dec 1997 21:18:14 +0000 (21:18 +0000)]
.

26 years ago.
Jim Meyering [Sat, 6 Dec 1997 21:16:57 +0000 (21:16 +0000)]
.

26 years ago.
Jim Meyering [Sat, 6 Dec 1997 09:18:32 +0000 (09:18 +0000)]
.

26 years ago(re_compile_fastmap): Remove dcl of unused num_regs.
Jim Meyering [Sat, 6 Dec 1997 08:27:25 +0000 (08:27 +0000)]
(re_compile_fastmap): Remove dcl of unused num_regs.

26 years ago*** empty log message *** TEXTUTILS-1_22c
Jim Meyering [Sun, 30 Nov 1997 15:17:48 +0000 (15:17 +0000)]
*** empty log message ***

26 years ago.
Jim Meyering [Sun, 30 Nov 1997 15:14:10 +0000 (15:14 +0000)]
.

26 years ago(savedir): Revert last change. malloc always
Jim Meyering [Sun, 30 Nov 1997 14:20:17 +0000 (14:20 +0000)]
(savedir): Revert last change.  malloc always
works when called with zero, because we use the wrapper if the
system version is lacking.

26 years ago*** empty log message ***
Jim Meyering [Sun, 30 Nov 1997 13:43:36 +0000 (13:43 +0000)]
*** empty log message ***

26 years ago(EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
Jim Meyering [Sun, 30 Nov 1997 13:35:45 +0000 (13:35 +0000)]
(EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.

26 years ago.
Jim Meyering [Sun, 30 Nov 1997 13:35:35 +0000 (13:35 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sun, 30 Nov 1997 13:35:25 +0000 (13:35 +0000)]
*** empty log message ***

26 years agofilter through cppi post-jumbo-LFS
Jim Meyering [Sun, 30 Nov 1997 11:17:28 +0000 (11:17 +0000)]
filter through cppi

26 years agoremove trailing blank
Jim Meyering [Sun, 30 Nov 1997 11:16:14 +0000 (11:16 +0000)]
remove trailing blank

26 years ago(human_readable): Convert to ANSI-style definition.
Jim Meyering [Sun, 30 Nov 1997 11:10:24 +0000 (11:10 +0000)]
(human_readable): Convert to ANSI-style definition.
[lint]: Define `power'.

26 years agofilter through cppi
Jim Meyering [Sun, 30 Nov 1997 11:08:39 +0000 (11:08 +0000)]
filter through cppi

26 years ago.
Jim Meyering [Sun, 30 Nov 1997 11:08:23 +0000 (11:08 +0000)]
.

26 years ago(savedir): Check for size zero before invoking
Jim Meyering [Sun, 30 Nov 1997 10:24:41 +0000 (10:24 +0000)]
(savedir): Check for size zero before invoking
malloc; this can occur if st_size arg overflows on conversion to
unsigned int.  All callers now cast st_size arg to unsigned int.

26 years ago(getuidbyname, getgidbyname): Names can now
Jim Meyering [Sun, 30 Nov 1997 10:24:38 +0000 (10:24 +0000)]
(getuidbyname, getgidbyname): Names can now
be NULL in cache.  This change merely fixes ifdeffed-out code.

26 years agoNew file. The interface is inspired
Jim Meyering [Sun, 30 Nov 1997 10:24:32 +0000 (10:24 +0000)]
New file.  The interface is inspired
by the human_readable function that was in du.c, but it's pretty
much rewritten from scratch.

26 years ago(struct fs_usage): New member fsu_blocksize.
Jim Meyering [Sun, 30 Nov 1997 10:24:28 +0000 (10:24 +0000)]
(struct fs_usage): New member fsu_blocksize.
Other members are now uintmax_t, not long.

26 years agoDo all calculations using uintmax_t.
Jim Meyering [Sun, 30 Nov 1997 10:24:24 +0000 (10:24 +0000)]
Do all calculations using uintmax_t.
Include <inttypes.h> if available.
(adjust_blocks, CONVERT_BLOCKS): Remove.
(get_fs_usage): Set new member fsu_blocksize, and do not convert
numbers to 512-byte block units; this avoids overflow here.
Cast lseek arg to off_t, not long.

26 years ago(st_blocks): long -> off_t.
Jim Meyering [Sun, 30 Nov 1997 10:24:20 +0000 (10:24 +0000)]
(st_blocks): long -> off_t.
Avoid arithmetic overflow when size is near max.
Depend on _POSIX_SOURCE and BSIZE, not _POSIX_VERSION, for
compatibility with system.h.
(BSIZE): Remove definition, since if BSIZE is not defined
we're never invoked.

26 years ago(libfu_a_SOURCES): Add new file human.c.
Jim Meyering [Sun, 30 Nov 1997 10:24:16 +0000 (10:24 +0000)]
(libfu_a_SOURCES): Add new file human.c.
(noinst_HEADERS): Add new file human.h.

26 years ago. pre-jumbo-LFS
Jim Meyering [Sat, 29 Nov 1997 18:05:14 +0000 (18:05 +0000)]
.

26 years agoalso test for stdlib.h
Jim Meyering [Mon, 24 Nov 1997 14:21:16 +0000 (14:21 +0000)]
also test for stdlib.h
don't use STDC_HEADERS in ifdef for stdlib.h

26 years agoadd PARAMS around prototype lists
Jim Meyering [Wed, 19 Nov 1997 18:57:40 +0000 (18:57 +0000)]
add PARAMS around prototype lists

26 years ago.
Jim Meyering [Wed, 19 Nov 1997 18:55:53 +0000 (18:55 +0000)]
.