gnulib.git
26 years ago(PARAMS): Update prototype. SH-UTILS-1_16c
Jim Meyering [Sun, 13 Jul 1997 03:55:38 +0000 (03:55 +0000)]
(PARAMS): Update prototype.
(utmp_contents): Remove dcl.

26 years ago(read_utmp): Take new params: count and buffer.
Jim Meyering [Sun, 13 Jul 1997 03:54:00 +0000 (03:54 +0000)]
(read_utmp): Take new params: count and buffer.
Return boolean indicating failure.
Now, caller must give diagnostic upon.

26 years ago.
Jim Meyering [Sun, 13 Jul 1997 02:54:48 +0000 (02:54 +0000)]
.

26 years ago.
Jim Meyering [Wed, 9 Jul 1997 18:03:56 +0000 (18:03 +0000)]
.

26 years ago(make_path): Chdir to `/' before starting if necessary.
Jim Meyering [Wed, 9 Jul 1997 18:02:07 +0000 (18:02 +0000)]
(make_path): Chdir to `/' before starting if necessary.
Call save_cwd before while loop rather than from first iteration inside it.

26 years ago.
Jim Meyering [Wed, 9 Jul 1997 17:57:48 +0000 (17:57 +0000)]
.

26 years ago(strverscmp): Add `parenentheses around arithmetic in operand of |'
Jim Meyering [Wed, 9 Jul 1997 15:55:41 +0000 (15:55 +0000)]
(strverscmp): Add `parenentheses around arithmetic in operand of |'
as suggested by gcc -Wall.

26 years agoindent
Jim Meyering [Wed, 9 Jul 1997 15:42:54 +0000 (15:42 +0000)]
indent

26 years agofix typo in comment
Jim Meyering [Wed, 9 Jul 1997 15:33:27 +0000 (15:33 +0000)]
fix typo in comment

26 years ago.
Jim Meyering [Wed, 9 Jul 1997 15:31:29 +0000 (15:31 +0000)]
.

26 years agoAdd comments.
Jim Meyering [Wed, 9 Jul 1997 14:00:27 +0000 (14:00 +0000)]
Add comments.

26 years ago(mode_create_from_ref): New function.
Jim Meyering [Sun, 6 Jul 1997 21:28:04 +0000 (21:28 +0000)]
(mode_create_from_ref): New function.

26 years ago(mode_create_from_ref): Add prototype.
Jim Meyering [Sun, 6 Jul 1997 21:27:44 +0000 (21:27 +0000)]
(mode_create_from_ref): Add prototype.
(MODE_MASK_ALL): New define.
(MODE_BAD_REFERENCE): New define.

26 years ago(getuidbyname): Declare parameter to be const.
Jim Meyering [Sun, 6 Jul 1997 21:27:07 +0000 (21:27 +0000)]
(getuidbyname): Declare parameter to be const.
(getgidbyname): Declare parameter to be const.

26 years ago(noinst_HEADERS): Add strverscmp.h.
Jim Meyering [Sun, 6 Jul 1997 21:25:57 +0000 (21:25 +0000)]
(noinst_HEADERS): Add strverscmp.h.

26 years ago(libfu_a_SOURCES): Add strverscmp.c.
Jim Meyering [Sun, 6 Jul 1997 14:47:50 +0000 (14:47 +0000)]
(libfu_a_SOURCES): Add strverscmp.c.
(noinst_HEADERS): Add strverscmp.h.

26 years ago(getuser): Return NULL (rather than stringified uid) upon lookup failure.
Jim Meyering [Sun, 6 Jul 1997 13:50:29 +0000 (13:50 +0000)]
(getuser): Return NULL (rather than stringified uid) upon lookup failure.
(getgroup): Likewise.
(getuidbyname) [NOT_USED]: #ifdef-out unused function.
(getgidbyname) [NOT_USED]: #ifdef-out unused function.

26 years agoChange some #ifdef to #if.
Jim Meyering [Sun, 6 Jul 1997 11:57:38 +0000 (11:57 +0000)]
Change some #ifdef to #if.
Indent a cpp directive.

26 years ago.
Jim Meyering [Fri, 4 Jul 1997 23:05:22 +0000 (23:05 +0000)]
.

26 years ago(RE_TRANSLATE): Define default assuming simple integers.
Richard Stallman [Fri, 4 Jul 1997 20:46:51 +0000 (20:46 +0000)]
(RE_TRANSLATE): Define default assuming simple integers.

26 years ago(TRANSLATE, re_search_2, re_match_2_internal,bcmp_translate):
Richard Stallman [Fri, 4 Jul 1997 20:46:22 +0000 (20:46 +0000)]
(TRANSLATE, re_search_2, re_match_2_internal,bcmp_translate):
Use RE_TRANSLATE instead of accessing translate array directly.

26 years ago.
Jim Meyering [Fri, 4 Jul 1997 15:01:06 +0000 (15:01 +0000)]
.

26 years ago(re_search_2): Cast result of POS_ADDR_VSTRING.
Richard Stallman [Wed, 2 Jul 1997 06:25:00 +0000 (06:25 +0000)]
(re_search_2): Cast result of POS_ADDR_VSTRING.

26 years ago(make_path): Reorder stat-then-mkdir-if-missing
Jim Meyering [Tue, 1 Jul 1997 11:50:39 +0000 (11:50 +0000)]
(make_path): Reorder stat-then-mkdir-if-missing
calls so that mkdir is called first.  Before make_path would first
`stat' a directory, then call mkdir if it didn't exist.  But if
some other process created the directory between the stat & mkdir,
the mkdir would fail with EEXIST.  Diagnosis and suggestion from
Greg McGary.

26 years ago[putenv]: Undefine before including system headers.
Jim Meyering [Tue, 1 Jul 1997 11:30:08 +0000 (11:30 +0000)]
[putenv]: Undefine before including system headers.
Otherwise, the declaration of *rpl_putenv* conflicts with the system
prototype on at least Irix5.3.  From Marcus Daniels.

26 years ago(base_name_strip_trailing_slashes): Remove. SH-UTILS-1_16b
Jim Meyering [Sun, 29 Jun 1997 22:26:18 +0000 (22:26 +0000)]
(base_name_strip_trailing_slashes): Remove.

26 years ago(base_name_strip_trailing_slashes): new function.
Jim Meyering [Sun, 29 Jun 1997 22:25:54 +0000 (22:25 +0000)]
(base_name_strip_trailing_slashes): new function.

26 years agoRemove _sys_putenv cruft and just rename the function itself.
Jim Meyering [Sun, 29 Jun 1997 21:05:05 +0000 (21:05 +0000)]
Remove _sys_putenv cruft and just rename the function itself.

26 years agofix it right
Jim Meyering [Sun, 29 Jun 1997 20:18:58 +0000 (20:18 +0000)]
fix it right

26 years agoDefine-away putenv only if it's not already defined.
Jim Meyering [Sun, 29 Jun 1997 20:12:52 +0000 (20:12 +0000)]
Define-away putenv only if it's not already defined.

26 years ago.
Jim Meyering [Sun, 29 Jun 1997 13:52:16 +0000 (13:52 +0000)]
.

26 years ago.
Jim Meyering [Sun, 29 Jun 1997 03:27:24 +0000 (03:27 +0000)]
.

26 years ago. SH-UTILS-1_16a
Jim Meyering [Wed, 25 Jun 1997 16:08:03 +0000 (16:08 +0000)]
.

26 years ago.
Jim Meyering [Wed, 25 Jun 1997 15:38:35 +0000 (15:38 +0000)]
.

26 years ago.
Jim Meyering [Mon, 16 Jun 1997 18:02:08 +0000 (18:02 +0000)]
.

26 years agocomment
Jim Meyering [Mon, 16 Jun 1997 17:50:23 +0000 (17:50 +0000)]
comment

26 years ago.
Jim Meyering [Mon, 16 Jun 1997 17:42:33 +0000 (17:42 +0000)]
.

26 years ago.
Jim Meyering [Mon, 16 Jun 1997 16:57:55 +0000 (16:57 +0000)]
.

26 years ago(EXTRA_DIST): Add putenv.m4.
Jim Meyering [Mon, 16 Jun 1997 16:57:02 +0000 (16:57 +0000)]
(EXTRA_DIST): Add putenv.m4.

26 years ago.
Jim Meyering [Mon, 16 Jun 1997 16:45:15 +0000 (16:45 +0000)]
.

26 years agoadd copyright
Jim Meyering [Mon, 16 Jun 1997 16:15:30 +0000 (16:15 +0000)]
add copyright

26 years agoFix previous change.
Richard Stallman [Sun, 15 Jun 1997 19:43:01 +0000 (19:43 +0000)]
Fix previous change.

26 years agoFix up whitespace.
Richard Stallman [Sun, 15 Jun 1997 19:05:59 +0000 (19:05 +0000)]
Fix up whitespace.

26 years ago(struct re_pattern_buffer): New member multibyte.
Richard Stallman [Sun, 15 Jun 1997 19:02:27 +0000 (19:02 +0000)]
(struct re_pattern_buffer): New member multibyte.

(re_match_object): New variable.

26 years ago(PTR_TO_OFFSET): New macro.
Richard Stallman [Sun, 15 Jun 1997 19:00:12 +0000 (19:00 +0000)]
(PTR_TO_OFFSET): New macro.
(POS_AS_IN_BUFFER): New macro.
(SYNTAX_ENTRY_VIA_PROPERTY): Set to take `syntax-table' text
property into account when doing SYNTAX (c).
(re_compile_fastmap): disable fastmap if any of wordbound
notwordbound wordbeg wordend notsyntaxspec syntaxspec are seen.
(re_search_2): SETUP_SYNTAX_TABLE_FOR_OBJECT at the start.
(re_match_object): New variable.
(re_match_2): SETUP_SYNTAX_TABLE_FOR_OBJECT at the start.
(re_match_2_internal): For any of wordbound notwordbound wordbeg
wordend notsyntaxspec syntaxspec call UPDATE_SYNTAX_TABLE before
doing SYNTAX (c).

[emacs]: Include charset.h and category.h

[!emacs] (BASE_LEADING_CODE_P, WORD_BOUNDARY_P, CHAR_HEAD_P,
SINGLE_BYTE_CHAR_P, SAME_CHARSET_P, MULTIBYTE_FORM_LENGTH,
STRING_CHAR_AND_LENGTH, GET_CHAR_AFTER_2, GET_CHAR_BEFORE_2):
New dummy macros.

(enum re_opcode_t): New member categoryspec and notcategoryspec.

(STORE_CHARACTER_AND_INCR, EXTRACT_CHARACTER,
CHARSET_LOOKUP_RANGE_TABLE_WITH_COUNT,
CHARSET_LOOKUP_RANGE_TABLE, CHARSET_BITMAP_SIZE,
CHARSET_RANGE_TABLE_EXISTS_P, CHARSET_RANGE_TABLE
CHARSET_PAST_RANGE_TABLE): New macros.

(TRANSLATE): Cast return value to unsigned char, not char.

(struct range_table_work_area): New structure.

(EXTEND_RANGE_TABLE_WORK_AREA, SET_RANGE_TABLE_WORK_AREA,
FREE_RANGE_TABLE_WORK_AREA, CLEAR_RANGE_TABLE_WORK_USED,
RANGE_TABLE_WORK_USED, RANGE_TABLE_WORK_ELT): New macros.

(FREE_STACK_RETURN): Call FREE_RANGE_TABLE_WORK_AREA.

(regex_compile): Declare `c' and `c1' as int to store multibyte characters.
Declare range_table_work and initialize it.
Initialize bufp->multibyte to 0 if not emacs.
For case '[' and `default', code re-written to handle multibyte characters.
Add code for case 'c' and 'C' to handle category spec.

(re_compile_fastmap): New local variables k, simple_char_max,
and match_any_multibyte_characters.
Use macro CHARSET_BITMAP_SIZE.
Handle multibyte characters in cases charset, charset_not,
wordchar, notwordchar, anychar, syntaxspec, notsyntaxspec,
categoryspec, notcategoryspec.

(STOP_ADDR_VSTRING, POS_ADDR_VSTRING): New macros.

(re_search_2): Code re-written to handle multibyte characters.

(AT_WORD_BOUNDARY): Macro disabled.

(re_match_2_internal): New local variable multibyte.  `d' is
incremented while paying attention to multibyte characters if necessary.
For case charset, charsetnot, wordbound, notwordbound,
wordbeg, wordend, matchsyntax, and matchnotsyntax, code
re-written to handle multibyte characters.
Add code for case categoryspec and notcategoryspec.
Declare c, c1 as unsigned int, not unsigned char.

26 years ago(full_write): Add comment regarding failure due to bug in
Jim Meyering [Sun, 15 Jun 1997 15:06:52 +0000 (15:06 +0000)]
(full_write): Add comment regarding failure due to bug in
Linux Slackware 1.2.13 kernel.

26 years agoRewrite using save-cwd.c and chdir to remove quadratic component of complexity.
Jim Meyering [Sun, 15 Jun 1997 13:34:47 +0000 (13:34 +0000)]
Rewrite using save-cwd.c and chdir to remove quadratic component of complexity.
Before, it processed O(n^2) directory name components via stat and mkdir.
Now it's O(n).  This makes mkdir -p a lot more efficient when creating
directories with very many components.  On a Linux 2.0.30 ext2fs filesystem
this command: mkdir -p `perl -e 'print "a/" x 500'`  now runs in 0.77 seconds
(user+sys).  Contrast that with the 9.5(!) seconds it took before.

26 years ago.
Jim Meyering [Sat, 14 Jun 1997 16:36:22 +0000 (16:36 +0000)]
.

26 years agoremove blank line at end and add copyright
Jim Meyering [Thu, 12 Jun 1997 12:58:47 +0000 (12:58 +0000)]
remove blank line at end and add copyright
tweak cpp indentation

26 years ago.
Jim Meyering [Fri, 6 Jun 1997 14:30:11 +0000 (14:30 +0000)]
.

26 years ago[HAVE_UNISTD_H]: Include unistd.h.
Jim Meyering [Tue, 3 Jun 1997 20:01:47 +0000 (20:01 +0000)]
[HAVE_UNISTD_H]: Include unistd.h.
John Gatewood Ham reported that this is necessary for DJGPP/Win95.

26 years ago(OtherTable): Interpret `next' as 1 (not 2) units.
Jim Meyering [Sun, 1 Jun 1997 17:15:51 +0000 (17:15 +0000)]
(OtherTable): Interpret `next' as 1 (not 2) units.
Patch from Richard Sharman <rsharman@magmacom.com>.

26 years agofix for abs pathnames
Jim Meyering [Fri, 30 May 1997 14:00:47 +0000 (14:00 +0000)]
fix for abs pathnames

26 years agocorrect/normalize indentation in cpp directives
Jim Meyering [Wed, 28 May 1997 12:19:28 +0000 (12:19 +0000)]
correct/normalize indentation in cpp directives

26 years agoupdate from FSF
Jim Meyering [Wed, 28 May 1997 12:01:33 +0000 (12:01 +0000)]
update from FSF

26 years ago(read_filesystem_list): Add `|| defined (__OpenBSD__)'
Jim Meyering [Wed, 28 May 1997 11:42:29 +0000 (11:42 +0000)]
(read_filesystem_list): Add `|| defined (__OpenBSD__)'
to the NetBSD #if so OpenBSD also uses the f_fstypename member.
(fstype_to_string): Add `&& !defined (__OpenBSD__)' to the NetBSD #if
expression to exclude this function definition.  OpenBSD 2.1 beta
doesn't need it.  Patch from Hugh Daniel <hugh@ecotone.xanadu.com>

26 years agoDon't include backupfile.h.
Jim Meyering [Tue, 27 May 1997 14:16:49 +0000 (14:16 +0000)]
Don't include backupfile.h.

26 years ago(libfu_a_SOURCES): Add addext.c.
Jim Meyering [Tue, 27 May 1997 10:45:34 +0000 (10:45 +0000)]
(libfu_a_SOURCES): Add addext.c.
Remove getversion.c;  get_version is now in backupfile.c.
Add basename.c since it's no longer replacible.

26 years agoChange dcl of program_name so it doesn't conflict with the ubiquitous char* one.
Jim Meyering [Tue, 27 May 1997 10:39:10 +0000 (10:39 +0000)]
Change dcl of program_name so it doesn't conflict with the ubiquitous char* one.

26 years ago.
Jim Meyering [Tue, 27 May 1997 10:31:04 +0000 (10:31 +0000)]
.

26 years agoUpdate from patch-2.2.93.
Jim Meyering [Tue, 27 May 1997 10:30:45 +0000 (10:30 +0000)]
Update from patch-2.2.93.

26 years agoUpdate from FSF via patch-2.2.93.
Jim Meyering [Tue, 27 May 1997 09:39:25 +0000 (09:39 +0000)]
Update from FSF via patch-2.2.93.

26 years agoUpdate from glibc via patch-2.2.93.
Jim Meyering [Tue, 27 May 1997 09:38:06 +0000 (09:38 +0000)]
Update from glibc via patch-2.2.93.

26 years ago.
Jim Meyering [Sat, 24 May 1997 18:12:59 +0000 (18:12 +0000)]
.

26 years ago.
Jim Meyering [Sat, 24 May 1997 18:11:33 +0000 (18:11 +0000)]
.

26 years ago(read_filesystem_list): Show automount-related
Jim Meyering [Sat, 24 May 1997 14:43:21 +0000 (14:43 +0000)]
(read_filesystem_list): Show automount-related
duplicate filesystems only when --all specified.  With suggestions
from Stuart Kemp.

26 years agoIndent cpp directives.
Jim Meyering [Sat, 24 May 1997 14:42:40 +0000 (14:42 +0000)]
Indent cpp directives.

26 years ago.
Jim Meyering [Sat, 24 May 1997 14:31:23 +0000 (14:31 +0000)]
.

26 years ago.
Jim Meyering [Sat, 24 May 1997 14:11:19 +0000 (14:11 +0000)]
.

26 years ago.
Jim Meyering [Fri, 23 May 1997 13:23:49 +0000 (13:23 +0000)]
.

27 years ago.
Jim Meyering [Fri, 2 May 1997 04:02:17 +0000 (04:02 +0000)]
.

27 years agoupdate from automake-1.1o
Jim Meyering [Tue, 29 Apr 1997 15:48:14 +0000 (15:48 +0000)]
update from automake-1.1o

27 years ago.
Jim Meyering [Tue, 29 Apr 1997 15:22:05 +0000 (15:22 +0000)]
.

27 years ago.
Jim Meyering [Sun, 27 Apr 1997 23:12:01 +0000 (23:12 +0000)]
.

27 years agos/;/. in comment to placate francois
Jim Meyering [Thu, 10 Apr 1997 03:46:01 +0000 (03:46 +0000)]
s/;/. in comment to placate francois

27 years ago.
Jim Meyering [Mon, 7 Apr 1997 16:59:43 +0000 (16:59 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Mon, 7 Apr 1997 15:24:38 +0000 (15:24 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Mon, 7 Apr 1997 15:21:33 +0000 (15:21 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Mon, 7 Apr 1997 00:44:33 +0000 (00:44 +0000)]
.

27 years ago.
Jim Meyering [Sun, 6 Apr 1997 20:42:00 +0000 (20:42 +0000)]
.

27 years ago.
Jim Meyering [Fri, 4 Apr 1997 03:29:25 +0000 (03:29 +0000)]
.

27 years ago(EXTRA_DIST): Update file list.
Jim Meyering [Fri, 4 Apr 1997 03:27:35 +0000 (03:27 +0000)]
(EXTRA_DIST): Update file list.

27 years ago.
Jim Meyering [Sun, 23 Mar 1997 21:27:46 +0000 (21:27 +0000)]
.

27 years ago.
Jim Meyering [Sun, 23 Mar 1997 02:57:05 +0000 (02:57 +0000)]
.

27 years ago.
Jim Meyering [Sat, 22 Mar 1997 19:54:32 +0000 (19:54 +0000)]
.

27 years ago.
Jim Meyering [Fri, 21 Mar 1997 03:10:21 +0000 (03:10 +0000)]
.

27 years ago(TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
Jim Meyering [Fri, 14 Mar 1997 03:28:09 +0000 (03:28 +0000)]
(TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.

27 years agoUpdate from gettext-0.10.27.
Jim Meyering [Thu, 13 Mar 1997 05:17:50 +0000 (05:17 +0000)]
Update from gettext-0.10.27.

27 years ago.
Jim Meyering [Thu, 13 Mar 1997 05:16:47 +0000 (05:16 +0000)]
.

27 years ago(EXTRA_DIST): Add chown.c.
Jim Meyering [Thu, 13 Mar 1997 05:13:18 +0000 (05:13 +0000)]
(EXTRA_DIST): Add chown.c.

27 years agoAdd chown.m4.
Jim Meyering [Thu, 13 Mar 1997 05:12:13 +0000 (05:12 +0000)]
Add chown.m4.

27 years ago.
Jim Meyering [Thu, 13 Mar 1997 05:10:42 +0000 (05:10 +0000)]
.

27 years ago.
Jim Meyering [Wed, 12 Mar 1997 01:26:15 +0000 (01:26 +0000)]
.

27 years ago.
Jim Meyering [Tue, 11 Mar 1997 05:11:09 +0000 (05:11 +0000)]
.

27 years ago.
Jim Meyering [Tue, 11 Mar 1997 05:02:11 +0000 (05:02 +0000)]
.

27 years ago(tYEAR_UNIT): Increase yyRelYear by $1, not just by 1.
Jim Meyering [Thu, 27 Feb 1997 05:53:15 +0000 (05:53 +0000)]
(tYEAR_UNIT): Increase yyRelYear by $1, not just by 1.
From Andreas Schwab.

27 years ago(tMONTH_UNIT): Increase yyRelMonth by $1, not just by 1.
Jim Meyering [Sat, 22 Feb 1997 20:13:19 +0000 (20:13 +0000)]
(tMONTH_UNIT): Increase yyRelMonth by $1, not just by 1.
(tDAY_UNIT): Likewise for yyRelDay.
(tHOUR_UNIT): Likewise for yyRelHour.
(tMINUTE_UNIT): Likewise for yyRelMinutes.
(tSEC_UNIT): Likewise for yyRelSeconds.

27 years agoupdate from FSF
Jim Meyering [Fri, 21 Feb 1997 02:16:54 +0000 (02:16 +0000)]
update from FSF

27 years ago.
Jim Meyering [Tue, 18 Feb 1997 17:46:04 +0000 (17:46 +0000)]
.

27 years ago.
Jim Meyering [Tue, 18 Feb 1997 15:12:41 +0000 (15:12 +0000)]
.