Blame src/thread/nt32/__set_thread_area.c

716654
/**************************************************************************/
716654
/*  mmglue: midipix architecture- and target-specific bits for musl libc  */
716654
/*  Copyright (C) 2013--2023  SysDeer Technologies, LLC                   */
716654
/*  Released under the Standard MIT License; see COPYING.MMGLUE.          */
716654
/**************************************************************************/
716654
296178
#include <errno.h>
296178
#include "pthread_impl.h"
296178
296178
int __set_thread_area(void * p)
296178
{
296178
	struct pthread ** ptlca;
296178
296178
	ptlca = __psx_tlca();
296178
	if (!ptlca) return -ESRCH;
296178
296178
	*ptlca = p;
296178
	return 0;
296178
}