|
|
c6d234 |
commit c93c5dec54a64563ce85b511053bd22161085d77
|
|
|
c6d234 |
Author: Andi Kleen <ak@linux.intel.com>
|
|
|
c6d234 |
Date: Fri Dec 28 21:25:07 2012 +0100
|
|
|
c6d234 |
|
|
|
c6d234 |
Convert pthread_rwlock_try(rd/wr)lock to prototypes
|
|
|
c6d234 |
|
|
|
c6d234 |
2012-12-28 Andi Kleen <ak@linux.intel.com>
|
|
|
c6d234 |
|
|
|
c6d234 |
* pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
|
|
|
c6d234 |
* Convert
|
|
|
c6d234 |
to prototype.
|
|
|
c6d234 |
* pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/pthread_rwlock_tryrdlock.c b/nptl/pthread_rwlock_tryrdlock.c
|
|
|
c6d234 |
index beaa970acfc6c0a3..1a492364154f6828 100644
|
|
|
c6d234 |
--- a/nptl/pthread_rwlock_tryrdlock.c
|
|
|
c6d234 |
+++ b/nptl/pthread_rwlock_tryrdlock.c
|
|
|
c6d234 |
@@ -1,4 +1,4 @@
|
|
|
c6d234 |
-/* Copyright (C) 2002, 2007 Free Software Foundation, Inc.
|
|
|
c6d234 |
+/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
|
|
|
c6d234 |
This file is part of the GNU C Library.
|
|
|
c6d234 |
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__pthread_rwlock_tryrdlock (rwlock)
|
|
|
c6d234 |
- pthread_rwlock_t *rwlock;
|
|
|
c6d234 |
+__pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int result = EBUSY;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/pthread_rwlock_trywrlock.c b/nptl/pthread_rwlock_trywrlock.c
|
|
|
c6d234 |
index 92750b83a209c959..920cf366fa73e4ce 100644
|
|
|
c6d234 |
--- a/nptl/pthread_rwlock_trywrlock.c
|
|
|
c6d234 |
+++ b/nptl/pthread_rwlock_trywrlock.c
|
|
|
c6d234 |
@@ -1,4 +1,4 @@
|
|
|
c6d234 |
-/* Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc.
|
|
|
c6d234 |
+/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
|
|
|
c6d234 |
This file is part of the GNU C Library.
|
|
|
c6d234 |
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__pthread_rwlock_trywrlock (rwlock)
|
|
|
c6d234 |
- pthread_rwlock_t *rwlock;
|
|
|
c6d234 |
+__pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int result = EBUSY;
|
|
|
c6d234 |
|