shithub: riscv

ref: 56c212c010af4d0e18454699699eb65d08704af0
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;
}