svn commit: trunk/uClibc/libc/misc/dirent

carmelo at uclibc.org carmelo at uclibc.org
Tue Sep 9 12:04:01 UTC 2008


Author: carmelo
Date: 2008-09-09 05:04:00 -0700 (Tue, 09 Sep 2008)
New Revision: 23364

Log:
Revert latest changes. Instead of applying this work-around
a proper fix should ensure that statically linked mutli-threaded
binaries take always the proper locking implementation.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>


Modified:
   trunk/uClibc/libc/misc/dirent/opendir.c


Changeset:
Modified: trunk/uClibc/libc/misc/dirent/opendir.c
===================================================================
--- trunk/uClibc/libc/misc/dirent/opendir.c	2008-09-09 12:01:37 UTC (rev 23363)
+++ trunk/uClibc/libc/misc/dirent/opendir.c	2008-09-09 12:04:00 UTC (rev 23364)
@@ -64,9 +64,8 @@
 	if (!(ptr = malloc(sizeof(*ptr))))
 		goto nomem_close_and_ret;
 
-	memset(ptr, '\0', sizeof(DIR));
 	ptr->dd_fd = fd;
-
+	ptr->dd_nextloc = ptr->dd_size = ptr->dd_nextoff = 0;
 	ptr->dd_max = statbuf.st_blksize;
 	if (ptr->dd_max < 512)
 		ptr->dd_max = 512;




More information about the uClibc-cvs mailing list