2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
11 #include "dirstream.h"
14 int closedir(DIR * dir)
23 /* We need to check dd_fd. */
24 if (dir->dd_fd == -1) {
28 __UCLIBC_MUTEX_LOCK(dir->dd_lock);
31 __UCLIBC_MUTEX_UNLOCK(dir->dd_lock);
36 libc_hidden_def(closedir)