summaryrefslogtreecommitdiffstats
path: root/test/misc/tst-scandir.c
Commit message (Collapse)AuthorAgeFilesLines
* - Include stdio.h for the perror prototype, use constants from stdlib.h,Bernhard Reutner-Fischer2008-10-101-3/+5
| | | | tidy up old-style function definition.
* - fix test. Tests are normal userspace and are _not_ part of the libc itselfBernhard Reutner-Fischer2008-10-091-1/+1
| | | | Thanks to Tobias Poschwatta for pointing out this error.
* Fix scandir function to reset the errno when the Carmelo Amoroso2008-10-061-0/+21
selector returns zero(no entries) modifying the errno. The attached test case implements a dummy filter that returns alway no entries, but change the errno. scandir is not expected to fail, just returning 0 entries. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>