gnulib.git
17 years agoSequential list data type implemented by a linked list.
Bruno Haible [Mon, 17 Jul 2006 11:30:07 +0000 (11:30 +0000)]
Sequential list data type implemented by a linked list.

17 years agoSequential list data type implemented by a circular array.
Bruno Haible [Mon, 17 Jul 2006 11:29:21 +0000 (11:29 +0000)]
Sequential list data type implemented by a circular array.

17 years agoOrdered set data type implemented by an array.
Bruno Haible [Mon, 17 Jul 2006 11:28:35 +0000 (11:28 +0000)]
Ordered set data type implemented by an array.

17 years agoSequential list data type implemented by an array.
Bruno Haible [Mon, 17 Jul 2006 11:28:01 +0000 (11:28 +0000)]
Sequential list data type implemented by an array.

17 years agoCommon code of several ordered list implementations.
Bruno Haible [Mon, 17 Jul 2006 11:27:35 +0000 (11:27 +0000)]
Common code of several ordered list implementations.

17 years agoCommon code several concrete list implementations.
Bruno Haible [Mon, 17 Jul 2006 11:27:18 +0000 (11:27 +0000)]
Common code several concrete list implementations.

17 years agoNew modules 'list' and 'oset'.
Bruno Haible [Mon, 17 Jul 2006 11:24:42 +0000 (11:24 +0000)]
New modules 'list' and 'oset'.

17 years agoRegenerate.
Paul Eggert [Mon, 17 Jul 2006 06:19:45 +0000 (06:19 +0000)]
Regenerate.

17 years agoFix mispelling in previous change: mkancestors -> mkancesdirs
Paul Eggert [Mon, 17 Jul 2006 06:13:01 +0000 (06:13 +0000)]
Fix mispelling in previous change: mkancestors -> mkancesdirs

17 years agoImport from coreutils.
Paul Eggert [Mon, 17 Jul 2006 06:06:48 +0000 (06:06 +0000)]
Import from coreutils.

* MODULES.html.sh: Add mkancestors.
* modules/mkancesdirs: New module.
* modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
The chdir-safer and afs files are now orphans; I'll remove them
unless someone speaks up.
Add lib/dirchownmod.c, lib/dirchownmod.h.
(Depends-on): Remove alloca, chown, save-cwd, dirname.
Add lchown, mkancesdirs.
(Maintainer): Add self.

* lib/dirchownmod.c, lib/dirchownmod.h:
* lib/mkancesdirs.c, lib/mkancesdirs.h: New files.
* lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
(make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
callers changed.  Revamp internals significantly, by not
attempting to create directories that are temporarily more
permissive than the final results.  Do not attempt to use
save_cwd/restore_cwd; it isn't worth it for mkdir and install.
This removes some race conditions, fixes some bugs, and simplifies
things.  Use new dirchownmod function to do owner and mode changes.
* lib/mkdir-p.h: Likewise.
* lib/modechange.c (octal_to_mode): New function.
(struct mode_change): New member mentioned.
(make_node_op_equals): New arg mentioned.  All callers changed.
(mode_compile): Keep track of which mode bits the user has explicitly
mentioned.
(mode_adjust): New arg DIR, so that we implement the X op correctly.
New arg PMODE_BITS, to keep track of which mode bits the user
mentioned; it treats S_ISUID and S_ISGID speciall.
All callers changed.
* lib/modechange.h: Likewise.

* mkancesdirs.m4: New file.
* mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c, dirchownmod.h.
Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER; no longer needed.
Require gl_FUNC_LCHOWN, since dirchownmod.c needs it.

17 years agoupdate from texinfo
Karl Berry [Sun, 16 Jul 2006 23:52:38 +0000 (23:52 +0000)]
update from texinfo

17 years ago.
Karl Berry [Sat, 15 Jul 2006 23:08:08 +0000 (23:08 +0000)]
.

17 years agohelp message tweaks
Karl Berry [Sat, 15 Jul 2006 23:07:01 +0000 (23:07 +0000)]
help message tweaks

17 years agoupdate from texinfo
Karl Berry [Sat, 15 Jul 2006 22:58:40 +0000 (22:58 +0000)]
update from texinfo

17 years agoautoupdate
Karl Berry [Sat, 15 Jul 2006 19:58:49 +0000 (19:58 +0000)]
autoupdate

17 years agotexinfo subdir is util not utils
Karl Berry [Fri, 14 Jul 2006 13:17:33 +0000 (13:17 +0000)]
texinfo subdir is util not utils

17 years ago2006-07-14 Simon Josefsson <jas@extundo.com>
Simon Josefsson [Fri, 14 Jul 2006 09:32:13 +0000 (09:32 +0000)]
2006-07-14  Simon Josefsson  <jas@extundo.com>

* gnulib.texi (Libtool and Windows): New section.

17 years ago.
Karl Berry [Thu, 13 Jul 2006 08:03:33 +0000 (08:03 +0000)]
.

17 years ago*** empty log message ***
Simon Josefsson [Wed, 12 Jul 2006 20:14:15 +0000 (20:14 +0000)]
*** empty log message ***

17 years agoFix license, approved by Karl.
Simon Josefsson [Wed, 12 Jul 2006 20:13:42 +0000 (20:13 +0000)]
Fix license, approved by Karl.

17 years ago* MODULES.html.sh: Add gendocs.
Eric Blake [Wed, 12 Jul 2006 15:19:16 +0000 (15:19 +0000)]
* MODULES.html.sh: Add gendocs.

17 years ago.
Karl Berry [Wed, 12 Jul 2006 07:56:18 +0000 (07:56 +0000)]
.

17 years agoAdd gendocs, from texinfo.
Simon Josefsson [Wed, 12 Jul 2006 07:27:31 +0000 (07:27 +0000)]
Add gendocs, from texinfo.

17 years ago* gnulib-tool: List --doc-base before --tests-base.
Eric Blake [Tue, 11 Jul 2006 15:27:08 +0000 (15:27 +0000)]
* gnulib-tool: List --doc-base before --tests-base.

17 years ago* glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
Derek R. Price [Tue, 11 Jul 2006 13:18:42 +0000 (13:18 +0000)]
* glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.

17 years ago* absolute-header.m4: Fix comments to match recent change.
Eric Blake [Tue, 11 Jul 2006 13:02:25 +0000 (13:02 +0000)]
* absolute-header.m4: Fix comments to match recent change.

17 years ago* modules/fdl: New module, to install doc/fdl.texi.
Eric Blake [Tue, 11 Jul 2006 12:58:27 +0000 (12:58 +0000)]
* modules/fdl: New module, to install doc/fdl.texi.
* MODULES.html.sh: Add new section for documentation modules.
* gnulib-tool: Avoid space-tab.
(--doc-base): New option, to manage files from doc.

17 years agoMention where to put documentation.
Bruno Haible [Tue, 11 Jul 2006 11:59:13 +0000 (11:59 +0000)]
Mention where to put documentation.

17 years ago* sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
Paul Eggert [Tue, 11 Jul 2006 06:13:28 +0000 (06:13 +0000)]
* sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
to stdint.m4.

17 years ago* backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
Paul Eggert [Tue, 11 Jul 2006 06:02:51 +0000 (06:02 +0000)]
* backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
macros into the GNU _D_EXACT_NAMLEN.
* savedir.c:  Likewise.
(savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.

* backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
* savedir.m4:
Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
macros into the GNU _D_EXACT_NAMLEN.

17 years agoWhite space fix from coreutils.
Paul Eggert [Tue, 11 Jul 2006 04:07:59 +0000 (04:07 +0000)]
White space fix from coreutils.

17 years ago* stdint.m4 (gl_STDINT_H): Like yesterday's change to
Paul Eggert [Tue, 11 Jul 2006 03:30:49 +0000 (03:30 +0000)]
* stdint.m4 (gl_STDINT_H): Like yesterday's change to
absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
"no/such/file/stdint.h" when there is no such file, so that
the resulting C code can be parsed by dodgy compilers.
Problems reported by Bob Proulx.

17 years agoautoupdate
Karl Berry [Mon, 10 Jul 2006 13:16:09 +0000 (13:16 +0000)]
autoupdate

17 years ago* functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
Ralf Wildenhues [Mon, 10 Jul 2006 06:37:33 +0000 (06:37 +0000)]
* functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.

17 years ago* absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
Paul Eggert [Mon, 10 Jul 2006 04:37:09 +0000 (04:37 +0000)]
* absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
around the absolute name, to work around a problem with the HP-UX
11.23 native C compiler, reported by Bob Proulx.

17 years agoSync from upstream.
Paul Eggert [Sun, 9 Jul 2006 16:31:39 +0000 (16:31 +0000)]
Sync from upstream.

17 years ago* lib/argp-pv.c: Remove a doubled word in a comment.
Jim Meyering [Sun, 9 Jul 2006 10:18:17 +0000 (10:18 +0000)]
* lib/argp-pv.c: Remove a doubled word in a comment.
* lib/check-version.c (check_version): Likewise.
* lib/javacomp.c (compile_java_class): Likewise.
* m4/glob.m4: Likewise.

17 years ago.
Karl Berry [Sun, 9 Jul 2006 07:57:03 +0000 (07:57 +0000)]
.

17 years ago* gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
Paul Eggert [Sun, 9 Jul 2006 03:31:53 +0000 (03:31 +0000)]
* gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
for the benefit of people using Autoconf 2.60.  If you want to
support older Autoconf versions you can copy m4/onceonly_2_57.m4
(or m4/onceonly.m4, if pre-2.57) manually.

17 years agoCommentary sync from coreutils.
Paul Eggert [Sun, 9 Jul 2006 01:31:04 +0000 (01:31 +0000)]
Commentary sync from coreutils.

17 years ago.
Karl Berry [Fri, 7 Jul 2006 07:57:53 +0000 (07:57 +0000)]
.

17 years agoAdd arpa_inet module.
Simon Josefsson [Fri, 7 Jul 2006 07:41:24 +0000 (07:41 +0000)]
Add arpa_inet module.

17 years ago2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
Simon Josefsson [Fri, 7 Jul 2006 07:37:16 +0000 (07:37 +0000)]
2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)

* lib/getaddrinfo.c: Changes to compile under MSVC6: changed
'#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
brackets.  Other minor changes to suppress some compiler
warnings.

17 years ago2006-07-07 Simon Josefsson <jas@extundo.com>
Simon Josefsson [Thu, 6 Jul 2006 23:56:00 +0000 (23:56 +0000)]
2006-07-07  Simon Josefsson  <jas@extundo.com>

* tests/test-crc.c: Change expected crc value, the test vector
were probably computed using the old broken crc.c?

17 years ago* lib/getloadavg.c: Use __VMS, not VMS.
Paul Eggert [Thu, 6 Jul 2006 23:29:27 +0000 (23:29 +0000)]
* lib/getloadavg.c: Use __VMS, not VMS.
* lib/getopt.c: Likewise.
* lib/getpagesize.h: Likewise.
* lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while and
probably does not work.
* lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
Don't worry about this obsolete case any more.
(HAVE_DIR): Remove.  All uses removed; we now assume you can read
directories.
* lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
worry about this obsolete case any more.
* lib/fts.c: Likewise.
* lib/getcwd.c: Likewise.
* lib/glob.h: Likewise.
* lib/savedir.c: Likewise.
* m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
of invoking obsolescent AC_HEADER_DIRENT macro.
* m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
* m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
* m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
* m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
* m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
* m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
* m4/savedir.m4 (gl_SAVEDIR): Likewise.
* m4/readdir.m4: Remove; no longer needed.

17 years ago* _inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
Paul Eggert [Thu, 6 Jul 2006 22:16:59 +0000 (22:16 +0000)]
* _inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
with only one argument, for Autoconf 2.60.
* fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
expand to nothing, so add a shell command to avoid syntax error.
* getpass.m4 (gl_PREREQ_GETPASS): Likewise.

17 years ago* lib/.cppi-disable: Add wcwidth.
Paul Eggert [Thu, 6 Jul 2006 21:51:28 +0000 (21:51 +0000)]
* lib/.cppi-disable: Add wcwidth.
* lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
(isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
(ISGRAPH): Remove.  All uses changed to isgraph.
(FOLD) [!defined _LIBC]: Remove special case.
* lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
* lib/regext_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
HAVE_ISBLANK.
* lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special case.

* m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
no longer needed.  Check for isblank decl.
* m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
* m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
of existence.

17 years ago* modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
Paul Eggert [Thu, 6 Jul 2006 20:49:09 +0000 (20:49 +0000)]
* modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
not gl_PREREQ_GETUSERSHELL.

17 years ago* strtod.c (strtod): cast the argument of tolower to unsigned char.
Ralf Wildenhues [Thu, 6 Jul 2006 17:23:55 +0000 (17:23 +0000)]
* strtod.c (strtod): cast the argument of tolower to unsigned char.

17 years ago2006-07-06 Simon Josefsson <jas@extundo.com>
Simon Josefsson [Thu, 6 Jul 2006 13:53:54 +0000 (13:53 +0000)]
2006-07-06  Simon Josefsson  <jas@extundo.com>

* modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
now the canonical place for the M4 file).

* modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
from the sys_socket dependency now.

* modules/inet_pton (Files): Ditto.

* modules/inet_ntop (Files): Ditto.

17 years agoObsoleting STDC_HEADERS. From Derek Price.
Bruno Haible [Thu, 6 Jul 2006 12:55:17 +0000 (12:55 +0000)]
Obsoleting STDC_HEADERS. From Derek Price.

17 years ago* lib/memcasecmp.c: Include <limits.h>.
Paul Eggert [Wed, 5 Jul 2006 23:35:19 +0000 (23:35 +0000)]
* lib/memcasecmp.c: Include <limits.h>.
(memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
* lib/strtod.c (strtod): Don't assume isspace works on negative chars.
Don't assume isdigit succeeds only on '0' through '9'.

* lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
All uses of is_space replaced by isspace.
* lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
(ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
(ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
replaced by isprint etc.
* lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
* lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
* lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
* lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
* lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
* lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.

* m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
rather than AC_CHECK_DECLS for strtoimax and strtoumax.
* m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer needed.
All uses removed.
* m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
* m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
* m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer needed.
* m4/getdate.m4 (gl_GETDATE): Likewise.
* m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
* m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
* m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
* m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
* m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
* m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
* m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
needed.
* m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
no longer needed.
* m4/exclude.m4 (gl_EXCLUDE): Likewise.
* m4/getdate.m4 (gl_GETDATE): Likewise.
* m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
* m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
* m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
* m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
* m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.

17 years ago* modules/getaddrinfo (Depends-on): Add snprintf.
Eric Blake [Wed, 5 Jul 2006 18:10:56 +0000 (18:10 +0000)]
* modules/getaddrinfo (Depends-on): Add snprintf.

17 years ago* sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
Eric Blake [Wed, 5 Jul 2006 18:06:09 +0000 (18:06 +0000)]
* sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
to avoid 'header present but could not be compiled' on cygwin.

17 years ago* getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
Eric Blake [Wed, 5 Jul 2006 17:53:09 +0000 (17:53 +0000)]
* getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
missing from netdb.h.
* getaddrinfo.c (includes): Include inet_ntop and snprintf.

17 years agoFix for cross-compilation.
Bruno Haible [Wed, 5 Jul 2006 12:46:39 +0000 (12:46 +0000)]
Fix for cross-compilation.

17 years ago* modules/dirname-tests: New test module.
Eric Blake [Tue, 4 Jul 2006 19:23:08 +0000 (19:23 +0000)]
* modules/dirname-tests: New test module.
* tests/test-dirname.c: New file, replacing dirname.c
TEST_DIRNAME section that was recently deleted.

17 years agoAssume ANSI C.
Bruno Haible [Tue, 4 Jul 2006 16:46:23 +0000 (16:46 +0000)]
Assume ANSI C.

17 years agoChange comments to not mention AC_HEADER_STDC.
Bruno Haible [Tue, 4 Jul 2006 16:40:34 +0000 (16:40 +0000)]
Change comments to not mention AC_HEADER_STDC.

17 years ago.
Karl Berry [Tue, 4 Jul 2006 07:58:05 +0000 (07:58 +0000)]
.

17 years ago* modules/cycle-check (lib_SOURCES): Add same-inode.h.
Paul Eggert [Tue, 4 Jul 2006 07:43:15 +0000 (07:43 +0000)]
* modules/cycle-check (lib_SOURCES): Add same-inode.h.

17 years ago* absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
Paul Eggert [Tue, 4 Jul 2006 07:38:59 +0000 (07:38 +0000)]
* absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
to the absolute name, not just one, to bypass Sun C 5.8's
"warning: #include of /usr/include/... may be non-portable".

17 years ago* m4/absolute-header.m4: Renamed from full-header-path.m4.
Paul Eggert [Tue, 4 Jul 2006 06:37:09 +0000 (06:37 +0000)]
* m4/absolute-header.m4: Renamed from full-header-path.m4.
This is to keep the terminology clean; POSIX talks about
"absolute pathnames", not "full pathnames", but the GNU
Coding Standards say to use "path" for something else;
so use "absolute" to keep both sides happy.
(gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
Set gl_absolute_header, not gl_full_header_path.
Set gl_cv_absolute_<header>, not gl_full_path_<header>.
Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
All uses changed.

17 years ago* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
Paul Eggert [Tue, 4 Jul 2006 05:59:05 +0000 (05:59 +0000)]
* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
macro is used before the first cycle_check call.

17 years ago* stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
Paul Eggert [Tue, 4 Jul 2006 04:48:23 +0000 (04:48 +0000)]
* stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
MacOS X 10.4.6.  Don't mention <sys/int_types.h>.

17 years ago* modules/dirname (Depends-on): Add xstrndup.
Eric Blake [Mon, 3 Jul 2006 17:50:35 +0000 (17:50 +0000)]
* modules/dirname (Depends-on): Add xstrndup.

17 years agoMerge from coreutils.
Paul Eggert [Mon, 3 Jul 2006 08:32:46 +0000 (08:32 +0000)]
Merge from coreutils.

17 years ago* wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
Eric Blake [Sun, 2 Jul 2006 22:15:50 +0000 (22:15 +0000)]
* wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.

17 years agoautoupdate
Karl Berry [Sun, 2 Jul 2006 13:20:04 +0000 (13:20 +0000)]
autoupdate

17 years ago* stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
Paul Eggert [Sun, 2 Jul 2006 09:12:49 +0000 (09:12 +0000)]
* stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
test cases, so that config.log is a bit easier to follow.

17 years ago* stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
Paul Eggert [Sun, 2 Jul 2006 09:12:28 +0000 (09:12 +0000)]
* stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
both are 64 bits, since this seems to be the tradition, and this
prevents gcc -Wformat from warning about usages with PRIuMAX.  If
we ever run into a host that prefers long long to long in this
case, we'll need another configure-time test.

17 years ago.
Karl Berry [Sun, 2 Jul 2006 07:57:11 +0000 (07:57 +0000)]
.

17 years agoSimplification rewrite for stdint module.
Paul Eggert [Sun, 2 Jul 2006 06:49:07 +0000 (06:49 +0000)]
Simplification rewrite for stdint module.

* modules/inttypes (Depends-on): No longer depends on stdint.
* modules/stdint (Description): Say more about assumptions.
Say that the fast types might differ.  Say macros are used.
(Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
(Makefile.am): Revise list of substituted symbols to match
new stdint.m4.
* modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
(configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
* tests/test-stdint.c (verify_same_types)
[! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
the code conforms to C99/C89.
Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.

* lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
possible collision with system files.
(<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
__STDC_CONSTANT_MACROS)]: Do not include, since we don't need
WCHAR_MIN and WCHAR_MAX in this case.
(<stddef.h>): Do not include; no longer needed.
(<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
(defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
(<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
!@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
&& (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
(__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
__c99]: Define, to work around IRIX <stdint.h> incompatibility.
(@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
!defined(__c99))]: Include in this case too, since it's harmless
now.
(<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
dangerous to do so.
(@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
@HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
(_STDINT_MIN, _STDINT_MAX): New macros.
(int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
(uint64_t, int_least8_t, uint_least8_t, int_least16_t):
(uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
(uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
(uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
(uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
macros, not typedefs; this simplifies things quite a bit.
Use long int for all types narrower than int64_t.
(intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
Define in terms of long long int or int64_t or long int,
not int64_t or int32_t.  This saves some compile-time testing.
(INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
(INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
(UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
(INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
(INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
(INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
(INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
(UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
(INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
(INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
(PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
(SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
undef any previous version and define our own version, for
simplicity and consistency with the new macros for types.
(PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
(SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
Simplify definitions by using _STDINT_MIN and _STDINT_MAX
where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
@SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
@WINT_T_SUFFIX@ to keep things simple here.
(UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
Simplify by assuming typical 8/16/32/64 host, since we're
already doing that elsewhere anyway.
Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
and assume long long int is 64 bits if available.  This
speeds up 'configure'.

* m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
but fix a bug, by requiring at least 64 bits.
* m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
* m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
* m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.

* m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
changes.  Make 2.59 a prerequisite.  Check and substitute for
HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
inttypes.h.  Do not use special include files; just use the
defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
WINT_MAX.  Check for C99 conformance more strictly, by detecting
bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
not check for things that C99 does not require, e.g., int8_t.  If
a test isn't needed unless <stdint.h> isn't working, and is
unlikely to be needed for any other reason, then don't do it
unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
size_t, since we assume C89 freestanding at least.  Do not check
for sig_atomic_t, wchar_t, or wint_t, since the code now does
the right thing even if the types are not defined.  Instead use:
(gl_STDINT_TYPE_PROPERTIES): New macro.
(gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
testing whether <sys/types.h> clashes, as Autoconf does this for
us now.  All uses removed.
(gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
(gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
(gl_CHECK_TYPE_SAME):
Remove; no longer needed.
(gl_STDINT_BITSIZEOF): Don't bother to check whether the type
exists, since we'll return 0 anyway in that case.
(gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.

17 years ago* stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
Eric Blake [Sat, 1 Jul 2006 21:38:47 +0000 (21:38 +0000)]
* stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.

17 years ago* stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
Eric Blake [Sat, 1 Jul 2006 20:46:11 +0000 (20:46 +0000)]
* stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
Reported by Andreas Buening.

17 years ago.
Karl Berry [Sat, 1 Jul 2006 07:59:06 +0000 (07:59 +0000)]
.

17 years agoFix typo, from Jim Hyslop <jhyslop@dreampossible.ca>.
Simon Josefsson [Sat, 1 Jul 2006 06:47:16 +0000 (06:47 +0000)]
Fix typo, from Jim Hyslop <jhyslop@dreampossible.ca>.

17 years ago* stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
Eric Blake [Fri, 30 Jun 2006 04:20:00 +0000 (04:20 +0000)]
* stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
unused static function.

17 years ago* sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
Eric Blake [Fri, 30 Jun 2006 04:19:13 +0000 (04:19 +0000)]
* sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.

17 years ago* MODULES.html.sh: Add sys_stat.
Eric Blake [Thu, 29 Jun 2006 22:21:39 +0000 (22:21 +0000)]
* MODULES.html.sh: Add sys_stat.
* modules/sys_stat: New module.
* modules/mkstemp (Depends-on): Add sys_stat.

17 years ago* sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
Eric Blake [Thu, 29 Jun 2006 22:18:26 +0000 (22:18 +0000)]
* sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.

17 years ago* stat_.h: New file.
Eric Blake [Thu, 29 Jun 2006 22:17:41 +0000 (22:17 +0000)]
* stat_.h: New file.

17 years ago* functions.texi (Function Portability): Document missing lstat
Eric Blake [Thu, 29 Jun 2006 22:15:49 +0000 (22:15 +0000)]
* functions.texi (Function Portability): Document missing lstat
on mingw.

17 years ago*** empty log message ***
Jim Meyering [Thu, 29 Jun 2006 21:16:36 +0000 (21:16 +0000)]
*** empty log message ***

17 years ago(Maintainer): Add my name, since with the
Jim Meyering [Thu, 29 Jun 2006 21:15:00 +0000 (21:15 +0000)]
(Maintainer): Add my name, since with the
FPRINTFTIME changes strftime.c has forked from glibc.

17 years agoFrom Derek R. Price:
Jim Meyering [Thu, 29 Jun 2006 21:11:49 +0000 (21:11 +0000)]
From Derek R. Price:
* lib/strftime.c: Assume strftime() exists.
* m4/strftime.m4: Don't call AC_FUNC_STRFTIME.

17 years agoVarious small tweaks.
Bruno Haible [Thu, 29 Jun 2006 15:16:56 +0000 (15:16 +0000)]
Various small tweaks.

17 years agoFix a few Changelog entries.
Bruno Haible [Thu, 29 Jun 2006 12:24:29 +0000 (12:24 +0000)]
Fix a few Changelog entries.

17 years agoChange wcwidth license to LGPL.
Bruno Haible [Thu, 29 Jun 2006 11:50:52 +0000 (11:50 +0000)]
Change wcwidth license to LGPL.

17 years ago* MODULES.html.sh: Remove c-bs-a.
Derek R. Price [Thu, 29 Jun 2006 10:59:42 +0000 (10:59 +0000)]
* MODULES.html.sh: Remove c-bs-a.

17 years ago* modules/c-bs-a: Removed - \a is C89.
Derek R. Price [Thu, 29 Jun 2006 10:56:35 +0000 (10:56 +0000)]
* modules/c-bs-a: Removed - \a is C89.
* m4/c-bs-a.m4: Removed.

17 years ago.
Karl Berry [Thu, 29 Jun 2006 07:57:47 +0000 (07:57 +0000)]
.

17 years ago* lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
Paul Eggert [Wed, 28 Jun 2006 22:25:49 +0000 (22:25 +0000)]
* lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
* m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.

17 years agoFix attribution for last patch.
Paul Eggert [Wed, 28 Jun 2006 22:03:42 +0000 (22:03 +0000)]
Fix attribution for last patch.

17 years ago* fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
Paul Eggert [Wed, 28 Jun 2006 22:00:55 +0000 (22:00 +0000)]
* fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
it's obsolete.
* strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.

17 years agoFix brought over from gettext.
Bruno Haible [Wed, 28 Jun 2006 18:06:12 +0000 (18:06 +0000)]
Fix brought over from gettext.

17 years agoFixes after wcwidth module creation.
Bruno Haible [Wed, 28 Jun 2006 17:03:53 +0000 (17:03 +0000)]
Fixes after wcwidth module creation.

17 years agoFix.
Simon Josefsson [Wed, 28 Jun 2006 16:28:02 +0000 (16:28 +0000)]
Fix.

17 years agoFix the comment fix.
Bruno Haible [Wed, 28 Jun 2006 16:22:49 +0000 (16:22 +0000)]
Fix the comment fix.

17 years ago* xvasprintf.h: Fix comments.
Eric Blake [Wed, 28 Jun 2006 14:00:22 +0000 (14:00 +0000)]
* xvasprintf.h: Fix comments.