summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/realpath.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: Add canonicalize_file_name functionCarmelo Amoroso2010-09-161-0/+1
| | | | | | | | Add canonicalize_file_name function and its related tests. Required by elfutils and coreutils (readlink). Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* realpath: SUSv4 compliantBernhard Reutner-Fischer2009-11-141-14/+8
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-181-5/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-2/+2
| | | | | Appears to build fine (several .configs tried)
* This fixes a problem with the move of libc_hidden_proto to string.h.Bernd Schmidt2008-06-041-1/+0
| | | | | | | | | | | | | The obsolete functions bcopy, index, etc. are not supposed to be used within uClibc itself. Hence, there is no libc_hidden_def for them, but the previous patch did not just move libc_hidden_protos, it also added new ones for the legacy functions. As a result, programs which use these functions can no longer link with uClibc. This fixes it by removing the unnecessary libc_hidden_protos. I've also removed all inclusions of <strings.h> from uClibc source files: since we define _GNU_SOURCE, it is sufficient to include <string.h>. We then do not need to duplicate the libc_hidden_proto block in <strings.h>.
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-191-3/+3
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* realpath: do not set bogus errno when readlink fails.Denis Vlasenko2008-05-081-22/+26
|
* realpath: reduce stack usage from 3*PATH_MAX (12k) to 1*PATH_MAX (4k).Denis Vlasenko2007-12-031-34/+36
| | | | | | | | | reduction is achieved by direct use of user-supplied PATH_MAX sized buffer for result (without intermediate copy) and changes in copy_buf[] usage - now it is used for both "source" pathname and link name (it works because they have to be less than PATH_MAX combined, otherwise we return NULL).
* revert 17821, wait for better test casesEric Andersen2007-02-081-1/+1
|
* Miguel Angel Alvarez writes:Eric Andersen2007-02-081-1/+1
| | | | | | | | | Hi. I have found a bug in realpath that did not allow me to use it with symlinks. Although I am using 0.9.28.1, the bug is present in 0.9.28 and also in the trunk. I attach a suggested patch. Please let me know if the solution is correct.
* handle file_name==NULL and file_name=="" as required by POSIXMike Frysinger2007-02-081-0/+8
|
* - Cleanout the only occurance of the SUSv3 LEGACY function getwd() that wasBernhard Reutner-Fischer2006-11-291-6/+1
| | | | furthermore ifdef'ed out anyway.
* Get rid of missing prototype warningsPeter S. Mazinger2006-01-261-0/+1
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-20/+16
| | | | missing headers, other jump relocs removed
* Hide morePeter S. Mazinger2005-12-071-0/+1
|
* Hide *clnt|pmap|svc* and some rpc. inet/rpc is full of relocs ...Peter S. Mazinger2005-12-071-0/+2
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-8/+8
|
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-4/+4
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Bug ugly formatting updateEric Andersen2000-10-091-17/+13
|
* Add in a bunch of junk. Busybox now compiles (except for mkfs.minix andEric Andersen2000-07-091-0/+168
fsck.minix). Of course, it doesn't link yet due to missing functions, but hey... At least it is now easy to see what isn't working. :-) -Erik