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
4b738e2f5d
Sync from gnulib.
2004-11-03 23:15:44 +00:00
Paul Eggert
5a5367474b
Sync from gnulib.
2004-11-03 07:44:15 +00:00
Paul Eggert
fd0ca86dd2
(errno): Remove decl; we now assume C89 or better.
2004-08-02 22:41:37 +00:00
Jim Meyering
8a81d09a7f
Include xreadlink.h first, to catch .h file dependency problems.
2004-06-01 13:20:50 +00:00
Jim Meyering
d23aea4a1e
(xreadlink): Correct outdated comment.
2003-11-21 08:21:23 +00:00
Jim Meyering
dce9582d2c
Update from gnulib.
2003-09-13 22:01:20 +00:00
Jim Meyering
2ada37fa94
Include <sys/types.h> unconditionally, instead of
...
having it depend on HAVE_SYS_TYPES_H.
2003-07-04 11:38:37 +00:00
Jim Meyering
5dc10e1e85
Update from gnulib.
2003-06-06 19:36:28 +00:00
Jim Meyering
6994cb9650
(xreadlink): Add cast to avoid a warning.
2001-12-09 22:46:53 +00:00
Jim Meyering
bd0070c191
whoops! fix comment on first line :-)
2001-10-21 15:12:39 +00:00
Jim Meyering
beb34bac0a
(xreadlink): Omit size_t* arg. All uses changed.
...
Use ssize_t, not int, to store result of readlink.
Check for ssize_t overflow as well as size_t overflow,
as POSIX says the result of readlink is implementation-defined
when ssize_t overflows.
Remove unnecessary cast to char*.
Use free+malloc instead of realloc, as the storage doesn't need
to be preserved and it's clearer and can be more efficient that way.
(SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
2001-09-04 20:20:16 +00:00
Jim Meyering
f839ec4d47
include errno.h etc, too
2001-09-03 18:32:05 +00:00
Jim Meyering
f5d7ab79b8
tweak comment
2001-09-03 18:26:42 +00:00
Jim Meyering
c9488ff0e1
(xreadlink): Preserve errno around `free' during failure.
2001-09-03 18:25:58 +00:00
Jim Meyering
8df5a2474c
update comment re power of 2
2001-09-03 18:24:37 +00:00
Jim Meyering
31555f918c
*** empty log message ***
2001-09-01 09:50:48 +00:00