Libraries updates and cleanup

* Updating common/lib
 * Updating lib/csu
 * Updating lib/libc
 * Updating libexec/ld.elf_so
 * Corrected test on __minix in featuretest to actually follow the
   meaning of the comment.
 * Cleaned up _REENTRANT-related defintions.
 * Disabled -D_REENTRANT for libfetch
 * Removing some unneeded __NBSD_LIBC defines and tests

Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
2012-11-15 12:06:41 +01:00
parent f6aac1c3b5
commit f14fb60209
1285 changed files with 44244 additions and 14308 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: reentrant.h,v 1.14 2009/01/11 02:46:28 christos Exp $ */
/* $NetBSD: reentrant.h,v 1.15 2012/06/03 21:27:30 joerg Exp $ */
/*-
* Copyright (c) 1997, 1998, 2003 The NetBSD Foundation, Inc.
@@ -254,7 +254,17 @@ __END_DECLS
#define thr_getspecific(k)
#define thr_keydelete(k)
#define thr_once(o, f)
#if !defined(__minix)
static inline int
thr_once(once_t *once_control, void (*routine)(void))
{
if (__predict_false(once_control->pto_done == 0)) {
(*routine)();
once_control->pto_done = 1;
}
return 0;
}
#endif /* defined(__minix) */
#define thr_sigsetmask(f, n, o)
#define thr_self()
#define thr_errno()