lib/xreadlink.c


Log

Author Commit Date CI Message
Jim Meyering 4989c1b9 2001-10-21T15:12:39 whoops! fix comment on first line :-)
Jim Meyering b6f4a765 2001-09-04T20:20:16 (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.
Jim Meyering 77991e77 2001-09-03T18:32:05 include errno.h etc, too
Jim Meyering c34c8a63 2001-09-03T18:26:42 tweak comment
Jim Meyering 0bd7218d 2001-09-03T18:25:58 (xreadlink): Preserve errno around `free' during failure.
Jim Meyering 8d7314ae 2001-09-03T18:24:37 update comment re power of 2
Jim Meyering 7d7fb735 2001-09-01T09:50:48 *** empty log message ***