shithub: riscv

ref: 5655f2e28e077e38c64425a61b2394cdfbbe8af8
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;
}