From faf0e9c84119742dd9ebb79060faa22c52ae80a1 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 27 Jan 2017 06:53:19 +0100 Subject: nptl: Add tst-robust-fork --- support/xpthread_mutex_destroy.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 support/xpthread_mutex_destroy.c (limited to 'support/xpthread_mutex_destroy.c') diff --git a/support/xpthread_mutex_destroy.c b/support/xpthread_mutex_destroy.c new file mode 100644 index 0000000000..f11f8f0acd --- /dev/null +++ b/support/xpthread_mutex_destroy.c @@ -0,0 +1,26 @@ +/* pthread_mutex_destroy with error checking. + Copyright (C) 2016-2017 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 + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include + +void +xpthread_mutex_destroy (pthread_mutex_t *mutex) +{ + xpthread_check_return ("pthread_mutex_destroy", + pthread_mutex_destroy (mutex)); +} -- cgit 1.4.1