summaryrefslogtreecommitdiffstats
path: root/libc/misc/dirent/closedir.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-09-21 18:25:22 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-09-21 18:25:22 -0700
commite2784760e51ec0de62bbee61d27a85147460ece0 (patch)
tree0d1541dc5f16424d5a097929e0aaaa8c762a1056 /libc/misc/dirent/closedir.c
parenta894902293392cdae3a614ae3ff065ca3a7b9f75 (diff)
downloaduClibc-alpine-e2784760e51ec0de62bbee61d27a85147460ece0.tar.bz2
uClibc-alpine-e2784760e51ec0de62bbee61d27a85147460ece0.tar.xz
not-cancel: use *_not_cancel variants directly
add a no threads version of not-cancel.h to fallback on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/misc/dirent/closedir.c')
-rw-r--r--libc/misc/dirent/closedir.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libc/misc/dirent/closedir.c b/libc/misc/dirent/closedir.c
index a7d980fc7..dfb53f888 100644
--- a/libc/misc/dirent/closedir.c
+++ b/libc/misc/dirent/closedir.c
@@ -9,9 +9,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "dirstream.h"
-#ifdef __UCLIBC_HAS_THREADS_NATIVE__
#include <not-cancel.h>
-#endif
int closedir(DIR * dir)
@@ -34,10 +32,6 @@ int closedir(DIR * dir)
__UCLIBC_MUTEX_UNLOCK(dir->dd_lock);
free(dir->dd_buf);
free(dir);
-#ifdef __UCLIBC_HAS_THREADS_NATIVE__
return close_not_cancel(fd);
-#else
- return close(fd);
-#endif
}
libc_hidden_def(closedir)