summaryrefslogtreecommitdiff
path: root/lib/xreadlink.c
AgeCommit message (Collapse)Author
2001-12-09(xreadlink): Add cast to avoid a warning.Jim Meyering
2001-10-21whoops! fix comment on first line :-)Jim Meyering
2001-09-04(xreadlink): Omit size_t* arg. All uses changed.Jim Meyering
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-03include errno.h etc, tooJim Meyering
2001-09-03tweak commentJim Meyering
2001-09-03(xreadlink): Preserve errno around `free' during failure.Jim Meyering
2001-09-03update comment re power of 2Jim Meyering
2001-09-01*** empty log message ***Jim Meyering