Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread Add a weak alias for pthread_attr_get_np. Not...
details: https://anonhg.NetBSD.org/src/rev/bab5e6127647
branches: trunk
changeset: 756863:bab5e6127647
user: christos <christos%NetBSD.org@localhost>
date: Fri Aug 06 14:23:06 2010 +0000
description:
Add a weak alias for pthread_attr_get_np. Noted my Matthias Drochner.
diffstat:
lib/libpthread/pthread_attr.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r a303430e368c -r bab5e6127647 lib/libpthread/pthread_attr.c
--- a/lib/libpthread/pthread_attr.c Fri Aug 06 10:59:52 2010 +0000
+++ b/lib/libpthread/pthread_attr.c Fri Aug 06 14:23:06 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_attr.c,v 1.13 2010/08/06 05:25:02 christos Exp $ */
+/* $NetBSD: pthread_attr.c,v 1.14 2010/08/06 14:23:06 christos Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_attr.c,v 1.13 2010/08/06 05:25:02 christos Exp $");
+__RCSID("$NetBSD: pthread_attr.c,v 1.14 2010/08/06 14:23:06 christos Exp $");
#include <errno.h>
#include <stdio.h>
@@ -41,6 +41,12 @@
#include "pthread.h"
#include "pthread_int.h"
+#ifndef __lint__
+#define pthread_attr_get_np _pthread_attr_get_np
+#endif
+
+__weak_alias(pthread_attr_get_np, _pthread_attr_get_np)
+
static struct pthread_attr_private *pthread__attr_init_private(
pthread_attr_t *);
Home |
Main Index |
Thread Index |
Old Index