Blame src/thread/nt64/__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
860627
#include <errno.h>
860627
#include "pthread_impl.h"
860627
860627
int __set_thread_area(void * p)
860627
{
860627
	struct pthread ** ptlca;
860627
860627
	ptlca = __psx_tlca();
860627
	if (!ptlca) return -ESRCH;
860627
860627
	*ptlca = p;
860627
	return 0;
860627
}