|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 1/1] lib/pthread-embedded - Update C guards - exportsyms.uk: Add sched.h functions
Signed-off-by: Teodora Serbanescu <teo.serbanescu16@xxxxxxxxx>
---
exportsyms.uk | 4 ++++
include/pthread.h | 7 ++++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/exportsyms.uk b/exportsyms.uk
index c3323c1..24b5c02 100644
--- a/exportsyms.uk
+++ b/exportsyms.uk
@@ -83,4 +83,8 @@ pthread_rwlockattr_destroy
pthread_rwlockattr_getpshared
pthread_rwlockattr_setpshared
pthread_kill
+sched_yield
+sched_get_priority_min
+sched_get_priority_max
+sched_setscheduler
pte_test_main
diff --git a/include/pthread.h b/include/pthread.h
index 2f4f7ed..ae6c21b 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -21,13 +21,14 @@
#ifndef __GLUE_PTHREAD_H__
#define __GLUE_PTHREAD_H__
-#include_next <pthread.h>
-
-/* C functions not implemented in pthread-embedded */
#ifdef __cplusplus
extern "C" {
#endif
+/* The C code in pthread.h is not guarded for C++ */
+#include_next <pthread.h>
+
+/* C functions not implemented in pthread-embedded */
int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize);
int pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize);
--
2.11.0
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |