shithub: riscv

ref: 8237f8c583281e8575c7f67f4d044b43aef82920
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;
}