shithub: riscv

ref: 03d870e0283299404b0eb46689d13f8538e83a2f
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;
}