xref: /third_party/musl/src/thread/pthread_attr_setstacksize.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/thread/
1570af302Sopenharmony_ci#include "pthread_impl.h"
2570af302Sopenharmony_ci
3570af302Sopenharmony_ciint pthread_attr_setstacksize(pthread_attr_t *a, size_t size)
4570af302Sopenharmony_ci{
5570af302Sopenharmony_ci	if (size-PTHREAD_STACK_MIN > SIZE_MAX/4) return EINVAL;
6570af302Sopenharmony_ci	a->_a_stackaddr = 0;
7570af302Sopenharmony_ci	a->_a_stacksize = size;
8570af302Sopenharmony_ci	return 0;
9570af302Sopenharmony_ci}
10

Indexes created Thu Nov 07 10:32:03 CST 2024