9.89 create_thread

int create_thread(void *callback, void *arg, void *stack, void *tls_addr, int cluster);

This syscall creates a thread for the caller process.

This syscall returns the TID on success or -1 on failure, with the errno:

EFAULT

The passed buffers were pointing to invalid memory.

EACCES

MAC disallowed this.