Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/libbb/xreadlink.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/libbb/xreadlink.c
r2725 r3621 2 2 /* 3 3 * xreadlink.c - safe implementation of readlink. 4 * Returns a NULL on failure. ..4 * Returns a NULL on failure. 5 5 * 6 6 * Licensed under GPLv2, see file LICENSE in this source tree. … … 8 8 9 9 #include "libbb.h" 10 11 /* Some systems (eg Hurd) do not have MAXSYMLINKS definition, 12 * set it to some reasonable value if it isn't defined */ 13 #ifndef MAXSYMLINKS 14 # define MAXSYMLINKS 20 15 #endif 10 16 11 17 /* … … 103 109 char* FAST_FUNC xmalloc_realpath(const char *path) 104 110 { 105 #if defined(__GLIBC__) && !defined(__UCLIBC__) 111 /* NB: uclibc also defines __GLIBC__ 112 * Therefore the test "if glibc, or uclibc >= 0.9.31" looks a bit weird: 113 */ 114 #if defined(__GLIBC__) && \ 115 (!defined(__UCLIBC__) || UCLIBC_VERSION >= KERNEL_VERSION(0, 9, 31)) 106 116 /* glibc provides a non-standard extension */ 107 117 /* new: POSIX.1-2008 specifies this behavior as well */
Note:
See TracChangeset
for help on using the changeset viewer.