Commit Graph

10 Commits

Author SHA1 Message Date
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