mirror of
https://github.com/ziglang/zig.git
synced 2026-02-11 03:51:08 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
10 lines
234 B
C
Vendored
10 lines
234 B
C
Vendored
#include "pthread_impl.h"
|
|
|
|
int pthread_attr_setstack(pthread_attr_t *a, void *addr, size_t size)
|
|
{
|
|
if (size-PTHREAD_STACK_MIN > SIZE_MAX/4) return EINVAL;
|
|
a->_a_stackaddr = (size_t)addr + size;
|
|
a->_a_stacksize = size;
|
|
return 0;
|
|
}
|