shithub: riscv

ref: 9d6d327871da49dbd792522d76f99669e35e527e
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;
}