shithub: riscv

ref: 4d919ab612f61c1ef1b21d41513f264d57c010d4
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;
}