Paul Eggert
2d0c5eefd0
Sync from gnulib.
2005-09-22 06:05:39 +00:00
Jim Meyering
410f98fc2b
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
2005-07-02 08:41:46 +00:00
Paul Eggert
ab2edb9e33
Don't use "path" or "filename" to mean "file name"
...
in comments or local variable names.
2005-06-02 05:05:29 +00:00
Jim Meyering
116e6fb244
Update FSF postal mail address.
2005-05-14 07:58:06 +00:00
Paul Eggert
da741f89bd
(MIN) [defined MIN]: Don't define, since it's already defined.
2004-11-26 07:40:41 +00:00
Paul Eggert
f8a0187525
(errno): Remove decl; we now assume C89 or better.
...
(same_name): Return bool, not int.
2004-08-02 22:53:41 +00:00
Jim Meyering
7c4acc4f65
Include <stdlib.h> and <string.h> unconditionally,
...
as we're now assuming that part of hosted C89.
(free) [!HAVE_DECL_FREE]: Remove decl; no longer needed.
(same_name): Invoke pathconf on destination, not source, as
that's a bit clearer even if they are the same dir.
2003-08-19 10:02:53 +00:00
Jim Meyering
0fc380c89d
Include <stdbool.h>, <limits.h>.
...
(_POSIX_NAME_MAX): Define if not defined.
(MIN): New macro.
(same_name): If file names are silently truncated, report
that the file names are the same if they are the same after
the silent truncation.
2003-08-18 07:47:40 +00:00
Jim Meyering
cbe7e9daec
(same_name): Declare *_basename locals to be `const'.
...
Consolidate declarations and initializations of *_base* locals.
2003-01-14 15:07:24 +00:00
Jim Meyering
cbf24b40e3
(same_name): Reorder tests so as to avoid calling stat()
...
when a string comparison is sufficient.
2003-01-14 14:44:29 +00:00
Jim Meyering
f9362b8897
Don't include libintl.h, and don't define `_' -- they're not used.
2002-11-14 14:38:03 +00:00
Jim Meyering
8989b5b65c
(base_name): Remove; now in dirname.h.
...
(STREQ): Remove.
(same_name): Handle the case where the basename ends in trailing '/'.
2001-05-12 15:48:00 +00:00
Jim Meyering
02edb50e8f
(same_name): Invoke xalloc_die instead of printing our own message.
2000-08-07 16:55:57 +00:00
Jim Meyering
d1e34222a8
Include <string.h> or <strings.h>, as appropriate, for declaration of strcmp.
2000-06-29 11:29:55 +00:00
Jim Meyering
4fef810c37
use double quotes, not single quotes around syntax-error-evoking string
2000-02-27 17:54:25 +00:00
Jim Meyering
aadde40206
Use #if !HAVE_DECL...' instead of
#ifndef HAVE_DECL..'
...
now that autoconf always defines the HAVE_DECL_ symbols.
Arrange for cpp to fail if the configure-time
declaration check was not run.
2000-02-27 17:41:20 +00:00
Jim Meyering
aac32d403c
add copyright/no-warranty comment
2000-01-07 07:33:19 +00:00
Jim Meyering
0e96b5d2e7
New file (function extracted from ln.c).
1999-05-23 19:42:59 +00:00