]> xenbits.xensource.com Git - unikraft/libs/pthread-embedded.git/commitdiff
Add pthread_sigmask() stub
authorCostin Lupu <costin.lupu@cs.pub.ro>
Fri, 1 Nov 2019 11:20:01 +0000 (13:20 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Tue, 5 Nov 2019 19:40:37 +0000 (21:40 +0200)
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
Makefile.uk
exportsyms.uk
pthread_sigmask.c [new file with mode: 0644]

index 5a6d9409323105bd4a2774a99ec94b1e26f08602..90626e844079f381b32eb04880c49affbdd56776 100644 (file)
@@ -67,6 +67,7 @@ LIBPTHREAD-EMBEDDED_EXPORTS = $(LIBPTHREAD-EMBEDDED_BASE)/exportsyms.uk
 LIBPTHREAD-EMBEDDED_SRCS-y += $(LIBPTHREAD-EMBEDDED_BASE)/pte_osal.c|glue
 LIBPTHREAD-EMBEDDED_SRCS-y += $(LIBPTHREAD-EMBEDDED_BASE)/attributes.c|glue
 LIBPTHREAD-EMBEDDED_SRCS-y += $(LIBPTHREAD-EMBEDDED_BASE)/pthread_atfork.c|glue
+LIBPTHREAD-EMBEDDED_SRCS-y += $(LIBPTHREAD-EMBEDDED_BASE)/pthread_sigmask.c|glue
 
 ################################################################################
 # pthread-embedded code
index c69aae3baefdcd40ac41fb23d8122c7b6f2083f2..63d1f855fc50f7ca717e90226087173fb4844d26 100644 (file)
@@ -80,6 +80,7 @@ pthread_setcanceltype
 pthread_setconcurrency
 pthread_setschedparam
 pthread_setspecific
+pthread_sigmask
 pthread_spin_destroy
 pthread_spin_init
 pthread_spin_lock
diff --git a/pthread_sigmask.c b/pthread_sigmask.c
new file mode 100644 (file)
index 0000000..7e12e2b
--- /dev/null
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: LGPL-2.0-or-later */
+/*
+ *      Unikraft port of POSIX Threads Library for embedded systems
+ *      Copyright(C) 2019 Costin Lupu, University Politehnica of Bucharest
+ *
+ *      This 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 of the License, or (at your option) any later version.
+ *
+ *      This 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 this library in the file COPYING.LIB;
+ *      if not, write to the Free Software Foundation, Inc.,
+ *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
+#include <uk/print.h>
+#include <signal.h>
+
+int pthread_sigmask(int how, const sigset_t *set, sigset_t *oldset)
+{
+       WARN_STUBBED();
+       return 0;
+}