summaryrefslogtreecommitdiffstats
path: root/libc/misc/dirent/opendir.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert latest changes. Instead of applying this work-aroundCarmelo Amoroso2008-09-091-2/+1
| | | | | | | a proper fix should ensure that statically linked mutli-threaded binaries take always the proper locking implementation. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Removed pointless initialization to 0 of DIR fieldsCarmelo Amoroso2007-12-071-1/+0
| | | | | | | after having added memset. Thanks to Peter Mazinger for pointing this out. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix opendir problem when statically linked due to a missingCarmelo Amoroso2007-12-051-0/+1
| | | | | | | | | initialization of the mutex field within DIR struct. When linked dynamically instead, __pthread_mutex_init will initialize the mutex itself. Without this fix, any call to readdir will stuck forever trying to acquire the mutex. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* remove fstat jump relocPeter S. Mazinger2006-02-141-0/+1
|
* rfelker reports in Bug 683 that we leak file descriptors if the fcntl() ↵Mike Frysinger2006-02-041-8/+13
| | | | fails ... so fix that. add back in fstat() ofter we open() the directory as we need the blocksize further down in the code. unify the memory error handling to shrink the code there a little.
* add note about raceconditionMike Frysinger2006-02-041-0/+5
|
* use O_DIRECTORY when possible, saves us from having to use stat() thus ↵Mike Frysinger2006-02-041-1/+6
| | | | cutting codesize/race condition
* add some copyright/license infoMike Frysinger2006-02-041-0/+6
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-7/+12
| | | | missing headers, other jump relocs removed
* Convert all users of earlier hiddensPeter S. Mazinger2005-12-131-1/+1
|
* Convert internal users of chmod/*stat*, minimize change for __strsepPeter S. Mazinger2005-12-131-1/+1
|
* Implement __x versionsPeter S. Mazinger2005-12-081-1/+2
|
* macro out the thread funcs in libc if threading is disabledMike Frysinger2005-12-061-2/+0
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-3/+3
|
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-271-1/+1
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* Fixup totally broken locking code... No storage for the mutex,Eric Andersen2002-05-301-2/+2
| | | | | wrong ifdef macro.. -Erik
* Implement readdir_r. Audit for proper thread safety and locking.Eric Andersen2002-05-111-1/+3
| | | | -Erik
* Scrub up some lingering problems preventing readdir64 from workingEric Andersen2001-11-141-4/+5
| | | | | | and creating several *64 problems, particualrly when client apps used -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64. All better now. -Erik
* In theory, this adds readdir64 and friends. Dunno if theyEric Andersen2001-10-171-1/+1
| | | | | work yet or not.... -Erik
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-3/+3
| | | | | | | 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
* Move the dirent stuff. I suppose it is system dependant, but thenEric Andersen2001-03-191-0/+55
it really should be grouped together too. And it needed to be grouped more then it needed to be in sysdeps/linux/common