shithub: riscv

ref: 2f67e21393c25943f25e116fa6912b7d92dbca4e
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;
}