* sysdeps/unix/opendir.c: Likewise.
* sysdeps/unix/readdir.c: Likewise.
2007-02-18 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/unix/closedir.c: Outside libc don't use locking.
+ * sysdeps/unix/opendir.c: Likewise.
+ * sysdeps/unix/readdir.c: Likewise.
+
[BZ #2211]
* stdio-common/vfscanf.c: Handle localized digits etc for floating
point numbers.
void (*ptr__nptl_deallocate_tsd) (void);
int (*ptr__nptl_setxid) (struct xid_command *);
void (*ptr_freeres) (void);
+ void (*ptr_wait_lookup_done) (int);
};
/* Variable in libc.so. */
extern struct pthread_functions __libc_pthread_functions attribute_hidden;
extern int __libc_pthread_functions_init attribute_hidden;
-#define PTHFCT_CALL(fct, params) \
+#ifdef PTR_DEMANGLE
+# define PTHFCT_CALL(fct, params) \
+ __libc_pthread_functions.fct params
+#else
+# define PTHFCT_CALL(fct, params) \
({ __typeof (__libc_pthread_functions.fct) __p; \
__p = __libc_pthread_functions.fct; \
PTR_DEMANGLE (__p); \
__p params; })
+#endif
#endif /* pthread-functions.h */
-/* Copyright (C) 1991,1993,1995,1996,1998,2002,2003
+/* Copyright (C) 1991,1993,1995,1996,1998,2002,2003, 2007
Free Software Foundation, Inc.
This file is part of the GNU C Library.
fd = dirp->fd;
+#ifndef NOT_IN_libc
__libc_lock_fini (dirp->lock);
+#endif
free ((void *) dirp);
-/* Copyright (C) 1991-1996,98,2000-2003,2005 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1996,98,2000-2003,2005,2007
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
dirp->allocation = allocation;
dirp->fd = fd;
+#ifndef NOT_IN_libc
__libc_lock_init (dirp->lock);
+#endif
return dirp;
}
-/* Copyright (C) 1991,92,93,94,95,96,97,99,2000,02
- Free Software Foundation, Inc.
+/* Copyright (C) 1991-1997,1999,2000,2002,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
DIRENT_TYPE *dp;
int saved_errno = errno;
+#ifndef NOT_IN_libc
__libc_lock_lock (dirp->lock);
+#endif
do
{
/* Skip deleted files. */
} while (dp->d_ino == 0);
+#ifndef NOT_IN_libc
__libc_lock_unlock (dirp->lock);
+#endif
return dp;
}