summaryrefslogtreecommitdiff
path: root/lib/xreadlink.c
AgeCommit message (Collapse)Author
2004-11-03Sync from gnulib.Paul Eggert
2004-11-03Sync from gnulib.Paul Eggert
2004-08-02(errno): Remove decl; we now assume C89 or better.Paul Eggert
2004-06-01Include xreadlink.h first, to catch .h file dependency problems.Jim Meyering
2003-11-21(xreadlink): Correct outdated comment.Jim Meyering
2003-09-13Update from gnulib.Jim Meyering
2003-07-04Include <sys/types.h> unconditionally, instead ofJim Meyering
having it depend on HAVE_SYS_TYPES_H.
2003-06-06Update from gnulib.Jim Meyering
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