shithub: riscv

ref: 6386a0391a11fd3c5216dfe1478fda08ae8bccbc
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;
}