shithub: riscv

ref: 023f5eca58471db968aee3de7729c1c9b0540952
dir: /sys/src/libc/9sys/getpid.c/

View raw version
#include	<u.h>
#include	<libc.h>
#include	<tos.h>

int
getpid(void)
{
	return _tos->pid;
}