Jim Meyering
8df5a2474c
update comment re power of 2
2001-09-03 18:24:37 +00:00
Jim Meyering
cb2a0f5e50
Fix the !HAVE_GETCWD_NULL code to behave more
...
like the HAVE_GETCWD_NULL code.
Include pathmax.h if not HAVE_GETCWD.
Do not include xalloc.h.
(INITIAL_BUFFER_SIZE): New symbol.
Do not use xmalloc / xrealloc, since the caller is responsible for
handling errors. Preserve errno around `free' during failure.
Do not overrun buffer when using getwd.
2001-09-03 18:21:53 +00:00
Jim Meyering
9525a77c98
.
2001-09-03 09:43:36 +00:00
Jim Meyering
dbb27d4a36
.
2001-09-03 09:10:49 +00:00
Jim Meyering
4da3051ac3
*** empty log message ***
2001-09-03 07:45:34 +00:00
Jim Meyering
da313bea2d
(jm_PREREQ): Add jm_PREREQ_XGETCWD.
...
(jm_PREREQ_XGETCWD): New macro.
2001-09-03 07:45:11 +00:00
Jim Meyering
0604854c16
*** empty log message ***
2001-09-03 07:44:18 +00:00
Jim Meyering
f5a12e3c11
*** empty log message ***
2001-09-03 07:43:54 +00:00
Jim Meyering
ae60bce16e
(xgetcwd): Use HAVE_GETCWD_NULL, not (defined __GLIBC__ && __GLIBC__ >= 2),
...
to decide whether to use getcwd (NULL, 0).
2001-09-03 07:43:44 +00:00
Jim Meyering
dabc92dc12
*** empty log message ***
2001-09-02 15:23:19 +00:00
Jim Meyering
ee5c9da57b
Don't pass an argument to a sourced script.
2001-09-02 15:22:37 +00:00
Jim Meyering
cf346c4179
Don't pass an argument to a sourced script.
2001-09-02 15:22:12 +00:00
Jim Meyering
f89de05989
Change usage not to use $1.
...
That's not portable to e.g., Solaris2.6's /bin/sh.
Communicate via an envvar instead.
2001-09-02 15:21:33 +00:00
Jim Meyering
5a3b6381c2
update for new priv-check usage
2001-09-02 15:19:27 +00:00
Jim Meyering
cb5a1ce84b
*** empty log message ***
2001-09-02 14:34:07 +00:00
Jim Meyering
c976fc9de2
(alpha): Depend on local-check so that they run a little earlier.
2001-09-02 14:33:59 +00:00
Jim Meyering
fb3d344a5b
*** empty log message ***
2001-09-02 14:26:06 +00:00
Jim Meyering
93a2f57576
*** empty log message ***
2001-09-02 14:25:03 +00:00
Jim Meyering
4fdadc2de6
*** empty log message ***
2001-09-02 14:22:50 +00:00
Jim Meyering
701b698712
*** empty log message ***
2001-09-02 14:20:39 +00:00
Jim Meyering
2a36dfaa48
*** empty log message ***
2001-09-02 14:14:01 +00:00
Jim Meyering
7d70c84f7d
*** empty log message ***
2001-09-02 14:13:07 +00:00
Jim Meyering
cd8327ce2d
*** empty log message ***
2001-09-02 13:22:33 +00:00
Jim Meyering
79a41c2f8b
Update from GNU libc.
2001-09-02 13:22:25 +00:00
Jim Meyering
60d1eabd0c
*** empty log message ***
2001-09-01 16:24:32 +00:00
Jim Meyering
be53392f0a
(show_point): Use canonicalize_file_name, if possible.
...
[HAVE_RESOLVEPATH], [!HAVE_RESOLVEPATH]: Use malloc, not alloca,
so that these two paths also produce `resolved' in malloc'd storage.
Free that memory when done with it.
2001-09-01 16:24:19 +00:00
Jim Meyering
d9025b763b
*** empty log message ***
2001-09-01 16:13:09 +00:00
Jim Meyering
fadaa762b5
(jm_MACROS): Check for canonicalize_file_name.
2001-09-01 16:12:45 +00:00
Jim Meyering
5c46e766b0
(get_link_name): Restore error-handling that was removed by preceding delta.
2001-09-01 13:26:41 +00:00
Jim Meyering
678bbca816
*** empty log message ***
2001-09-01 10:02:07 +00:00
Jim Meyering
fa207c2942
Include "xreadlink.h".
...
(get_link_name): Don't use PATH_MAX.
Rewrite to use xreadlink.
2001-09-01 09:58:04 +00:00
Jim Meyering
9e2ed8d97a
.
2001-09-01 09:53:58 +00:00
Jim Meyering
4c419b468b
*** empty log message ***
2001-09-01 09:53:48 +00:00
Jim Meyering
31555f918c
*** empty log message ***
2001-09-01 09:50:48 +00:00
Jim Meyering
1d9ccbf010
(libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h.
2001-09-01 09:50:21 +00:00
Jim Meyering
1db0824586
.
2001-09-01 07:43:13 +00:00
Jim Meyering
4d9bd13285
*** empty log message ***
2001-09-01 07:40:02 +00:00
Jim Meyering
6fd75407f4
(uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
...
doesn't conflict with sparc-sun-solaris2.7's definition in
/usr/include/sys/int_types.h.
2001-09-01 07:39:56 +00:00
Jim Meyering
1d07c58db8
*** empty log message ***
2001-09-01 07:29:08 +00:00
Jim Meyering
847d1c0da7
Use ""', not <>' to #include non-system header files.
...
(fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
and strncasecmp as r-values. Unixware didn't have declarations.
2001-09-01 07:28:51 +00:00
Jim Meyering
414d5f13be
fix typo
2001-09-01 06:13:08 +00:00
Jim Meyering
985cae59cb
*** empty log message ***
2001-08-31 11:41:46 +00:00
Jim Meyering
72ee797c44
(xgetcwd): Reorganize to avoid some duplication.
...
Use an initial, malloc'd, buffer of length 128 rather than
a statically allocated one of length 1024.
2001-08-31 11:39:16 +00:00
Jim Meyering
73caa61683
*** empty log message ***
2001-08-31 10:36:23 +00:00
Jim Meyering
ee65e66c6c
Don't include pathmax.h.
...
Include stdlib.h and unistd.h if available.
Include xalloc.h.
(xmalloc, xstrdup, free): Remove decls.
(xgetcwd): Don't assume sizes fit in unsigned.
Check for overflow when computing sizes.
Simplify reallocation code.
2001-08-31 10:36:12 +00:00
Jim Meyering
48f3734b37
*** empty log message ***
2001-08-31 10:22:11 +00:00
Jim Meyering
df08b15a80
(jm_MACROS):Don't require jm_AC_HEADER_INTTYPES_H.
2001-08-31 10:21:56 +00:00
Jim Meyering
8d10649023
(jm_PREREQ_HUMAN): Don't require jm_AC_HEADER_INTTYPES_H.
...
Update comment.
2001-08-31 10:20:17 +00:00
Jim Meyering
c346a4e4cf
(jm_AC_PREREQ_XSTRTOUMAX):
...
Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
since they are needed to parse the include file even if we need
only xstrtoumax. Simplify logic behind the args to AC_REPLACE.
2001-08-31 10:18:21 +00:00
Jim Meyering
9b27320468
(jm_AC_PREREQ_XSTRTOIMAX):
...
Quote first arg of AC_DEFUN.
Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
since they are needed to parse the include file even if we need
only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
2001-08-31 10:14:52 +00:00