Index: fusl/src/thread/pthread_attr_setguardsize.c |
diff --git a/fusl/src/thread/pthread_attr_setguardsize.c b/fusl/src/thread/pthread_attr_setguardsize.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9f21d24702fbf3874c26e196943653166bb3f818 |
--- /dev/null |
+++ b/fusl/src/thread/pthread_attr_setguardsize.c |
@@ -0,0 +1,8 @@ |
+#include "pthread_impl.h" |
+ |
+int pthread_attr_setguardsize(pthread_attr_t *a, size_t size) |
+{ |
+ if (size > SIZE_MAX/8) return EINVAL; |
+ a->_a_guardsize = size - DEFAULT_GUARD_SIZE; |
+ return 0; |
+} |